PDA

View Full Version : espeak on DS - Speech synthesizer (Text2speech)



wraggster
September 3rd, 2009, 23:27
News/release from Noobey (http://forum.palib.info/index.php?topic=7818)

During the last days I played around with espeak and made a demo for it on the NDS.
espeak itself works without modifications on the DS - but it only can generate .wav files.

I did some changes and here it goes:

---
See ./arm9/espeak/espeak_global.h for samplerate, sound format (8/16 bit) and the data-path setting


Quote
Here some more details about the changes I did to espeak
I only modified the high-level stuff to have some easy functions and raw output.

speak.cpp:
this is a very small demo showing that espeak works on the NDS
I just did some small changes
- get rid of warnings
- add an option to decide between 8bit or 16bit
- add an option to decide between 22050 or 11025 Hz (or even lower, but then it sound REALY shitty)
- removed the usual main() function with the getopt stuff and instead did a ES_InitCFG function
- stdout is used during the writing process to get the stuff into the buffer (added a io handler)!
( Thats the reason why fprinting to stderr :/)

Download and Give Feedback Via Comments

wiccynubbie
January 3rd, 2011, 00:28
Im really impressed with the demo and would never have thought that it would also work on the DS - thankyou for porting this, have you uploaded your fork of the code anywhere else? those links on your post are down.