当前位置: 首页 > 工具软件 > gTTS > 使用案例 >

python之gTTs模块使用

傅峻
2023-12-01

安装:pip install gTTS
使用demo:
Write ‘hello’ in English to hello.mp3:

from gtts import gTTS
tts = gTTS('hello', lang='en')
tts.save('hello.mp3')

Write ‘hello’ in Australian English to hello.mp3:

from gtts import gTTS
tts 
 类似资料: