bandwidth-sdk 11.3.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +16 -14
  3. data/README.md +14 -8
  4. data/bandwidth.yml +223 -17
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +609 -208
  7. data/coverage/index.html +14764 -10335
  8. data/custom_templates/README.mustache +4 -4
  9. data/docs/CallRecordingMetadata.md +1 -1
  10. data/docs/CallTranscription.md +24 -0
  11. data/docs/CallTranscriptionMetadata.md +20 -0
  12. data/docs/CallTranscriptionResponse.md +24 -0
  13. data/docs/RecordingAvailableCallback.md +2 -2
  14. data/docs/RecordingTranscriptionMetadata.md +24 -0
  15. data/docs/RecordingTranscriptions.md +18 -0
  16. data/docs/RecordingsApi.md +49 -49
  17. data/docs/TranscriptionsApi.md +229 -0
  18. data/lib/bandwidth-sdk/api/recordings_api.rb +56 -56
  19. data/lib/bandwidth-sdk/api/transcriptions_api.rb +241 -0
  20. data/lib/bandwidth-sdk/configuration.rb +22 -4
  21. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +1 -1
  22. data/lib/bandwidth-sdk/models/call_transcription.rb +317 -0
  23. data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +223 -0
  24. data/lib/bandwidth-sdk/models/call_transcription_response.rb +244 -0
  25. data/lib/bandwidth-sdk/models/recording_available_callback.rb +2 -2
  26. data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +244 -0
  27. data/lib/bandwidth-sdk/models/recording_transcriptions.rb +214 -0
  28. data/lib/bandwidth-sdk/version.rb +1 -1
  29. data/lib/bandwidth-sdk.rb +6 -2
  30. data/spec/api/calls_api_spec.rb +4 -4
  31. data/spec/api/conferences_api_spec.rb +12 -12
  32. data/spec/api/media_api_spec.rb +6 -6
  33. data/spec/api/messages_api_spec.rb +2 -2
  34. data/spec/api/mfa_api_spec.rb +6 -6
  35. data/spec/api/phone_number_lookup_api_spec.rb +2 -2
  36. data/spec/api/recordings_api_spec.rb +30 -30
  37. data/spec/api/statistics_api_spec.rb +1 -1
  38. data/spec/api/transcriptions_api_spec.rb +130 -0
  39. data/spec/api_client_spec.rb +2 -2
  40. data/spec/integration/calls_api_integration_spec.rb +7 -7
  41. data/spec/integration/conferences_api_integration_spec.rb +9 -9
  42. data/spec/integration/media_api_integration_spec.rb +7 -7
  43. data/spec/integration/messages_api_integration_spec.rb +3 -3
  44. data/spec/integration/mfa_api_integration_spec.rb +3 -3
  45. data/spec/integration/phone_number_lookup_api_integration_spec.rb +2 -2
  46. data/spec/integration/recordings_api_integration_spec.rb +14 -14
  47. data/spec/integration/statistics_api_integration_spec.rb +1 -1
  48. data/spec/integration/transcriptions_api_integration_spec.rb +84 -0
  49. data/spec/spec_helper.rb +1 -1
  50. metadata +49 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e82fa3f28500251d8978057cf60e836efadd5335c63895d69793b3babfb2879
4
- data.tar.gz: f1b8c1517cef45ea18a88335234a16366356d28a21efcb46dfac31f7dfb933dd
3
+ metadata.gz: 8662624b333e7ef9e559a91d8381165ff184c97187500be72d1e9f1304f17273
4
+ data.tar.gz: 2f676acc2d04e155a090201511f25949fad51f12135763dc39fec2dd011df7d7
5
5
  SHA512:
