{"action":"created","issue":{"url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk/issues/21","repository_url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk","labels_url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk/issues/21/comments","events_url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk/issues/21/events","html_url":"https://github.com/watson-developer-cloud/speech-javascript-sdk/issues/21","id":183775117,"number":21,"title":"Browser Bug Fix - No activity times out after 5 secs","user":{"login":"silverbackis","id":4273584,"avatar_url":"https://avatars.githubusercontent.com/u/4273584?v=3","gravatar_id":"","url":"https://api.github.com/users/silverbackis","html_url":"https://github.com/silverbackis","followers_url":"https://api.github.com/users/silverbackis/followers","following_url":"https://api.github.com/users/silverbackis/following{/other_user}","gists_url":"https://api.github.com/users/silverbackis/gists{/gist_id}","starred_url":"https://api.github.com/users/silverbackis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverbackis/subscriptions","organizations_url":"https://api.github.com/users/silverbackis/orgs","repos_url":"https://api.github.com/users/silverbackis/repos","events_url":"https://api.github.com/users/silverbackis/events{/privacy}","received_events_url":"https://api.github.com/users/silverbackis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-18T19:04:54Z","updated_at":"2016-10-19T15:32:17Z","closed_at":null,"body":"I believe this SDK suffers with the same issue outlined here:\r\nhttps://support.mozilla.org/en-US/questions/984179\r\n\r\nWhere because some part of the audio stream needs to be global to stop the microphone from stopping automatically after a few seconds of inactivity.\r\n\r\nI've added to line 18:\r\n```js\r\nwindow.watsonAudioInput = [];\r\n```\r\n\r\nAnd changed:\r\n```js\r\nvar audioInput = context.createMediaStreamSource(stream);\r\n```\r\nto:\r\n```js\r\nvar audioInput = context.createMediaStreamSource(stream);\r\nwatsonAudioInput.push(audioInput);\r\n```\r\n\r\nNow the microphone will continue to record until you'd like it to stop, even if there is no sound input within the first few seconds."},"comment":{"url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk/issues/comments/254849608","html_url":"https://github.com/watson-developer-cloud/speech-javascript-sdk/issues/21#issuecomment-254849608","issue_url":"https://api.github.com/repos/watson-developer-cloud/speech-javascript-sdk/issues/21","id":254849608,"user":{"login":"nfriedly","id":114976,"avatar_url":"https://avatars.githubusercontent.com/u/114976?v=3","gravatar_id":"","url":"https://api.github.com/users/nfriedly","html_url":"https://github.com/nfriedly","followers_url":"https://api.github.com/users/nfriedly/followers","following_url":"https://api.github.com/users/nfriedly/following{/other_user}","gists_url":"https://api.github.com/users/nfriedly/gists{/gist_id}","starred_url":"https://api.github.com/users/nfriedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfriedly/subscriptions","organizations_url":"https://api.github.com/users/nfriedly/orgs","repos_url":"https://api.github.com/users/nfriedly/repos","events_url":"https://api.github.com/users/nfriedly/events{/privacy}","received_events_url":"https://api.github.com/users/nfriedly/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T15:32:17Z","updated_at":"2016-10-19T15:32:17Z","body":"Oh, it looks like Firefox finally fixed the bug where the microphone icon remained even after recording ended.. but now we have this one.\r\n\r\nThis week is pretty packed for me, but I'll try to look at this more next week. Feel free to send me a PR if you work this out before I do."}}
{"actor":{"display_login":"nfriedly"}}