{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel/issues/80","repository_url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel","labels_url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel/issues/80/comments","events_url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel/issues/80/events","html_url":"https://github.com/openhab/org.openhab.ui.habpanel/issues/80","id":193367743,"number":80,"title":"Add support for Speech Recognition","user":{"login":"kubawolanin","id":2270505,"avatar_url":"https://avatars.githubusercontent.com/u/2270505?v=3","gravatar_id":"","url":"https://api.github.com/users/kubawolanin","html_url":"https://github.com/kubawolanin","followers_url":"https://api.github.com/users/kubawolanin/followers","following_url":"https://api.github.com/users/kubawolanin/following{/other_user}","gists_url":"https://api.github.com/users/kubawolanin/gists{/gist_id}","starred_url":"https://api.github.com/users/kubawolanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubawolanin/subscriptions","organizations_url":"https://api.github.com/users/kubawolanin/orgs","repos_url":"https://api.github.com/users/kubawolanin/repos","events_url":"https://api.github.com/users/kubawolanin/events{/privacy}","received_events_url":"https://api.github.com/users/kubawolanin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-04T18:54:34Z","updated_at":"2016-12-05T08:30:44Z","closed_at":null,"body":"Hello!\r\nI've been thinking about implementing speech recognition capability in HABPanel.\r\nI'm utilizing `webkitSpeechRecognition` for that (but may end up with [SpeechRecognition](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang))\r\nSo far I've managed to add an icon to the dashboard header and display the speech output on the top, like this:\r\n\r\n![speech](https://cloud.githubusercontent.com/assets/2270505/20868365/25a55da8-ba5a-11e6-8c9f-4ff6fe01a6fc.PNG)\r\n\r\nThe \"bullhorn\" icon is temporary - apparently bootstrap's Glyphicon collection doesn't have any microphone icon ;-)\r\n\r\nThe idea is to display the output text at the time of speaking - after the result is final, it should hide the `<span>` element containing the text and then pass the output to the `VoiceCommand` item in openHAB.\r\n\r\nNow two questions:\r\n1. Is it possible for me to get Voice Command Item (from the Rule Voice Interpreter setting)? Ideally, I'd like to retrieve it from REST, but couldn't find it.  If it's not possible, then we'd need our users to select it in Settings.\r\n2. @ghys would you mind me extending current `SpeechService` or you'd rather see it somewhere else? Currently I'm coding simple POC inside `dashboard.view.controller` but I'm thinking on better place for the logic.\r\n\r\nThank you,\r\nKuba"},"comment":{"url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel/issues/comments/264794266","html_url":"https://github.com/openhab/org.openhab.ui.habpanel/issues/80#issuecomment-264794266","issue_url":"https://api.github.com/repos/openhab/org.openhab.ui.habpanel/issues/80","id":264794266,"user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T08:30:44Z","updated_at":"2016-12-05T08:30:44Z","body":"1.) You should note that VoiceCommand is outdated by now, see [here](https://github.com/openhab/openhab.android/issues/242). So I would suggest to directly use the new REST endpoint (and you then do not have to rely on the existence of a specific icon).\r\n"}}
{"actor":{"display_login":"kaikreuzer"}}