In my Android app, I use tts.speak
to play text with a pitch setting of 1.0 and speed of 1.0, and it works correctly. However, when I export the audio to a file using tts.synthesizeToFile
with the same pitch and speed settings, the audio file is created successfully.
The exported audio plays correctly on some devices but sounds high-pitched and very fast on others.
Here are some additional details:
- I am working with small text, not large.
- I have tried with both internet connection on and off.
- Some languages work, while others do not.
- Voices that do not require an internet connection also do not work
as expected. - Not using any deprecated functions.
Does anyone have suggestions on how to resolve this issue?