Class PlayAudio

java.lang.Object
com.bandwidth.voice.bxml.verbs.PlayAudio
All Implemented Interfaces:
AudioProducer, Verb

public class PlayAudio
extends java.lang.Object
implements Verb, AudioProducer
The PlayAudio verb is used to play an audio file in the call. The URL of an audio file should be included in the body of the tag. If a relative URL is given, it is resolved relative to the endpoint that returned the BXML.
NOTE: .wav files encoded as PCM or G711 are supported.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  PlayAudio.PlayAudioBuilder  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String password
    password to use to authenticate at the audioUri endpoint
    static java.lang.String TYPE_NAME  
    protected java.lang.String username
    username to authenticate at the audioUri endpoint
  • Constructor Summary

    Constructors 
    Constructor Description
    PlayAudio()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE_NAME

      public static final java.lang.String TYPE_NAME
      See Also:
      Constant Field Values
    • username

      protected java.lang.String username
      username to authenticate at the audioUri endpoint
    • password

      protected java.lang.String password
      password to use to authenticate at the audioUri endpoint
  • Constructor Details