Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speechinput-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file speechinput-0.0.1.tar.gz.

File metadata

  • Download URL: speechinput-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for speechinput-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dc93ebfbcf0197f09cab7f2d3cff0b4c5a6c8dd2b5ff2278a5b7690180459c2c
MD5 4dbec482b1a5aa2c67a502d8f29b8857
BLAKE2b-256 c85297bbc4af95cfc5fd9095aee8a39b9dc04a2e82fafcfe7c9aaae709cc9117

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page