arabic text
#397
-
Arabic text give zero duration mp3 file
any help? |
Beta Was this translation helpful? Give feedback.
Answered by
pndurette
Feb 15, 2023
Replies: 2 comments 1 reply
-
By default it's trying to read that in English—which it can't—so you need to specify the language to use, in your case: from gtts import gTTS
-tts = gTTS('اهلا')
+tts = gTTS('اهلا', lang='ar')
tts.save('hello.mp3') Using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lazezo2
-
اهلا كيف الحال |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default it's trying to read that in English—which it can't—so you need to specify the language to use, in your case:
Using
ar
for Arabic should do the trick!