UNPKG

@vonage/voice

Version:

The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.

20 lines (17 loc) 627 B
import { TTSVoices } from '../../enums/TTSVoices.js'; import { PlayTTSParameters } from '../Parameters/PlayTTSParameters.js'; import '../../enums/TTSLanguages.js'; /** * Represents the parameters for playing text-to-speech (TTS) during a call. * * @remarks * Vonage API's will return information using `snake_case`. This represents the * pure response before the client will transform the keys into `camelCase`. */ type PlayTTSRequest = { /** * The name of the TTS voice to use for speech synthesis. */ voice_name?: TTSVoices; } & Omit<PlayTTSParameters, 'voiceName'>; export type { PlayTTSRequest };