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

web端做音频实时转写功能,有概率的发生叠音问题。 #197

Open
hc0 opened this issue Sep 20, 2023 · 1 comment
Open

web端做音频实时转写功能,有概率的发生叠音问题。 #197

hc0 opened this issue Sep 20, 2023 · 1 comment

Comments

@hc0
Copy link

hc0 commented Sep 20, 2023

根据这里的代码
[实时转码并上传-pcm固定帧大小]
将实时录制的音频转成pcm数据流上传到服务器;有概率的声音出现颤音、叠音、发抖,时间越长越明显,比如录制3小时的时候稍微出现叠音,越往后越严重,录制到16小时的时候基本没法听了,就像一个结巴的人说话一样,不成句子都是叠音。这样的情况都是概率性的,大概录10次有3到5次是这样的情况。请问有破解之法嘛?

@xiangyuecn
Copy link
Owner

检查一下是不是没有释放内存,那个代码里面有个buffers[i]=null专门是释放内存用的,还有Recorder初始化的时候用type:"unknown",不要指定类型,不然内存没法释放。

你说的这个现象有点像是设备卡顿了的样子,可能是浏览器给到的录音数据就是乱的,不排除是设备有问题,可以尝试换个设备测试。

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

2 participants