1

我一直在做一些工作,通过 SAPI 5.4 的SpLexicon 接口(我认为这是唯一的方法)通过AddPronunciation函数将单词和发音添加到 Windows 语音词典,或者在我的情况下:

// Initialize SpLexicon instance
SpLexicon lex = new SpLexicon();

// Specify the word to add to the speech dictionary
string myWord = "father";

// Set the language ID (US English)
int langid = new System.Globalization.CultureInfo("en-US").LCID;

// Specify the word's part of speech
SpeechPartOfSpeech mySpeechPart = SpeechPartOfSpeech.SPSNoun;

// Specify the word's pronunciation in SAPI phone symbols
string myPronunciation = "f aa dh er";

// Call actual speech API method for adding word data to the speech dictionary
lex.AddPronunciation(myWord, langid, mySpeechPart, myPronunciation);

我正在参考美国英语音素表来确定要使用的 SAPI 符号。我注意到虽然使用强调标记“1”或“2”以及音节标记“-”似乎不会影响 TTS 发音。这些修饰符符号是否仅用于 XML 输入,还是我可能做错了什么?

4

0 回答 0