locked
Vxml Browser.StopAsync Method doesn't work for me RRS feed

  • Question

  • Hi

    We use ucma3.0 (and 4.0) to start vxml dialogs - Browser.RunAsync Method. But sometimes we want to stop the vxml browser while its processing/playing soundfiles/TTS to the caller - before the vxml dialog normally ends. So we use the Browser.StopAsync Method, but it doesn't have any effect. From OCSLogger trace we can see that the event is processed, but it doesn't terminate the vxml dialog as excpected.

    Here is two trace lines:

    TL_INFO(TF_COMPONENT) [0]3498.2D98::11/20/2013-18:13:42.429.00000332 (SpeechVxmlComponent,LogFile.Trace:logfile.cs(55))( 0000000002B39826 )c14718b2-33ec-43cc-b686-f299bdbae586: Raise: VoiceXml: Interpreter (instanceID=54) is now being stopped.

    ...

    TL_INFO(TF_COMPONENT) [0]3498.3B44::11/20/2013-18:13:54.244.000003b6 (SpeechVxmlComponent,LogFile.Trace:logfile.cs(55))( 0000000002B39826 )c14718b2-33ec-43cc-b686-f299bdbae586: Raise: VoiceXml: Interpreter (instanceID=54) ApplicationCompleted is called (Exception:<empty>).

    Please help me out on this.

    /Best regards

    Ole Johan Engebretsen

    Wednesday, November 20, 2013 8:04 PM

Answers

  • According to the docs for Microsoft.Speech.VoiceXml.Browser.StopAsync(), this method

    "Terminates the processing of a VoiceXML page, but allows the Browser to finish processing
    the current VoiceXML element."

    Have you registered a handler for the SessionCompleted event on the Browser class? That event is raised when the Browser exits a VoiceXML page.

    Inasmuch as the only way to stop interpreting the VoiceXML page is an async call, I don't believe you can just instantly shut off the interpreting.



    • Edited by Mark R Parker Wednesday, December 4, 2013 2:32 AM
    • Proposed as answer by Allen[S] Thursday, December 5, 2013 3:04 PM
    • Marked as answer by Allen[S] Friday, December 13, 2013 1:27 PM
    Wednesday, December 4, 2013 1:51 AM

All replies

  • Hi,

    Thanks for posting, a member of the community will answer your query shortly. In the mean time please do use the search function to see if your query has been asked and answered previously.

    Thanks

    Allen Smith

    Friday, November 29, 2013 3:31 PM
  • Hi, it may encourage the community to answer if you provide some sample code as well.

    -- How To Ask a Question: http://support.microsoft.com/kb/555375 -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

    Wednesday, December 4, 2013 1:27 AM
  • According to the docs for Microsoft.Speech.VoiceXml.Browser.StopAsync(), this method

    "Terminates the processing of a VoiceXML page, but allows the Browser to finish processing
    the current VoiceXML element."

    Have you registered a handler for the SessionCompleted event on the Browser class? That event is raised when the Browser exits a VoiceXML page.

    Inasmuch as the only way to stop interpreting the VoiceXML page is an async call, I don't believe you can just instantly shut off the interpreting.



    • Edited by Mark R Parker Wednesday, December 4, 2013 2:32 AM
    • Proposed as answer by Allen[S] Thursday, December 5, 2013 3:04 PM
    • Marked as answer by Allen[S] Friday, December 13, 2013 1:27 PM
    Wednesday, December 4, 2013 1:51 AM