为什么我的程序没有检测到所有TTS声音? [英] Why isn't my program detecting all TTS voices?
问题描述
当此代码在我的程序中运行时:
When this code runs in my program:
public static SpeechLib.SpVoice SP = new SpVoice();
public static SpeechLib.SpVoice SP = new SpVoice();
foreach(SP.GetVoices()中的SpeechLib.ISpeechObjectToken v)
          {
              comboBoxVoice.Items.Add(v.GetDescription(49));
          }
foreach (SpeechLib.ISpeechObjectToken v in SP.GetVoices())
{
comboBoxVoice.Items.Add(v.GetDescription(49));
}
只检测到Zira,Hazel和David,而我在Edge TTS中有很多其他人以及非英语。
Only Zira, Hazel, and David are detected, while I have many others and also in other than English in Edge TTS.
为什么
推荐答案
嗨
Hi
感谢您在此处发帖。
根据您的描述,您希望检测代码中的所有tts服务。 />
搜索后,我发现它与您的注册表有关。相关密钥是HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft &\\Speech \Voices \ Tokens。在下面,你会找到已安装的声音。
Based on your description, you want to detect all tts services in your code.
After searching it, I found it is related to your registry. The relevant key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens. Underneath, you'll find the installed voices.
测试结果:
注册表:
最好的问候,
杰克
这篇关于为什么我的程序没有检测到所有TTS声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!