Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Allow jasper to execute commands while passive listening? #502

Closed
dmbuchta opened this issue May 5, 2016 · 6 comments
Closed

Comments

@dmbuchta
Copy link

dmbuchta commented May 5, 2016

Has there been any thought about allowing Jasper to execute a command at the same time as hearing his name. Instead of:

Me: Jasper
High Beep
Me: What time is it?
Low Beep

It could be:
Me: Jasper what time is it?
Low Beep (if valid)
High Beep (if not valid)

@G10DRAS
Copy link

G10DRAS commented May 7, 2016

This is possible but its not straight forward, need changes in Jasper code. And with such implementation, there is a possibility of spamming STT (if you are using online services) with garbage requests.

@dmbuchta
Copy link
Author

dmbuchta commented May 7, 2016

Well STT gets spammed regardless since Jasper is always listening for the keyword "Jasper", is it not?

@dmbuchta
Copy link
Author

dmbuchta commented May 7, 2016

If that's incorrect than please let me know because that's another issue I'm trying to deal with.

@G10DRAS
Copy link

G10DRAS commented May 8, 2016

You can configure Jasper with 2 STT.

  1. stt_passive_engine ---> usually offline STT Pocketsphinx, for Keyword (ex: 'JASPER') detection
  2. stt_engine ----> An Offline or Online STT, for handling phrases/commands

A sample configuration in profile.yml

stt_engine: google   
stt_passive_engine: sphinx
pocketsphinx:
  fst_model: <path_to_fst_model>
  hmm_dir: <path_to_hmm_dir>

So your example above will looks like

Me: Jasper -----> ( This part will handle by stt_passive_engine)
High Beep
Me: What time is it? ------> (This part will handle by stt_engine)
Low Beep

See stt_passive_engine implementation part in jasper.py

    try:
        slug = self.config['stt_passive_engine']
        stt_passive_engine_class = stt.get_engine_by_slug(slug)
    except KeyError:
        stt_passive_engine_class = stt_engine_class

@dmbuchta
Copy link
Author

dmbuchta commented May 8, 2016

ahhhh, I never noticed this. Thanks! This will definitely help.

@dmbuchta dmbuchta closed this as completed May 8, 2016
@andweber
Copy link

andweber commented May 8, 2016

just as reference, there is a pull request for this topic: #434

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

No branches or pull requests

3 participants