Update README.md
Browse files
README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
---
|
2 |
-
base_model: facebook/mms-tts-
|
3 |
library_name: transformers.js
|
4 |
pipeline_tag: text-to-speech
|
5 |
tags:
|
6 |
- text-to-audio
|
7 |
---
|
8 |
|
9 |
-
https://huggingface.co/facebook/mms-tts-
|
10 |
|
11 |
## Usage (Transformers.js)
|
12 |
|
@@ -15,17 +15,17 @@ If you haven't already, you can install the [Transformers.js](https://huggingfac
|
|
15 |
npm i @xenova/transformers
|
16 |
```
|
17 |
|
18 |
-
**Example:** Generate
|
19 |
```js
|
20 |
import { pipeline } from '@xenova/transformers';
|
21 |
|
22 |
// Create a text-to-speech pipeline
|
23 |
-
const synthesizer = await pipeline('text-to-speech', '
|
24 |
quantized: false, // Remove this line to use the quantized version (default)
|
25 |
});
|
26 |
|
27 |
// Generate speech
|
28 |
-
const output = await synthesizer('
|
29 |
console.log(output);
|
30 |
// {
|
31 |
// audio: Float32Array(17152) [ ... ],
|
|
|
1 |
---
|
2 |
+
base_model: facebook/mms-tts-mlg
|
3 |
library_name: transformers.js
|
4 |
pipeline_tag: text-to-speech
|
5 |
tags:
|
6 |
- text-to-audio
|
7 |
---
|
8 |
|
9 |
+
https://huggingface.co/facebook/mms-tts-mlg with ONNX weights to be compatible with Transformers.js.
|
10 |
|
11 |
## Usage (Transformers.js)
|
12 |
|
|
|
15 |
npm i @xenova/transformers
|
16 |
```
|
17 |
|
18 |
+
**Example:** Generate Malagasy speech with `Xenova/mms-tts-fra`.
|
19 |
```js
|
20 |
import { pipeline } from '@xenova/transformers';
|
21 |
|
22 |
// Create a text-to-speech pipeline
|
23 |
+
const synthesizer = await pipeline('text-to-speech', 'neonwatty/mms-tts-mlg-onnx', {
|
24 |
quantized: false, // Remove this line to use the quantized version (default)
|
25 |
});
|
26 |
|
27 |
// Generate speech
|
28 |
+
const output = await synthesizer('Salama');
|
29 |
console.log(output);
|
30 |
// {
|
31 |
// audio: Float32Array(17152) [ ... ],
|