Title: RESTClient does not support ULAW file upload · Issue #4 · attdevsupport/codekit-java · GitHub
Open Graph Title: RESTClient does not support ULAW file upload · Issue #4 · attdevsupport/codekit-java
X Title: RESTClient does not support ULAW file upload · Issue #4 · attdevsupport/codekit-java
Description: When attempting to use the speech API with a raw ULAW file (which is supported according to the API docs) the upload fails because the content type is not set: {"RequestError": { "ServiceException": { "MessageId": "SVC0002", "Text": "Inv...
Open Graph Description: When attempting to use the speech API with a raw ULAW file (which is supported according to the API docs) the upload fails because the content type is not set: {"RequestError": { "ServiceException"...
X Description: When attempting to use the speech API with a raw ULAW file (which is supported according to the API docs) the upload fails because the content type is not set: {"RequestError": { "Se...
Opengraph URL: https://github.com/attdevsupport/codekit-java/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RESTClient does not support ULAW file upload","articleBody":"When attempting to use the speech API with a raw ULAW file (which is supported according to the API docs) the upload fails because the content type is not set:\n\n```\n {\"RequestError\": {\n \"ServiceException\": {\n \"MessageId\": \"SVC0002\",\n \"Text\": \"Invalid input value for message part %1\" ,\n \"Variables\" : \"Content-Type\"}\n }}\n```\n\nLooking at RESTClient.java, it appears the client only checks for WAV, Ogg, and AMR file types and if it does not find one of those it leaves the content type as null. \n\nThere are two possible fixes for this - let the user override the content type when setting the source file in the SpeechService API, or update the logic in RESTClient.java to support setting the audio/raw mime types supported by the API. The only challenge would be detecting the rate and byteorder.\n","author":{"url":"https://github.com/matthewmgamble","@type":"Person","name":"matthewmgamble"},"datePublished":"2014-08-07T02:03:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/codekit-java/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2778e5dd-6dae-b982-3ba4-ab1a85447c4e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD84:3287BB:1973565:21958FD:69771110 |
| html-safe-nonce | 4eb05ef55722115f03e2cf74a10b0a9ac958b1d2d89bae1be53f3b194b22717a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDg0OjMyODdCQjoxOTczNTY1OjIxOTU4RkQ6Njk3NzExMTAiLCJ2aXNpdG9yX2lkIjoiNzczNjIwNDkzMDUyMzI3MTQ0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6ba653ec8687d77e4f1047a6eb6a6e3850105de1a41e739150b86eaca1015312 |
| hovercard-subject-tag | issue:39684714 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/attdevsupport/codekit-java/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee83038254c38ef62edb963103d6fa0b1447a8f29a64fe1d6452f917187d1916/attdevsupport/codekit-java/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee83038254c38ef62edb963103d6fa0b1447a8f29a64fe1d6452f917187d1916/attdevsupport/codekit-java/issues/4 |
| og:image:alt | When attempting to use the speech API with a raw ULAW file (which is supported according to the API docs) the upload fails because the content type is not set: {"RequestError": { "ServiceException"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthewmgamble |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/attdevsupport/codekit-java git https://github.com/attdevsupport/codekit-java.git |
| octolytics-dimension-user_id | 918803 |
| octolytics-dimension-user_login | attdevsupport |
| octolytics-dimension-repository_id | 15597483 |
| octolytics-dimension-repository_nwo | attdevsupport/codekit-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15597483 |
| octolytics-dimension-repository_network_root_nwo | attdevsupport/codekit-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width