Skip to content

llmmodels/audio-to-text

 
 

Repository files navigation

Project Speech to Text Conversion

a. create helper function text to speech file under utils file b. create utils file under utils folder c. Start writing code under app file and copy paste tempplates file ( index.html)

  1. Project Speech to Text Conversion ( Added new features to store output in txt file)

a. create helper function text_to_speech_main file under utils file

Speech-to-Text Transcription Script

This is a Python script that transcribes audio files to text using Google's speech recognition API. The script can handle audio files in WAV, MP3, M4A, OGG, or FLAC format.

Dependencies

The following libraries are required to run this script:

  • SpeechRecognition
  • Pydub

You can install these libraries using pip:

pip install SpeechRecognition pydub

Usage

To use the script, simply run main.py and follow the prompts:

python main.py

-clone https://github.com/iamsamkhan/audio-to-text.git

The script will ask you to enter the path to the input audio file, the path to the output file, and the language code for the audio file.

How It Works

The script first converts the input audio file to WAV format if necessary using the Pydub library. It then transcribes the audio data to text using the SpeechRecognition library and the Google speech recognition API. Finally, it writes the transcribed text to the output file.

Why Use This Script?

This script can be useful for anyone who needs to transcribe audio files to text, such as researchers, journalists, and content creators. It provides a simple and efficient way to transcribe audio data, with support for multiple audio formats and languages.

Supported Languages

Language Code
English (US) en-US
English (UK) en-GB
French fr-FR
German de-DE
Spanish es-ES
Italian it-IT
Japanese ja-JP
Korean ko-KR
Mandarin Chinese zh-CN
Russian ru-RU

Note that this is not an exhaustive list of supported languages. For a full list of supported languages and their corresponding codes, see the SpeechRecognition documentation.

License

This project is licensed under the [MIT License].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 61.1%
  • Python 18.8%
  • HTML 17.5%
  • CSS 2.6%