Transcript Sentence Resource
Info Public Beta
Voice Intelligence is currently available as a public beta release. Some features are not yet implemented and others may be changed before the product is declared as Generally Available. Beta products are not covered by a Twilio SLA.
Learn more about beta product support(link takes you to an external page) .
A Transcript Sentence
is the actual text of the recording transcription.
The GET
Sentences
request returns a list of Sentences of a Transcript
. With the Redacted
query param, the endpoint returns the PII redacted/unredacted Sentences.
Resource properties media_channel
type: integer
sentence_index
type: integer
The index of the sentence in the transcript.
start_time
type: number
Offset from the beginning of the transcript when this sentence starts.
end_time
type: number
Offset from the beginning of the transcript when this sentence ends.
sid
type: SID<GX>
A 34 character string that uniquely identifies this Sentence.
Pattern:
^GX[0-9a-fA-F]{32}$
GET https://intelligence.twilio.com/v2/Transcripts/{TranscriptSid}/Sentences
URI parameters TranscriptSid
type: SID<GT>
The unique SID identifier of the Transcript.
Pattern:
^GT[0-9a-fA-F]{32}$
Redacted
type: boolean
Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is true
to access redacted sentences.
PageSize
type: integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Page
type: integer
The page index. This value is simply for client state.
PageToken
type: string
The page token. This is provided by the API.
_11 // Download the helper library from https://www.twilio.com/docs/node/install
_11 // Find your Account SID and Auth Token at twilio.com/console
_11 // and set the environment variables. See http://twil.io/secure
_11 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11 const authToken = process.env.TWILIO_AUTH_TOKEN;
_11 const client = require('twilio')(accountSid, authToken);
_11 client.intelligence.v2.transcripts('GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .then(sentences => sentences.forEach(s => console.log(s.sid)));
_22 "transcript": "test test",
_22 "sid": "GXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_22 "first_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sentences?PageSize=50&Page=0",
_22 "url": "https://intelligence.twilio.com/v2/Transcripts/GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sentences?PageSize=50&Page=0",
_22 "next_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sentences?PageSize=50&Page=1",
_22 "previous_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sentences?PageSize=50&Page=0"