#๐ regarding Jarvis
36 messages ยท Page 1 of 1 (latest)
@foggy hazel
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
!code
How does it begin listening and when does it think the sentence ended?
I would make sense the text comeing as a stream but idk if its implemented like that
It begins listening when I start the program
And ends listenin?
After some time further program get executed
Listening....
Understanding.....
Error.....
This goes in a loop
So the end of the listen is after x seconds?
Idk what the module offers but id have a list of words and always append the next word to it
If it doesn't receive a word in a while clear it
If it looks like a valid sentence/command execute it and clear it
What module u use for speach recognition?
!pypi Pyttsx3
Yes what to do?
Can u point to some docs? As far as i see it only says text doesn't read it
Found it u should use engine.connect onWord
Or whatever is explained in this docs
Under
Listening for events
Have a thread appending words to a list
And on the main thread see if the list contains a valid command
Of yes execute that command
Than list.clear()
On the thread when i receive a word take a timestamp
And on the main always checking thread check if the timestamp is older than 1m in wich case clear the list
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.