Add voice guide
This commit is contained in:
11
docs/guides/samples/audio_create_ffmpeg.cs
Normal file
11
docs/guides/samples/audio_create_ffmpeg.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user