NAME
Twilio::Rest::Intelligence::V2::Transcript - The Transcript resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $transcript = $client->intelligence->v2->transcripts->create($service_sid, $channel, \%options);
for my $transcript ($client->intelligence->v2->transcripts->read({}, 20)) {
...
}
my $transcript = $client->intelligence->v2->transcripts($sid)->fetch;
$client->intelligence->v2->transcripts($sid)->delete;
DESCRIPTION
This file holds TranscriptList, TranscriptPage, TranscriptContext and TranscriptInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
TranscriptList
Returned by $client->intelligence->v2->transcripts. See also Twilio::ListResource.
create
my $transcript = $client->intelligence->v2->transcripts->create($service_sid, $channel, \%options);
Create a new Transcript for the service. Returns a TranscriptInstance.
The required values are:
$service_sid-
The unique SID identifier of the Service.
$channel-
JSON object describing Media Channel including Source and Participants A hash or array reference, or a string of JSON.
The options are:
customer_key-
Used to store client provided metadata. Maximum of 64 double-byte UTF8 characters.
media_start_time-
The date that this Transcript's media was started, given in ISO 8601 format. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize.
read
my @records = $client->intelligence->v2->transcripts->read(\%options, $limit, $page_size);
Retrieve a list of Transcripts for a given service. Returns the records as a list, fetching as many pages as it needs.
The options are:
after_date_created-
Filter by after DateCreated.
after_start_time-
Filter by after StartTime.
before_date_created-
Filter by before DateCreated.
before_start_time-
Filter by before StartTime.
language_code-
Filter by Language Code.
service_sid-
The unique SID identifier of the Service.
source_sid-
Filter by SourceSid.
status-
Filter by status.
stream
my $stream = $client->intelligence->v2->transcripts->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->intelligence->v2->transcripts->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->intelligence->v2->transcripts->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->intelligence->v2->transcripts->get_context($sid);
Returns a TranscriptContext, and makes no request.
TranscriptPage
A Twilio::Page of TranscriptInstance objects.
records_key
build_instance
Used by Twilio::Page.
TranscriptContext
Returned by $client->intelligence->v2->transcripts($sid). It makes no request until one of these methods is called.
fetch
my $transcript = $client->intelligence->v2->transcripts($sid)->fetch;
Fetch a specific Transcript. Returns a TranscriptInstance.
delete
$client->intelligence->v2->transcripts($sid)->delete;
Delete a specific Transcript. Returns true.
encrypted_operator_results
my $context = $object->encrypted_operator_results;
See Twilio::Rest::Intelligence::V2::Transcript::EncryptedOperatorResults.
encrypted_sentences
my $context = $object->encrypted_sentences;
See Twilio::Rest::Intelligence::V2::Transcript::EncryptedSentences.
media
my $context = $object->media;
See Twilio::Rest::Intelligence::V2::Transcript::Media.
operator_results
my $list = $object->operator_results;
my $context = $object->operator_results($operator_sid);
See Twilio::Rest::Intelligence::V2::Transcript::OperatorResult.
sentences
my $list = $object->sentences;
See Twilio::Rest::Intelligence::V2::Transcript::Sentence.
TranscriptInstance
See also Twilio::InstanceResource.
It has fetch, delete, encrypted_operator_results, encrypted_sentences, media, operator_results and sentences, which work as they do on the context.
Its fields are:
- account_sid
-
The unique SID identifier of the Account.
- channel
-
Media Channel describing Transcript Source and Participant Mapping
- customer_key
-
No description in the specification.
- data_logging
-
Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
- date_created
-
The date that this Transcript was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that this Transcript was updated, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- duration
-
The duration of this Transcript's source
- encryption_credential_sid
-
The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
- language_code
-
The default language code of the audio.
- links
-
No description in the specification.
- media_start_time
-
The date that this Transcript's media was started, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- redaction
-
If the transcript has been redacted, a redacted alternative of the transcript will be available.
- service_sid
-
The unique SID identifier of the Service.
- sid
-
A 34 character string that uniquely identifies this Transcript.
- status
-
One of
queued,in-progress,completed,new,failed,canceledorerror. - url
-
The URL of this resource.
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.