Skip to main content

v9 -> v10

Call(Recording) Transcriptions

The method names for recordings transcriptions have changed. Call recordings are now referred to as recording transcriptions.

Get Call(Recording) Transcription

RecordingsApi apiInstance = new RecordingsApi(defaultClient);
String accountId = "9900000";
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";
String recordingId = "r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";

try {
TranscriptionList result = apiInstance.getRecordingTranscription(accountId, callId, recordingId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#getRecordingTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}

Delete Call(Recording) Transcription

RecordingsApi apiInstance = new RecordingsApi(defaultClient);
String accountId = "9900000";
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";
String recordingId = "r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";

try {
apiInstance.deleteRecordingTranscription(accountId, callId, recordingId);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#deleteRecordingTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}

Real-Time Transcriptions

Real-time transcriptions have been added to the Python SDK.

List Real Time Transcriptions

TranscriptionsApi apiInstance = new TranscriptionsApi(defaultClient);
String accountId = "9900000";
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";

try {
TranscriptionList result = apiInstance.listRealTimeTranscription(accountId, callId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#listRealTimeTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}

Get Real Time Transcription

TranscriptionsApi apiInstance = new TranscriptionsApi(defaultClient);
String accountId = "9900000";
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";
String transcriptionId = "t-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";

try {
apiInstance.getRealTimeTranscription(accountId, callId, transcriptionId);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#getRealTimeTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}

Delete Real Time Transcription

TranscriptionsApi apiInstance = new TranscriptionsApi(defaultClient);
String accountId = "9900000";
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";
String transcriptionId = "t-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";

try {
apiInstance.deleteRealTimeTranscription(accountId, callId, transcriptionId);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#deleteRealTimeTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}