Giter Club home page Giter Club logo

stephanie-va's Introduction

Stephanie

Main Website / Demo / Documentation / Usage / Modules / Developer Guide / Slides

note: Consider joining the official slack community to discuss more about Stephanie-VA at: Slack Link

Stephanie is an open-source platform built specifically for voice-controlled applications as well as to automate daily tasks imitating much of a virtual assistant's work.

To learn more, head to Stephanie, which has nicely formatted guides for installation, configuration, usages, etc. along with the extensive documentation.

Getting Started

Linux

  • Install portaudio: sudo apt-get install portaudio19-dev
  • Install python 3
  • Install python pip: sudo apt-get install python3-pip
  • Install required libraries python3 install.py
  • Add API keys to config.ini
  • Run python3 Index.py

Support

If you run into an issue or require technical support, please first look through the closed and open GitHub Issues, as you may find a solution there (or some useful advice, at least).

If you're still having trouble, the next place to look would be the new Subreddit Stephanie, as well as Quora Stephanie. If your problem even still remains unsolved, contact me personally through a message on any of social networks like facebook, Quora, Reddit. (Not too sure about facebook because of their spam filter, so consider quora or reddit as first choice.)

Contact

If you are looking for just a casual conversation about Stephanie or anything related to bugs/feedback or just anything, contact me through social network links like facebook, Quora, Reddit, whereas for any formal enquiries or serious discussion consider dropping me a mail at [email protected]

Sounder Algorithm

The brain of the Stephanie is an algorithm which predicts the intent through a speech converted text, to know more about it's internal API and the algorithm itself check the paper and the library present here at Sounder which is completely open-source.

3rd Party Modules

Created your very own 3rd Party Module and want to share it with the community? Share it here at Subreddit Stephanie so that we could verify it as legit and showcase it in our main website.

License

Copyright (c) 2017 Ujjwal Gupta. All rights reserved.

Stephanie is covered by the MIT license, a permissive free software license that lets you do anything you want with the source code, as long as you provide back attribution and "don't hold [us] liable". For the full license text see the LICENSE.md file.

As well as I am not accounted for any 3rd Party Module Installations, so make sure they are legit before installing it, as I will not be liable for any kind of damage in terms of virus/data leak or whatnot.

stephanie-va's People

Contributors

bhageena avatar j-tt avatar jeremyarussell avatar nesh108 avatar slapbot avatar tsekylekobie avatar vpn1997 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stephanie-va's Issues

Cannot install

root@DietPi:~/stephanie-va# python3 install.py 
Setting up... Please wait...
install.py:48: DeprecationWarning: Deprecated since Python 3.4. Use importlib.util.find_spec() instead.
  module_status = importlib.find_loader(module_name)
sounder module is being installed...
Traceback (most recent call last):
  File "install.py", line 61, in <module>
    i.set_up()
  File "install.py", line 35, in set_up
    install_status = self.install_module(module)
  File "install.py", line 55, in install_module
    status = pip.main(['install', module_name])
AttributeError: module 'pip' has no attribute 'main' 

I am running this on my Raspberry Pi 1 B+

Always Awake flag not working properly

It appears that Stephanie isn't able to reliably detect audio after an extended period of time, and intermittently wakes up again, beeps for a voice prompt, and then doesn't detect audio properly. always_on_engine in config.ini is set to False.

initialised
modules retreived.
Stephanie is on and loading, wait for the beep sound to give your command.
Give me your command!
Your command is my order!
Google Speech Recognition could not understand audio
Give me your command!
Your command is my order!
Google Speech Recognition could not understand audio
Give me your command!
Your command is my order!
Google Speech Recognition could not understand audio
Give me your command!
Your command is my order!
Google Speech Recognition could not understand audio
Give me your command!

This is an average result of having Stephanie open in the background while working, with roughly half of the Google Speech Recognition errors being from attempts to issue a voice command when prompted by the beep.

Unable to output audio on Arch Linux

Running Arch Linux (64bit). Python 3.6.1 is installed.

ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
Default Audio Player for mp3 files is not set up, like vlc or something.

ALSA Is installed (info)

Error in loading Google_Cloud credentials

Hi,

