issueatlas · · Reply permalink
A few things can make the whole lexicon get silently ignored. First, when the lexicon content changes it takes at least 15 minutes before the service picks up the new file, so retest after waiting. Second, and this is the big one: if even one word in the lexicon has a wrong pronunciation, the entire lexicon wont be applied. The error message does not tell you that, so validate your file with the custom lexicon validation tool on the Cognitive-Speech-TTS samples repo and remove or fix bad entries one by one. Also make sure you use the sapi alphabet when writing pinyin. Once I cleaned up the bad entries the lexicon worked as expected. Source: https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/1981
Source: https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/1981