增加语音展示
This commit is contained in:
1 parent
fcf799362a
commit
40ddb8df30
2 files changed
+13
-3
No files matched your search
@@ -139,7 +139,7 @@ def get_msg_list(MSG_db_path, selected_talker="", start_index=0, page_size=500):
|
||||
if voicelength.isdigit():
|
||||
voicelength = int(voicelength) / 1000
|
||||
voicelength = f"{voicelength:.2f}"
|
||||
content["msg"] = f"语音时长:{voicelength}秒\n翻译结果:{transtext}"
|
||||
content["msg"] = f"语音时长:{voicelength}秒\n翻译结果:{transtext}" if transtext else f"语音时长:{voicelength}秒"
|
||||
content["src"] = os.path.join("audio", f"{StrTalker}", f"{CreateTime}_{MsgSvrID}.wav")
|
||||
elif type_id == (43, 0): # 视频
|
||||
BytesExtra = read_BytesExtra(BytesExtra)
|
||||
|
||||
Reference in new issue
Block a user