naomiaro / waveform-playlist

Multitrack Web Audio editor and player with canvas waveform preview. Set cues, fades and shift multiple tracks in time. Record audio tracks or provide audio annotations. Export your mix to AudioBuffer or WAV! Add effects from Tone.js. Project inspired by Audacity.
https://naomiaro.github.io/waveform-playlist/
MIT License
1.47k stars 288 forks source link

WAV recording quality question #185

Open MartinBarker opened 2 years ago

MartinBarker commented 2 years ago

Hello, I was wondering if it would be possible to get high quality wav file recordings using waveform-playlist? I've tried adding waveform-playlist to a desktop electron application here: https://github.com/MartinBarker/waveform-playlist-electron.git

And have tried recording from my turntable playing a vinyl record, which I download the wav snippet, but it comes out as a 16bit, 1411kbps, 44100 Hz 2 Channel wav file, which sounds very muddled and low quality.

I was wondering if it was possible to get higher quality wav audio recordings that could rival audacity output? Such as a 32 bit 2822kpbs, 44100 hz 2 channel audio file?

If you're interested I've attached a zip file with my waveform-playlist and audacity recordings from the same microphone input

waveformplaylist vs audacity recording quality.zip

naomiaro commented 2 years ago

I think this should be possible, I'll have to look into upgrading the recording code that has been in the project for quite a while now to make sure it works properly.

MartinBarker commented 2 years ago

Thanks, I've been looking into it too and managed to use opus-recorder to record a high quality wav file in my browser: https://github.com/MartinBarker/opus-recorder

[edit] made a smaller version of the repo with only the bare essential code needed to record HQ wav in a web browser, tested in chrome https://github.com/MartinBarker/opus-recorder-min

The saved wav file is 32 bit, 2822 kbps, 44100 Hz, 2 Channels. My repo just records and outputs the audio file, no waveform visualization, but its sort of a proof of concept to try and achieve a high level of audio quality from a web interface.

I can run waveform-playlist, and record high quality wav with opus-recorder, now I'm trying to figure out how to connect the opus-recorder audio recording with waveform-playlist

fan-droide commented 1 year ago

Related: https://github.com/naomiaro/waveform-playlist/pull/250