{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "systran-faster-whisper--add-fast-transcription-to-a-python-app",
 "repo": "SYSTRAN/faster-whisper",
 "repo_url": "https://github.com/SYSTRAN/faster-whisper",
 "repo_slug": "systran-faster-whisper",
 "title": "Add fast speech-to-text to a Python script",
 "page_title": "How to add fast speech-to-text to a Python script with Faster Whisper",
 "summary": "Install Faster Whisper and transcribe audio files in a few lines, on GPU or on CPU with int8.",
 "who": "A developer building a meeting notes tool or voice feature who wants Whisper quality without the slowness.",
 "problem": "The original Whisper package is slow and memory hungry, which makes it costly to run at any volume.",
 "outcome": "A Python function that returns timestamped transcript segments and the detected language for any audio file.",
 "steps": [
  "Run `pip install faster-whisper`",
  "Create a model with `WhisperModel(model_size, device=\"cuda\", compute_type=\"float16\")`, or use device cpu with compute_type int8 if you have no GPU",
  "Call `model.transcribe(\"audio.mp3\", beam_size=5)` to get segments and info",
  "Iterate over the segments to print start, end and text; segments is a generator, so transcription only runs when you loop over it",
  "Read info.language and info.language_probability to see which language was detected"
 ],
 "agent_prompt": "Add SYSTRAN/faster-whisper to my Python project and write a function transcribe(path) that loads the <model size> model on <cuda or cpu with int8>, transcribes the file with beam_size=5 and returns a list of (start, end, text) plus the detected language. Test it on <audio file>.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "GPU use needs matching CUDA 12 and cuDNN 9 libraries; older CUDA setups need an older ctranslate2 version as the README explains.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.9 or greater",
  "No system FFmpeg needed: audio is decoded with PyAV",
  "For GPU: NVIDIA cuBLAS for CUDA 12 and cuDNN 9 for CUDA 12"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/systran-faster-whisper/add-fast-transcription-to-a-python-app/",
 "md": "https://dedupedai.com/use-cases/systran-faster-whisper/add-fast-transcription-to-a-python-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/systran-faster-whisper--add-fast-transcription-to-a-python-app.json",
 "api_version": "v1"
}
