在 UCMA voicexml 浏览器中,提供不支持的 Runasync() 方法

In UCMA voicexml browser giving Runasync() method not supporting

我目前正在使用 UCMA 4.0 并实施一个基于 IVR 的示例。 当我 运行 样本时,它给出 "Specified method is not supported."

我写了下面的代码来播放 IVR on call。

public void playIVR()
    {
        Microsoft.Rtc.Collaboration.AudioVideo.VoiceXml.Browser voiceXmlBrowser = null;
        voiceXmlBrowser = new Microsoft.Rtc.Collaboration.AudioVideo.VoiceXml.Browser();
        vxmlDirectory = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location), "Voicexml");
        string vxmlURL = Path.Combine(vxmlDirectory, menuName.Trim().Replace(" ", "_") + ".vxml");
        Uri pageURI = new Uri(vxmlURL);
        voiceXmlBrowser.RunAsync(pageURI, null);
    }

voiceXmlBrowser.RunAsync(pageURI, null);行命中时,就会抛出上面提到的异常。

以下是堆栈跟踪
"Specified method is not supported."
at Microsoft.Rtc.Collaboration.AudioVideo.SpeechSynthesisConnector.Seek(Int64 偏移量,SeekOrigin 原点)
at Microsoft.Speech.Synthesis.WaveOutputStream.Seek(Int64偏移量,SeekOrigin原点)
at Microsoft.Speech.Internal.SapiInterop.SpStreamWrapper.Seek(Int64 偏移量,Int32 seekOrigin,IntPtr plibNewPosition)

您的 voiceXmLBrowser 似乎没有连接到通话。尝试在 RunAsync.

之前调用 voiceXmlBrowser.SetAudioVideo(myAudioVideoCall)