Git Product home page Git Product logo

basic-speech-recognition-tts's Introduction

Basic Speech Recognition and Text-to-Speech (TTS) App ๐Ÿ—ฃ๏ธ๐Ÿ“

This repository contains a simple Python application for speech recognition and text-to-speech (TTS) using Streamlit and the Whisper library.

Overview โ„น๏ธ

The application provides two main functionalities:

  1. Speech Recognition: It allows users to upload an audio file or record audio directly through the app and transcribe the speech into text.
  2. Text-to-Speech: It utilizes the OpenAI-Whisper library to generate synthetic speech from text.

Requirements ๐Ÿ› ๏ธ

  • Python 3.x
  • Streamlit
  • OpenAi-Whisper
  • PyAudio
  • Wave

Usage ๐Ÿš€

  1. Clone the repository:

    git clone https://github.com/HimanshuMohanty-Git24/Basic-Speech-Recognition-TTS.git
    cd Basic-Speech-Recognition-TTS
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    streamlit run app.py
  4. Choose an option:

    • Upload Audio: Upload an audio file in WAV, MP3, or FLAC format for speech recognition.
    • Record Audio: Record audio directly through the app using your device's microphone.
  5. View the transcript or synthesized speech based on your selection.

Note ๐Ÿ“Œ

  • The application uses two pre-trained models: a base model for recorded audio and a medium model for uploaded audio. These models are provided by the Whisper library.
  • Ensure that you have a working microphone if you choose to record audio through the app.

For any issues or suggestions, please feel free to open an issue on GitHub.

basic-speech-recognition-tts's People

Contributors

himanshumohanty-git24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.