Skip to main content

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")

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


Download files

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

Source Distribution

metaidigittts-0.1.2.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.

metaidigittts-0.1.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file metaidigittts-0.1.2.tar.gz.

File metadata

  • Download URL: metaidigittts-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for metaidigittts-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9bf786f5a3f3e54b9dcecf5e4fda186eeda26bc2bfcfaf929c55400649fe41f8
MD5 a8b8db48141159b6a336e1d0c36f127f
BLAKE2b-256 fde39ba7b9656a8d0197181e57af50e8075e76b5bcd5da5950b458362d7a5cd8

See more details on using hashes here.

File details

Details for the file metaidigittts-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: metaidigittts-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for metaidigittts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba7ca767dde766cbcf4c622f3eebdd065f57dc4bd3a3786de8d0573e18ef8b2a
MD5 21cd3c03d1ed190e678b239dac630075
BLAKE2b-256 b0440b1875c4b87c908c5d8eafb566219a26c29e585d4a6585ba0ecd9b387270

See more details on using hashes here.

Supported by

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