Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Cloudspeech: Conversational (optional hotwords) #200

Closed
rkkautsar opened this issue Dec 19, 2017 · 2 comments
Closed

Cloudspeech: Conversational (optional hotwords) #200

rkkautsar opened this issue Dec 19, 2017 · 2 comments

Comments

@rkkautsar
Copy link
Contributor

In my project, I need to create a conversational bot, something like this:

  • Bot, put an alarm for me
  • OK, when will it be?
  • 7.00 AM will be fine

I want to do it with the hotword "bot" (without button trigger), but currently the transcript must include hotwords in order to be recognized. Is there any way to call the recognizer to immediately listens when called while still being able to listen to the hotword for initializing the conversation?

@drigz
Copy link
Member

drigz commented Jan 4, 2018

We don't have a way to do this ("follow-on queries" in the language of the Assistant SDK) with Cloud Speech or with Assistant gRPC at the moment. With the Assistant Library, it will only work for built-in follow-on queries (like "OK Google, hello" ... "Hi, what can I do for you?" ... "What's the weather?").

With Cloud Speech hotwording, you could try enabling and disabling the hotword depending on the previous query. Currently you'd have to access the private member (eg recognizer._hotwords = []) but if it's useful I'd accept a pull request to add an immediate=True parameter to recognizer.recognize().

Let us know how you get on!

@rkkautsar
Copy link
Contributor Author

Cool, I'll try submitting a PR for this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants