NAME
Twilio::Rest::Intelligence::V2::Transcript::Sentence - The Sentence resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $sentence ($client->intelligence->v2->transcripts($transcript_sid)->sentences->read({}, 20)) {
...
}
DESCRIPTION
This file holds SentenceList, SentencePage and SentenceInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
SentenceList
Returned by $client->intelligence->v2->transcripts($transcript_sid)->sentences. See also Twilio::ListResource.
read
my @records = $client->intelligence->v2->transcripts($transcript_sid)->sentences->read(\%options, $limit, $page_size);
Get all Transcript Sentences by TranscriptSid. Returns the records as a list, fetching as many pages as it needs.
The options are:
redacted-
Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is
trueto access redacted sentences. word_timestamps-
Returns word level timestamps information, if word_timestamps is enabled. The default is
false.
stream
my $stream = $client->intelligence->v2->transcripts($transcript_sid)->sentences->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->intelligence->v2->transcripts($transcript_sid)->sentences->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->intelligence->v2->transcripts($transcript_sid)->sentences->get_page($url);
Fetches the page at a URL given by Twilio.
SentencePage
A Twilio::Page of SentenceInstance objects.
records_key
build_instance
Used by Twilio::Page.
SentenceInstance
See also Twilio::InstanceResource.
Its fields are:
- confidence
-
No description in the specification.
- end_time
-
Offset from the beginning of the transcript when this sentence ends.
- media_channel
-
The channel number.
- sentence_index
-
The index of the sentence in the transcript.
- sid
-
A 34 character string that uniquely identifies this Sentence.
- start_time
-
Offset from the beginning of the transcript when this sentence starts.
- transcript
-
Transcript text.
- words
-
Detailed information for each of the words of the given Sentence.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.