|
@@ -271,9 +271,10 @@ class ConsumptionRecommend(object):
|
|
|
else:
|
|
|
voice = "zhifeng_emo"
|
|
|
# 需要判断文本长度
|
|
|
- if len(pw_srt_text) > 200:
|
|
|
+ if len(pw_srt_text) > 300:
|
|
|
pw_url = TTS.get_lone_pw_zm(pw_srt_text, voice,file_path)
|
|
|
- pw_url = TTS.get_pw_zm(pw_srt_text, voice)
|
|
|
+ else:
|
|
|
+ pw_url = TTS.get_pw_zm(pw_srt_text, voice)
|
|
|
if not pw_url:
|
|
|
logger.error(f"[处理] 数据片尾获取失败")
|
|
|
data["transform_rule"] = "仅改造"
|