Skip to main content
GET
/
voice_designs
/
{id}
/
sample
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});

const response = await client.voiceDesigns.downloadSample('id');

console.log(response);

const content = await response.blob();
console.log(content);
"<string>"

Path Parameters

id
string
required

The voice design UUID or name.

Query Parameters

version
integer

Specific version number to download the sample for. Defaults to the latest version.

Required range: x >= 1

Response

WAV audio sample binary.

The response is of type file.