Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -24,9 +24,7 @@ npm i @huggingface/transformers
|
|
| 24 |
import { pipeline } from '@huggingface/transformers';
|
| 25 |
|
| 26 |
// Create speech recognition pipeline
|
| 27 |
-
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en'
|
| 28 |
-
dtype: 'fp32' // Options: "fp32", "fp16", "q8", "q4"
|
| 29 |
-
});
|
| 30 |
|
| 31 |
// Transcribe audio from URL
|
| 32 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
|
|
@@ -40,9 +38,7 @@ const output = await transcriber(url);
|
|
| 40 |
import { pipeline } from '@huggingface/transformers';
|
| 41 |
|
| 42 |
// Create speech recognition pipeline
|
| 43 |
-
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en'
|
| 44 |
-
dtype: 'fp32' // Options: "fp32", "fp16", "q8", "q4"
|
| 45 |
-
});
|
| 46 |
|
| 47 |
// Transcribe audio from URL with timestamps
|
| 48 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
|
|
@@ -62,9 +58,7 @@ const output = await transcriber(url, { return_timestamps: true });
|
|
| 62 |
import { pipeline } from '@huggingface/transformers';
|
| 63 |
|
| 64 |
// Create speech recognition pipeline
|
| 65 |
-
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en'
|
| 66 |
-
dtype: 'fp32' // Options: "fp32", "fp16", "q8", "q4"
|
| 67 |
-
});
|
| 68 |
|
| 69 |
// Transcribe audio from URL with word-level timestamps
|
| 70 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
|
|
|
|
| 24 |
import { pipeline } from '@huggingface/transformers';
|
| 25 |
|
| 26 |
// Create speech recognition pipeline
|
| 27 |
+
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en');
|
|
|
|
|
|
|
| 28 |
|
| 29 |
// Transcribe audio from URL
|
| 30 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
|
|
|
|
| 38 |
import { pipeline } from '@huggingface/transformers';
|
| 39 |
|
| 40 |
// Create speech recognition pipeline
|
| 41 |
+
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en');
|
|
|
|
|
|
|
| 42 |
|
| 43 |
// Transcribe audio from URL with timestamps
|
| 44 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
|
|
|
|
| 58 |
import { pipeline } from '@huggingface/transformers';
|
| 59 |
|
| 60 |
// Create speech recognition pipeline
|
| 61 |
+
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en');
|
|
|
|
|
|
|
| 62 |
|
| 63 |
// Transcribe audio from URL with word-level timestamps
|
| 64 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
|