NateRickard / Plugin.AudioRecorder

Audio Recorder plugin for Xamarin and Windows
MIT License
164 stars 68 forks source link

Concurrent Streaming #54

Open ElishaMisoi opened 4 years ago

ElishaMisoi commented 4 years ago

I am trying to get the stream while recording is going on. I noticed that as much as the Audio Stream is growing, there's no event to notify when changes take place in the stream unless you keep manually checking the stream.

Also, I am having trouble writing to the WAV header while checking the stream.

Could you please share a sample or guide me in the right direction. I checked out the Xamarin.Cognitive.Speech sample but it does not fit my problem since the Library takes in the stream as well as the recordingTask for concurrent streaming to work.

The idea is to get the stream and send it to Azure while recording is still ongoing without using Xamarin.Cognitive.Speech since it does not return the audio response.

At the same time, I can't work with the Cognitive Service SDK out of the box since two processes cannot access the microphone at the same time and I also want to save both the recorded audio and the audio response from Azure.

Your help will be highly appreciated.