when i run the Ffmpeg.exe utility to convert the live stream to PCM format. Then at the same time I try to read the binary stream I got the error as below.

Below is the code snippet. as I am using N-audio to convert the stream into Wav format.

when i run the Ffmpeg.exe utility to convert the live stream to PCM format. Then at the same time I try to read the binary stream I got the error as below.

Below is the code snippet. as I am using N-audio to convert the stream into Wav format.

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Jun 12, 2023, 1:57 AM EDT
try this once
var s1 = new RawSourceWaveStream(File.Open(inFile, FileMode.Open, FileAccess.Write, FileShare.ReadWrite), new WaveFormat(8000, 1));s s89 reputationPosted Jun 12, 2023, 2:07 AM EDT
This work once the file is written completely.
if it is in process while it is written getting the error.