audio - RecordRTC.js : Duplicate Frame and Frame Drop when timeSlice is 100 and send data to WebSocket
问题描述
RecordRTC v5.6.1 we are using the below configuration and send realtime audio data on web socket but we are facing duplicate frames and some frames are dropped in the final output
var options = {
mimeType: 'audio/wav',
type: 'audio',
checkForInactiveTracks: true,
numberOfAudioChannels: 1,
timeSlice: 100,
noWorker: true,
recorderType: StereoAudioRecorder,
ondataavailable: function (e) {
socketSend(e);
}
};
recorder = new RecordRTC(stream, options);
If we set desiredSampRate to 16000, the issue reproduces rate is increased.
Please find attached sample audio output for Frame Drop and Duplicate Frame Frame_Drop_Duplicate.zip
Can you please suggest how we can capture 16k mono data and send to WebSocket without a frame drop and duplicate frame
解决方案
推荐阅读
- sql - PIVOT 运算符的列列表中不允许有前缀列
- javascript - Selenium - Driver.quit() 在关闭 webdriver 后产生“UnhandledPromiseRejectionWarning: NoSuchSessionError”
- sql - sql,使用关系数据库和子字符串函数更新
- python - 使用 selenium Python 迭代不同的元素
- android - 我无法在 Home Fragment 中获取SupportFragment?
- swift - 为 iOS 上的聊天应用程序检索和维护大型 CNContactStore 联系人列表
- postgresql - 如何在 PSQL 中查询 3 个表?
- angular - Angular 10,如何访问
价值? - c# - 如何转换字典
进入xml文件? - powershell - powershell:没有包装和填充的`Out-File`