Speech Recognition Library
Project description
metaidigitstt
Overview
metaidigitstt is a simple and lightweight speech-to-text and text-to-speech recognition module. It leverages Google Text-to-Speech (gTTS) for text-to-speech conversion and pydub for audio format conversion.
Features
- Convert text to speech using gTTS
- Save speech as an MP3 file
- Convert MP3 to WAV format
- Play the generated audio file
- Cross-platform support (Windows, macOS, Linux)
Installation
Prerequisites
Ensure you have Python 3.10+ ; google-cloud-texttospeech & pydub libraries installed on your system.
Install Dependencies
Run the following command to install required dependencies:
pip install metaidigittts
pip install google-cloud-texttospeech
pip install pydub
Usage
Import and Use in Your Python Code
from metaidigitstt import text_to_speech_with_gtts
input_text = "Hello, this is a speech-to-text test!"
text_to_speech_with_gtts(input_text, "output.mp3")
Convert MP3 to WAV
from metaidigitstt import convert_mp3_to_wav
convert_mp3_to_wav("output.mp3", "output.wav")
Play an Audio File
from metaidigitstt import play_audio
play_audio("output.wav")
Project Structure
metaidigitstt/
│── metaidigitstt/ # Module package
│ │── __init__.py # Package initialization
│ │── main.py # Main functions for TTS and audio conversion
│── setup.py # Setup file for packaging
│── requirements.txt # Required dependencies
│── README.md # Documentation
License
This project is licensed under the MIT License. See LICENSE for more details.
Author
Developed by Suhal Samad
📧 Email: samadsuhal@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metaidigittts-0.1.1.tar.gz.
File metadata
- Download URL: metaidigittts-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b7d3f78a38d7957ef7d8d3550a8ae92effac48b18b7efa2379d54a6857db09
|
|
| MD5 |
c7ed4d55979dee03db3fb02f0885dd0a
|
|
| BLAKE2b-256 |
c00bd9797ee9f7febd5f33773e88b04bc1dc3d9e971e72b62f23445c5c05de19
|
File details
Details for the file metaidigittts-0.1.1-py3-none-any.whl.
File metadata
- Download URL: metaidigittts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e3d0501f2e0c81f5da036b6883ca7aa45767e24be04274f5cc7c7c196f8b95
|
|
| MD5 |
2743e4b6815b8e262e4d427fde129ef3
|
|
| BLAKE2b-256 |
eb3a9bb3111a811c0c866a18e125fd02db0a35129a5ff08373ae69b0ae409907
|