Skip to content

IntelligentSandbox/stt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STT

A FastAPI-based service for real-time speech-to-text using faster-whisper and WebRTC VAD.

stt_preview.mov

Installation

# Install system requirements
sudo apt install portaudio19-dev

# Install python dependencies
python3 src/setup.py
source src/stt-venv/bin/activate

Usage

Start the service:

cd src/
python app.py

Python example:

import requests

with open("audio.wav", "rb") as f:
    response = requests.post(
        "http://localhost:8002/transcribe",
        files={"file": f}
    )
    print(response.json()["text"])