v11 -> v12
Call(Recording) Transcriptions
The method names for recordings transcriptions have changed. Call recordings are now referred to as recording transcriptions.
Get Call(Recording) Transcription
- v11
- v12
api_instance = Bandwidth::RecordingsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
recording_id = 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
begin
result = api_instance.get_call_transcription(account_id, call_id, recording_id)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->get_call_transcription: #{e}"
end
api_instance = Bandwidth::RecordingsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
recording_id = 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
begin
result = api_instance.get_recording_transcription(account_id, call_id, recording_id)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->get_recording_transcription: #{e}"
end
Delete Call(Recording) Transcription
- v11
- v12
api_instance = Bandwidth::RecordingsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
recording_id = 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
begin
api_instance.delete_call_transcription(account_id, call_id, recording_id)
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->delete_call_transcription: #{e}"
end
api_instance = Bandwidth::RecordingsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
recording_id = 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
begin
api_instance.delete_recording_transcription(account_id, call_id, recording_id)
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->delete_recording_transcription: #{e}"
end
Real-Time Transcriptions
Real-time transcriptions have been added to the Ruby SDK.
List Real Time Transcriptions
- v11
- v12
# Not Possible with V11.
api_instance = Bandwidth::TranscriptionsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
begin
result = api_instance.list_real_time_transcriptions(account_id, call_id)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->list_real_time_transcriptions: #{e}"
end
Get Real Time Transcription
- v11
- v12
# Not Possible with V11.
api_instance = Bandwidth::TranscriptionsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
transcription_id = 't-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b'
begin
result = api_instance.get_real_time_transcription(account_id, call_id, transcription_id)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->get_real_time_transcription: #{e}"
end
Delete Real Time Transcription
- v11
- v12
# Not Possible with V11.
api_instance = Bandwidth::TranscriptionsApi.new
account_id = '9900000'
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
transcription_id = 't-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b'
begin
api_instance.delete_real_time_transcription(account_id, call_id, transcription_id)
rescue Bandwidth::ApiError => e
puts "Error when calling RecordingsApi->delete_real_time_transcription: #{e}"
end