arabic text
#397
|
Arabic text give zero duration mp3 file any help? |
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 |
1 reply
Answer selected by
lazezo2
|
اهلا كيف الحال |
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
arfor Arabic should do the trick!