Closed ahmadi-akbar closed 4 years ago
Hi @ahmadi-akbar, so gTTS doesn't always have the languages listed above, as it is not the same service, unfortunately—it's a paid service. Running gtts-cli --all
will show you what's available. As of now, it is:
af: Afrikaans
ar: Arabic
bn: Bengali
bs: Bosnian
ca: Catalan
cs: Czech
cy: Welsh
da: Danish
de: German
el: Greek
en-au: English (Australia)
en-ca: English (Canada)
en-gb: English (UK)
en-gh: English (Ghana)
en-ie: English (Ireland)
en-in: English (India)
en-ng: English (Nigeria)
en-nz: English (New Zealand)
en-ph: English (Philippines)
en-tz: English (Tanzania)
en-uk: English (UK)
en-us: English (US)
en-za: English (South Africa)
en: English
eo: Esperanto
es-es: Spanish (Spain)
es-us: Spanish (United States)
es: Spanish
et: Estonian
fi: Finnish
fr-ca: French (Canada)
fr-fr: French (France)
fr: French
gu: Gujarati
hi: Hindi
hr: Croatian
hu: Hungarian
hy: Armenian
id: Indonesian
is: Icelandic
it: Italian
ja: Japanese
jw: Javanese
km: Khmer
kn: Kannada
ko: Korean
la: Latin
lv: Latvian
mk: Macedonian
ml: Malayalam
mr: Marathi
my: Myanmar (Burmese)
ne: Nepali
nl: Dutch
no: Norwegian
pl: Polish
pt-br: Portuguese (Brazil)
pt-pt: Portuguese (Portugal)
pt: Portuguese
ro: Romanian
ru: Russian
si: Sinhala
sk: Slovak
sq: Albanian
sr: Serbian
su: Sundanese
sv: Swedish
sw: Swahili
ta: Tamil
te: Telugu
th: Thai
tl: Filipino
tr: Turkish
uk: Ukrainian
ur: Urdu
vi: Vietnamese
zh-cn: Chinese (Mandarin/China)
zh-tw: Chinese (Mandarin/Taiwan)
You can try --nocheck
in gtts-cli
to skip language checking, but usually that only works for localized languages (e.g. pt-br
).
I just tried with fa
and it's not working, sadly:
$ gtts-cli 'test' -l fa --nocheck
Error: 404 (Not Found) from TTS API. Probable cause: Unsupported language 'fa'
'Web Speech Api' demo https://www.google.com/intl/en/chrome/demos/speech.html
i checked that and found does not support Persian lang 😢😢 @pndurette, thanks for your response 👍
hi but google accept the fa language and it works ok on android platform how can it be possible?
hello there google officially support for Persian(Farsi) language https://cloud.google.com/speech-to-text/docs/languages but cannot use it
error => Language not supported: fa-IR
thanks