|
| 1 | +{ |
| 2 | + "version":"2.0", |
| 3 | + "metadata":{ |
| 4 | + "apiVersion":"2017-10-26", |
| 5 | + "endpointPrefix":"transcribestreaming", |
| 6 | + "protocol":"rest-json", |
| 7 | + "protocolSettings":{"h2":"eventstream"}, |
| 8 | + "serviceFullName":"Amazon Transcribe Streaming Service", |
| 9 | + "serviceId":"Transcribe Streaming", |
| 10 | + "signatureVersion":"v4", |
| 11 | + "signingName":"transcribe", |
| 12 | + "uid":"transcribe-streaming-2017-10-26" |
| 13 | + }, |
| 14 | + "operations":{ |
| 15 | + "StartStreamTranscription":{ |
| 16 | + "name":"StartStreamTranscription", |
| 17 | + "http":{ |
| 18 | + "method":"POST", |
| 19 | + "requestUri":"/stream-transcription" |
| 20 | + }, |
| 21 | + "input":{"shape":"StartStreamTranscriptionRequest"}, |
| 22 | + "output":{"shape":"StartStreamTranscriptionResponse"}, |
| 23 | + "errors":[ |
| 24 | + {"shape":"BadRequestException"}, |
| 25 | + {"shape":"LimitExceededException"}, |
| 26 | + {"shape":"InternalFailureException"}, |
| 27 | + {"shape":"ConflictException"} |
| 28 | + ] |
| 29 | + } |
| 30 | + }, |
| 31 | + "shapes":{ |
| 32 | + "Alternative":{ |
| 33 | + "type":"structure", |
| 34 | + "members":{ |
| 35 | + "Transcript":{"shape":"String"}, |
| 36 | + "Items":{"shape":"ItemList"} |
| 37 | + } |
| 38 | + }, |
| 39 | + "AlternativeList":{ |
| 40 | + "type":"list", |
| 41 | + "member":{"shape":"Alternative"} |
| 42 | + }, |
| 43 | + "AudioChunk":{"type":"blob"}, |
| 44 | + "AudioEvent":{ |
| 45 | + "type":"structure", |
| 46 | + "members":{ |
| 47 | + "AudioChunk":{ |
| 48 | + "shape":"AudioChunk", |
| 49 | + "eventpayload":true |
| 50 | + } |
| 51 | + }, |
| 52 | + "event":true |
| 53 | + }, |
| 54 | + "AudioStream":{ |
| 55 | + "type":"structure", |
| 56 | + "members":{ |
| 57 | + "AudioEvent":{"shape":"AudioEvent"} |
| 58 | + }, |
| 59 | + "eventstream":true |
| 60 | + }, |
| 61 | + "BadRequestException":{ |
| 62 | + "type":"structure", |
| 63 | + "members":{ |
| 64 | + "Message":{"shape":"String"} |
| 65 | + }, |
| 66 | + "error":{"httpStatusCode":400}, |
| 67 | + "exception":true |
| 68 | + }, |
| 69 | + "Boolean":{"type":"boolean"}, |
| 70 | + "ConflictException":{ |
| 71 | + "type":"structure", |
| 72 | + "members":{ |
| 73 | + "Message":{"shape":"String"} |
| 74 | + }, |
| 75 | + "error":{"httpStatusCode":409}, |
| 76 | + "exception":true |
| 77 | + }, |
| 78 | + "Double":{"type":"double"}, |
| 79 | + "InternalFailureException":{ |
| 80 | + "type":"structure", |
| 81 | + "members":{ |
| 82 | + "Message":{"shape":"String"} |
| 83 | + }, |
| 84 | + "error":{"httpStatusCode":500}, |
| 85 | + "exception":true, |
| 86 | + "fault":true |
| 87 | + }, |
| 88 | + "Item":{ |
| 89 | + "type":"structure", |
| 90 | + "members":{ |
| 91 | + "StartTime":{"shape":"Double"}, |
| 92 | + "EndTime":{"shape":"Double"}, |
| 93 | + "Type":{"shape":"ItemType"}, |
| 94 | + "Content":{"shape":"String"} |
| 95 | + } |
| 96 | + }, |
| 97 | + "ItemList":{ |
| 98 | + "type":"list", |
| 99 | + "member":{"shape":"Item"} |
| 100 | + }, |
| 101 | + "ItemType":{ |
| 102 | + "type":"string", |
| 103 | + "enum":[ |
| 104 | + "pronunciation", |
| 105 | + "punctuation" |
| 106 | + ] |
| 107 | + }, |
| 108 | + "LanguageCode":{ |
| 109 | + "type":"string", |
| 110 | + "enum":[ |
| 111 | + "en-US", |
| 112 | + "en-GB", |
| 113 | + "es-US", |
| 114 | + "fr-CA", |
| 115 | + "fr-FR", |
| 116 | + "en-AU" |
| 117 | + ] |
| 118 | + }, |
| 119 | + "LimitExceededException":{ |
| 120 | + "type":"structure", |
| 121 | + "members":{ |
| 122 | + "Message":{"shape":"String"} |
| 123 | + }, |
| 124 | + "error":{"httpStatusCode":429}, |
| 125 | + "exception":true |
| 126 | + }, |
| 127 | + "MediaEncoding":{ |
| 128 | + "type":"string", |
| 129 | + "enum":["pcm"] |
| 130 | + }, |
| 131 | + "MediaSampleRateHertz":{ |
| 132 | + "type":"integer", |
| 133 | + "max":48000, |
| 134 | + "min":8000 |
| 135 | + }, |
| 136 | + "RequestId":{"type":"string"}, |
| 137 | + "Result":{ |
| 138 | + "type":"structure", |
| 139 | + "members":{ |
| 140 | + "ResultId":{"shape":"String"}, |
| 141 | + "StartTime":{"shape":"Double"}, |
| 142 | + "EndTime":{"shape":"Double"}, |
| 143 | + "IsPartial":{"shape":"Boolean"}, |
| 144 | + "Alternatives":{"shape":"AlternativeList"} |
| 145 | + } |
| 146 | + }, |
| 147 | + "ResultList":{ |
| 148 | + "type":"list", |
| 149 | + "member":{"shape":"Result"} |
| 150 | + }, |
| 151 | + "SessionId":{ |
| 152 | + "type":"string", |
| 153 | + "pattern":"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" |
| 154 | + }, |
| 155 | + "StartStreamTranscriptionRequest":{ |
| 156 | + "type":"structure", |
| 157 | + "required":[ |
| 158 | + "LanguageCode", |
| 159 | + "MediaSampleRateHertz", |
| 160 | + "MediaEncoding", |
| 161 | + "AudioStream" |
| 162 | + ], |
| 163 | + "members":{ |
| 164 | + "LanguageCode":{ |
| 165 | + "shape":"LanguageCode", |
| 166 | + "location":"header", |
| 167 | + "locationName":"x-amzn-transcribe-language-code" |
| 168 | + }, |
| 169 | + "MediaSampleRateHertz":{ |
| 170 | + "shape":"MediaSampleRateHertz", |
| 171 | + "location":"header", |
| 172 | + "locationName":"x-amzn-transcribe-sample-rate" |
| 173 | + }, |
| 174 | + "MediaEncoding":{ |
| 175 | + "shape":"MediaEncoding", |
| 176 | + "location":"header", |
| 177 | + "locationName":"x-amzn-transcribe-media-encoding" |
| 178 | + }, |
| 179 | + "VocabularyName":{ |
| 180 | + "shape":"VocabularyName", |
| 181 | + "location":"header", |
| 182 | + "locationName":"x-amzn-transcribe-vocabulary-name" |
| 183 | + }, |
| 184 | + "SessionId":{ |
| 185 | + "shape":"SessionId", |
| 186 | + "location":"header", |
| 187 | + "locationName":"x-amzn-transcribe-session-id" |
| 188 | + }, |
| 189 | + "AudioStream":{"shape":"AudioStream"} |
| 190 | + }, |
| 191 | + "payload":"AudioStream" |
| 192 | + }, |
| 193 | + "StartStreamTranscriptionResponse":{ |
| 194 | + "type":"structure", |
| 195 | + "members":{ |
| 196 | + "RequestId":{ |
| 197 | + "shape":"RequestId", |
| 198 | + "location":"header", |
| 199 | + "locationName":"x-amzn-request-id" |
| 200 | + }, |
| 201 | + "LanguageCode":{ |
| 202 | + "shape":"LanguageCode", |
| 203 | + "location":"header", |
| 204 | + "locationName":"x-amzn-transcribe-language-code" |
| 205 | + }, |
| 206 | + "MediaSampleRateHertz":{ |
| 207 | + "shape":"MediaSampleRateHertz", |
| 208 | + "location":"header", |
| 209 | + "locationName":"x-amzn-transcribe-sample-rate" |
| 210 | + }, |
| 211 | + "MediaEncoding":{ |
| 212 | + "shape":"MediaEncoding", |
| 213 | + "location":"header", |
| 214 | + "locationName":"x-amzn-transcribe-media-encoding" |
| 215 | + }, |
| 216 | + "VocabularyName":{ |
| 217 | + "shape":"VocabularyName", |
| 218 | + "location":"header", |
| 219 | + "locationName":"x-amzn-transcribe-vocabulary-name" |
| 220 | + }, |
| 221 | + "SessionId":{ |
| 222 | + "shape":"SessionId", |
| 223 | + "location":"header", |
| 224 | + "locationName":"x-amzn-transcribe-session-id" |
| 225 | + }, |
| 226 | + "TranscriptResultStream":{"shape":"TranscriptResultStream"} |
| 227 | + }, |
| 228 | + "payload":"TranscriptResultStream" |
| 229 | + }, |
| 230 | + "String":{"type":"string"}, |
| 231 | + "Transcript":{ |
| 232 | + "type":"structure", |
| 233 | + "members":{ |
| 234 | + "Results":{"shape":"ResultList"} |
| 235 | + } |
| 236 | + }, |
| 237 | + "TranscriptEvent":{ |
| 238 | + "type":"structure", |
| 239 | + "members":{ |
| 240 | + "Transcript":{"shape":"Transcript"} |
| 241 | + }, |
| 242 | + "event":true |
| 243 | + }, |
| 244 | + "TranscriptResultStream":{ |
| 245 | + "type":"structure", |
| 246 | + "members":{ |
| 247 | + "TranscriptEvent":{"shape":"TranscriptEvent"}, |
| 248 | + "BadRequestException":{"shape":"BadRequestException"}, |
| 249 | + "LimitExceededException":{"shape":"LimitExceededException"}, |
| 250 | + "InternalFailureException":{"shape":"InternalFailureException"}, |
| 251 | + "ConflictException":{"shape":"ConflictException"} |
| 252 | + }, |
| 253 | + "eventstream":true |
| 254 | + }, |
| 255 | + "VocabularyName":{ |
| 256 | + "type":"string", |
| 257 | + "max":200, |
| 258 | + "min":1, |
| 259 | + "pattern":"^[0-9a-zA-Z._-]+" |
| 260 | + } |
| 261 | + } |
| 262 | +} |
0 commit comments