diff options
Diffstat (limited to 'Voice.cs')
-rw-r--r-- | Voice.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Voice.cs b/Voice.cs new file mode 100644 index 0000000..ea2f6d6 --- /dev/null +++ b/Voice.cs @@ -0,0 +1,21 @@ +using System; + +public class Voice +{ + public Voice(IAudioclient audi) + { + + } + + private Process CreateStream(string path) + { + var ffmpeg = new ProcessStartInfo + { + FileName = "ffmpeg", + Arguments = $"-i {path} -ac 2 -f s16le -ar 48000 pipe:1", + UseShellExecute = false, + RedirectStandardOutput = true, + }; + return Process.Start(ffmpeg); + } +} |