Skip to main content

jarvis-speech-stt

Reusable speech-to-text and translation helpers extracted from the Jarvis project.

Install

python -m pip install jarvis-speech-stt

For local development, install the built wheel from dist/ instead. The distribution name is jarvis-speech-stt; the Python import name is jarvis_speech_stt.

Usage

from jarvis_speech_stt import speech_to_text_python

text = speech_to_text_python()
print(text)

The function adjusts for ambient noise, listens through the default microphone, uses SpeechRecognition's Google recognizer, translates the result to English, and returns the translated string or None when recognition fails.

Requirements and limitations

  • Python 3.10 or newer
  • A working microphone and PyAudio-compatible audio input
  • Network access for Google speech recognition and mtranslate
  • Browser/Selenium automation is not part of this reusable package

Microphone permissions and native audio drivers are system-dependent. The package catches expected microphone, timeout, recognition, and service errors, but it cannot grant operating-system permissions.

Download files

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

Source Distribution

jarvis_speech_stt-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jarvis_speech_stt-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file jarvis_speech_stt-0.1.0.tar.gz.

File metadata

  • Download URL: jarvis_speech_stt-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for jarvis_speech_stt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2261a31a0f6899f84a2e2d0f25d1761180ed00e9378b7bec40dbb2c218c14c2
MD5 ae94ced0fa255a8e738344adadee215e
BLAKE2b-256 58cc52384d1d54eee6d002bfaed0b4df9712c46eb29b43349545a5aa3ffaf777

See more details on using hashes here.

File details

Details for the file jarvis_speech_stt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jarvis_speech_stt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97047961dc356f21cefabf684e63f8da42d2a8860bc87024638f450f6bbf4cdc
MD5 e12e14dff2c5736202137d14d5ec91ed
BLAKE2b-256 03de06abb3ce2b85ac6b77477f4aa0f1dce6836895648d739b82a7ffd33ccf4d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page