Drop audio file here or click to upload
WAV, MP3, M4A, OGG, FLAC, WEBM (Auto-resampled to 16 kHz)
import { Swanada } from 'swanada';
// 1. Streaming transcription with two-zone partials
const stt = await Swanada.create({ language: 'sa', numThreads: 4 });
const stream = stt.createStream();
stream.on('partial', ({ committed, volatile }) => {
console.log('Committed:', committed, 'Volatile:', volatile);
});
await stream.push(audioChunk16k);
const result = await stream.finish();
console.log('Final:', result.text, 'IAST:', Swanada.transliterateIast(result.text));