Metadata-Version: 2.1
Name: speechinput
Version: 0.0.1
Summary: Speech input provides a simple function to get an input from speech. It works like the buildin input function.
Home-page: https://github.com/VicoShortman/speech-input
Author: Vico Shortman
Author-email: vico.shortman@gmail.com
License: MIT
Keywords: speechrecognition speech input
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
License-File: LICENCE.txt

Speech input provides a simple function to get an input from speech. It works like the buildin input function.
Under the hood it is just a speechrecognition wrapper using the Google speech recognizer.
By default, it uses a pre-defined key, please use your own Google speech recognition API Key with set_key(api_key: str).
To obtain your own API key, simply follow the steps on the API Keys page at the Chromium Developers site: https://www.chromium.org/developers/how-tos/api-keys/
You can specify a language in the speech_input function. Default is "en-US".

Prerequisites:
pip install speechrecognition
pip install pyaudio

Installation:
pip install speechinput

Code:
import speechinput as si

# Set google speech key
si.set_key('GOOGLE-API-KEY')

# With prefix
si.sinput('Say something:')

# silence output
inp = si.sinput('silent')
print(f'You said: {inp}')

Change Log
==========

0.0.1 (12.02.2023)
------------------
- First Release

