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 :/)