Speech to Text (STT) Project
This project leverages Selenium and webdriver_manager to utilize Chrome's built-in text-to-speech feature. It's designed for simplicity and ease of use, allowing you to configure continuous text-to-speech functionality and optional English translation.
Features
- Continuous Speech-to-Speech: Decide if you want the text-to-speech functionality to run continuously.
- Optional English Translation: Choose whether to translate text to English before speaking.
- 100% accuracy: Gives you the 100% accuracy in listening by google chrome's algorithm.
Prerequisites
Seleniumwebdriver_manager
Setup
-
Install dependencies:
pip install selenium webdriver_manager mtranslate
-
Create Configuration Files:
write_text_file_path.txt: This file will be the file in which the text is written by converting from speech.
Parameters
write_text_file_path.txt: This file will be the file in which the text is written by converting from speech.translate(bool): Set to True to translate the text to English before speaking, False otherwise.
Usage
To use the text-to-speech functionality, import the Listener class from python-speech-to-text and initialize it with the appropriate parameters.
If you want the speech-to-text functionality to run continuously, it is recommended to use threading. This will prevent the function from blocking the execution of further code until it is stopped.
Example with Threading
import os
import threading
from python-speech-to-text import Listener
a = Listener(os.path.join(os.getcwd(), "text.txt"))
listener_thread = threading.Thread(target=a.listen) # It is compulsory to use threading or it will just block the execution of other code and also won't stop if needed.
listener_thread.start() # start the thread
# Now for stop listening
a.StopRecognition()
listener_thread.join() # wait until the thread finishes
To make the program listen properly, speak a bit loud and clear words.
This project is managed by Artex AI. Soon an improved and stable version will roll out
Metadata
Release files for python-speech-to-text 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_speech_to_text-0.0.1.tar.gz | 4.3 kB | Without provenance | Details for python_speech_to_text-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_speech_to_text-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for python_speech_to_text-0.0.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / python_speech_to_text-0.0.1.tar.gz
| Download URL | python_speech_to_text-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6a2c9cb4aca9112b233b462d24e211c28cb86412e14879ac59470103ca8118f
|
|
BLAKE2b-256 checksum How to use checksums |
91e653dc744d74579a5e02695484effd8f9302363bb0baf7ffb84218a68bc855
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / python_speech_to_text-0.0.1-py3-none-any.whl
| Download URL | python_speech_to_text-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c57abddc541be5cd44cdad515885bc96fad99a7c713e8addde60a78b515feca
|
|
BLAKE2b-256 checksum How to use checksums |
d70a0059ac7f78878163bfa8e61c98f1359fe35547e698fd2e1e9a49bf0fd7fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Security for python-speech-to-text 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.