Legacy Dev Forum Posts

 View Only

Sign Up

How to Use the expression AudioPlaybackOptions in a flow

  • 1.  How to Use the expression AudioPlaybackOptions in a flow

    Posted 06-05-2025 19:09

    AlonsoM | 2018-02-20 15:49:31 UTC | #1

    I am trying to create a menu using a collect input + switch (combo) with 9 cases, each case has the number 1-9 assigned. I have checked enable barge-in. I write each case as a string (not boolean) and expect my variable to be task.menuinput defined with each case in succession as "1" for case 1, "2" for case 2, so on and so forth.

    The behavior is that when I reach the collect input and our TTS starts to speak each menu choice, barge-in does not work even when checked. I suspect this is expected behavior. WHen I make a selection in the middle of the TTS, it will continue speaking the text to speech and at the end it accepts my menu choice.

    Then I discovered AudioPlaybackOptions however, it states that to use it, it must be in an expression at the end of your sequence. I tried playing around with it and I still get an error when I put an expression in the audio sequence of the collect input to have a barge-in option.

    I had it something like this (in the collect input audio section):

    (TTS) For the main menu press zero. (TTS)For Stocks press 1 (TTS)For Total balance press 2 (TTS)To Make a transaction Press 3 Expression _AudioPlaybackOptions(ToAudioNumber(1), true) or _ _AudioPlaybackOptions(ToAudioNumber(2), true) or _ AudioPlaybackOptions(ToAudioNumber(3), true ) ...

    However this doesn't work either

    Is there a way to create a menu with barge-in using a collect input and switch ? It doesn't seem to be working for me and I'm out of ideas to try to get this to work.

    Thanks.


    system | 2018-03-18 14:05:52 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 2506