Pages: [1]   Go Down
Author Topic: SpeakJet fun  (Read 1304 times)
0 Members and 1 Guest are viewing this topic.
Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Working on a little project to incorporate a ultrasonic rangefinder and a SpeakJet, plus a few other bits.

Here's a pic of my little SpeakJet test setup with onboard amplifier (LM386). It's a generic board with header pins for 5V power, speaker out, plus the SpeakJet I/O lines. Planning on using this for a few more projects in the future. Didn't make it into a shield as I'll be using my own "mini-Arduino" board that I've cobbled together.

I was hoping to create a nice little library to control the SpeakJet but quickly realised the IDE limitation about libraries using other libraries (boo!), but have created some generic code for controlling the SpeakJet (incl speaking numbers, distances etc) that I'll share once everything is solid.



The speech is very robotic, but I love that retro sound (ahh, the 80's) smiley

My 5yo daughter wanted to know if it could say "I love pears".  smiley-grin


Cheers,
Gavin.
Logged

Is life really that serious...??!

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool!  I've always wanted to buy one of those Speakjet chips, but can't quite justify paying 25 bucks for it ;D!

Anyone got one they want to ship my way? smiley-wink haha

Got a schematic?
« Last Edit: August 03, 2010, 09:29:43 pm by Tchnclfl » Logged

Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I bought 2 of em... hate buying singles. I got em for ~$35 for the pair from toysdownunder.com - but their prices seem to have gone up. Maybe I got em on sale by chance. Not sure actually.

Hooking up the SpeakJet by itself is easy - you need almost no external components for a basic setup. The majority of what you see is a simple low-pass filter feeding into the amp circuit which pretty much came straight from the LM386 datasheet. If you're using an external amp or powered speakers you could just go with a line-level output and forgo the LM386 amp setup. Pin 18 on the SpeakJet is output to the low-pass filter. Pin 10 is input and that's wired through a resistor into the header which goes to the Arduino pin (which is setup with the SoftwareSerial lib). The 3 other pins going to the 4-way header are for the SpeakJet status indicators (Ready, Speaking, Buffer half-full). The rest of the connections are used for setting up certain modes that I didn't care about.



The SpeakJet can be setup to respond to 16 specific events and play canned responses (you can flash the EEPROM yourself with custom messages via the serial connection). That's what most of the pins on the far side are for, except for a single ground connection

There's all this other stuff it can do with regard to RC servo's etc, but I kinda skimmed that section 'cause it ain't relevant for the moment.


Cheers,
Logged

Is life really that serious...??!

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I got em for ~$35 for the pair from toysdownunder.com - but their prices seem to have gone up.

You're telling me!  The cheapest I've seen them is $25 for 1!

Thanks for the info.
Logged

0
Offline Offline
Edison Member
*
Karma: 20
Posts: 1980
Wo ein Wille ist, da ist auch ein Weg !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you use a 0,5 Watt 8 Ohm loudspeaker ?
Logged

Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think it was 250mW, 8 Ohm from memory, but anything in that range will be fine.


G.
Logged

Is life really that serious...??!

Melbourne, Australia
Offline Offline
Full Member
***
Karma: 1
Posts: 226
Cyborg-in-progress
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There are a couple of links on the Speech Synthesizer project page on the "Practical Arduino" site that may be useful to you, such as the link to the Phrase-A-Later software:

http://www.practicalarduino.com/projects/speech-synthesizer
--
Jon
Cheap prototyping shields: www.freetronics.com/protoshield-basic
Logged

Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Phrase-A-Later comes in handy to get you in the ball-park, but I found manual tweaking was still required in many cases. It's Windows-only too, so Mac users will need Fusion or Parallels to use it.

I bought a couple of TTS chips recently that supposedly let you avoid messing with the raw phonetic guff - haven't had a chance to hook em up yet though.


G.
Logged

Is life really that serious...??!

0
Offline Offline
Edison Member
*
Karma: 20
Posts: 1980
Wo ein Wille ist, da ist auch ein Weg !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to use the Phrase-A-Later Software in combination with the Arduino and the Sparkfun Voicebox Shield ?
Logged

Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

Van Alstyne, TX
Offline Offline
Full Member
***
Karma: 1
Posts: 154
Haven't smoked an Arduino... yet.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  Just write a sketch that copies all input to the Arduino's serial RX and use NewSoftSerial:: to writes that input to the SpeakJet's RX pin.
Be mindful of baud rate differences or set the Arduino's hardware serial port to match that of the SpeakJet's.

[Edit] Forgot  to mention that your Arduino sketch will probably have to buffer input from your PC because the SpeakJet won't be talking as fast as the PC sends.  Watch the SpeakJet's Half-Full pin.
« Last Edit: October 25, 2010, 01:24:11 pm by Fe2o3Fish » Logged

Pages: [1]   Go Up
Jump to: