0

I have trying to convey my text to speech tamil language but it not support any other way is there?

Am using : flutter_tts package

my code:

speak() async {    
final languages = await Tts.getAvailableLanguages();
var isGoodLanguage = await Tts.isLanguageAvailable("ta");
print(isGoodLanguage);
await Tts.setLanguage("tamil");
Tts.speak('வாழ்ந்த காலம்: 2 ஆம் நூறாண்டு முதல் 8 நூற்றாண்டு வரை');  }

But it's not working anyone tried with tamil text to voice please help me. Thanks.

Sisir
  • 4,584
  • 4
  • 26
  • 37
siva.picky
  • 499
  • 5
  • 17
  • 1
    I think it's supported in the engine but not it the TTS. [follow it here](https://stackoverflow.com/questions/48527186/how-to-set-tamil-voice-in-tts-android-programmatically) – Yamin May 12 '19 at 12:42

1 Answers1

0

If "ta" is a supported language code on your device (You should receive the list of supported language codes when you run await Tts.getAvailableLanguages()), you should use that to set the language rather than "tamil".

Change: await Tts.setLanguage("tamil");
To: await Tts.setLanguage("ta");

סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
Daniel Lutton
  • 201
  • 1
  • 2