浏览代码

调整tts 音频

zhangyong 8 月之前
父节点
当前提交
4f5e15e1fc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      common/tts_help.py
  2. 1 1
      job_dd_sph.py

+ 1 - 1
common/tts_help.py

@@ -22,7 +22,7 @@ class TTS:
             payload = {
                 "machineCode": "fd5287b1-ccde-46db-8068-e50a58231a1a",
                 "appType": "8",
-                "produceVoiceConfigJson": '{"voice":"stanley","channel":"aliyun","speechRate":0,"pitchRate":0,"volume":100}',
+                "produceVoiceConfigJson": '{"voice":"zhiyuan","channel":"aliyun","speechRate":0,"pitchRate":0,"volume":100}',
                 "text": text,
                 "versionName": "2.5.2",
                 "buildCode": "38",

+ 1 - 1
job_dd_sph.py

@@ -11,7 +11,7 @@ def video_task_start():
             print("开始执行任务")
             mark = VideoProcessor.main(data)
             print(f"返回用户名: {mark}")
-            time.sleep(360 if mark else 360)  # 根据 mark 是否为空设置延迟
+            time.sleep(360 if mark else 1200)  # 根据 mark 是否为空设置延迟
         except Exception as e:
             print("处理任务时出现异常:", e)
             time.sleep(10)