thewhisper-large-v3-turbo
TheStageAI
whisper-large-v3-turbo model optimized to work on audio chunks of different duration
Deploy
Serving with Docker Image
For serving with Nvidia GPUs, we provide ready-to-go Docker containers with OpenAI-compatible API endpoints.
Using our containers you can set up an inference endpoint on any desired cloud/serverless providers as well as on-premise servers.
You can also use this container to run inference through TheStage AI platform.
Prebuilt image from ECR
Pull docker image and start inference container. The container serves one model on one GPU; on a multi-GPU host --gpus all is fine, the model is placed on a single device:
docker pull public.ecr.aws/i3f7g5s7/thestage/elastic-models:0.2.4.post0-stt-streaming-v2-20261008-19026a9
docker run --rm -it \ --name triton-stt \ --gpus all \ -p 127.0.0.1:<PORT>:<PORT> \ -v "$HOME/.cache:/opt/project/.cache/" \ -e MODEL_TYPE=<MODEL_TYPE> \ -e PORT=<PORT> \ -e AUTH_TOKEN=<AUTH_TOKEN> \ -e MODEL_REPO=TheStageAI/thewhisper-large-v3-turbo \ -e MODEL_SIZE=<MODEL_SIZE> \ -e MODEL_BATCH=<MODEL_BATCH> \ -e PIPELINE_MAX_BATCH_SIZE=<PIPELINE_MAX_BATCH_SIZE> \ -e CHUNK_LENGTH=<CHUNK_LENGTH> \ -e PREPROCESSOR_WORKERS=<PREPROCESSOR_WORKERS> \ -e MODEL_INSTANCES=<MODEL_INSTANCES> \ -e PREPROCESSOR_QUEUE_DELAY=<PREPROCESSOR_QUEUE_DELAY> \ -e MODEL_QUEUE_DELAY=<MODEL_QUEUE_DELAY> \ -e ENSEMBLE_QUEUE_DELAY=<ENSEMBLE_QUEUE_DELAY> \ -e HUGGINGFACE_ACCESS_TOKEN=<HUGGINGFACE_ACCESS_TOKEN> \ -e THESTAGE_AUTH_TOKEN=<THESTAGE_ACCESS_TOKEN> \ public.ecr.aws/i3f7g5s7/thestage/elastic-models:0.2.4.post0-stt-streaming-v2-20261008-19026a9
| Parameter | Description |
|---|---|
| stt_streaming for Whisper models. The image default is stt_streaming_v2, which serves Parakeet only. | |
| Port the HTTP proxy listens on inside the container (default: 80). | |
| User-defined secret key to authenticate incoming requests. | |
| Available: S, M, L, XL. | |
| Maximum batch size for the model. | |
| Maximum batch size for the ASR pipeline processing. | |
| Audio chunk length in seconds. 30 for any model; 10, 15, 20 only for TheStageAI/thewhisper-large-v3(-turbo) with a non-eager size. | |
| Number of preprocessor worker processes (e.g., 8). | |
| Number of Triton model instances (e.g., 1). | |
| Preprocessor dynamic-batching queue delay in microseconds (e.g., 10000). | |
| Model dynamic-batching queue delay in microseconds (e.g., 10000). | |
| Ensemble dynamic-batching queue delay in microseconds (e.g., 10000). | |
| Hugging Face access token. | |
| TheStage token generated on the platform (Profile -> Access tokens). |
Invocation
CLI
elastic-models-client client stt \
--host 127.0.0.1 --port <PORT> --metadata-port <PORT> \
--authorization <AUTH_TOKEN> \
--sample sample.wav --lang-id encURL
curl -X POST http://127.0.0.1:<PORT>/v1/audio/transcriptions \
-H "Authorization: Bearer <AUTH_TOKEN>" \
-F "file=@sample.wav" \
-F "model=thewhisper-large-v3-turbo-<MODEL_SIZE_LOWER>-cl<CHUNK_LENGTH>-bs<MODEL_BATCH>" \
-F "language=en"Endpoint Parameters
Method
POST /v1/audio/transcriptions
Header Parameters
Authorization: string
Bearer token for authentication; it must match the container's AUTH_TOKEN.
Input Body
All fields are sent as multipart/form-data.
file : binary
The audio file to transcribe.
model : string
Specifies the model to use for transcription. Format: thewhisper-large-v3-turbo- -cl -bs , where is MODEL_SIZE lowercased (s, m, l, xl), is CHUNK_LENGTH, and is MODEL_BATCH. Example: thewhisper-large-v3-turbo-s-cl15-bs1.
language : string
Language of the audio (e.g., "en", "es", "fr").
On-device deployment
Deploy TheWhisper in iOS / macOS apps with the Apple SDK, or in Android apps with the Android SDK. Both SDKs support native and Flutter integrations, download and cache this model's compiled engines, and run inference on-device. Use these SDKs for shipping apps; TheWhisper SpeechKit's Apple backend is the Python path for notebooks and macOS scripts.
| Deployment | Integration |
|---|---|
| iOS / macOS native app | Apple SDK / Swift |
| Android native app | Android SDK / Kotlin |
| Flutter app (iOS / Android) | Shared Flutter guide |
| NVIDIA server | Docker / OpenAI-compatible API |
Access token and audio input
Create an API token at app.thestage.ai and initialize the SDK before loading a model. Initial engine downloads require network access. Token validation and offline behavior depend on the SDK release and license; follow the pinned release's licensing documentation.
All transcription examples below expect 16 kHz mono audio with normalized samples in [-1.0, 1.0]: [Float] in Swift, FloatArray in Kotlin, or Float32List in Flutter. The SDK does not resample input automatically. Long recordings are windowed by the pipeline using the bundle's configuration. Current turbo Apple engines use a 10-second window; read the window size from the bundle rather than hard-coding it in your app.
TheStage Apple SDK
On-device Apple SDK
On-device transcription for iOS and macOS. The SDK downloads CoreML engines from TheStageAI/thewhisper-large-v3-turbo, auto-selects Neural Engine / GPU / CPU, and exposes batch infer plus push-based live streaming. No server in the hot path.
Docs: TheStage Apple SDK · Whisper · Repo: TheStage Apple SDK
Requirements and installation (SwiftPM)
Use a physical Apple Silicon Mac or iPhone / iPad, with macOS 15+ or iOS 18+, Xcode 16+, and Swift 6+. Flutter requires version 3.24+ and is supported on iOS. The simulator is not supported.
SwiftPM
In Xcode: File → Add Package Dependencies…, paste https://github.com/TheStageAI/AppleSDK.git, and add the TheStageSDK product. Or in Package.swift:
.package(
url: "https://github.com/TheStageAI/AppleSDK.git",
exact: Version(1, 1, 0)
)Swift — batch transcription
import TheStageSDK
let ai = TheStageAI.shared
try await ai.initialize(apiToken: "th_…")
let stt = try await WhisperPipeline(
engines_path: "TheStageAI/thewhisper-large-v3-turbo"
)
// audio: 16 kHz mono Float, samples in [-1.0, 1.0]
let result = stt.infer(audio: audio_samples, language: "en")
print(result.text)Long audio is split into the bundle's window size (10 s for the shipping turbo engines). Optional constructor knobs: device ("npu" / "gpu" / "cpu"), overlap_seconds, use_internal_vad.
Swift — live streaming
let streamer = stt.open_streamer(language: "en")
let captions = Task {
for await text in streamer.partials {
print("partial: \(text)") // committed-so-far, grows monotonically
}
}
for await frame in microphone_frames { // [Float] @ 16 kHz mono
streamer.send(frame)
if vad_detected_pause { streamer.flush() }
}
let final_text = await streamer.finish()
await captions.value
print("final: \(final_text)")partials is for live UI; finish() is the authoritative end-of-turn transcript. Call flush() at VAD pauses to keep latency flat on long turns; cancel() for barge-in.
Swift — prefetch and load progress
After initialization, prefetch the engines before opening a transcription screen:
let engines_dir = try await ai.prefetch_engines(
repo_id: "TheStageAI/thewhisper-large-v3-turbo"
)
let prefetched_stt = try await WhisperPipeline(engines_path: engines_dir)Alternatively, load from the repository with progress for the UI:
let stt_with_progress = try await WhisperPipeline(
engines_path: "TheStageAI/thewhisper-large-v3-turbo",
on_load_progress: { p in
print("[\(p.model)] \(p.phase) \(Int(p.fraction * 100))%")
}
)Progress covers download, extraction, loading, and readiness. A Whisper streamer is single-use: finish or cancel it before opening another one.
TheStage Android SDK
On-device transcription for Android using the TheStage Android SDK. Engines are downloaded from this model repository and cached on first use. Qualcomm Snapdragon devices use the Hexagon NPU through QNN, with GPU / CPU fallback where supported.
Requirements and installation
Use SDK release v1.0.0. Requirements: Android 9 / API 28 or later, compileSdk 35, JDK 17, and a physical arm64-v8a device. Available compiled engines are specific to the device's SoC; confirm bundle availability for your target device.
Follow the Android SDK installation guide to obtain TheStageCore.aar and onnxruntime-android.aar, and copy them into your app module's libs/. Configure the Qualcomm Maven repository in settings.gradle.kts:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("https://qpm-download.qualcomm.com/maven/release") }
}
}In the app module's build.gradle.kts:
dependencies {
implementation(files("libs/TheStageCore.aar"))
implementation(files("libs/onnxruntime-android.aar"))
implementation("com.qualcomm.qti:qnn-runtime:2.42.0")
implementation("com.google.code.gson:gson:2.11.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
}Add the android.permission.INTERNET permission for token validation and engine downloads. Microphone capture also requires android.permission.RECORD_AUDIO and runtime permission approval.
Kotlin — batch transcription
import ai.thestage.qlip.TheStageAI
// Inside a coroutine; context is your Android application context.
TheStageAI.registerContext(context)
TheStageAI.initialize(api_token = "your-api-token")
TheStageAI.start_model(
model_name = "stt",
engines_path = "TheStageAI/thewhisper-large-v3-turbo"
)
// audio_samples: FloatArray, 16 kHz mono, samples in [-1.0, 1.0]
val result = TheStageAI.infer(
model_name = "stt",
input_json = mapOf("audio" to audio_samples, "language" to "en")
)
println(result[0]["transcription"])
TheStageAI.stop_model(model_name = "stt")Kotlin — prefetch and load progress
After initialization, download and cache the engines before first use:
val engines_dir = TheStageAI.prefetch_model(
repo_id = "TheStageAI/thewhisper-large-v3-turbo"
)
TheStageAI.start_model(
model_name = "stt",
engines_path = engines_dir,
on_load_progress = { p ->
println("${p.phase}: ${(p.fraction * 100).toInt()}%")
}
)Live transcription
For live microphone transcription, use the Android SDK's Voice Agent, which provides streaming ASR internally. The direct Whisper pipeline has no standalone streaming-ASR entry point in this release. See the Android SDK documentation for Voice Agent setup, load progress, and prefetching.
Flutter deployment (iOS / Android)
Both plugins expose the same TheStageFlutterSDK batch transcription API. Use Flutter 3.24+ and the native requirements for your target platform listed above.
Plugin installation
Choose the dependency for your target platform in pubspec.yaml.
iOS:
# pubspec.yaml
dependencies:
thestage_apple_sdk:
git:
url: https://github.com/TheStageAI/AppleSDK.git
path: plugin/thestage_apple_sdk
ref: 1.1.0Android:
# pubspec.yaml
dependencies:
thestage_android_sdk:
git:
url: https://github.com/TheStageAI/AndroidSDK.git
path: plugin/thestage_android_sdk
ref: v1.0.0For Android, the Flutter app module must also include the AARs and runtime dependencies described in TheStage Android SDK; the plugin declares the AARs as compileOnly. The Apple Flutter plugin supports iOS.
Shared batch transcription
Use the import for your target platform:
// iOS import 'package:thestage_apple_sdk/thestage_apple_sdk.dart'; // Android: replace the iOS import with this one. // import 'package:thestage_android_sdk/thestage_android_sdk.dart'; import 'dart:typed_data';
Run the same code below inside an async function with either plugin. audio_samples is your Float32List containing 16 kHz mono samples in [-1.0, 1.0].
await TheStageFlutterSDK.initialize(api_token: 'your-api-token');
await TheStageFlutterSDK.start_model(
model_name: 'stt',
engines_path: 'TheStageAI/thewhisper-large-v3-turbo',
);
// audio_samples: Float32List, 16 kHz mono, samples in [-1.0, 1.0]
final result = await TheStageFlutterSDK.infer(
model_name: 'stt',
input_json: {'audio': audio_samples, 'language': 'en'},
);
print(result[0]['transcription']);
await TheStageFlutterSDK.stop_model(model_name: 'stt');For an app targeting both platforms, select the matching plugin through a platform-specific adapter. See the SDK repositories for integration examples.
Flutter — response fields
Both plugins return the transcript in result[0]['transcription']. Additional metrics differ by platform:
| Platform | Additional response fields |
|---|---|
| Apple | token_count (int), decode_seconds (double), optional tokens (token IDs when requested) |
| Android | mel_seconds, encoder_seconds, total_seconds, tokens_per_second (double), generated_tokens (int) |
On native Swift, the transcript is ASRResult.text; the corresponding JSON key is transcription. Avoid relying on identical metric names across plugins.
Flutter — load progress and live captions
Subscribe before start_model to show loading progress. Both plugins expose the same event fields:
final progress_subscription = TheStageFlutterSDK.on_progress.listen((event) {
if (event['model_name'] != 'stt') return;
final phase = event['phase'] as String?;
final fraction = event['progress'] as double?;
print('[stt] $phase ${((fraction ?? 0) * 100).toInt()}%');
});
// Initialize, load, and transcribe as shown above.
// Cancel the subscription when the screen is disposed.
await progress_subscription.cancel();Phases are downloading, extracting, loading, and ready. For live microphone captions in Flutter, use the SDK's Voice Agent integration on either platform; the Swift Whisper open_streamer API is not exposed directly through Flutter. See the SDK documentation for platform-specific Voice Agent setup.