Type type = Type.GetTypeFromProgID("SAPI.SpVoice"); dynamic spVoice = Activator.CreateInstance(type);
for (int i = 0; i < spVoice.GetVoices(string.Empty, string.Empty).Count; i++)
{
if (spVoice.GetVoices(string.Empty, string.Empty).Item(i).GetDescription(0) == "ScanSoft Sin-Ji_Full_22kHz")
{
spVoice.Voice = spVoice.GetVoices(string.Empty, string.Empty).Item(i);
}
}
spVoice.Rate = 3;
spVoice.Speak("无资料");
2021-10-25 18:01:26
87.35MB
粤语
语音报
1