summaryrefslogtreecommitdiff
path: root/Voice.cs
blob: ea2f6d602e863b4a7156418057c8e69187e88852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
    }
}