简体   繁体   中英

Concatenate two audio blobs JavaScript

I am using recorder.js to record two audio files on my web page, which then creates recordings as blobs.

Once I have these audio blobs I would like to concatenate them into one track.

How can I do it?

if you save the raw PCM of the orig clips from the callbacks on the buffer of the mic, i think you can just provide array of bufferd Clips to a new blob constructor.

 let recordedBlob = new Blob($ArrBuff[clip1,clip2], { type: "audio/*" });
    recording.src = URL.createObjectURL(recordedBlob);

if you have them in audio files such as wav or mp3 etc., you can use Audacity to edit them and export however you want. or use ffmpeg to concat them together. I would use Audacity because it makes it easier to edit the material.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM