*** id: 573c44af-7688-448e-b402-1f15d03fedde title: Voice sidebar-title: Overview position: 0 keywords: 'SignalWire, Realtime SDK, Node.js, voice API, telephony, VoIP' slug: /node/reference/voice description: >- Access the Voice API to make and receive phone calls programmatically. Includes methods for call control, playback, recording, and speech detection. max-toc-depth: 3 ---------------- [voice-client-1]: /docs/server-sdk/v4/node/reference/voice/client [voice-client]: /docs/server-sdk/v4/node/reference/voice/client#events Access the Voice API. You can instantiate a [Voice.Client][voice-client-1] to make or receive calls. Refer to [Events][voice-client] for a full list of events emitted by a [Voice.Client][voice-client-1] object. #### Example The following example answers any call in the `office` topic, and immediately plays some speech. ```javascript import { SignalWire } from "@signalwire/realtime-api"; const client = await SignalWire({ project: "ProjectID Here", token: "Token Here" }) await client.voice.listen({ topics: ["office"], onCallReceived: (call) => { call.answer(); call.playTTS({ text: "Hello world" }); } }); ``` ## **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.