Bladeren bron

更新 'OpenshotService/openshot_video_generator.py'

oak 2 jaren geleden
bovenliggende
commit
787777c1aa
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      OpenshotService/openshot_video_generator.py

+ 2 - 0
OpenshotService/openshot_video_generator.py

@@ -1086,6 +1086,8 @@ import pyttsx3
     #engine.runAndWait()
     #engine.runAndWait()
     
     
 import json
 import json
+# 資料
+# 關於voice 請參考這張表https://github.com/playht/text-to-speech-api/blob/master/Voices.md
 def make_speech(text,output="/app/speech.mp3",voice="zh-CN-XiaoyouNeural"):
 def make_speech(text,output="/app/speech.mp3",voice="zh-CN-XiaoyouNeural"):
     my_data = {
     my_data = {
     "voice": voice,
     "voice": voice,