Skip to main content
The Play Audio node plays an audio file from a URL to the caller.

Behavior

  • Streams audio from the configured URL
  • Optionally loops the audio a specified number of times
  • Emits AUDIO.COMPLETE when playback finishes or AUDIO.ERROR on failure

Configuration

ParameterTypeDefaultRangeDescription
audioSourceenum"url"urlAudio source type
audioUrlstring""URL of the audio file to play
loopbooleanfalseEnable looping playback
loopCountnumber11–10Number of times to loop (only applies when loop is true)

Output handles

HandleDescription
CompleteAudio finished playing — flow continues to the next node
ErrorPlayback failed (invalid URL, network error, unsupported format)

Output variables

VariableTypeDescription
durationnumberDuration of the played audio in milliseconds

Use cases

Enable loop with loopCount: 5 to play background music while the caller waits in a queue.
Use a Switch node on the caller’s language, then route to different Play Audio nodes with region-specific audio URLs.