Overview
The Speech-to-Text (STT) API allows you to transcribe audio files or raw audio data to text using on-device Whisper models. All transcription happens locally on the device for privacy and offline capability.Basic Usage
Setup
Before transcribing, you need to download and load an STT model:API Reference
transcribeFile
transcribe
Transcribe base64-encoded audio data.
transcribeBuffer
Transcribe raw float32 audio samples directly.
transcribeBuffer converts the Float32Array to base64 internally and calls the native
transcribe() method. The sample rate defaults to 16000 Hz.STT Options
STT Result
Examples
Transcribe Base64 Audio
Transcribe Float32 Buffer
React Native Recording + Transcription
Using the SDK’s built-inRunAnywhere.Audio API for recording:
VoiceRecorder.tsx
Transcribe Buffer from Microphone
Supported Audio Formats
For best results, use 16kHz mono WAV files. The SDK automatically handles audio conversion, but
native formats are faster.
Available Models
Error Handling
Related
STT Streaming
Real-time transcription
STT Options
Advanced configuration
VAD
Voice Activity Detection
Voice Agent
Complete voice pipeline