{"action":"created","issue":{"url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/1","repository_url":"https://api.github.com/repos/Kitt-AI/snowboy","labels_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/1/comments","events_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/1/events","html_url":"https://github.com/Kitt-AI/snowboy/issues/1","id":154677056,"number":1,"title":"\"Alexa style\" continuous speech instruction","user":{"login":"mph070770","id":508539,"avatar_url":"https://avatars.githubusercontent.com/u/508539?v=3","gravatar_id":"","url":"https://api.github.com/users/mph070770","html_url":"https://github.com/mph070770","followers_url":"https://api.github.com/users/mph070770/followers","following_url":"https://api.github.com/users/mph070770/following{/other_user}","gists_url":"https://api.github.com/users/mph070770/gists{/gist_id}","starred_url":"https://api.github.com/users/mph070770/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mph070770/subscriptions","organizations_url":"https://api.github.com/users/mph070770/orgs","repos_url":"https://api.github.com/users/mph070770/repos","events_url":"https://api.github.com/users/mph070770/events{/privacy}","received_events_url":"https://api.github.com/users/mph070770/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-13T10:03:08Z","updated_at":"2016-05-16T00:56:06Z","closed_at":null,"body":"Hi - great software! \r\n\r\nI have your demo working with Ubuntu. What I'd like to do is detect the keyword in continuous speech in a similar way to the Amazon echo. Is that possible? For example, this:\r\n\r\n\"Alexa, turn on the lights\"\r\n\r\ninstead of\r\n\r\n\"Alexa\" [ding] \"turn on the lights\"\r\n\r\nIdeally, I'd also want to know where in the audio the keyword was spoken so that it can be removed from audio before I send it to an online engine (such as api.ai or AVS).\r\n\r\nAny suggestions would be great.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/comments/219326878","html_url":"https://github.com/Kitt-AI/snowboy/issues/1#issuecomment-219326878","issue_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/1","id":219326878,"user":{"login":"chenguoguo","id":11788179,"avatar_url":"https://avatars.githubusercontent.com/u/11788179?v=3","gravatar_id":"","url":"https://api.github.com/users/chenguoguo","html_url":"https://github.com/chenguoguo","followers_url":"https://api.github.com/users/chenguoguo/followers","following_url":"https://api.github.com/users/chenguoguo/following{/other_user}","gists_url":"https://api.github.com/users/chenguoguo/gists{/gist_id}","starred_url":"https://api.github.com/users/chenguoguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenguoguo/subscriptions","organizations_url":"https://api.github.com/users/chenguoguo/orgs","repos_url":"https://api.github.com/users/chenguoguo/repos","events_url":"https://api.github.com/users/chenguoguo/events{/privacy}","received_events_url":"https://api.github.com/users/chenguoguo/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T00:56:06Z","updated_at":"2016-05-16T00:56:06Z","body":"Re-opening this since there's on-going discussion... Let me write in more details.\r\n\r\n1. In order to remove the [ding] sound, you only have to modify the callback function as Xuchen said. You do not need another buffer. If your ASR server does online decoding, then you can start transmitting your audio data to the server right after the triggering of the hotword.\r\n\r\n2. You may need another buffer if:\r\n2.1. there is a delay in hotword detection. In this case, you need a buffer to keep some data before the triggering of the hotword, so that you will have a \"complete\" sentence for your ASR.\r\n2.2 your ASR server can only do offline decoding. In this case you need a buffer for the whole sentence after the triggering of the hotword. You will have to detect the end of the sentence (I can explain more on this if necessary), and then send the whole sentence to your ASR server (this may not be your case).\r\n\r\nDoes this solve your problem?\r\n"}}