Title: speechToText needs to specify binary mode · Issue #1 · attdevsupport/codekit-ruby · GitHub
Open Graph Title: speechToText needs to specify binary mode · Issue #1 · attdevsupport/codekit-ruby
X Title: speechToText needs to specify binary mode · Issue #1 · attdevsupport/codekit-ruby
Description: in the implementation of of speechToText, it currently reads from the audio file like so: filecontents = File.read(file) This works on Ruby 1.8, which assumes binary mode. It fails on Ruby 1.9 and later, because you have to explicitly sp...
Open Graph Description: in the implementation of of speechToText, it currently reads from the audio file like so: filecontents = File.read(file) This works on Ruby 1.8, which assumes binary mode. It fails on Ruby 1.9 and ...
X Description: in the implementation of of speechToText, it currently reads from the audio file like so: filecontents = File.read(file) This works on Ruby 1.8, which assumes binary mode. It fails on Ruby 1.9 and ...
Opengraph URL: https://github.com/attdevsupport/codekit-ruby/issues/1
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"speechToText needs to specify binary mode","articleBody":"in the implementation of of speechToText, it currently reads from the audio file like so:\n\n```\nfilecontents = File.read(file)\n```\n\nThis works on Ruby 1.8, which assumes binary mode. It fails on Ruby 1.9 and later, because you have to explicitly specify binary mode:\n\n```\nfilecontents = File.read(file, :mode =\u003e 'rb')\n```\n\nThe symptom of the failure is that it only gets the first 8000 or so bytes of the audio file, which is enough to get processed by the back-end, but generally not enough to be properly recognized and converted to text.\n","author":{"url":"https://github.com/BruceWilliams","@type":"Person","name":"BruceWilliams"},"datePublished":"2014-01-23T20:29:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/codekit-ruby/issues/1"}
| 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:6cd81e20-a10a-7f47-710d-48a509d8ed9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E960:20FD81:92552D9:BCED802:6976F670 |
| html-safe-nonce | 861db09febed09c0ab93e95d16d162033047e48f5c8c94cb1670c7592bd1552c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTYwOjIwRkQ4MTo5MjU1MkQ5OkJDRUQ4MDI6Njk3NkY2NzAiLCJ2aXNpdG9yX2lkIjoiNDU4NzE4MzI5MTkwMjY1NDA2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e112c205667c694f60cb3d87d6055727cf69599609276fa77113168bcc4804a |
| hovercard-subject-tag | issue:26195766 |
| 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-ruby/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ded25df16c418c62518f28a79e6ccfee679cfd2987d2b58700db398d50cc0afb/attdevsupport/codekit-ruby/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ded25df16c418c62518f28a79e6ccfee679cfd2987d2b58700db398d50cc0afb/attdevsupport/codekit-ruby/issues/1 |
| og:image:alt | in the implementation of of speechToText, it currently reads from the audio file like so: filecontents = File.read(file) This works on Ruby 1.8, which assumes binary mode. It fails on Ruby 1.9 and ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BruceWilliams |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/attdevsupport/codekit-ruby git https://github.com/attdevsupport/codekit-ruby.git |
| octolytics-dimension-user_id | 918803 |
| octolytics-dimension-user_login | attdevsupport |
| octolytics-dimension-repository_id | 15597418 |
| octolytics-dimension-repository_nwo | attdevsupport/codekit-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15597418 |
| octolytics-dimension-repository_network_root_nwo | attdevsupport/codekit-ruby |
| 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