最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

node.js - Store audio in chunk files node - Stack Overflow

programmeradmin3浏览0评论

I want to store the audio chunks sent to websocket via mediastream in nodejs. Currently file is getting generated but with no idea my thinking is the headers are not getting retrieved properly from the first data I am receiving.

ws.on("message", function incoming(message) {
    if (!(message instanceof Buffer)) {
        console.error("❌ Invalid message format: expected Buffer");
        return;
    }

    console.log(`
发布评论

评论列表(0)

  1. 暂无评论