Update README.md
Browse files
README.md
CHANGED
|
@@ -7,15 +7,15 @@ https://huggingface.co/jonatasgrosman/wav2vec2-large-xlsr-53-english with ONNX w
|
|
| 7 |
|
| 8 |
## Usage (Transformers.js)
|
| 9 |
|
| 10 |
-
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@
|
| 11 |
```bash
|
| 12 |
-
npm i @
|
| 13 |
```
|
| 14 |
|
| 15 |
You can then use the model for speech recognition with:
|
| 16 |
|
| 17 |
```js
|
| 18 |
-
import { pipeline } from '@
|
| 19 |
|
| 20 |
// Create an Automatic Speech Recognition pipeline
|
| 21 |
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/wav2vec2-large-xlsr-53-english');
|
|
|
|
| 7 |
|
| 8 |
## Usage (Transformers.js)
|
| 9 |
|
| 10 |
+
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
|
| 11 |
```bash
|
| 12 |
+
npm i @huggingface/transformers
|
| 13 |
```
|
| 14 |
|
| 15 |
You can then use the model for speech recognition with:
|
| 16 |
|
| 17 |
```js
|
| 18 |
+
import { pipeline } from '@huggingface/transformers';
|
| 19 |
|
| 20 |
// Create an Automatic Speech Recognition pipeline
|
| 21 |
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/wav2vec2-large-xlsr-53-english');
|