TheStageAI/TheWhisper

★ 897⑂ 56

Optimized Whisper models for streaming and on-device use

About TheStageAI/TheWhisper

TheStageAI/TheWhisper is an open-source project on GitHub, mainly written in Python. Optimized Whisper models for streaming and on-device use It currently holds 897 stars and 56 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Local & On-Device AI board.

GitHub Repository Details

Repository TheStageAI/TheWhisper · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

TheWhisper: High-Performance Speech-to-Text

License: MIT Hugging Face NVIDIA Apple Silicon

https://github.com/TheStageAI/TheWhisper/blob/HEAD/Frame 339234 (2)

🚀 Overview

This repository aims to share and develop the most efficient speech-to-text and text-to-speech inference solution -with a strong focus on self-hosting, cloud hosting, and on-device inference across multiple devices.

For the first release this repository provides open-source transcription models with streaming inference support and:

https://github.com/user-attachments/assets/f4d3fe7b-e2c5-42ff-a5d0-fef6afd11684

It is optimized for low-latency, low power usage, and scalable streaming transcription. Ideal for real-time captioning, live meetings, voice interfaces, and edge deployments.

📖 Table of Contents

---

✨ Features

https://github.com/TheStageAI/TheWhisper/blob/HEAD/apple m2 whisper (4) https://github.com/TheStageAI/TheWhisper/blob/HEAD/nvidia l40s (2)

For comprehensive performance and quality benchmarks see benchmark/.

---

📦 Quick start

Clone the repository

git clone https://github.com/TheStageAI/TheWhisper.git
cd TheWhisper

Install for Apple

pip install .[apple]

Install for Nvidia

pip install .[nvidia]

Install for Nvidia with TheStage AI optmized engines

pip install 'thestage-elastic-models[nvidia]==0.1.7' --index-url https://thestage.jfrog.io/artifactory/api/pypi/pypi-thestage-ai-production/simple --extra-index-url https://pypi.nvidia.com --extra-index-url https://pypi.org/simple
pip install .[nvidia]
pip install thestage

Install for Jetson-Thor with TheStage AI optmized engines

Make sure you have tensorrt==10.13.3.9 installed on your jetson and run:

pip install thestage-elastic-models[thor]==0.1.7 --extra-index-url https://thestage.jfrog.io/artifactory/api/pypi/pypi-thestage-ai-jetson-thor/simple -i https://pypi.jetson-ai-lab.io/sbsa/cu130/+simple/ --extra-index-url https://pypi.org
pip install .
pip install thestage

Then generate access token on TheStage AI Platform in your profile and execute the following command:

thestage config set -t <YOUR_API_TOKEN>
-----

🏗️ Support Matrix and System Requirements

| Feature | whisper-large-v3 (Nvidia) | whisper-large-v3 (Apple) | whisper-large-v3-turbo (Nvidia) | whisper-large-v3-turbo (Apple) | | --- | --- | --- | --- | --- | | Streaming | ✅ | ✅ | ✅ | ✅ | | Accelerated | ✅ | ✅ | ✅ | ✅ | | Word Timestamps | ✅ | ✅ | ✅ | ✅ | | Multilingual | ✅ | ✅ | ✅ | ✅ | | 10s Chunk Mode | ✅ | ✅ | ✅ | ✅ | | 15s Chunk Mode | ✅ | ✅ | ✅ | ✅ | | 20s Chunk Mode | ✅ | ✅ | ✅ | ✅ | | 30s Chunk Mode | ✅ | ✅ | ✅ | ✅ |

Nvidia GPU Requirements

Apple Silicon Requirements

---

▶️ Usage and Deployment

Apple Usage

import torch
from thestage_speechkit.apple import ASRPipeline

