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>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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.