Package com.vonage.client.conversations
Class AudioPlayEvent.Builder
java.lang.Object
com.vonage.client.conversations.Event.Builder<AudioPlayEvent,AudioPlayEvent.Builder>
com.vonage.client.conversations.AudioPlayEvent.Builder
- Enclosing class:
AudioPlayEvent
public static final class AudioPlayEvent.Builder
extends Event.Builder<AudioPlayEvent,AudioPlayEvent.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the EventWithBody.level(double level) Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.loop(int loop) Number of times to repeat the audio.queue(boolean queue) Whether to queue the audio.Source URL of the audio to play.Source URL of the audio to play.Methods inherited from class com.vonage.client.conversations.Event.Builder
from
-
Method Details
-
streamUrl
Source URL of the audio to play.- Parameters:
streamUrl- The stream URL as a string.- Returns:
- This builder.
-
streamUrl
Source URL of the audio to play.- Parameters:
streamUrl- The stream URL.- Returns:
- This builder.
-
build
Description copied from class:Event.BuilderBuilds the EventWithBody.- Specified by:
buildin classEvent.Builder<AudioPlayEvent,AudioPlayEvent.Builder> - Returns:
- An instance of Event, populated with all fields from this builder.
-
queue
Whether to queue the audio.- Parameters:
queue-trueto enable queuing,falseotherwise.- Returns:
- This builder.
-
level
Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.- Parameters:
level- The volume as a double.- Returns:
- This builder.
-
loop
Number of times to repeat the audio. Default is 1.- Parameters:
loop- The loop count as an int.- Returns:
- This builder.
-