model = ASRPipeline( model='TheStageAI/thewhisper-large-v3-turbo', # optimized model with ANNA model_size='S', chunk_length_s=10 )

inference

result = model( "path_to_your_audio.wav", return_timestamps="word" )

print(result["text"])

Apple Usage with Streaming

from thestage_speechkit.streaming import StreamingPipeline, MicStream, FileStream, StdoutStream

streaming_pipe = StreamingPipeline( model='TheStageAI/thewhisper-large-v3-turbo', # Optimized model by ANNA model_size='S', # Window length chunk_length_s=10, platform='apple', language='en' )

set stride in miliseconds

mic_stream = MicStream(step_size_s=0.5) output_stream = StdoutStream()

while True: chunk = mic_stream.next_chunk() if chunk is not None: approved_text, assumption = streaming_pipe(chunk) output_stream.write(approved_text, assumption) else: break

Nvidia Usage (HuggingFace Transfomers)

import torch
from thestage_speechkit.nvidia import ASRPipeline

model = ASRPipeline( model='TheStageAI/thewhisper-large-v3-turbo', # allowed: 10s, 15s, 20s, 30s chunk_length_s=10, # optimized TheStage AI engines batch_size=32, device='cuda' )

inference

result = model( "path_to_your_audio.wav", chunk_length_s=10, generate_kwargs={'do_sample': False, 'use_cache': True} )

print(result["text"])

Nvidia Usage (TheStage AI engines)

import torch
from thestage_speechkit.nvidia import ASRPipeline

model = ASRPipeline( model='TheStageAI/thewhisper-large-v3-turbo', # allowed: 10s, 15s, 20s, 30s chunk_length_s=10, # optimized TheStage AI engines model_size='S', batch_size=32, device='cuda' )

inference

result = model( "path_to_your_audio.wav", chunk_length_s=10, generate_kwargs={'do_sample': False, 'use_cache': True} )

print(result["text"])

-----

💻 Build On-Device Desktop Application for Apple

You can build a macOS desktop app with real-time transcription. Find a simple ReactJS application here: Link to React Frontend You can also download our app built using this backend here: TheNotes for macOS

-----

📊 Benchmarks

TheWhisper is a fine-tuned Whisper model that can process audio chunks of any size up to 30 seconds. Unlike the original Whisper models, it doesn't require padding audio with silence to reach 30 seconds. For quality benchmarks, we used the multilingual benchmarks Open ASR Leaderboard.

For comprehensive quality and performance benchmarks, including comparisons with other Whisper inference solutions, please refer to the benchmark/ directory.

https://github.com/TheStageAI/TheWhisper/blob/HEAD/vanilla whisper (1) https://github.com/TheStageAI/TheWhisper/blob/HEAD/TheStage AI Whisper (1) https://github.com/TheStageAI/TheWhisper/blob/HEAD/Open ASR Leaderboard Benchmark https://github.com/TheStageAI/TheWhisper/blob/HEAD/Multilingual Benchmark

---

🏢 Enterprise License Summary

To get commercial license for bigger number of GPUs to use TheStage AI optimized engines please contact us here: Service request

| Platform | Engine Type | Status | License | |--------------------------|---------------------------|------------|-----------------------------------------| | NVIDIA GPUs (CUDA) | Pytorch HF Transformers | ✅ Stable | Free | | macOS / Apple Silicon | CoreML Engine + MLX | ✅ Stable | Free | | NVIDIA GPUs (CUDA) | TheStage AI (Optimized) | ✅ Stable | Free ≤ 4 GPUs/year for small orgs |

----

🧭 Development Status

✅ OpenASR WER benchmark for multiple chunk sizes

✅ Performance benchmark for NVIDIA

✅ Support for L40S, H100, RTX 4090, RTX 5090

✅ Time-stamp support on Nvidia

✅ Nvidia Jetson support

☐ Streaming containers for Nvidia

☐ Ready-to-go containers for inference on Nvidia GPUs with OpenAI compatible API

☐ Speaker diarization and speaker identification

----

🙌 Acknowledgements

GitHub Stars & Activity

897Stars
56Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars897
Forks56
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

open-webui / open-webui

Python★ 152,659⑂ 22,336
2

HKUDS / nanobot

Python★ 48,435⑂ 8,555
3

chatchat-space / Langchain-Chatchat

Python★ 38,654⑂ 6,265
4

lss233 / kirara-ai

Python★ 19,032⑂ 1,837
5

langbot-app / LangBot

Python★ 17,931⑂ 1,602
6

Open-LLM-VTuber / Open-LLM-VTuber

Python★ 13,855⑂ 1,653
7

ollama / ollama-python

Python★ 10,545⑂ 1,178
8

LearningCircuit / local-deep-research

Python★ 9,113⑂ 828

More AI Rankings