Spaces:
Running
Running
Update src/worker.js
Browse files- src/worker.js +3 -2
src/worker.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
| 26 |
MIN_SPEECH_DURATION_SAMPLES,
|
| 27 |
} from "./constants";
|
| 28 |
|
| 29 |
-
const model_id = "onnx-community/Kokoro-82M-v1.
|
| 30 |
// onnx-community/Kokoro-82M-v1.0-ONNX
|
| 31 |
// onnx-community/Kokoro-82M-v1.1-zh-ONNX
|
| 32 |
// onnx-community/Kokoro-82M-v1.0-ONNX-timestamped
|
|
@@ -68,10 +68,11 @@ const DEVICE_DTYPE_CONFIGS = {
|
|
| 68 |
};
|
| 69 |
const transcriber = await pipeline(
|
| 70 |
"automatic-speech-recognition",
|
| 71 |
-
"onnx-community/moonshine-tiny-ONNX",
|
| 72 |
// onnx-community/whisper-base
|
| 73 |
// onnx-community/moonshine-base-ONNX
|
| 74 |
// onnx-community/moonshine-tiny-ONNX
|
|
|
|
| 75 |
{
|
| 76 |
device,
|
| 77 |
dtype: DEVICE_DTYPE_CONFIGS[device],
|
|
|
|
| 26 |
MIN_SPEECH_DURATION_SAMPLES,
|
| 27 |
} from "./constants";
|
| 28 |
|
| 29 |
+
const model_id = "onnx-community/Kokoro-82M-v1.1-zh-ONNX";
|
| 30 |
// onnx-community/Kokoro-82M-v1.0-ONNX
|
| 31 |
// onnx-community/Kokoro-82M-v1.1-zh-ONNX
|
| 32 |
// onnx-community/Kokoro-82M-v1.0-ONNX-timestamped
|
|
|
|
| 68 |
};
|
| 69 |
const transcriber = await pipeline(
|
| 70 |
"automatic-speech-recognition",
|
| 71 |
+
"onnx-community/moonshine-tiny-zh-ONNX",
|
| 72 |
// onnx-community/whisper-base
|
| 73 |
// onnx-community/moonshine-base-ONNX
|
| 74 |
// onnx-community/moonshine-tiny-ONNX
|
| 75 |
+
// onnx-community/moonshine-tiny-zh-ONNX
|
| 76 |
{
|
| 77 |
device,
|
| 78 |
dtype: DEVICE_DTYPE_CONFIGS[device],
|