6
- metadata.gz: 29305ebdfc62708c6b3220d329c81508fd5ee49f800f962bc476332c9bba112836bd711901ac8524c7a7ec89e3b0b9ac5c1036b45d98f49d93b478c8af568927
7
- data.tar.gz: 9d1bcfd27fcaafd79d8cad9807b625f581bd61836463d4bc476e750777a333065306466ad1efeb07581c58d7d1a78413d117ed8534f4f65fd230b9024e197c8c
6
+ metadata.gz: 78adbddaaf786746802be4b4ec6a6fb8c1c37339d24b21aa0f1e3fe83e3a09d4250038a38d105f9ee13ffd4660945634b31db5a3f5628c51949808cb3f06c572
7
+ data.tar.gz: dcb453a3e133f0c72680f945bfa968a8762500150110b32c945f004dc088f4bcd492142f7c11aefd7e3ab2204c1936b4f0f0208c1fb2e8e056eb1d5fef8553e6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bandwidth-sdk (11.3.0)
4
+ bandwidth-sdk (12.0.0)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
  ox (~> 2.4)
@@ -12,7 +12,7 @@ GEM
12
12
  addressable (2.8.6)
13
13
  public_suffix (>= 2.0.2, < 6.0)
14
14
  ast (2.4.2)
15
- bigdecimal (3.1.6)
15
+ bigdecimal (3.1.8)
16
16
  byebug (11.1.3)
17
17
  coderay (1.1.3)
18
18
  crack (1.0.0)
@@ -27,14 +27,14 @@ GEM
27
27
  faraday-net_http (3.1.0)
28
28
  net-http
29
29
  hashdiff (1.1.0)
30
- json (2.7.1)
31
- method_source (1.0.0)
32
- multipart-post (2.4.0)
30
+ json (2.7.2)
31
+ method_source (1.1.0)
32
+ multipart-post (2.4.1)
33
33
  net-http (0.4.1)
34
34
  uri
35
- ox (2.14.17)
35
+ ox (2.14.18)
36
36
  parallel (1.24.0)
37
- parser (3.3.0.5)
37
+ parser (3.3.1.0)
38
38
  ast (~> 2.4.1)
39
39
  racc
40
40
  pry (0.14.2)
@@ -43,12 +43,13 @@ GEM
43
43
  pry-byebug (3.10.1)
44
44
  byebug (~> 11.0)
45
45
  pry (>= 0.13, < 0.15)
46
- public_suffix (5.0.4)
47
- racc (1.7.3)
46
+ public_suffix (5.0.5)
47
+ racc (1.8.0)
48
48
  rainbow (3.1.1)
49
49
  rake (13.0.6)
50
- regexp_parser (2.9.0)
51
- rexml (3.2.6)
50
+ regexp_parser (2.9.2)
51
+ rexml (3.2.8)
52
+ strscan (>= 3.0.9)
52
53
  rspec (3.13.0)
53
54
  rspec-core (~> 3.13.0)
54
55
  rspec-expectations (~> 3.13.0)
@@ -58,7 +59,7 @@ GEM
58
59
  rspec-expectations (3.13.0)
59
60
  diff-lcs (>= 1.2.0, < 2.0)
60
61
  rspec-support (~> 3.13.0)
61
- rspec-mocks (3.13.0)
62
+ rspec-mocks (3.13.1)
62
63
  diff-lcs (>= 1.2.0, < 2.0)
63
64
  rspec-support (~> 3.13.0)
64
65
  rspec-support (3.13.1)
@@ -72,8 +73,8 @@ GEM
72
73
  rubocop-ast (>= 1.28.0, < 2.0)
73
74
  ruby-progressbar (~> 1.7)
74
75
  unicode-display_width (>= 2.4.0, < 3.0)
75
- rubocop-ast (1.30.0)
76
- parser (>= 3.2.1.0)
76
+ rubocop-ast (1.31.3)
77
+ parser (>= 3.3.1.0)
77
78
  ruby-progressbar (1.13.0)
78
79
  simplecov (0.21.2)
79
80
  docile (~> 1.1)
@@ -81,6 +82,7 @@ GEM
81
82
  simplecov_json_formatter (~> 0.1)
82
83
  simplecov-html (0.12.3)
83
84
  simplecov_json_formatter (0.1.4)
85
+ strscan (3.1.0)
84
86
  unicode-display_width (2.5.0)
85
87
  uri (0.13.0)
86
88
  webmock (3.18.1)
data/README.md CHANGED
@@ -7,10 +7,10 @@
7
7
 
