【发布时间】:2021-06-24 01:56:14
【问题描述】:
当我尝试在用 C# 编写的 tts 控制台应用程序的高级音频设置中将输出设备更改为虚拟电缆时,音频会在我的普通设备上播放。我该如何解决?代码:
using System;
using System.Speech.Synthesis;
namespace hhhh
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Initialized");
while (true)
{
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
synthesizer.Speak(Console.ReadLine());
}
}
}
}
【问题讨论】:
-
我已经知道怎么用了。我不知道为什么将音频设备更改为我的虚拟电缆不起作用