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

Integrate with MyCroft skills #1843

Open
12people opened this issue Jul 23, 2020 · 2 comments
Open

Integrate with MyCroft skills #1843

12people opened this issue Jul 23, 2020 · 2 comments

Comments

@12people
Copy link

It'd be great if Firefox Voice could run the skills that MyCroft runs.
MyCroft's skills all appear to be open-source.

@ianb
Copy link
Contributor

ianb commented Jul 24, 2020

I believe MyCroft is running everything on a device with Python. So that's two barriers: a browser is... well, it's a device of its own, different than Linux. And it doesn't run Python (without a lot of work).

I think our emphasis is on routing things to web-based services. So if we could send an utterance to a MyCroft device, then that would be quite sensible. You'd need to configure your personal MyCroft device. But if MyCroft has a local web page where you can type in some text (or put it in the query string) then the configuration could be as simple as saying "this is my MyCroft page" with the appropriate page open.

That would open a second question: which phrases do we forward to MyCroft? The easy thing is to give the device a name and require the user to say "tell mycroft to [something]". We could also consider a configurable fallback service (Google is essentially our fallback service), but I doubt MyCroft would be useful that way – it doesn't handle random queries particularly well. The fanciest would be for MyCroft to either publish some phrases, or dynamically tell us if it thinks it can parse a phrase well. There's some danger there in MyCroft being greedy about handling phrases, but it would be an interesting question to try to figure out.

Lastly, we just take some of those skills and replicate them here. Whenever possible we'd like to forward things to a web-based service, though in some cases implementing something natively is helpful, for instance there's reasons for us to have native timers.

@lb803
Copy link

lb803 commented Aug 24, 2020

Someone on Mycroft forum asked how to submit utterances via api requests. Would this work for the present case?

RESTful API for questions to answers?

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

3 participants