---title: CallRecording---Represents a recording of a call. You can obtain instances of this class by starting a Recording with one of the following methods:- [Call.record](./voice-call.mdx#record)- [Call.recordAudio](./voice-call.mdx#recordaudio)#### ExampleRecording the audio of the call as soon as the other party answers the phone. Wealso print the id of the recording and, when it ends, the URL (which can be usedto download the recording).jsimport { Voice } from @signalwire/realtime-api;const client = new Voice.Client({ project: , token: , contexts: [office],});const call = await client.dialPhone({ from: +YYYYYYYYYY, to: +XXXXXXXXXX,});await call.playTTS({ text: This call will be recorded. });// Print out the URL of the recording, as soon as the recording ends.call.on(recording.ended, (recording) => { console.log(Recording URL:, recording.url);});// Start recordingconst recording = await call.recordAudio({ direction: both, endSilenceTimeout: 0, terminators: ,});console.log(Recording id:, recording.id);## Accessors### id• get **id**(): stringThe unique id for this recording.#### Returnsstring## Methods### stop▸ **stop**(): Promise<[CallRecording](./callrecording.mdx)\>Stops the recording.#### ReturnsPromise<[CallRecording](./callrecording.mdx)\>#### Examplejsconst recording = await call.recordAudio({ direction: both });await recording.stop();