Microsoft 语音识别 PhraseLIst 未定义,这是什么问题?

Microsoft speech recognition PhraseLIst undefined,what is the issue?

目前正在使用 Microsoft speech Rec 开发一个应用程序并且它运行良好,除了在尝试使用 PhraseListGrammar 对象时它一直重新运行未定义,这是什么问题?

recognizer = new SpeechSDK.SpeechRecognizer(speechConfig, audioConfig);
recognizer.BabbleTimeout = 0.75;
var phraseListGrammar = 
**SpeechSDK.PhraseListGrammar.fromRecognizer(recognizer);**

最后一行出现以下错误:

Cannot read property 'fromRecognizer' of undefined

为什么我不能创建 PhraseListGrammar 对象,这样我就可以给它一个可识​​别的单词列表。这可以显着提高我的应用程序的有效性并降低错误率,所以请有人帮忙。谢谢。

需要更新我的 sdk 版本。