Voice
Welcome to version 3 of the RELAY SDK
In May 2022, Voice was incorporated into version 3 of the RELAY Realtime Server SDK. If you have an application that runs on the previous version of RELAY for Voice calls, consider upgrading. For some pointers on migrating to this version, please read our post “Upgrade Your RELAY Game”.
Access the Voice API. You can instantiate a Voice.Client to make or receive calls. Please see Events for the list of events emitted by a Voice.Client object.
Example
The following example answers any call in the “office” topic, and immediately plays some speech.
Classes
Represents an active voice call with methods for playback, recording, speech detection, and call control.
Represents a collect operation for gathering user input via DTMF or speech during a call.
Represents a detect operation for identifying answering machines, fax tones, or digits during a call.
Represents a playback operation for playing audio, TTS, silence, or ringtones during a call.
Represents a prompt operation that combines playback with input collection during a call.
Represents a recording operation for capturing audio during a call.
Represents the state of a call with properties for tracking call progress and status.
Represents a tap operation for streaming call audio to an external destination.
The main Voice client for making outbound calls and listening for inbound call events.
Helper class for building device configurations when dialing multiple endpoints.
Helper class for building playlists of audio, TTS, silence, and ringtones for playback.