0
from gtts import gTTS
import os
tts=gTTS(text="Both are great",lang="en")
tts.save("both.mp3")
os.system("mpg12 both.mp3")
このエラーは「名前をインポートできません」です。コード実行時のgTTSエラー
from gtts import gTTS
import os
tts=gTTS(text="Both are great",lang="en")
tts.save("both.mp3")
os.system("mpg12 both.mp3")
このエラーは「名前をインポートできません」です。コード実行時のgTTSエラー
sudo pip install gtts
コマンドを使用してgtts
モジュールを再インストールしてください。以前のインストールが壊れているか、またはいくつかの依存関係が存在しない可能性があります。