RoboZhando/Synthesizer.cs
/// <summary>Uses FFMPEG to restream the audio</summary>
Uses FFMPEG to restream the audio
Uses FFMPEG to restream the audio
private static Stream ConvertAudioToPcm(string filePath)
        {
            var ffmpeg = Process.Start(new ProcessStartInfo
            {
                FileName = "ffmpeg",
                Arguments = $@"-i ""{filePath}"" -ac 2 -f s16le -ar 48000 pipe:1",
                RedirectStandardOutput = true,
                UseShellExecute = false
            });
            return ffmpeg.StandardOutput.BaseStream;
        }
private static Stream ConvertAudioToPcm ( string filePath ) { var ffmpeg = Process . Start ( new ProcessStartInfo { FileName = " " , Arguments = $@" -i  "" { filePath } ""  -ac 2 -f s16le -ar 48000 pipe:1 " , RedirectStandardOutput = true , UseShellExecute = false } ) ; return ffmpeg . StandardOutput . BaseStream ; }
Uses FFMPEG to restream the audio
Uses FFMPEG to restream the audio
filePath
string