修复语音相对路径问题

This commit is contained in:
STDquantum 2023-12-19 14:26:15 +08:00 committed by GitHub
parent 5f519dc95d
commit 9bea95f688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,6 +298,7 @@ class ChildThread(QThread):
modify_audio_metadata(audio_path, displayname)
os.utime(audio_path, (timestamp, timestamp))
audio_path = audio_path.replace('\\', '/')
audio_path = "./voice/" + os.path.basename(audio_path)
voice_to_text = escape_js_and_html(media_msg_db.get_audio_text(str_content))
except:
return