8
8
  | **OS** | **Ruby** |
9
9
  |:---:|:---:|
10
- | Windows 2019 | 2.7, 3.0, 3.1, 3.2 |
11
- | Windows 2022 | 2.7, 3.0, 3.1, 3.2 |
12
- | Ubuntu 20.04 | 2.7, 3.0, 3.1, 3.2 |
13
- | Ubuntu 22.04 | 2.7, 3.0, 3.1, 3.2 |
10
+ | Windows 2019 | 2.7, 3.0, 3.1, 3.2, 3.3 |
11
+ | Windows 2022 | 2.7, 3.0, 3.1, 3.2, 3.3 |
12
+ | Ubuntu 20.04 | 2.7, 3.0, 3.1, 3.2, 3.3 |
13
+ | Ubuntu 22.04 | 2.7, 3.0, 3.1, 3.2, 3.3 |
14
14
 
15
15
  Bandwidth - the Ruby gem for the Bandwidth SDK
16
16
 
@@ -132,17 +132,20 @@ Class | Method | HTTP request | Description
132
132
  *Bandwidth::MessagesApi* | [**list_messages**](docs/MessagesApi.md#list_messages) | **GET** /users/{accountId}/messages | List Messages
133
133
  *Bandwidth::PhoneNumberLookupApi* | [**create_lookup**](docs/PhoneNumberLookupApi.md#create_lookup) | **POST** /accounts/{accountId}/tnlookup | Create Lookup
134
134
  *Bandwidth::PhoneNumberLookupApi* | [**get_lookup_status**](docs/PhoneNumberLookupApi.md#get_lookup_status) | **GET** /accounts/{accountId}/tnlookup/{requestId} | Get Lookup Request Status
135
- *Bandwidth::RecordingsApi* | [**delete_call_transcription**](docs/RecordingsApi.md#delete_call_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
136
135
  *Bandwidth::RecordingsApi* | [**delete_recording**](docs/RecordingsApi.md#delete_recording) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording
137
136
  *Bandwidth::RecordingsApi* | [**delete_recording_media**](docs/RecordingsApi.md#delete_recording_media) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media
137
+ *Bandwidth::RecordingsApi* | [**delete_recording_transcription**](docs/RecordingsApi.md#delete_recording_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
138
138
  *Bandwidth::RecordingsApi* | [**download_call_recording**](docs/RecordingsApi.md#download_call_recording) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Download Recording
139
139
  *Bandwidth::RecordingsApi* | [**get_call_recording**](docs/RecordingsApi.md#get_call_recording) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Get Call Recording
140
- *Bandwidth::RecordingsApi* | [**get_call_transcription**](docs/RecordingsApi.md#get_call_transcription) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription
140
+ *Bandwidth::RecordingsApi* | [**get_recording_transcription**](docs/RecordingsApi.md#get_recording_transcription) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription
141
141
  *Bandwidth::RecordingsApi* | [**list_account_call_recordings**](docs/RecordingsApi.md#list_account_call_recordings) | **GET** /accounts/{accountId}/recordings | Get Call Recordings
142
142
  *Bandwidth::RecordingsApi* | [**list_call_recordings**](docs/RecordingsApi.md#list_call_recordings) | **GET** /accounts/{accountId}/calls/{callId}/recordings | List Call Recordings
143
143
  *Bandwidth::RecordingsApi* | [**transcribe_call_recording**](docs/RecordingsApi.md#transcribe_call_recording) | **POST** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Create Transcription Request
144
144
  *Bandwidth::RecordingsApi* | [**update_call_recording_state**](docs/RecordingsApi.md#update_call_recording_state) | **PUT** /accounts/{accountId}/calls/{callId}/recording | Update Recording
145
145
  *Bandwidth::StatisticsApi* | [**get_statistics**](docs/StatisticsApi.md#get_statistics) | **GET** /accounts/{accountId}/statistics | Get Account Statistics
146
+ *Bandwidth::TranscriptionsApi* | [**delete_real_time_transcription**](docs/TranscriptionsApi.md#delete_real_time_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription
147
+ *Bandwidth::TranscriptionsApi* | [**get_real_time_transcription**](docs/TranscriptionsApi.md#get_real_time_transcription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription
148
+ *Bandwidth::TranscriptionsApi* | [**list_real_time_transcriptions**](docs/TranscriptionsApi.md#list_real_time_transcriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription
146
149
 
147
150
 
148
151
  ## Documentation for Models
@@ -155,6 +158,9 @@ Class | Method | HTTP request | Description
155
158
  - [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md)
156
159
  - [Bandwidth::CallState](docs/CallState.md)
157
160
  - [Bandwidth::CallStateEnum](docs/CallStateEnum.md)
161
+ - [Bandwidth::CallTranscription](docs/CallTranscription.md)
162
+ - [Bandwidth::CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md)
163
+ - [Bandwidth::CallTranscriptionResponse](docs/CallTranscriptionResponse.md)
158
164
  - [Bandwidth::CallbackMethodEnum](docs/CallbackMethodEnum.md)
159
165
  - [Bandwidth::CodeRequest](docs/CodeRequest.md)
160
166
  - [Bandwidth::Conference](docs/Conference.md)
@@ -214,6 +220,8 @@ Class | Method | HTTP request | Description
214
220
  - [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
215
221
  - [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
216
222
  - [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md)
223
+ - [Bandwidth::RecordingTranscriptionMetadata](docs/RecordingTranscriptionMetadata.md)
224
+ - [Bandwidth::RecordingTranscriptions](docs/RecordingTranscriptions.md)
217
225
  - [Bandwidth::RedirectCallback](docs/RedirectCallback.md)
218
226
  - [Bandwidth::RedirectMethodEnum](docs/RedirectMethodEnum.md)
219
227
  - [Bandwidth::StirShaken](docs/StirShaken.md)
@@ -222,8 +230,6 @@ Class | Method | HTTP request | Description
222
230
  - [Bandwidth::TranscribeRecording](docs/TranscribeRecording.md)
223
231
  - [Bandwidth::Transcription](docs/Transcription.md)
224
232
  - [Bandwidth::TranscriptionAvailableCallback](docs/TranscriptionAvailableCallback.md)
225
- - [Bandwidth::TranscriptionList](docs/TranscriptionList.md)
226
- - [Bandwidth::TranscriptionMetadata](docs/TranscriptionMetadata.md)
227
233
  - [Bandwidth::TransferAnswerCallback](docs/TransferAnswerCallback.md)
228
234
  - [Bandwidth::TransferCompleteCallback](docs/TransferCompleteCallback.md)
229
235
  - [Bandwidth::TransferDisconnectCallback](docs/TransferDisconnectCallback.md)
data/bandwidth.yml CHANGED
@@ -16,6 +16,7 @@ tags:
16
16
  - name: Conferences
17
17
  - name: Recordings
18
18
  - name: Statistics
19
+ - name: Transcriptions
19
20
  - name: MFA
20
21
  - name: Phone Number Lookup
21
22
  paths:
@@ -962,9 +963,7 @@ paths:
962
963
  description: >-
963
964
  Downloads the specified transcription.
964
965
 
965
-
966
- If the transcribed recording was multi-channel, then there will be 2
967
- transcripts.
966
+ If the recording was multi-channel, then there will be 2 transcripts.
968
967
 
969
968
  The caller/called party transcript will be the first item while
970
969
  [`<PlayAudio>`](/docs/voice/bxml/playAudio) and
@@ -974,14 +973,14 @@ paths:
974
973
  During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript
975
974
  will be the first item while the B-leg transcript will be the second
976
975
  item.
977
- operationId: getCallTranscription
976
+ operationId: getRecordingTranscription
978
977
  parameters:
979
978
  - $ref: '#/components/parameters/accountId'
980
979
  - $ref: '#/components/parameters/callId'
981
980
  - $ref: '#/components/parameters/recordingId'
982
981
  responses:
983
982
  '200':
984
- $ref: '#/components/responses/getCallTranscriptionResponse'
983
+ $ref: '#/components/responses/getRecordingTranscriptionResponse'
985
984
  '400':
986
985
  $ref: '#/components/responses/voiceBadRequestError'
987
986
  '401':
@@ -1047,7 +1046,7 @@ paths:
1047
1046
  transcription will not be accessible anymore. However, it is not deleted
1048
1047
  immediately. This deletion process, while transparent and irreversible,
1049
1048
  can take an additional 24 to 48 hours.
1050
- operationId: deleteCallTranscription
1049
+ operationId: deleteRecordingTranscription
1051
1050
  parameters:
1052
1051
  - $ref: '#/components/parameters/accountId'
1053
1052
  - $ref: '#/components/parameters/callId'
@@ -1101,6 +1100,108 @@ paths:
1101
1100
  '500':
1102
1101
  $ref: '#/components/responses/voiceInternalServerError'
1103
1102
  servers: *ref_1
1103
+ /accounts/{accountId}/calls/{callId}/transcriptions:
1104
+ get:
1105
+ tags:
1106
+ - Transcriptions
1107
+ summary: Enumerate transcriptions made with StartTranscription
1108
+ description: >-
1109
+ Enumerates the transcriptions created on this call via
1110
+ [startTranscription](/docs/voice/bxml/startTranscription).
1111
+ operationId: listRealTimeTranscriptions
1112
+ parameters:
1113
+ - $ref: '#/components/parameters/accountId'
1114
+ - $ref: '#/components/parameters/callId'
1115
+ responses:
1116
+ '200':
1117
+ $ref: '#/components/responses/listTranscriptionsResponse'
1118
+ '400':
1119
+ $ref: '#/components/responses/voiceBadRequestError'
1120
+ '401':
1121
+ $ref: '#/components/responses/voiceUnauthorizedError'
1122
+ '403':
1123
+ $ref: '#/components/responses/voiceForbiddenError'
1124
+ '404':
1125
+ $ref: '#/components/responses/voiceNotFoundError'
1126
+ '405':
1127
+ $ref: '#/components/responses/voiceNotAllowedError'
1128
+ '415':
1129
+ $ref: '#/components/responses/voiceUnsupportedMediaTypeError'
1130
+ '429':
1131
+ $ref: '#/components/responses/voiceTooManyRequestsError'
1132
+ '500':
1133
+ $ref: '#/components/responses/voiceInternalServerError'
1134
+ servers: *ref_1
1135
+ /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId}:
1136
+ get:
1137
+ tags:
1138
+ - Transcriptions
1139
+ summary: Retrieve a specific transcription
1140
+ description: >-
1141
+ Retrieve the specified transcription that was created on this call via
1142
+ [startTranscription](/docs/voice/bxml/startTranscription).
1143
+ operationId: getRealTimeTranscription
1144
+ parameters:
1145
+ - $ref: '#/components/parameters/accountId'
1146
+ - $ref: '#/components/parameters/callId'
1147
+ - $ref: '#/components/parameters/transcriptionId'
1148
+ responses:
1149
+ '200':
1150
+ $ref: '#/components/responses/getCallTranscriptionResponse'
1151
+ '400':
1152
+ $ref: '#/components/responses/voiceBadRequestError'
1153
+ '401':
1154
+ $ref: '#/components/responses/voiceUnauthorizedError'
1155
+ '403':
1156
+ $ref: '#/components/responses/voiceForbiddenError'
1157
+ '404':
1158
+ $ref: '#/components/responses/voiceNotFoundError'
1159
+ '405':
1160
+ $ref: '#/components/responses/voiceNotAllowedError'
1161
+ '415':
1162
+ $ref: '#/components/responses/voiceUnsupportedMediaTypeError'
1163
+ '429':
1164
+ $ref: '#/components/responses/voiceTooManyRequestsError'
1165
+ '500':
1166
+ $ref: '#/components/responses/voiceInternalServerError'
1167
+ delete:
1168
+ tags:
1169
+ - Transcriptions
1170
+ summary: Delete a specific transcription
1171
+ description: >-
1172
+ Delete the specified transcription that was created on this call via
1173
+ [startTranscription](/docs/voice/bxml/startTranscription).
1174
+
1175
+
1176
+ Note: After the deletion is requested and a `204` is returned, the
1177
+ transcription will not be accessible anymore. However, it is not deleted
1178
+ immediately. This deletion process, while transparent and irreversible,
1179
+ can take an additional 24 to 48 hours.
1180
+ operationId: deleteRealTimeTranscription
1181
+ parameters:
1182
+ - $ref: '#/components/parameters/accountId'
1183
+ - $ref: '#/components/parameters/callId'
1184
+ - $ref: '#/components/parameters/transcriptionId'
1185
+ responses:
1186
+ '204':
1187
+ $ref: '#/components/responses/deleteCallTranscriptionResponse'
1188
+ '400':
1189
+ $ref: '#/components/responses/voiceBadRequestError'
1190
+ '401':
1191
+ $ref: '#/components/responses/voiceUnauthorizedError'
1192
+ '403':
1193
+ $ref: '#/components/responses/voiceForbiddenError'
1194
+ '404':
1195
+ $ref: '#/components/responses/voiceNotFoundError'
1196
+ '405':
1197
+ $ref: '#/components/responses/voiceNotAllowedError'
1198
+ '415':
1199
+ $ref: '#/components/responses/voiceUnsupportedMediaTypeError'
1200
+ '429':
1201
+ $ref: '#/components/responses/voiceTooManyRequestsError'
1202
+ '500':
1203
+ $ref: '#/components/responses/voiceInternalServerError'
1204
+ servers: *ref_1
1104
1205
  /accounts/{accountId}/code/voice:
1105
1206
  post:
1106
1207
  tags:
@@ -2677,7 +2778,7 @@ components:
2677
2778
  mediaUrl:
2678
2779
  $ref: '#/components/schemas/mediaUrl'
2679
2780
  transcription:
2680
- $ref: '#/components/schemas/transcriptionMetadata'
2781
+ $ref: '#/components/schemas/recordingTranscriptionMetadata'
2681
2782
  conference:
2682
2783
  type: object
2683
2784
  properties:
@@ -3114,14 +3215,95 @@ components:
3114
3215
  Current supported languages are English, French, and Spanish.
3115
3216
  default: false
3116
3217
  example: true
3117
- transcriptionList:
3218
+ recordingTranscriptions:
3118
3219
  type: object
3119
3220
  properties:
3120
3221
  transcripts:
3121
3222
  type: array
3122
3223
  items:
3123
3224
  $ref: '#/components/schemas/transcription'
3124
- transcriptionMetadata:
3225
+ callTranscriptionMetadataList:
3226
+ type: array
3227
+ items:
3228
+ $ref: '#/components/schemas/callTranscriptionMetadata'
3229
+ example:
3230
+ - transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3231
+ transcriptionUrl: >-
3232
+ https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3233
+ callTranscriptionMetadata:
3234
+ type: object
3235
+ properties:
3236
+ transcriptionId:
3237
+ type: string
3238
+ description: The programmable voice API transcription ID.
3239
+ example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3240
+ transcriptionUrl:
3241
+ type: string
3242
+ description: >-
3243
+ A URL that may be used to retrieve the transcription itself. This
3244
+ points to the
3245
+
3246
+ [Get Call
3247
+ Transcription](/apis/voice/#operation/getCallTranscription)
3248
+ endpoint.
3249
+ example: >-
3250
+ https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3251
+ callTranscriptionResponse:
3252
+ type: object
3253
+ properties:
3254
+ accountId:
3255
+ type: string
3256
+ description: The user account associated with the call.
3257
+ example: '920012'
3258
+ callId:
3259
+ type: string
3260
+ description: The call id associated with the event.
3261
+ example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
3262
+ transcriptionId:
3263
+ type: string
3264
+ description: The programmable voice API transcription ID.
3265
+ example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3266
+ tracks:
3267
+ type: array
3268
+ items:
3269
+ $ref: '#/components/schemas/callTranscription'
3270
+ example:
3271
+ - detectedLanguage: en-US
3272
+ track: inbound
3273
+ text: Hello World! This is an example.
3274
+ confidence: 0.9
3275
+ callTranscription:
3276
+ type: object
3277
+ properties:
3278
+ detectedLanguage:
3279
+ type: string
3280
+ enum:
3281
+ - en-US
3282
+ - es-US
3283
+ - fr-FR
3284
+ description: The detected language for this transcription.
3285
+ example: en-US
3286
+ track:
3287
+ type: string
3288
+ enum:
3289
+ - inbound
3290
+ - outbound
3291
+ description: Which `track` this transcription is derived from.
3292
+ example: inbound
3293
+ text:
3294
+ type: string
3295
+ description: The transcription itself.
3296
+ example: Hello World! This is an example.
3297
+ confidence:
3298
+ type: number
3299
+ format: double
3300
+ minimum: 0
3301
+ maximum: 1
3302
+ description: >-
3303
+ How confident the transcription engine was in transcribing the
3304
+ associated audio (from `0` to `1`).
3305
+ example: 0.9
3306
+ recordingTranscriptionMetadata:
3125
3307
  nullable: true
3126
3308
  type: object
3127
3309
  description: If the recording was transcribed, metadata about the transcription
@@ -3693,7 +3875,7 @@ components:
3693
3875
  fileFormat:
3694
3876
  $ref: '#/components/schemas/fileFormatEnum'
3695
3877
  channels:
3696
- $ref: '#/components/schemas/status'
3878
+ $ref: '#/components/schemas/channels'
3697
3879
  tag:
3698
3880
  $ref: '#/components/schemas/tag1'
3699
3881
  status:
@@ -4582,12 +4764,26 @@ components:
4582
4764
  schema:
4583
4765
  type: string
4584
4766
  format: binary
4767
+ getRecordingTranscriptionResponse:
4768
+ description: Transcription found.
4769
+ content:
4770
+ application/json:
4771
+ schema:
4772
+ $ref: '#/components/schemas/recordingTranscriptions'
4773
+ listTranscriptionsResponse:
4774
+ description: Transcription found.
4775
+ content:
4776
+ application/json:
4777
+ schema:
4778
+ $ref: '#/components/schemas/callTranscriptionMetadataList'
4585
4779
  getCallTranscriptionResponse:
4586
- description: Transcription found
4780
+ description: Transcription found.
4587
4781
  content:
4588
4782
  application/json:
4589
4783
  schema:
4590
- $ref: '#/components/schemas/transcriptionList'
4784
+ $ref: '#/components/schemas/callTranscriptionResponse'
4785
+ deleteCallTranscriptionResponse:
4786
+ description: Transcription data was deleted.
4591
4787
  listConferencesResponse:
4592
4788
  description: Conferences retrieved successfully
4593
4789
  content:
@@ -5090,6 +5286,14 @@ components:
5090
5286
  type: string
5091
5287
  description: Programmable Voice API Conference Member ID.
5092
5288
  example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
5289
+ transcriptionId:
5290
+ name: transcriptionId
5291
+ in: path
5292
+ required: true
5293
+ schema:
5294
+ type: string
5295
+ description: Programmable Voice API Transcription ID.
5296
+ example: t-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
5093
5297
  to:
5094
5298
  name: to
5095
5299
  in: query
@@ -5517,12 +5721,14 @@ components:
5517
5721
  Basic:
5518
5722
  type: http
5519
5723
  scheme: basic
5520
- description: |-
5724
+ description: >-
5521
5725
  Basic authentication is a simple authentication scheme built into the
5522
- HTTP protocol. To use it, send your HTTP requests with an Authorization
5523
- header that contains the word Basic followed by a space and a
5524
- base64-encoded string `username:password`Example: `Authorization: Basic
5525
- ZGVtbZpwQDU1dzByZA==`
5726
+ HTTP protocol. To use it, send your HTTP requests with an
5727
+ `Authorization` header that contains the word `Basic` followed by a
5728
+ space and a Base64-encoded string `username:password`.
5729
+
5730
+
5731
+ - Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
5526
5732
  callbacks:
5527
5733
  inboundCallback:
5528
5734
  '{inboundCallbackUrl}':
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "line": 96.11
3
+ "line": 96.21
4
4
  }
5
5
  }