Page 1 of 1

sending command programatically

Posted: Tue Mar 14, 2023 7:28 am
by milesstone
So typically one would do something like "hey google, what time is it" or "what is the weather. I was wondering if there was a way to do the same thing via code.

such as:

if event.type == EventType.ON_ALERT_STARTED:
do this thing ('what time is it")

so that everytime the eventype alert was triggered, I could initiate a command, as I would as if I was saying it.

Thanks much++

Re: sending command programatically

Posted: Wed Mar 15, 2023 5:57 am
by bfinio
Hi - this forum is for K-12 students using the Science Buddies Raspberry Pi Kit, which does not include a voice activation project. However, if you search online, you will find many Raspberry Pi voice assistant projects. You can also get more help in the official Raspberry Pi forums.