Automatic Speech Recognition
Transformers.js
ONNX
French
whisper
wakeboard
wakeskate
speech-recognition
Instructions to use almorelle/whisper-wakeref-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use almorelle/whisper-wakeref-onnx with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('automatic-speech-recognition', 'almorelle/whisper-wakeref-onnx');
readme
Browse files
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- fr
|
| 5 |
+
library_name: transformers.js
|
| 6 |
+
pipeline_tag: automatic-speech-recognition
|
| 7 |
+
base_model: openai/whisper-base
|
| 8 |
+
base_model_relation: finetune
|
| 9 |
+
tags:
|
| 10 |
+
- whisper
|
| 11 |
+
- onnx
|
| 12 |
+
- transformers.js
|
| 13 |
+
- wakeboard
|
| 14 |
+
- wakeskate
|
| 15 |
+
- speech-recognition
|
| 16 |
+
inference: false
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# whisper-wakeref-onnx
|
| 20 |
+
|
| 21 |
+
Whisper-base **fine-tuné** pour reconnaître les noms de **tricks de wakeboard /
|
| 22 |
+
wakeskate / wakeboard assis**, utilisé par l'outil de jugement vocal de
|
| 23 |
+
[WakeRef](https://wakeref.app) (`/judge/voix`). Exporté en **ONNX** pour tourner
|
| 24 |
+
**en local dans le navigateur** via [Transformers.js](https://github.com/huggingface/transformers.js).
|
| 25 |
+
|
| 26 |
+
## Particularité
|
| 27 |
+
|
| 28 |
+
Le modèle est entraîné à produire directement le **nom canonique du trick**
|
| 29 |
+
(ex. `TS BS 360`, `Crow Mobe`, `Blind Judge`) à partir d'une dictée — pas une
|
| 30 |
+
transcription libre. Sur un vocabulaire **fermé**, il agit donc comme un
|
| 31 |
+
*reconnaisseur de trick*. Une couche de matching applicative reste branchée en
|
| 32 |
+
filet pour rattraper les quasi-correspondances.
|
| 33 |
+
|
| 34 |
+
## Données & entraînement
|
| 35 |
+
|
| 36 |
+
- ~1 300 clips audio courts (push-to-talk), dictés et étiquetés via le mode de
|
| 37 |
+
collecte guidée de WakeRef ; 221 tricks (wakeboard, wakeskate, seated).
|
| 38 |
+
- Cible = nom canonique du trick (colonne `transcription`).
|
| 39 |
+
- Base : `openai/whisper-base` · langue `fr` · tâche `transcribe`.
|
| 40 |
+
- Meilleure **WER d'éval ≈ 16 %** (split 10 %, même locuteur).
|
| 41 |
+
|
| 42 |
+
## Limites
|
| 43 |
+
|
| 44 |
+
- **Mono-locuteur** : adapté à la voix de l'auteur. Pour d'autres juges, ré-entraîner
|
| 45 |
+
avec davantage de locuteurs et de conditions audio.
|
| 46 |
+
- Vocabulaire **fermé** au catalogue WakeRef ; hors de ce domaine, le comportement
|
| 47 |
+
n'est pas pertinent.
|
| 48 |
+
- Mélange français / jargon anglais propre au wake.
|
| 49 |
+
|
| 50 |
+
## Fichiers
|
| 51 |
+
|
| 52 |
+
ONNX (fp32) au format Transformers.js :
|
| 53 |
+
`onnx/encoder_model.onnx`, `onnx/decoder_model_merged.onnx` (+ variantes), avec
|
| 54 |
+
les configs et le tokenizer à la racine.
|
| 55 |
+
|
| 56 |
+
## Utilisation (Transformers.js)
|
| 57 |
+
|
| 58 |
+
```js
|
| 59 |
+
import { pipeline } from '@huggingface/transformers';
|
| 60 |
+
|
| 61 |
+
const transcriber = await pipeline(
|
| 62 |
+
'automatic-speech-recognition',
|
| 63 |
+
'almorelle/whisper-wakeref-onnx',
|
| 64 |
+
{ dtype: { encoder_model: 'fp32', decoder_model_merged: 'fp32' } }
|
| 65 |
+
);
|
| 66 |
+
const { text } = await transcriber(audioFloat32_16kHz, { language: 'french', task: 'transcribe' });
|
| 67 |
+
```
|