Spaces:
Running
Running
Voice: cloud Qwen3-TTS is the default engine in prod (was Kokoro)
Browse filesCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- web/tts.js +3 -2
web/tts.js
CHANGED
|
@@ -10,8 +10,9 @@ import { playSamples, stopAudio } from '/web/ttsAudio.js'
|
|
| 10 |
import { ensurePersistentStorage } from '/web/storage.js'
|
| 11 |
|
| 12 |
const ENGINES = [kokoro, qwen3local, qwen3, kitten, webspeech]
|
| 13 |
-
//
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
// Qwen3-TTS designs a voice from a free-form description (the persona's `voice`).
|
| 17 |
// Panels set it before narrating; previewVoice() plays a one-off sample.
|
|
|
|
| 10 |
import { ensurePersistentStorage } from '/web/storage.js'
|
| 11 |
|
| 12 |
const ENGINES = [kokoro, qwen3local, qwen3, kitten, webspeech]
|
| 13 |
+
// Default voice engine: local-GPU Qwen3-TTS on localhost, cloud Qwen3-TTS (DashScope)
|
| 14 |
+
// in prod. (Kokoro/Kitten/Web Speech stay as the in-browser, local-first alternatives.)
|
| 15 |
+
let activeId = isLocalhost() ? 'qwen3local' : 'qwen3'
|
| 16 |
|
| 17 |
// Qwen3-TTS designs a voice from a free-form description (the persona's `voice`).
|
| 18 |
// Panels set it before narrating; previewVoice() plays a one-off sample.
|