Sound

Modified on Tue, 12 Nov at 3:40 PM

Sound

Play Sound

Plays a specified sound.

Identifier: play_sound

Attributes

  • sound:Contains a string identifying the sound that should be played. Either a predefined sound or an asset can be used to reference media (e.g., MP3, WAV).
    • Required: Yes
    • Default value: Empty
  • loop: Plays a sound in an endless loop. To stop the sound, see StopSoundAction.
    • Required: No
    • Default value: False

Available Sounds

  • CONFIRM
  • ERROR
  • DENY
  • NEXT
  • PREVIOUS
  • DISCONNECT
  • CONNECT
  • SPEECH_SUCCESS
  • SPEECH_FAILURE
  • BEEP
  • CLUCK

Examples

<play_sound id="connect_to_server" sound="CONNECT"/> 
<play_sound id="play_song" sound="xai:/sound/album/sesame_street/mana_mana.mp3?version=1"/>

Stop Sound

Stops the currently playing sound.

Identifier: stop_sound

Example

<stop_sound id="stop_sound"/>

Text to Speech

Creates speech output based on a text.

Identifier: text_to_speech

Elements

  • input: Contains the text input that is converted into speech output.
  • input_to_resolve: Contains the text input that is first evaluated by the WF engine before it is converted into speech output.

Examples

To convert the location of the current pick into speech output:

<text_to_speech id="say_location">
    <param name="input_to_resolve"><![CDATA[?{"Aisle "+ pickOrder.groups[activeGroup].picks[0].source.label.substring(2,3) +" Location " + pickOrder.groups[activeGroup].picks[0].source.label.substring(4,7)}?]]>
    </param>
</text_to_speech>

To add "Location 5" to the speech output:

<text_to_speech id="say_location">
    <param name="input">Location 5</param>
</text_to_speech>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article