You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using this plugin, we want to stream the audio data as the user speaks to a server and write to a file. Once we use the following code as the documents indicate is the way to retrieve a concurrent stream.
using (var stream = recorder.GetAudioFileStream())
{
// this will begin sending the recording audio data as it continues to record
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, buffer.Length);
//var wav = new WavePcmFormat(buffer, numChannels: 1, sampleRate: 8000, bitsPerSample: 128);
//var rawDataWithHeader = wav.ToBytesArray();
ws.Send(System.Convert.ToBase64String(buffer, 0, buffer.Length));
}
This only sends through one line and stops, it does not send everything while recording. Can you please provide some insight on how to get the whole stream while the recording is happening in real time? Thanks a mil
The text was updated successfully, but these errors were encountered:
We are using this plugin, we want to stream the audio data as the user speaks to a server and write to a file. Once we use the following code as the documents indicate is the way to retrieve a concurrent stream.
using (var stream = recorder.GetAudioFileStream())
{
This only sends through one line and stops, it does not send everything while recording. Can you please provide some insight on how to get the whole stream while the recording is happening in real time? Thanks a mil
The text was updated successfully, but these errors were encountered: