Hi Charles,
My app reads all different kinds of English text (all failed). So I
don't think it is a particular sentence breaks the code.
I had a chance to look at the generated wave file by the eSpeak
engine. The rate is 16000hz, but the working version was 22050hz
before.
And here is the logcat. TTS lib prints the string it processes. That's
why I wanted to send you my app apk file, so you can see every thing
and reproduce the bug while debugging your code.
10-15 18:13:34.061: VERBOSE/TtsService(2316): TtsService.onCreate()
10-15 18:13:34.341: DEBUG/dalvikvm(2316): Trying to load lib /data/
data/com.google.tts/lib/libttssynthproxybeta.so 0x437439d8
10-15 18:13:34.991: DEBUG/dalvikvm(2316): Added shared lib /data/data/
com.google.tts/lib/libttssynthproxybeta.so 0x437439d8
10-15 18:13:34.991: ERROR/TTS is loading(2316): /data/data/
com.google.tts/lib/libttsespeak.so
10-15 18:13:35.001: VERBOSE/SynthProxy(2316): AudioTrack started
10-15 18:13:35.041: ERROR/eSpeak Engine(2316): getTtsEngine called
10-15 18:13:35.381: VERBOSE/TtsService(2316): TtsService.setLanguage
(eng, USA, )
10-15 18:13:35.381: ERROR/eSpeak Engine(2316): lang input param: eng
country input param: USA
10-15 18:13:35.381: ERROR/eSpeak Engine(2316): Language: en-rUS
10-15 18:13:35.401: INFO/SynthProxy(2316): setting speech rate to 100
10-15 18:13:35.401: ERROR/eSpeak Engine(2316): setProperty called for
rate and value 100
10-15 18:13:35.661: ERROR/TtsService(2316): onCreate completed.
10-15 18:13:35.721: INFO/SynthProxy(2316): setting speech rate to 140
10-15 18:13:35.721: ERROR/eSpeak Engine(2316): setProperty called for
rate and value 140
10-15 18:13:36.091: ERROR/TtsService(2316): Error: en-us not
supported.
10-15 18:13:36.101: VERBOSE/TtsService(2316): TTS service received
Loading.
10-15 18:13:36.101: INFO/TtsService(2316): Stopping
10-15 18:13:36.101: INFO/TtsService(2316): Stopped
10-15 18:13:36.101: VERBOSE/TtsService(2316): TTS processing: Loading.
10-15 18:13:36.261: ERROR/MediaPlayer(2309): stop called in state 1
10-15 18:13:36.451: WARN/AudioFlinger(51): write blocked for 91 msecs
10-15 18:13:36.521: DEBUG/dalvikvm(2309): GC freed 5141 objects /
365608 bytes in 158ms
10-15 18:13:36.641: INFO/eSpeak Engine(2316): eSpeak callback
received! Sample count: 13003
10-15 18:13:36.661: VERBOSE/SynthProxy(2316): AudioTrack started
10-15 18:13:37.191: VERBOSE/SynthProxy(2316): Speech synthesis done.
10-15 18:13:37.191: INFO/eSpeak Engine(2316): eSpeak callback
processed!
10-15 18:13:37.191: INFO/SynthProxy(2316): setting speech rate to 140
10-15 18:13:37.191: ERROR/eSpeak Engine(2316): setProperty called for
rate and value 140
10-15 18:13:37.391: DEBUG/dalvikvm(2309): GC freed 723 objects / 54352
bytes in 127ms
10-15 18:13:42.381: DEBUG/dalvikvm(222): GC freed 574 objects / 29520
bytes in 150ms
10-15 18:13:42.821: INFO/global(2309): Default buffer size used in
BufferedReader constructor. It would be better to be explicit if an 8k-
char buffer is required.
10-15 18:13:42.961: ERROR/TtsService(2316): Error: en-us not
supported.
10-15 18:13:42.961: VERBOSE/TtsService(2316): TTS processing: NASDAQ.
Price: 2173.29, up 0.05 percent.
10-15 18:13:42.971: INFO/TtsService(2316): Synthesizing to /sdcard/
com.blabs.anyvoice/0-1255655622955.wav
10-15 18:13:42.991: INFO/TtsService(2316): Stopped all
10-15 18:13:43.121: INFO/eSpeak Engine(2316): eSpeak callback
received! Sample count: 21781
10-15 18:13:43.271: VERBOSE/SynthProxy(2316): Speech synthesis done.
10-15 18:13:43.271: INFO/eSpeak Engine(2316): eSpeak callback
processed!
10-15 18:13:43.421: INFO/eSpeak Engine(2316): eSpeak callback
received! Sample count: 19145
10-15 18:13:43.591: VERBOSE/SynthProxy(2316): Speech synthesis done.
10-15 18:13:43.591: INFO/eSpeak Engine(2316): eSpeak callback
processed!
10-15 18:13:43.831: ERROR/PlayerDriver(51): Command
PLAYER_SET_DATA_SOURCE completed with an error or info
PVMFErrNotSupported
10-15 18:13:43.831: ERROR/MediaPlayer(2309): error (1, -4)
10-15 18:13:43.831: WARN/PlayerDriver(51):
PVMFInfoErrorHandlingComplete
10-15 18:13:43.841: WARN/System.err(2309): java.io.IOException:
Prepare failed.: status=0x1
10-15 18:13:43.851: WARN/System.err(2309): at
android.media.MediaPlayer.prepare(Native Method)
10-15 18:13:44.341: ERROR/TtsService(2316): Error: en-us not
supported.
10-15 18:13:44.351: VERBOSE/TtsService(2316): TTS service received
Repeat, next or previous.
10-15 18:13:44.351: INFO/TtsService(2316): Stopping
10-15 18:13:44.351: INFO/TtsService(2316): Stopped
> > > - Show quoted text -- Hide quoted text -