{"action":"created","issue":{"url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/issues/187","repository_url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk","labels_url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/issues/187/comments","events_url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/issues/187/events","html_url":"https://github.com/watson-developer-cloud/ios-sdk/pull/187","id":138455597,"number":187,"title":"Redesign Speech to Text","user":{"login":"glennrfisher","id":1957636,"avatar_url":"https://avatars.githubusercontent.com/u/1957636?v=3","gravatar_id":"","url":"https://api.github.com/users/glennrfisher","html_url":"https://github.com/glennrfisher","followers_url":"https://api.github.com/users/glennrfisher/followers","following_url":"https://api.github.com/users/glennrfisher/following{/other_user}","gists_url":"https://api.github.com/users/glennrfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/glennrfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennrfisher/subscriptions","organizations_url":"https://api.github.com/users/glennrfisher/orgs","repos_url":"https://api.github.com/users/glennrfisher/repos","events_url":"https://api.github.com/users/glennrfisher/events{/privacy}","received_events_url":"https://api.github.com/users/glennrfisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"glennrfisher","id":1957636,"avatar_url":"https://avatars.githubusercontent.com/u/1957636?v=3","gravatar_id":"","url":"https://api.github.com/users/glennrfisher","html_url":"https://github.com/glennrfisher","followers_url":"https://api.github.com/users/glennrfisher/followers","following_url":"https://api.github.com/users/glennrfisher/following{/other_user}","gists_url":"https://api.github.com/users/glennrfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/glennrfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennrfisher/subscriptions","organizations_url":"https://api.github.com/users/glennrfisher/orgs","repos_url":"https://api.github.com/users/glennrfisher/repos","events_url":"https://api.github.com/users/glennrfisher/events{/privacy}","received_events_url":"https://api.github.com/users/glennrfisher/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-03-04T11:47:40Z","updated_at":"2016-03-07T16:33:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/pulls/187","html_url":"https://github.com/watson-developer-cloud/ios-sdk/pull/187","diff_url":"https://github.com/watson-developer-cloud/ios-sdk/pull/187.diff","patch_url":"https://github.com/watson-developer-cloud/ios-sdk/pull/187.patch"},"body":"#### What's this PR do?\r\n\r\n- Speech to Text: Redesign the implementation to support more customizability and streaming audio.\r\n- Language Translation: Add a simpler translate method to translate a single string instead of an array.\r\n- Dependencies: Update Starscream to v1.0.2 and AlamofireObjectMapper to v2.1.3\r\n- Readme: Add information and examples for the updated Speech to Text implementation.\r\n\r\nIn addition, there are a number of small, internal code modifications that increase code quality.\r\n\r\n#### What Still Needs Work?\r\n\r\n- [ ] Add comprehensive tests for the new Speech to Text service.\r\n- [ ] Double-check the Speech to Text examples in the readme.\r\n\r\n#### Relevant Issues\r\n\r\n#168, #118"},"comment":{"url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/issues/comments/193334050","html_url":"https://github.com/watson-developer-cloud/ios-sdk/pull/187#issuecomment-193334050","issue_url":"https://api.github.com/repos/watson-developer-cloud/ios-sdk/issues/187","id":193334050,"user":{"login":"sinchan","id":924241,"avatar_url":"https://avatars.githubusercontent.com/u/924241?v=3","gravatar_id":"","url":"https://api.github.com/users/sinchan","html_url":"https://github.com/sinchan","followers_url":"https://api.github.com/users/sinchan/followers","following_url":"https://api.github.com/users/sinchan/following{/other_user}","gists_url":"https://api.github.com/users/sinchan/gists{/gist_id}","starred_url":"https://api.github.com/users/sinchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinchan/subscriptions","organizations_url":"https://api.github.com/users/sinchan/orgs","repos_url":"https://api.github.com/users/sinchan/repos","events_url":"https://api.github.com/users/sinchan/events{/privacy}","received_events_url":"https://api.github.com/users/sinchan/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T16:33:36Z","updated_at":"2016-03-07T16:33:36Z","body":"@glennrfisher I'm following the instructions in the new Readme. The Custom Capture Sessions using the `stt.createTranscriptionOutput` method doesn't seem like it's working at the moment. Looking at the code, it seems like you're never sending the 'start' message over the socket because `startStreaming` isn't called (`socket?.writeString(start)`). The inputs and outputs get added correctly, but I get the following error:\r\n\r\n> Error Domain=swift.SpeechToText Code=-1 \"Expected a JSON header message before receiving binary data.\" UserInfo={NSLocalizedDescription=Expected a JSON header message before receiving binary data.}\r\nError Domain=WebSocket Code=1011 \"connection closed by server\" UserInfo={NSLocalizedDescription=connection closed by server}"}}