polly-2016-06-10.min.json 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. {
  2. "version": "2.0",
  3. "metadata": {
  4. "apiVersion": "2016-06-10",
  5. "endpointPrefix": "polly",
  6. "protocol": "rest-json",
  7. "serviceFullName": "Amazon Polly",
  8. "serviceId": "Polly",
  9. "signatureVersion": "v4",
  10. "uid": "polly-2016-06-10"
  11. },
  12. "operations": {
  13. "DeleteLexicon": {
  14. "http": {
  15. "method": "DELETE",
  16. "requestUri": "/v1/lexicons/{LexiconName}",
  17. "responseCode": 200
  18. },
  19. "input": {
  20. "type": "structure",
  21. "required": [
  22. "Name"
  23. ],
  24. "members": {
  25. "Name": {
  26. "location": "uri",
  27. "locationName": "LexiconName"
  28. }
  29. }
  30. },
  31. "output": {
  32. "type": "structure",
  33. "members": {}
  34. }
  35. },
  36. "DescribeVoices": {
  37. "http": {
  38. "method": "GET",
  39. "requestUri": "/v1/voices",
  40. "responseCode": 200
  41. },
  42. "input": {
  43. "type": "structure",
  44. "members": {
  45. "Engine": {
  46. "location": "querystring",
  47. "locationName": "Engine"
  48. },
  49. "LanguageCode": {
  50. "location": "querystring",
  51. "locationName": "LanguageCode"
  52. },
  53. "IncludeAdditionalLanguageCodes": {
  54. "location": "querystring",
  55. "locationName": "IncludeAdditionalLanguageCodes",
  56. "type": "boolean"
  57. },
  58. "NextToken": {
  59. "location": "querystring",
  60. "locationName": "NextToken"
  61. }
  62. }
  63. },
  64. "output": {
  65. "type": "structure",
  66. "members": {
  67. "Voices": {
  68. "type": "list",
  69. "member": {
  70. "type": "structure",
  71. "members": {
  72. "Gender": {},
  73. "Id": {},
  74. "LanguageCode": {},
  75. "LanguageName": {},
  76. "Name": {},
  77. "AdditionalLanguageCodes": {
  78. "type": "list",
  79. "member": {}
  80. },
  81. "SupportedEngines": {
  82. "type": "list",
  83. "member": {}
  84. }
  85. }
  86. }
  87. },
  88. "NextToken": {}
  89. }
  90. }
  91. },
  92. "GetLexicon": {
  93. "http": {
  94. "method": "GET",
  95. "requestUri": "/v1/lexicons/{LexiconName}",
  96. "responseCode": 200
  97. },
  98. "input": {
  99. "type": "structure",
  100. "required": [
  101. "Name"
  102. ],
  103. "members": {
  104. "Name": {
  105. "location": "uri",
  106. "locationName": "LexiconName"
  107. }
  108. }
  109. },
  110. "output": {
  111. "type": "structure",
  112. "members": {
  113. "Lexicon": {
  114. "type": "structure",
  115. "members": {
  116. "Content": {
  117. "shape": "Sl"
  118. },
  119. "Name": {}
  120. }
  121. },
  122. "LexiconAttributes": {
  123. "shape": "Sm"
  124. }
  125. }
  126. }
  127. },
  128. "GetSpeechSynthesisTask": {
  129. "http": {
  130. "method": "GET",
  131. "requestUri": "/v1/synthesisTasks/{TaskId}",
  132. "responseCode": 200
  133. },
  134. "input": {
  135. "type": "structure",
  136. "required": [
  137. "TaskId"
  138. ],
  139. "members": {
  140. "TaskId": {
  141. "location": "uri",
  142. "locationName": "TaskId"
  143. }
  144. }
  145. },
  146. "output": {
  147. "type": "structure",
  148. "members": {
  149. "SynthesisTask": {
  150. "shape": "Sv"
  151. }
  152. }
  153. }
  154. },
  155. "ListLexicons": {
  156. "http": {
  157. "method": "GET",
  158. "requestUri": "/v1/lexicons",
  159. "responseCode": 200
  160. },
  161. "input": {
  162. "type": "structure",
  163. "members": {
  164. "NextToken": {
  165. "location": "querystring",
  166. "locationName": "NextToken"
  167. }
  168. }
  169. },
  170. "output": {
  171. "type": "structure",
  172. "members": {
  173. "Lexicons": {
  174. "type": "list",
  175. "member": {
  176. "type": "structure",
  177. "members": {
  178. "Name": {},
  179. "Attributes": {
  180. "shape": "Sm"
  181. }
  182. }
  183. }
  184. },
  185. "NextToken": {}
  186. }
  187. }
  188. },
  189. "ListSpeechSynthesisTasks": {
  190. "http": {
  191. "method": "GET",
  192. "requestUri": "/v1/synthesisTasks",
  193. "responseCode": 200
  194. },
  195. "input": {
  196. "type": "structure",
  197. "members": {
  198. "MaxResults": {
  199. "location": "querystring",
  200. "locationName": "MaxResults",
  201. "type": "integer"
  202. },
  203. "NextToken": {
  204. "location": "querystring",
  205. "locationName": "NextToken"
  206. },
  207. "Status": {
  208. "location": "querystring",
  209. "locationName": "Status"
  210. }
  211. }
  212. },
  213. "output": {
  214. "type": "structure",
  215. "members": {
  216. "NextToken": {},
  217. "SynthesisTasks": {
  218. "type": "list",
  219. "member": {
  220. "shape": "Sv"
  221. }
  222. }
  223. }
  224. }
  225. },
  226. "PutLexicon": {
  227. "http": {
  228. "method": "PUT",
  229. "requestUri": "/v1/lexicons/{LexiconName}",
  230. "responseCode": 200
  231. },
  232. "input": {
  233. "type": "structure",
  234. "required": [
  235. "Name",
  236. "Content"
  237. ],
  238. "members": {
  239. "Name": {
  240. "location": "uri",
  241. "locationName": "LexiconName"
  242. },
  243. "Content": {
  244. "shape": "Sl"
  245. }
  246. }
  247. },
  248. "output": {
  249. "type": "structure",
  250. "members": {}
  251. }
  252. },
  253. "StartSpeechSynthesisTask": {
  254. "http": {
  255. "requestUri": "/v1/synthesisTasks",
  256. "responseCode": 200
  257. },
  258. "input": {
  259. "type": "structure",
  260. "required": [
  261. "OutputFormat",
  262. "OutputS3BucketName",
  263. "Text",
  264. "VoiceId"
  265. ],
  266. "members": {
  267. "Engine": {},
  268. "LanguageCode": {},
  269. "LexiconNames": {
  270. "shape": "S12"
  271. },
  272. "OutputFormat": {},
  273. "OutputS3BucketName": {},
  274. "OutputS3KeyPrefix": {},
  275. "SampleRate": {},
  276. "SnsTopicArn": {},
  277. "SpeechMarkTypes": {
  278. "shape": "S15"
  279. },
  280. "Text": {},
  281. "TextType": {},
  282. "VoiceId": {}
  283. }
  284. },
  285. "output": {
  286. "type": "structure",
  287. "members": {
  288. "SynthesisTask": {
  289. "shape": "Sv"
  290. }
  291. }
  292. }
  293. },
  294. "SynthesizeSpeech": {
  295. "http": {
  296. "requestUri": "/v1/speech",
  297. "responseCode": 200
  298. },
  299. "input": {
  300. "type": "structure",
  301. "required": [
  302. "OutputFormat",
  303. "Text",
  304. "VoiceId"
  305. ],
  306. "members": {
  307. "Engine": {},
  308. "LanguageCode": {},
  309. "LexiconNames": {
  310. "shape": "S12"
  311. },
  312. "OutputFormat": {},
  313. "SampleRate": {},
  314. "SpeechMarkTypes": {
  315. "shape": "S15"
  316. },
  317. "Text": {},
  318. "TextType": {},
  319. "VoiceId": {}
  320. }
  321. },
  322. "output": {
  323. "type": "structure",
  324. "members": {
  325. "AudioStream": {
  326. "type": "blob",
  327. "streaming": true
  328. },
  329. "ContentType": {
  330. "location": "header",
  331. "locationName": "Content-Type"
  332. },
  333. "RequestCharacters": {
  334. "location": "header",
  335. "locationName": "x-amzn-RequestCharacters",
  336. "type": "integer"
  337. }
  338. },
  339. "payload": "AudioStream"
  340. }
  341. }
  342. },
  343. "shapes": {
  344. "Sl": {
  345. "type": "string",
  346. "sensitive": true
  347. },
  348. "Sm": {
  349. "type": "structure",
  350. "members": {
  351. "Alphabet": {},
  352. "LanguageCode": {},
  353. "LastModified": {
  354. "type": "timestamp"
  355. },
  356. "LexiconArn": {},
  357. "LexemesCount": {
  358. "type": "integer"
  359. },
  360. "Size": {
  361. "type": "integer"
  362. }
  363. }
  364. },
  365. "Sv": {
  366. "type": "structure",
  367. "members": {
  368. "Engine": {},
  369. "TaskId": {},
  370. "TaskStatus": {},
  371. "TaskStatusReason": {},
  372. "OutputUri": {},
  373. "CreationTime": {
  374. "type": "timestamp"
  375. },
  376. "RequestCharacters": {
  377. "type": "integer"
  378. },
  379. "SnsTopicArn": {},
  380. "LexiconNames": {
  381. "shape": "S12"
  382. },
  383. "OutputFormat": {},
  384. "SampleRate": {},
  385. "SpeechMarkTypes": {
  386. "shape": "S15"
  387. },
  388. "TextType": {},
  389. "VoiceId": {},
  390. "LanguageCode": {}
  391. }
  392. },
  393. "S12": {
  394. "type": "list",
  395. "member": {}
  396. },
  397. "S15": {
  398. "type": "list",
  399. "member": {}
  400. }
  401. }
  402. }