This is a bug or error, maybe.
This line passes the key as json file. And therefore speech_recognition generates an exception, which expects JSON.

Machine: Windows 8.1, Python 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\work\Voice2.py", line 35, in run
b.initiate()
File "C:\work\Stephanie\boot.py", line 63, in initiate
assistant.main(source)
File "C:\work\Stephanie\virtual_assistant.py", line 12, in main
text = self.get_text_from_speech(audio)
File "C:\work\Stephanie\commander.py", line 19, in get_text_from_speec
h
text = self.audio_manager.get_text_from_speech(audio)
File "C:\work\Stephanie\AudioManager\audio_manager.py", line 25, in ge
t_text_from_speech
text = self.audio_recognizer.recognize_from_google_cloud(audio)
File "C:\work\Stephanie\AudioManager\audio_recognizer.py", line 52, in
recognize_from_google_cloud
credentials_json=google_cloud_speech_credentials)
File "C:\Program Files\Python36\lib\site-packages\speech_recognition_init_.
py", line 784, in recognize_google_cloud
except: raise AssertionError("credentials_json must be None or a val
id JSON string")
AssertionError: credentials_json must be None or a valid JSON string

Potential dependency conflicts between stephanie-va and urllib3

Hi, stephanie-va directly and transitively introduced multiple versions of urllib3.

As shown in the following full dependency graph of stephanie-va, stephanie-va requires urllib3 (the latest version), while the installed version of requests(2.22.0) requires urllib3>=1.21.1,<1.26.

According to Pip's “first found wins” installation strategy, urllib3 1.25.3 is the actually installed version.

Although the first found package version urllib3 1.25.3 just satisfies the later dependency constraint (urllib3>=1.21.1,<1.26), it will lead to a build failure once developers release a newer version of urllib3.

Dependency tree--------

stephanie-va(version range:)
| +-apiclient(version range:)
| | +-urllib3(version range:)
| | +-certifi(version range:)
| +-evernote3(version range:)
| +-eyed3(version range:)
| +-facebook-sdk(version range:)
| +-gtts(version range:)
| +-gtts-token(version range:)
| | +-requests(version range:)
| | | +-chardet(version range:>=3.0.2,<3.1.0)
| | | +-idna(version range:>=2.5,<2.9)
| | | +-urllib3(version range:>=1.21.1,<1.26)
| | | +-certifi(version range:>=2017.4.17)
| +-httplib2(version range:)
| +-metaphone(version range:)
| +-newsapi(version range:)
| +-oauth2client(version range:)
| | +-httplib2(version range:>=0.9.1)
| | +-pyasn1(version range:>=0.1.7)
| | +-pyasn1-modules(version range:>=0.0.5)
| | +-rsa(version range:>=3.1.4)
| | +-six(version range:>=1.6.1)
| +-omdb(version range:)
| +-psutil(version range:)
| +-pyaudio(version range:)
| +-pyball(version range:)
| +-pydispatcher(version range:)
| +-pygame(version range:)
| +-pyowm(version range:)
| | +-requests(version range:>=2.20.0,<3)
| | | +-chardet(version range:>=3.0.2,<3.1.0)
| | | +-idna(version range:>=2.5,<2.9)
| | | +-urllib3(version range:>=1.21.1,<1.26)
| | | +-certifi(version range:>=2017.4.17)
| | +-geojson(version range:>=2.3.0,<3)
| +-python-dateutil(version range:)
| +-python-magic-bin(version range:==0.4.14)
| +-pytz(version range:)
| +-requests(version range:)
| | +-chardet(version range:>=3.0.2,<3.1.0)
| | +-idna(version range:>=2.5,<2.9)
| | +-urllib3(version range:>=1.21.1,<1.26)
| | +-certifi(version range:>=2017.4.17)
| +-soccerpy(version range:)
| +-sounder(version range:)
| +-speechrecognition(version range:)
| +-tweepy(version range:)
| | +-PySocks(version range:>=1.5.7)
| | +-requests(version range:>=2.11.1)
| | | +-chardet(version range:>=3.0.2,<3.1.0)
| | | +-idna(version range:>=2.5,<2.9)
| | | +-urllib3(version range:>=1.21.1,<1.26)
| | | +-certifi(version range:>=2017.4.17)
| | +-requests_oauthlib(version range:>=0.7.0)
| | +-six(version range:>=1.10.0)
| +-urllib3(version range:)

Thanks for your attention.
Best,
Neolith

Stephanie default voice

I've just discovered Stephanie, and am very pleased, however, there is one point that annoys me.

The default voice is horrible.

I know python, but I can' find where in your code you generate your mp3 file. I think that there should:

  • Be a item in config.ini
  • Be a variable in one of the top level files.

Other than this issue, I am very happy with Stephanie.
Thanks in advance.

Make project name gender neutral

Great idea to make a virtual assistant platform as an open source project. No question about that.
But since the project is still in an early stage, there is a design decision that needs to be addressed as soon as possible: the name of the project.

Here is some articles that explain in detail the issue:

The name should be gender neutral, and so to make it easy to transition the project, I'm suggesting to shorten it to "Steph" or "Stef". (This is usually the way french speakers shorten the first names like Stephanie or Stephane)

Maybe, it would also be nice if the user could choose which name to give the assistant. So that some of us can call it "HAL" or "Computer". But at this point, I think renaming the project is the first necessary step.

ImportError: failed to find libmagic (WINDOWS)

I realize this is a repeat of #29, but the issue still occurs and I can't find a way to fix it on Windows via PowerShell.

PS C:\stephanie-va> python index.py
initialised
modules retreived.
Traceback (most recent call last):
  File "index.py", line 1, in <module>
    from Stephanie.boot import Boot
  File "C:\stephanie-va\Stephanie\boot.py", line 2, in <module>
    from Stephanie.activity import Activity
  File "C:\stephanie-va\Stephanie\activity.py", line 2, in <module>
    from Stephanie.commander import Commander
  File "C:\stephanie-va\Stephanie\commander.py", line 1, in <module>
    from Stephanie.AudioManager.audio_manager import AudioManager
  File "C:\stephanie-va\Stephanie\AudioManager\audio_manager.py", line 1, in <module>
    from Stephanie.AudioManager.audio_getter import AudioGetter
  File "C:\stephanie-va\Stephanie\AudioManager\audio_getter.py", line 3, in <module>
    from Stephanie.TextManager.speaker import Speaker
  File "C:\stephanie-va\Stephanie\TextManager\speaker.py", line 2, in <module>
    import eyed3
  File "C:\Users\Cash\AppData\Local\Programs\Python\Python36-32\lib\site-packages\eyed3\__init__.py", line 35, in <module>
    from .utils.log import log                                            # noqa
  File "C:\Users\Cash\AppData\Local\Programs\Python\Python36-32\lib\site-packages\eyed3\utils\__init__.py", line 27, in <module>
    import magic
  File "C:\Users\Cash\AppData\Local\Programs\Python\Python36-32\lib\site-packages\magic.py", line 181, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

I tried pip install libmagic, which installed libmagic, but did not fix the problem when running python index.py.

Features Roadmap?

Hey @SlapBot,

I was wondering if you had some sort of Feature Roadmap that you could share. That would make it easier to be focusing on the tasks which can help move the project forward.

Out of my own experience with using Stephanie, here is a list of improvements/features that could do the project some good:

  • Standardize and unify error reporting: having specific error codes and useful descriptions.
  • Improve UX: the setup, together with the actual usage of Stephanie should get some focused love in order to make things smoother for the user.
  • Add GUI: At the moment it is all terminal based, we should definitely get started with implementing a GUI, moving us away from a simple script and getting closer to an actual application.
  • Improve adding modules: At the moment adding services require acquiring API keys for each of the needed module. We should make this process as painless as possible, guiding the user (probably after GUI).

What do you think?

/Nesh

Could not understand audio with Bing

Hello
This problem with Bing, also with Wit.ai.
These my changes in configuration.
Many thanks for your work.

[STT]
initial_stt_engine = bing
master_stt_engine = bing

[STT_KEYS]
google_speech_api =
google_cloud_speech_api =
bing_speech_api = 4683339XXXXXXXXXX04374bf4c35af83 (not real)

Microsoft Bing Voice Recognition could not understand audio

install errors on kali linux amd64,kali pi4 and ubuntu server 18 lts (will not install , many pip install issues)

I am trying to install Stephanie and ran into several road blocks. tried using both pip and pip3 , also tried several different flavor operating systems and they all gave me the same install error when trying to install python-magic-bin==0.4.14. I removed it from the requirements.txt out of curiosity and the next error was pygame. I am running python3.8 // 3.7 .

Any help would be appreciated as I would like to see my project come to life .

it's possible to integrate with another application?

Hello, I would like to know if I can integrate Stephanie with another application, that is, that I can send her a query and she will return a response after executing the module. If this is possible, you could tell me how to do it and if I can develope it, what class or function of Stephanie I go to to perform this procedure.

importlib errors when calling util

importlib.util causes an error during this command:
python install.py

The traceback is this:
Setting up... Please wait... Traceback (most recent call last): File "install.py", line 60, in <module> i.set_up() File "install.py", line 29, in set_up status = self.check_if_installed(module) File "install.py", line 49, in check_if_installed module_status = importlib.util.find_spec(module_name) AttributeError: 'module' object has no attribute 'util'

Here's a good stackoverflow on the issue.

Sleep command does not stop listening to commands.

Default configs (meaning installed and no changes), telling her to sleep puts her in sleep mode, she says "sleep is for weak", but hte cli says it's in sleep mode. I ask stefanie for time and she still tells me.

Problem with Speech-to-Text services

Hello Ujjwal! Nice bot! I have some issues with the Speech-to-Text services.
Bing says access denied
IBM has changed the credentials and now only needs an API key

Can you help me?

ImportError: failed to find libmagic

I am using macbook & anaconda.

SDS-bash3.2$ pip install libmagic
Collecting libmagic
  Downloading libmagic-1.0.tar.gz
Building wheels for collected packages: libmagic
  Running setup.py bdist_wheel for libmagic ... done
  Stored in directory: /Users/sampathm/Library/Caches/pip/wheels/11/e2/27/5ce37bee3102fa60cb766782797f241132903639ce25d849e9
Successfully built libmagic
Installing collected packages: libmagic
Successfully installed libmagic-1.0
SDS-bash3.2$ python Index.py
initialised
modules retreived.
Traceback (most recent call last):
  File "Index.py", line 1, in <module>
    from Stephanie.boot import Boot
  File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/boot.py", line 2, in <module>
    from Stephanie.activity import Activity
  File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/activity.py", line 2, in <module>
    from Stephanie.commander import Commander
  File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/commander.py", line 1, in <module>
    from Stephanie.AudioManager.audio_manager import AudioManager
  File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/AudioManager/audio_manager.py", line 1, in <module>
    from Stephanie.AudioManager.audio_getter import AudioGetter
  File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/AudioManager/audio_getter.py", line 3, in <module>
    from Stephanie.TextManager.speaker import Speaker
  File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/TextManager/speaker.py", line 2, in <module>
    import eyed3
  File "/Users/sampathm/miniconda3/lib/python3.6/site-packages/eyed3/__init__.py", line 35, in <module>
    from .utils.log import log                                            # noqa
  File "/Users/sampathm/miniconda3/lib/python3.6/site-packages/eyed3/utils/__init__.py", line 27, in <module>
    import magic
  File "/Users/sampathm/miniconda3/lib/python3.6/site-packages/magic.py", line 176, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

Integration with Microsoft Speech SDK

Has someone explored integrating Stephanie with MS Speech SDK WSR?
I am exploring to integrate for Windows usage for my own, and keeping it free.

dateutil fails to install

$> pip install dateutil
Collecting dateutil
Could not find a version that satisfies the requirement dateutil (from versions: )
No matching distribution found for dateutil

To fix it:
$> pip install python-dateutil

Cannot input any command!

After some amount of troubles I finally managed to get everything ready.
But.....
Damn Stephanie doesn't work!
Can't input any voice command. It says something about ALSA lib pcm ... Unable to open slave?

Note: Writing this on my phone, will provide entire log when I get back to the PC.

Using kali linux with pip3 10.0.x and python3.5.x

OSError: [WinError 193] %1 is not a valid Win32 application

when i am tring to run the app i got this Error massage, someone please understand something?

C:\Users\user\AppData\Local\Programs\Python\Python36-32\python.exe C:/Users/user/Desktop/stephanie-va-master/Index.py
initialised
modules retreived.
Traceback (most recent call last):
File "C:/Users/user/Desktop/stephanie-va-master/Index.py", line 2, in
from Stephanie.boot import Boot as Boot
File "C:\Users\user\Desktop\stephanie-va-master\Stephanie\boot.py", line 2, in
from activity import Activity
File "C:\Users\user\Desktop\stephanie-va-master\Stephanie\activity.py", line 5, in
from commander import Commander
File "C:\Users\user\Desktop\stephanie-va-master\Stephanie\commander.py", line 1, in
from AudioManager.audio_manager import AudioManager
File "C:\Users\user\Desktop\stephanie-va-master\Stephanie\AudioManager\audio_manager.py", line 4, in
from AudioManager.audio_getter import AudioGetter
File "C:\Users\user\Desktop\stephanie-va-master\Stephanie\AudioManager\audio_getter.py", line 3, in
from TextManager.speaker import Speaker
File "C:\Users\user\Desktop\stephanie-va-master\Stephanie\TextManager\speaker.py", line 2, in
import eyed3
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\eyed3_init_.py", line 32, in
from .utils.log import log # noqa: E402
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\eyed3\utils_init_.py", line 27, in
import magic
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\magic.py", line 159, in
libmagic = ctypes.CDLL(dll)
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\ctypes_init_.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

Process finished with exit code 1

No such class name exists or such method on that instance of class exists, you shouldn't be getting this if you are good

When i execute the weather update command "hey stephanie, what is the weather update today?" am getting this error

Google Speech Recognition thinks you said what is the weather update today
['weather', 'update', 'today']
['WeatherReportModule@WeatherReportToday', ['weather', 'today']]
No such class name exists or such method on that instance of class exists, you shouldn't be getting this if you are good ol user and not a 3rd party developer, for you mr.developer, check the support tab, to know how to fix it or just read the guidelines thoroughly to learn how to create your own modules and wire them properly.

THE FUTURE OF AI

Hello everyone my name is Lorenzo. I am building up a startup from Detroit Michigan. I am trying to introduce the future of smart cities and homes. I want to change the world for the next generations and implement electric charging, ai, autonomous vehicles and more to the world. I am creating an electric charger and want to implement ai into it. I want to implement ai into all of our products and bring it to the biggest cities in the world. I contacted mycroft for a partner ship but were asking for too much I need our own server and implement skills into an ai assistant. I am just a college student trying to change the world, I need a team, I am willing to pay but I just need help. Help us change the future, please if anyone would want to help comment or email us. Thank you.

Unable to ask for current weather

I asked "what's the weather" and got an error about a missing API key:

Google Speech Recognition thinks you said what's the weather
["what's", 'weather']
['WeatherReportModule@WeatherReportToday', ['weather', 'today']]
The correct API KEY wasn't provided or wasn't provided at all for open_weather_map_api_key, what the ... okay man now look back at docs to find how to do that, is pretty simple just one line long. Lazy ass
No such class name exists or such method on that instance of class exists, you shouldn't be getting this if you are good ol user and not a 3rd party developer, for you mr.developer, check the support tab, to know how to fix it or just read the guidelines thoroughly to learn how to create your own modules and wire them properly.

dead code reported by vulture

We used vulture (https://github.com/jendrikseipp/vulture) to search
for unused code in your project. You can find the report below. It
would be great if you could give us feedback about which items are
actually used or unused. This would allow us to improve vulture and
ideally it also helps you to remove obsolete code or even find typos
and bugs.

Command:

vulture stephanie-va

Raw Result:

stephanie-va/Stephanie/AudioManager/audio_recognizer.py:12: Unused function 'recognize_from_sphinx'
stephanie-va/Stephanie/local_libs/football_manager.py:117: Unused function 'get_players'
stephanie-va/Stephanie/local_libs/football_manager.py:154: Unused function 'get_team_transfer_talk'
stephanie-va/Stephanie/local_libs/numbers_format.py:284: Unused function 'longestNumber'
stephanie-va/Stephanie/local_libs/pyzomato/core/endpoint_manager.py:14: Unused function 'get_endpoint'
stephanie-va/Stephanie/local_libs/reporter.py:5: Unused class 'Reporter'
stephanie-va/Stephanie/local_libs/search_module.py:5: Unused function 'search_for_competition_by_name'
stephanie-va/Stephanie/local_libs/search_module.py:11: Unused function 'search_for_competition_by_code'
stephanie-va/Stephanie/local_libs/search_module.py:14: Unused function 'search_for_team_by_name'
stephanie-va/Stephanie/local_libs/search_module.py:20: Unused function 'search_for_team_by_code'
stephanie-va/Stephanie/local_libs/search_module.py:23: Unused function 'search_for_player_by_name'
stephanie-va/Stephanie/local_libs/search_module.py:29: Unused function 'search_for_team_from_standing_by_name'
stephanie-va/Stephanie/Modules/alpha_search_module.py:15: Unused function 'do_a_search'
stephanie-va/Stephanie/Modules/evernote_module.py:14: Unused attribute 'user_store'
stephanie-va/Stephanie/Modules/evernote_module.py:19: Unused function 'write_note'
stephanie-va/Stephanie/Modules/evernote_module.py:26: Unused attribute 'content'
stephanie-va/Stephanie/Modules/facebook_module.py:45: Unused function 'get_birthday_reminders'
stephanie-va/Stephanie/Modules/facebook_module.py:87: Unused function 'get_notifications'
stephanie-va/Stephanie/Modules/facebook_module.py:122: Unused function 'status_update'
stephanie-va/Stephanie/Modules/football_module.py:42: Unused function 'get_english_league'
stephanie-va/Stephanie/Modules/football_module.py:45: Unused function 'get_english_second_league'
stephanie-va/Stephanie/Modules/football_module.py:48: Unused function 'get_german_league'
stephanie-va/Stephanie/Modules/football_module.py:51: Unused function 'get_german_second_league'
stephanie-va/Stephanie/Modules/football_module.py:54: Unused function 'get_spanish_league'
stephanie-va/Stephanie/Modules/football_module.py:57: Unused function 'get_spanish_second_league'
stephanie-va/Stephanie/Modules/football_module.py:60: Unused function 'get_french_league'
stephanie-va/Stephanie/Modules/football_module.py:63: Unused function 'get_french_second_league'
stephanie-va/Stephanie/Modules/football_module.py:66: Unused function 'get_netherlands_league'
stephanie-va/Stephanie/Modules/football_module.py:69: Unused function 'get_portuguese_league'
stephanie-va/Stephanie/Modules/football_module.py:72: Unused function 'get_italian_league'
stephanie-va/Stephanie/Modules/football_module.py:75: Unused function 'get_champions_league'
stephanie-va/Stephanie/Modules/football_module.py:95: Unused function 'league_specific_table'
stephanie-va/Stephanie/Modules/football_module.py:106: Unused function 'league_specific_next_fixtures'
stephanie-va/Stephanie/Modules/football_module.py:117: Unused function 'league_specific_previous_fixtures'
stephanie-va/Stephanie/Modules/football_module.py:128: Unused function 'team_handle'
stephanie-va/Stephanie/Modules/football_module.py:147: Unused function 'team_next_fixtures'
stephanie-va/Stephanie/Modules/football_module.py:158: Unused function 'team_previous_fixtures'
stephanie-va/Stephanie/Modules/football_module.py:169: Unused function 'league_specific_news'
stephanie-va/Stephanie/Modules/football_module.py:180: Unused function 'team_specific_news'
stephanie-va/Stephanie/Modules/football_module.py:191: Unused function 'team_news'
stephanie-va/Stephanie/Modules/football_module.py:202: Unused function 'team_injury_news'
stephanie-va/Stephanie/Modules/football_module.py:213: Unused function 'team_transfer_talk'
stephanie-va/Stephanie/Modules/gmail_module.py:22: Unused attribute 'debug'
stephanie-va/Stephanie/Modules/gmail_module.py:86: Unused function 'get_most_recent_date'
stephanie-va/Stephanie/Modules/google_calendar_module.py:86: Unused function 'add_event'
stephanie-va/Stephanie/Modules/google_calendar_module.py:137: Unused function 'get_events_today'
stephanie-va/Stephanie/Modules/google_calendar_module.py:192: Unused function 'get_events_tomorrow'
stephanie-va/Stephanie/Modules/movie_information_module.py:9: Unused function 'give_some_information'
stephanie-va/Stephanie/Modules/system_module.py:11: Unused function 'default'
stephanie-va/Stephanie/Modules/system_module.py:14: Unused function 'meaning_of_life'
stephanie-va/Stephanie/Modules/system_module.py:17: Unused function 'time_right_now'
stephanie-va/Stephanie/Modules/system_module.py:21: Unused function 'date_today'
stephanie-va/Stephanie/Modules/system_module.py:25: Unused function 'wake_up'
stephanie-va/Stephanie/Modules/system_module.py:45: Unused function 'go_to_sleep'
stephanie-va/Stephanie/Modules/system_module.py:53: Unused function 'tell_system_status'
stephanie-va/Stephanie/Modules/twitter_module.py:21: Unused attribute 'myTwitterID'
stephanie-va/Stephanie/Modules/twitter_module.py:33: Unused function 'get_trending'
stephanie-va/Stephanie/Modules/weather_report_module.py:22: Unused function 'weather_report_weekly'
stephanie-va/Stephanie/Modules/weather_report_module.py:31: Unused function 'weather_report_today'
stephanie-va/Stephanie/Modules/weather_report_module.py:40: Unused function 'weather_report_tomorrow'
stephanie-va/Stephanie/Modules/weather_report_module.py:65: Unused variable 'temp_max'
stephanie-va/Stephanie/Modules/weather_report_module.py:66: Unused variable 'temp_min'
stephanie-va/Stephanie/Modules/wikipedia_module.py:11: Unused function 'give_a_summary'

There might be false positives, which can be prevented by adding them to a
whitelist file. You may find more info here

Regards,
vulture team

Error in index.py

Hi,
I'm getting following error while running index.py

stephanie-va-master\Stephanie\activity.py", line 8, in init super(Activity, self).init(speech_recognition, recognizer, events) TypeError: must be type, not classobj

I am getting error after I start this project and there is no response to the command I type or speak.

ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave

python magic bin

I keep getting this error when installing

ERROR: Could not find a version that satisfies the requirement python-magic-bin==0.4.14 (from versions: none)
ERROR: No matching distribution found for python-magic-bin==0.4.14

I am using linux mint 21.1
When i run the program it hears what i am saying but returns with

The correct API KEY wasn't provided or wasn't provided at all for name, what the ... okay man now look back at docs to find how to do that, is pretty simple just one line long. Lazy ass
The correct API KEY wasn't provided or wasn't provided at all for gender, what the ... okay man now look back at docs to find how to do that, is pretty simple just one line long. Lazy ass

What am i doing wrong?
Idk if this is helpful but after the above it does this

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'

Continuously beeps

When running from cli, "python Index.py", she turns on but continues beeping, my guess is a threshold of mic input but nothing should be saying "stefanie", it's quiet. In cli it keeps saying "'Your command is my order!
Google speech recognition could not understand audio,
Give me your ocmmand!

continuously as it beeps. No "stefanie" is said, mic is turned on.

Chat instead of voice

Thanks for putting this together and giving it away under the MIT license. I personally prefer chat over voice. Is it possible to interact with the bot without needing a mic and headphones?

Thanks again!

Failed building wheel for pyaudio on Ubuntu 16.04

Building wheels for collected packages: pyaudio, PyDispatcher, gTTS, Metaphone, evernote3, facebook-sdk, Httplib2, apiclient, psutil, Pyowm, gtts-token, oauthlib
Running setup.py bdist_wheel for pyaudio ... error
Complete output from command /home/vds/local/stephanie/bin/python3.5 -u -c "import setuptools, tokenize;file='/tmp/pip-build-af5wxyvo/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp9l6tqr29pip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
copying src/pyaudio.py -> build/lib.linux-x86_64-3.5
running build_ext
building '_portaudio' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/vds/local/stephanie/include/python3.5m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.5/src/_portaudiomodule.o
src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Crash when telling it to wake up

Google Speech Recognition thinks you said computer wake up
Look it shouldn't happen but since it happened, just get to support tab of main website mate, some issue with os is what I assume unless you haven't changed code if in that caseman, well.
Traceback (most recent call last):
  File "index.py", line 5, in <module>
    b.initiate()
  File "C:\stephanie-va\Stephanie\boot.py", line 40, in initiate
    self.speaker.speak("I am at your service.")
  File "C:\stephanie-va\Stephanie\TextManager\text_manager.py", line 48, in speak
    self.speak_result(filename)
  File "C:\stephanie-va\Stephanie\TextManager\text_manager.py", line 39, in speak_result
    self.speaker.speak_from_pygame(speech_result_filename)
  File "C:\stephanie-va\Stephanie\TextManager\speaker.py", line 49, in speak_from_pygame
    self.speak_result = self.get_abs_filename(speech_result_filename)
  File "C:\stephanie-va\Stephanie\TextManager\speaker.py", line 37, in get_abs_filename
    os.pardir, filename))
  File "C:\Python\Python37\lib\ntpath.py", line 115, in join
    genericpath._check_arg_types('join', path, *paths)
  File "C:\Python\Python37\lib\genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'

