NCCO/Talk.ts

vonage-node-sdk · packages/voice/lib/classes/NCCO/Talk.ts · typescript · Apache-2.0
voice, Voice / Speech

Class for Nexmo voice TTS actions with configurable text, language, and playback options.

// Source: https://github.com/Vonage/vonage-node-sdk | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { NCCOActions, TTSLanguages } from '../../enums/index.js';
import { TalkAction } from '../../types/index.js';
import { Serializable } from '../../interfaces/index.js';

/**
 * Represents a Talk action in a Nexmo Call Control Object (NCCO).
 *
 * This action allows the text-to-speech (TTS) synthesis of spoken words in the call.
 */
export class Talk implements TalkAction, Serializable {
  /**
   * The action type for this NCCO action.
   */
  action: NCCOActions.TALK = NCCOActions.TALK;

  /**
   * The text to be spoken during the call.
   */
  text: string;

  /**
   * Indic

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key