List All Transcriptions
Use this endpoint for the Recording Transcriptions method to read all of the recording transcriptions that are associated with your account. This will be returned as a list of transcriptions.
Parameters
Parameter |
---|
No Parameters |
Examples
Request
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Transcriptions.json \
-X GET \
-u "YourProjectID:YourAuthToken"
const { RestClient } = require('@signalwire/compatibility-api')
const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
client.transcriptions.each(transcriptions => console.log(transcriptions.sid));
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
class Program
{
static void Main(string[] args)
{
TwilioClient.Init("YourProjectID", "YourAuthToken", new Dictionary<string, object> { ["signalwireSpaceUrl"] = "{SPACE}.signalwire.com" });
var transcriptions = TranscriptionResource.Read();
foreach(var record in transcriptions)
{
Console.WriteLine(record.Sid);
}
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
transcriptions = client.transcriptions.list()
for record in transcriptions:
print(record.sid)
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
transcriptions = @client.transcriptions.list
transcriptions.each do |record|
puts record.sid
end
Responses
200 OK
{
"end": 0,
"first_page_uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Transcriptions.json?PageSize=1&Page=0",
"last_page_uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Transcriptions.json?PageSize=1&Page=3",
"next_page_uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Transcriptions.json?PageSize=1&Page=1",
"num_pages": 4,
"page": 0,
"page_size": 1,
"previous_page_uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Transcriptions.json?PageSize=1&Page=0",
"start": 0,
"total": 4,
"transcriptions": [
{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472ac",
"api_version": "2008-08-01",
"date_created": "Thu, 27 Sept 2018 20:00:00 +0000",
"date_updated": "Fri, 28 Sept 2018 21:00:00 +0000",
"duration": "10",
"price": "0.0",
"price_unit": "USD",
"recording_sid": "b3877c40-da60-4998-90ad-b792e98472re",
"sid": "b3877c40-da60-4998-90ad-b792e98472tr",
"status": "completed",
"transcription_text": null,
"type": "fast",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Transcriptions/b3877c40-da60-4998-90ad-b792e98472tr.json"
}
],
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/Transcriptions.json?PageSize=1&Page=0",
"account_sid": "b3877c40-da60-4998-90ad-b792e98472ac"
}
Request: List All Transcriptions from a Recording
List all of the transcriptions that were generated from a single recording.
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json \
-X GET \
-u "YourProjectID:YourAuthToken"
const { RestClient } = require('@signalwire/compatibility-api')
const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
client.transcriptions.each({RecordingSid: 'b3877c40-da60-4998-90ad-b792e98472re'}, transcriptions => console.log(transcriptions.sid));
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
class Program
{
static void Main(string[] args)
{
TwilioClient.Init("YourProjectID", "YourAuthToken", new Dictionary<string, object> { ["signalwireSpaceUrl"] = "{SPACE}.signalwire.com" });
var transcriptions = TranscriptionResource.Read(
pathSid: "RecordingSid"
);
foreach(var record in transcriptions)
{
Console.WriteLine(record.Sid);
}
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
transcriptions = client.transcriptions \
.list(recording_sid='b3877c40-da60-4998-90ad-b792e98472re')
for record in transcriptions:
print(record.sid)
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
transcriptions = @client.transcriptions
.list(recording_sid: 'b3877c40-da60-4998-90ad-b792e98472re')
transcriptions.each do |record|
puts record.sid
end