typo in install.py

Line 42 in install.py has a typo:

input("Close the command line by writting exit or simply close the window.")

should be fixed to:

input("Close the command line by writing exit or simply close the window.")

No module named 'pydispatch'

used the command: pip3 install --user pydispatch

but got the error when running python3 Index.py:
ModuleNotFoundError: No module named 'pydispatch'

No module named 'speech_recognition'

when executing index.py i am getting this error

File "/home/pi/stephanie-va/Stephanie/boot.py", line 1, in
import speech_recognition as sr
ImportError: No module named 'speech_recognition'

TypeError in index.py

After running index.py, I got the following error message:

PS D:\stephanie-va> python index.py
initialised
modules retreived.
Stephanie is on and loading, wait for the beep sound to give your command.
Look it shouldn't happen but since it happened, just get to support tab of main website mate, some issue with os is what I assume unless you haven't changed code if in that caseman, well.
Traceback (most recent call last):
  File "index.py", line 5, in <module>
    b.initiate()
  File "D:\stephanie-va\Stephanie\boot.py", line 65, in initiate
    self.speaker.speak("How may I help you?")
  File "D:\stephanie-va\Stephanie\TextManager\text_manager.py", line 48, in speak
    self.speak_result(filename)
  File "D:\stephanie-va\Stephanie\TextManager\text_manager.py", line 39, in speak_result
    self.speaker.speak_from_pygame(speech_result_filename)
  File "D:\stephanie-va\Stephanie\TextManager\speaker.py", line 49, in speak_from_pygame
    self.speak_result = self.get_abs_filename(speech_result_filename)
  File "D:\stephanie-va\Stephanie\TextManager\speaker.py", line 37, in get_abs_filename
    os.pardir, filename))
  File "C:\Users\Cash\AppData\Local\Programs\Python\Python36-32\lib\ntpath.py", line 114, in join
    genericpath._check_arg_types('join', path, *paths)
  File "C:\Users\Cash\AppData\Local\Programs\Python\Python36-32\lib\genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'

What exactly is the error here and how do I fix it?

No Default Input Device Available

I get the above message when trying to start Stephanie, via command "python3 Index.py".
WIndows 10 using Bash, pip 8.1.1, python 3.5.2.

Error

Hello everyone, trying to get Stephanie working on macOS. Everything is working except audio. tts_player is still set to os in the config. I cannot hear anything. Getting this error:
Give me your command!
Default Audio Player for mp3 files is not set up, like vlc or something.

Thanks!

os.startfile is windows only

When you try to run this on Linux, you get the error:
Default Audio Player for mp3 files is not set up, like vlc or something.

This happens because to open the audio file, Stephanie uses the module os.startfile which is Windows only in speaker.py

To work cross-platform, this needs to be changed to something else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.