KristofferStrube/Blazor.WebAudio

Getting the raw data

Closed this issue · 4 comments

Hi,

Actually, this is a question.

Is it possible to access raw audio data from the microphone using your library, so that I can generate a waveform similar to the one in the attached image? If so, could you please guide me through the process?

Thanks

bumblebee

Hey @shahabfar, thanks for your interest in the library.

I've added a sample that is somewhat close to what you have shown here in the MediaStream demo

image

This kind of chart is called an audio amplitude chart. Your picture also represents that the different channels have different volumes at different times whereas mine simply handles mono-sound. It should be relatively easy to achieve this as well by using the AudioSplitterNode before parsing data to two individual analysers.

You can find the code for my Amplitude plot here: AmplitudePlot.razor.cs and here AmplitudePlot.razor

Thank you so much.

Hello
I need something completely like this, but in Blazor:
https://wavesurfer.xyz/examples/?record.js

Sounds like a great project. :D