Already tried a bunch of options. I get WaveIn bytes with voice over the network and are transferred to this function:
public static void Broadcast(byte[] data) { waveProvider.AddSamples(data, 0, data.Length); //TODO (save to) Environment.CurrentDirectory + @"\out.mp3" } They come about a few dozen times per second. The question is: is it possible to somehow convert these bytes into an MP3 frame (Mp3Frame) [in priority] or at least somehow save this piece of sound to disk? Went through different options, all are not suitable. Now the sound is in the form:
internal static WaveOut waveOut = new WaveOut(); internal static BufferedWaveProvider waveProvider = new BufferedWaveProvider(new WaveFormat(8000, 2)); It sounds in my speakers, because I use
waveOut.Init(waveProvider); waveOut.Play(); I will consider any options. Thank.