Plugin.Maui.Audio icon indicating copy to clipboard operation
Plugin.Maui.Audio copied to clipboard

Possible to handle recording in real-time?

Open nodew opened this issue 1 year ago • 3 comments

Currently, the AudioSource is only available after the recorder StopAsync. It doesn't work for the case if I want to handle the recording data in real-time.

I'm wonder if it's possible to add the similar API as the following to the AudioRecorder to support task like sending the recording to backend in real-time.

await audioRecorder.StartAsync();
audioRecorder.OnDataBytes((bytes, count) => {
    // handler.Handle(bytes, count)
})

nodew avatar Jan 26 '24 06:01 nodew