回答編集履歴
1
コードの不要コメント削除
answer
CHANGED
@@ -27,8 +27,6 @@
|
|
27
27
|
|
28
28
|
def run_tts(t):
|
29
29
|
tts = gTTS(text=t, lang='en', slow=True)
|
30
|
-
# tts.save("hello.mp3")
|
31
|
-
# with open(tmp_name, 'wb') as f:
|
32
30
|
f = io.BytesIO()
|
33
31
|
tts.write_to_fp(f)
|
34
32
|
print(' sound size=', f.tell())
|