Views
No views yet
nvidia/canary-180m-flash for use with @asrjs/speech-recognition.encoder-model.onnxdecoder-model.onnxencoder-model.fp16.onnxdecoder-model.fp16.onnxencoder-model.int8.onnxdecoder-model.int8.onnxtokenizer.jsonconfig.jsoncanary-180m-flash includes:@asrjs/speech-recognition, this ONNX package is intended to run with the shared in-repo JavaScript NeMo mel frontend by default, so a dedicated ONNX preprocessor is not required for normal runtime usage.16000128int8/int8: not exact, so it should not be treated as the default pairing@asrjs/speech-recognition1import { createSpeechPipeline, PcmAudioBuffer } from '@asrjs/speech-recognition';
2
3const pipeline = createSpeechPipeline({ cacheModels: true });
4
5const loaded = await pipeline.loadModel({
6 preset: 'canary',
7 modelId: 'nvidia/canary-180m-flash',
8 backend: 'wasm',
9});
10
11const audio = PcmAudioBuffer.fromMono(pcmFloat32, 16000);
12const result = await loaded.transcribe(audio, {
13 detail: 'detailed',
14 responseFlavor: 'canonical+native',
15});
16
17console.log(result.canonical.text);1const loaded = await pipeline.loadModel({
2 family: 'nemo-aed',
3 modelId: 'nvidia/canary-180m-flash',
4 backend: 'wasm',
5 options: {
6 source: {
7 kind: 'huggingface',
8 repoId: 'ysdede/canary-180m-flash-onnx',
9 preprocessorBackend: 'js',
10 encoderQuant: 'fp32',
11 decoderQuant: 'fp32',
12 },
13 },
14});