record
record
- record(
params):Promise<CallRecording>
Generic method to record a call.
Please use recordAudio.
Parameters
params
Object containing the parameters for recording the call.
audio
Audio recording configuration. See the parameters for recordAudio.
Returns
Promise<CallRecording>
A promise that resolves to a CallRecording object that you can use to
view the current state and results of the recording session.
Example
In this example, we dial a phone number and record the call audio. During the recording, we play a TTS message. Once the TTS message is finished, we hangup the call and print the URL of the recording to console.