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 text-to-speech 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.3.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.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metaidigittts-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f6791c80350540ffdf2290f95d1177ae2d2e9c5ac4e149227eca63410b888b80
MD5 173451bbbab0ad30a1b72c6dab90e380
BLAKE2b-256 8b085696c3bc3b4ca334e66fee1f61df03ed3d4a6499422cfd3a21f3f690aeb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metaidigittts-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae5c56edeb09f1b06610bedc0a80fcca26f59e04276d4c7775a1a6086162c03d
MD5 3e7924a552ab7796e9113b42b767da0b
BLAKE2b-256 190ed48e553df292d4e75bc967e67840de268fad99878f053149bf490458ce2d

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