Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能支持视频&语音么 #76

Closed
qzqsmile opened this issue Dec 6, 2023 · 8 comments
Closed

不能支持视频&语音么 #76

qzqsmile opened this issue Dec 6, 2023 · 8 comments

Comments

@qzqsmile
Copy link

qzqsmile commented Dec 6, 2023

rt

@STDquantum
Copy link
Contributor

STDquantum commented Dec 6, 2023

希望速速~( ̄▽ ̄)~*

视频我不知道

语音的话MediaMSG0.db那种里面的Buf就是.silk类型的文件,可以保存到文件然后

import pilk
def decodeSilk(path):
    pilk.decode(path, "test.pcm", 44100)
    os.system(f"ffmpeg.exe -y -f s16le -i test.pcm -ar 44100 -ac 1 test.mp3")

可以跑完了把中间的临时文件删除掉就行了

当然ffmpeg有一百多兆……打包可能是个问题

@fcwys
Copy link

fcwys commented Dec 6, 2023

ffmpeg可以不用打包到程序吧

@STDquantum
Copy link
Contributor

ffmpeg可以不用打包到程序吧

这个我不太清楚,我只会写代码(

@fcwys
Copy link

fcwys commented Dec 6, 2023

ffmpeg有二进制程序,很方便的,可以不用内嵌到程序
http://www.ffmpeg.org/download.html

@imamiao
Copy link

imamiao commented Dec 6, 2023

一个是可以ffmpeg二进制直接下载;另一个是自定义编译,只保留需要的编解码器,编译出来可能只有几兆。

@xiaoguyu
Copy link

MSG表 Type=34 为语音类型数据
对应关系为 MSG表的MsgSvrID = Media表的Reserved0

@STDquantum
Copy link
Contributor

MSG表 Type=34 为语音类型数据 对应关系为 MSG表的MsgSvrID = Media表的Reserved0

谢谢,其实在代码里已经实现完成了

@LC044
Copy link
Owner

LC044 commented Dec 13, 2023

已支持

@LC044 LC044 closed this as completed Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants