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
- v9
- v10
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.getCallTranscription(accountId, callId, recordingId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#getCallTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
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
- v9
- v10
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.deleteCallTranscription(accountId, callId, recordingId);
} catch (ApiException e) {
System.err.println("Exception when calling RecordingsApi#deleteCallTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
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
- v9
- v10
# Not Possible with V9.
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
- v9
- v10
# Not Possible with V9.
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
- v9
- v10
# Not Possible with V9.
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();
}