BasicMicro - Forums

www.basicmicro.com
It is currently Sun May 20, 2012 11:45 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: text-to-speech
PostPosted: Sun Apr 15, 2007 10:00 pm 
hello :

my graduation project is called "voice speech synthesizer" i'll read temprature from LM35 sensor then send it to 16F877 pic then it will convert the voltage into ASCII and send it to the EMIC module to say the temprature
but am lost and i cant focus how to start ,the code the interfacing ...
can anyone guide me how to start..
i tested the pic and send the result through MAX232 and read it from PC..
then wut should i do????!!!! i dont have much time really


Top
  
 
 Post subject: Re: text-to-speech
PostPosted: Sun Apr 15, 2007 10:00 pm 
thanks alot man, but am working on c code for the pic , and am confused about the code
i dont know what is the code u gave to me , but thanks alot...


Top
  
 
 Post subject: Re: text-to-speech
PostPosted: Mon Apr 16, 2007 10:56 am 
Offline
Citizen

Joined: Sat Mar 08, 2003 11:00 am
Posts: 40
Oh, man, and it's April 16 already. You're lucky you have an Atom, with its single-stepping debugger.

Get the docs for the EMIC, and see what you have to send it to make it say anything.

Then write a very simple program that makes the EMIC say "Hello". Get that working. This will debug and verify your hardware, as well as how to talk to the EMIC. I THINK it will support the 'TTL' rs-232 that the Atom puts out.

Worst case, you can do a brute-force version of the program:

Main:
GOSUB GetTemperature ' Into Temperature variable.
GOSUB ConvertTemp ' Temperature into three variables -- One, Two, Three
GOSUB SayHeader' ' Tells the EMIC to say "The temperature is"

ON One GOSUB SendOne, SendTwo, SendThree, SendFour, SendFive, SendSix
ON Two GOSUB SendOne, SendTwo, SendThree, SendFour, SendFive, SendSix
ON Three GOSUB SendOne, SendTwo, SendThree, SendFour, SendFive, SendSix

PAUSE 5000 ' Wait five seconds
GOTO MAIN ' and do it again.

SayHeader:
SEROUT EmicPin, EmicBaud, ["Say The Temperature is", cr]
RETURN

SendOne:
SEROUT EmicPin, EmicBaud, ["ONE", cr]
RETURN

SendTwo:
SEROUT EmicPin, EmicBaud, ["Two", cr]
RETURN


Top
 Profile  
 
 Post subject: Re: text-to-speech
PostPosted: Mon Apr 16, 2007 10:00 pm 
Offline
Citizen

Joined: Sat Mar 08, 2003 11:00 am
Posts: 40
Ah. Well, since you're posting on the BasicMicro forum, and in the "Atom" processor portion of it too, I figured you might, you know, be using a BasicMicro "Atom" processor.

Which would make your job a LOT easier, but you've got what you've got.

Personally, my favorite PIC 'C' language is at www.picant.com/c2c. They've got a PIC simulator with encorporated simulated devices to test with that's the best I've seen.

You can take my suggestion as "pseudocode" if you like.


Top
 Profile  
 
 Post subject: Re: text-to-speech
PostPosted: Mon Apr 16, 2007 10:00 pm 
thnx alot man, i'll search on that forum for a c code for my pic
thank u


Top
  
 
 Post subject: Re: text-to-speech
PostPosted: Wed May 30, 2007 10:00 pm 
i don't know if you are aloud to use the Devantech SP03 speech synthesizer but for the project your using it for it's realy easy to use, I like it a lot.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO