Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Speaker Class #610

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .gitignore

This file was deleted.

4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ SpeechRecognition
:target: https://travis-ci.org/Uberi/speech_recognition
:alt: Continuous Integration Test Results

Library for performing speech recognition, with support for several engines and APIs, online and offline.
Forked version of orignal project with now capability to use speaker as a source for listening.

**Note**: Hi I am Hashah2311, I have forked the orignal project and added system audio source ie now this module can listen system audio as well, **this is not the orignal version**.

**UPDATE 2022-02-09**: Hey everyone! This project started as a tech demo, but these days it needs more time than I have to keep up with all the PRs and issues. Therefore, I'd like to put out an **open invite for collaborators** - just reach out at [email protected] if you're interested!

Expand Down
430 changes: 430 additions & 0 deletions SpeechRecognition_ForkedVersion.egg-info/PKG-INFO

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions SpeechRecognition_ForkedVersion.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
LICENSE-FLAC.txt
LICENSE.txt
MANIFEST.in
README.rst
setup.cfg
setup.py
SpeechRecognition_ForkedVersion.egg-info/PKG-INFO
SpeechRecognition_ForkedVersion.egg-info/SOURCES.txt
SpeechRecognition_ForkedVersion.egg-info/dependency_links.txt
SpeechRecognition_ForkedVersion.egg-info/top_level.txt
reference/library-reference.rst
reference/pocketsphinx.rst
speech_recognition/__init__.py
speech_recognition/__main__.py
speech_recognition/flac-linux-x86
speech_recognition/flac-linux-x86_64
speech_recognition/flac-mac
speech_recognition/flac-win32.exe
speech_recognition/pocketsphinx-data/en-US/LICENSE.txt
speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin
speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict
speech_recognition/pocketsphinx-data/en-US/acoustic-model/README
speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params
speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef
speech_recognition/pocketsphinx-data/en-US/acoustic-model/means
speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict
speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump
speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices
speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions SpeechRecognition_ForkedVersion.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
speech_recognition
Binary file not shown.
Binary file added dist/SpeechRecognition_ForkedVersion-3.9.2.tar.gz
Binary file not shown.
19 changes: 19 additions & 0 deletions examples/speaker_recognition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3

# NOTE: this example requires PyAudio because it uses the Microphone class

import speech_recognition as sr

# obtain audio from the microphone
r = sr.Recognizer()
with sr.Speaker() as source:
print("Say something!")
audio = r.listen(source)

# recognize speech using Sphinx
try:
print("Sphinx thinks you said " + r.recognize_google(audio))
except sr.UnknownValueError:
print("Sphinx could not understand audio")
except sr.RequestError as e:
print("Sphinx error; {0}".format(e))
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ def run(self):


setup(
name="SpeechRecognition",
name="SpeechRecognition_ForkedVersion",
version=speech_recognition.__version__,
packages=["speech_recognition"],
include_package_data=True,
cmdclass={"install": InstallWithExtraSteps},

# PyPI metadata
author=speech_recognition.__author__,
author_email="azhang9@gmail.com",
description=speech_recognition.__doc__,
author="Hashah2311",
author_email="shahharshit063@gmail.com",
description="Forked version of orignal project with now capability to use speaker as a source for listening",
long_description=open("README.rst").read(),
license=speech_recognition.__license__,
keywords="speech recognition voice sphinx google wit bing api houndify ibm snowboy",
url="https://github.com/Uberi/speech_recognition#readme",
keywords="speech recognition voice sphinx google wit bing api houndify ibm snowboy speaker",
url="https://github.com/Hashah2311/speech_recognition_fork",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down
465 changes: 168 additions & 297 deletions speech_recognition/__init__.py

Large diffs are not rendered by default.

Binary file not shown.