添加聊天记录解析,查看工具

This commit is contained in:
xaoyo 2023-11-11 18:42:13 +08:00
parent 3d83f0fc37
commit 787a5fa06b
2 changed files with 3 additions and 2 deletions

View File

@ -136,7 +136,7 @@ cd PyWxDump
python -m pip install -U .
```
## 2. 使用方法
## 2. 使用
### 2.1 命令行

View File

@ -51,7 +51,8 @@ def get_user_list(MSG_ALL_db_path, MicroMsg_db_path):
def load_base64_audio_data(MsgSvrID, MediaMSG_all_db_path):
wave_data = read_audio(MsgSvrID, is_wave=True, DB_PATH=MediaMSG_all_db_path)
if not wave_data:
return ""
video_base64 = base64.b64encode(wave_data).decode("utf-8")
video_data = f"data:audio/wav;base64,{video_base64}"
return video_data