Skip to content

farkoo/Simple-Speech-to-Text-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Audio Transcription Service with Flask

This repository contains a simple Flask web application that provides an endpoint for transcribing audio files using a pre-trained model.

Overview

The application allows users to upload audio files in various formats, including WAV, MP3, M4A, and FLAC. Once an audio file is uploaded, the application uses the hezarai/whisper-small-fa model to transcribe the audio content and returns the transcripts in JSON format.

Installation

  1. Clone this repository to your local machine.
  2. Ensure you have Python installed (version 3.6 or later).
  3. Install the required Python packages:

pip install Flask hezar librosa

Usage

  1. Run the Flask application:
python main.py
  1. The application will start a web server accessible at http://127.0.0.1:5000.

  2. Example Request:

   curl -X POST http://127.0.0.1:5000/transcribe -F "file=@path_to_audio_file.wav"
  1. Example Response:
{
    "transcripts": [
        {
            "chunks": null,
            "text": "و این تنها محدود به محیط کار نیست"
        }
    ]
}

Support

Contact me @:

e-mail:

Telegram id:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages