Skip to contentSkip to navigationSkip to topbar
On this page

Voice Intelligence - Transcript Media Subresource


A Voice Intelligence Transcript Media subresource represents the recording media associated with a Voice Intelligence Transcript resource. The TranscriptMedia subresource contains a temporary URL for accessing the media in the media_url property.


Transcript Media subresource properties

transcript-media-subresource-properties page anchor
Property nameTypeRequiredDescriptionChild properties
account_sidSID<AC>

Optional

Not PII

The unique SID identifier of the Account.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

media_urlstring<uri>

Optional

Downloadable URL for media, if stored in Twilio AI.


service_sidSID<GA>

Optional

The unique SID identifier of the Service.

Pattern: ^GA[0-9a-fA-F]{32}$Min length: 34Max length: 34

sidSID<GT>

Optional

The unique SID identifier of the Transcript.

Pattern: ^GT[0-9a-fA-F]{32}$Min length: 34Max length: 34

urlstring<uri>

Optional

The URL of this resource.


Fetch a Transcript Media subresource for a specific Transcript

fetch-a-transcript-media-subresource-for-a-specific-transcript page anchor
GET https://intelligence.twilio.com/v2/Transcripts/{Sid}/Media

If PII redaction was enabled at the time the associated Transcript was created, you can retrieve the URL for the redacted or unredacted media file using the Redacted query parameter.

  • If Redacted is true (the default value), the redacted file's media_url is returned. Silence is inserted into the media file where Voice Intelligence detected PII.
  • If Redacted is false, the original, unredacted media file's media_url is returned.
Fetch a Transcript Media subresourceLink to code sample: Fetch a Transcript Media subresource
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function fetchMedia() {
11
const media = await client.intelligence.v2
12
.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
13
.media()
14
.fetch();
15
16
console.log(media.accountSid);
17
}
18
19
fetchMedia();

Output

1
{
2
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3
"service_sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
"sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5
"media_url": "https://media.server.com/media.wav",
6
"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"
7
}

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
SidSID<GT>required

The unique SID identifier of the Transcript.

Pattern: ^GT[0-9a-fA-F]{32}$Min length: 34Max length: 34
Property nameTypeRequiredPIIDescription
Redactedboolean

Optional

Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is true to access redacted media.