#๐Ÿ”’ regarding Jarvis

36 messages ยท Page 1 of 1 (latest)

foggy hazel
#

I want to make my Jarvis keep listening until I give a command how to do it ?

celest wyvernBOT
#

@foggy hazel

Python help channel opened

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.

abstract sable
#

!code

celest wyvernBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

abstract sable
#

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

foggy hazel
#

It begins listening when I start the program

abstract sable
foggy hazel
#

After some time further program get executed

#

Listening....

#

Understanding.....

#

Error.....

#

This goes in a loop

abstract sable
foggy hazel
#

Yes

#

I want it to keep listening until I give command

abstract sable
#

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?

foggy hazel
#

Speech recognition

#

Pyttsx3

abstract sable
#

!pypi Pyttsx3

celest wyvernBOT
#

Text to Speech (TTS) library for Python 2 and 3. Works without internet connection or delay. Supports multiple TTS engines, including Sapi5, nsss, and espeak.

Released on <t:1594057633:D>.

foggy hazel
#

Yes what to do?

abstract sable
#

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

celest wyvernBOT
#
Python help channel closed

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.