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.
The unique SID identifier of the Account.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique SID identifier of the Service.
^GA[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique SID identifier of the Transcript.
^GT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The URL of this resource.
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.
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.Redacted
is false
, the original, unredacted media file's media_url
is returned.1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchMedia() {11const media = await client.intelligence.v212.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.media()14.fetch();1516console.log(media.accountSid);17}1819fetchMedia();
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}
The unique SID identifier of the Transcript.
^GT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is true
to access redacted media.