Speech-to-text

shaojieli/streaming-zipformer-fr

Use this model

Install

npm install @wfloat/wfloat-web

Speech to text

Serve your recording at /recording.wav.

import { loadSpeechToText } from '@wfloat/wfloat-web';
const model = await loadSpeechToText('shaojieli/streaming-zipformer-fr');
const audio = await fetch('/recording.wav').then(response => response.blob());
const result = await model.transcribe(audio).result();
console.log(result.text);
await model.unload();

Speech to text reference · Downloads and cleanup