desktopAssistant | Desktop assistant that uses speech recognition | Speech library
kandi X-RAY | desktopAssistant Summary
kandi X-RAY | desktopAssistant Summary
Desktop assistant that uses speech recognition and gTTS to execute commands and talk back to the user.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Runs the assistant
- This function is used to recognize the audio
- Talk audio to me
- Returns the command string
- Talk audio
desktopAssistant Key Features
desktopAssistant Examples and Code Snippets
Community Discussions
Trending Discussions on desktopAssistant
QUESTION
I've been trying to build a speech-recognition
application with gtts
. What I want to do now is to use a variable from another python script so I can update a tk Label. I tried to put my code in a structure of a class to access the variable. I've added a smaller program to showcase my problem.
(These programs are ment to be running at the same time)
I'am a beginner in Python so I hope you guys can teach me how to do it better. :)
Thank you in advance!!
Error:
...ANSWER
Answered 2020-Aug-05 at 12:04SuperAssistent
does not have a class attribute named audio
. For this you would have to set it somewhere in your class. For example, you could do something like SuperAssistent.audio = audio
in talkToMe
.
Is it on purpose that you use class methods only and do not instantiate SuperAudio
? If that is not the case you should add a constructor and add self
as first arguments of all methods that are not class methods.
I suggest to go through an introduction for Python classes/objects like this one on w3schools if that is the case.
Here is an example for setting and accessing class and instance attributes with split up files for script and class definition:
example.py
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install desktopAssistant
You can use desktopAssistant like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page