Instructions to use onnx-community/granite-4.0-1b-speech-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/granite-4.0-1b-speech-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('automatic-speech-recognition', 'onnx-community/granite-4.0-1b-speech-ONNX');
| { | |
| "feature_extractor_type": "GraniteSpeechFeatureExtractor", | |
| "melspec_kwargs": { | |
| "hop_length": 160, | |
| "n_fft": 512, | |
| "n_mels": 80, | |
| "sample_rate": 16000, | |
| "win_length": 400 | |
| }, | |
| "processor_class": "GraniteSpeechProcessor", | |
| "projector_downsample_rate": 5, | |
| "projector_window_size": 15, | |
| "sampling_rate": 16000 | |
| } | |