bhashan2pathtak
Simple Python application to convert speech into text using Wit.ai
Prerequisites for MacOS
brew install portaudiobrew install flac
Features
- Continuous speech recognition
- Improved accuracy using Wit.ai
- Ambient noise adjustment
- Error handling and user-friendly feedback
Setup
Before using bhashan2pathtak, you need to set up a Wit.ai account and obtain a token:
- Go to https://wit.ai/ and create an account if you haven't already.
- Create a new Wit.ai app and copy your Client Access Token.
- Set your token using one of these methods:
a. Set an environment variable:
b. Create aexport WIT_AI_TOKEN=your_token_hereconfig.jsonfile in the directory where you'll run the application, with the following content:{ "WIT_AI_TOKEN": "your_token_here" }
Installation
To use bhashan2pathtak as a package:
-
Install the package:
pip install bhashan2pathtak -
Run the application:
bhashan2pathtak
Note: You still need to configure your Wit.ai token as described in the Setup section.
Development Setup
- Clone this repository
- Install the required packages:
Note: This project uses PyAudio 0.2.14. If you encounter issues with installation, try upgrading to this version.pip install -r requirements.txt - Sign up for a Wit.ai account and create a new app to get an access token
Development Configuration
To run this application, you need to provide your Wit.ai token. You have two options:
-
Environment Variable: Set the
WIT_AI_TOKENenvironment variable:export WIT_AI_TOKEN=your_wit_ai_token_here -
Configuration File: Copy
config.json.exampletoconfig.jsonand add your Wit.ai token:cp config.json.example config.jsonThen edit
config.jsonand replaceyour_wit_ai_token_herewith your actual token.
Important: Never commit your config.json file to the repository. It's listed in .gitignore to prevent accidental commits.
How to run
After setting up the configuration:
python3 speech_to_text.py
Troubleshooting
If you encounter any issues with PyAudio, make sure you have version 0.2.14 installed:
pip install PyAudio==0.2.14
For any other issues, please check the Wit.ai documentation or open an issue in this repository.
Metadata
Release files for bhashan2pathtak 0.1.0
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 |
|---|---|---|---|---|
| bhashan2pathtak-0.1.0.tar.gz | 19.0 kB | Without provenance | Details for bhashan2pathtak-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bhashan2pathtak-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bhashan2pathtak-0.1.0-py3-none-any.whl |
Total release size: 36.1 kB
Release files / bhashan2pathtak-0.1.0.tar.gz
| Download URL | bhashan2pathtak-0.1.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cc9e46eca6a9d5aee43e2c4e1c58d1785e8c945cb77b4f78a757e5c1a79b374
|
|
BLAKE2b-256 checksum How to use checksums |
10aeca54f8a410a760246ea14037c7bee9762d1ea0a50c06f842db6ddc972bbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / bhashan2pathtak-0.1.0-py3-none-any.whl
| Download URL | bhashan2pathtak-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c5019610cbcf0868d4e475aa869d223c34c637f072677dd3deb20638645b402
|
|
BLAKE2b-256 checksum How to use checksums |
54e243930cd68528cee888e13de1fd425055fcf9c77dc675836923c0eb3bf2eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for bhashan2pathtak 0.1.0
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.