All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
deleteRealTimeTranscription | DELETE /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription |
getRealTimeTranscription | GET /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription |
listRealTimeTranscriptions | GET /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription |
deleteRealTimeTranscription(accountId, callId, transcriptionId)
Delete a specific transcription
Delete the specified transcription that was created on this call via startTranscription. Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
// Import classes:
import com.bandwidth.sdk.ApiClient;
import com.bandwidth.sdk.ApiException;
import com.bandwidth.sdk.Configuration;
import com.bandwidth.sdk.auth.*;
import com.bandwidth.sdk.models.*;
import com.bandwidth.sdk.api.TranscriptionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
TranscriptionsApi apiInstance = new TranscriptionsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
String transcriptionId = "t-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Transcription ID.
try {
apiInstance.deleteRealTimeTranscription(accountId, callId, transcriptionId);
} catch (ApiException e) {
System.err.println("Exception when calling TranscriptionsApi#deleteRealTimeTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | Your Bandwidth Account ID. | |
callId | String | Programmable Voice API Call ID. | |
transcriptionId | String | Programmable Voice API Transcription ID. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | No Content | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
CallTranscriptionResponse getRealTimeTranscription(accountId, callId, transcriptionId)
Retrieve a specific transcription
Retrieve the specified transcription that was created on this call via startTranscription.
// Import classes:
import com.bandwidth.sdk.ApiClient;
import com.bandwidth.sdk.ApiException;
import com.bandwidth.sdk.Configuration;
import com.bandwidth.sdk.auth.*;
import com.bandwidth.sdk.models.*;
import com.bandwidth.sdk.api.TranscriptionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
TranscriptionsApi apiInstance = new TranscriptionsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
String transcriptionId = "t-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Transcription ID.
try {
CallTranscriptionResponse result = apiInstance.getRealTimeTranscription(accountId, callId, transcriptionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TranscriptionsApi#getRealTimeTranscription");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | Your Bandwidth Account ID. | |
callId | String | Programmable Voice API Call ID. | |
transcriptionId | String | Programmable Voice API Transcription ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
List<CallTranscriptionMetadata> listRealTimeTranscriptions(accountId, callId)
Enumerate transcriptions made with StartTranscription
Enumerates the transcriptions created on this call via startTranscription.
// Import classes:
import com.bandwidth.sdk.ApiClient;
import com.bandwidth.sdk.ApiException;
import com.bandwidth.sdk.Configuration;
import com.bandwidth.sdk.auth.*;
import com.bandwidth.sdk.models.*;
import com.bandwidth.sdk.api.TranscriptionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
TranscriptionsApi apiInstance = new TranscriptionsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
try {
List<CallTranscriptionMetadata> result = apiInstance.listRealTimeTranscriptions(accountId, callId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TranscriptionsApi#listRealTimeTranscriptions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | Your Bandwidth Account ID. | |
callId | String | Programmable Voice API Call ID. |
List<CallTranscriptionMetadata>
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |