I'm following the official docs at
http://developer.android.com/resources/articles/tts.html
and trying to synthesize a String to a file:
private OnClickListener saveBtnListener = new OnClickListener() {
@Override
public void onClick(View v) {
int x = mTts.synthesizeToFile("hello", null, "/asdcard/
wakeUp.wav");
if(x == TextToSpeech.SUCCESS) {
Toast toast = Toast.makeText(context, "Saved
"+x,
Toast.LENGTH_SHORT);
toast.show();
}
}
};
Then I run adb shell on the emulator to check if there is anything
saved to the file system. And there is nothing. I tried to save to non
existent folders, but synthesizeToFile still reports SUCCESS and
nothing new appears in the file system.
Am I missing something or synthesizeToFile is just not working?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en