返回 CodeWhale
MEDIA_MODELS.md
根目录 / docs / MEDIA_MODELS.md
1 # Speech, translation and video models
2
3 > 简体中文:[zh_hans/MEDIA_MODELS.md](zh_hans/MEDIA_MODELS.md)。
4 > Source and upstream documentation reviewed: 2026-11-13. Candidates below are
5 > not additional working Codewhale backends.
6
7 ## Current source support
8
9 | Task | Codewhale path | Limits |
10 | --- | --- | --- |
11 | Text to speech (TTS) | `speech` tool; `codewhale --provider xiaomi-mimo speech "Hello from Codewhale"`; `codewhale --provider deepseek speech "Hello from Codewhale"`; CLI alias `tts`; Runtime `POST /v1/voice/tts` | Xiaomi MiMo (`mimo-v2.5-tts`, `mimo-v2.5-tts-voicedesign`, `mimo-v2.5-tts-voiceclone`, legacy `mimo-v2-tts`) and DeepSeek Tools `/v1/tools/tts` (`deepseek-tts`, voices `stella` / `tide`, formats `wav` / `pcm`). Voice design and cloning remain Xiaomi MiMo-only and require their corresponding input. |
12 | MiniMax text to speech | `speech` tool with the active `minimax` provider on its standard `/v1` route | Uses the configured regional endpoint and voice ID. Defaults to `speech-2.8-hd` and WAV. Also supports MP3, FLAC and PCM. Accepts up to 9,999 characters. WAV, PCM and FLAC also stop at about 3,500 Chinese, Japanese or Korean characters, which count three times, so the audio fits the 128 MiB response limit; MP3 allows about four times as much, and `<#x#>` pause markers count as their seconds. |
13 | Speech to text (STT/ASR) | Terminal voice input, Runtime `/v1/voice/*` including `POST /v1/voice/transcribe` (WAV/OGG); the desktop app uses that Runtime path. See [Voice input](VOICE_INPUT.md) | Explicit `CODEWHALE_ASR_MODEL`, otherwise detected local Whisper → Groq → active DeepSeek (`/v1/tools/asr`, `deepseek-asr`) → configured provider (`mimo-v2.5-asr`). Local `tiny`; Groq `whisper-large-v3-turbo`; DeepSeek `deepseek-asr`. A chat endpoint does not prove ASR support. |
14 | Video understanding | Media attachment/read paths and applicable provider capabilities | Reading video, translating subtitles and generating video are separate operations. |
15 | Video generation | No first-class generation client/tool in the audited source | A remote catalogue row does not create an executable generation route. |
16
17 `CODEWHALE_ASR_MODEL=local-whisper` explicitly selects offline recognition;
18 its binary/model must already be installed. `groq` needs `GROQ_API_KEY`;
19 `deepseek` selects DeepSeek Tools `/v1/tools/asr` (`deepseek-asr`); `mimo`
20 selects the configured provider endpoint. When `CODEWHALE_ASR_MODEL` is unset
21 and neither local Whisper nor `GROQ_API_KEY` is present, an active `deepseek`
22 or `deepseek-anthropic` provider selects `deepseek-asr`. There is no
23 config-file ASR selector or arbitrary model-ID override. A failed selected
24 local/Groq/DeepSeek backend does not silently upload to another provider.
25 Setting a Qwen/Index model name in this variable does not install a new backend.
26
27 Owners: [speech tool](../crates/engine/src/tools/speech.rs),
28 [synthesis client](../crates/engine/src/client.rs), [DeepSeek media client](../crates/engine/src/deepseek_media.rs),
29 [voice resolver](../crates/engine/src/voice.rs),
30 [Runtime voice](../crates/app-server/src/runtime_api/voice.rs). Real microphone capture,
31 synthesis and a complete customer voice journey require separate acceptance.
32
33 ## Index-Translate evaluation
34
35 [Bilibili's repository](https://github.com/bilibili/Index-Translate) publishes
36 Qwen3.5-based text translation for 150 languages under Apache-2.0, Homura
37 syllable constraints and NativeLong document translation. NativeLong's actual
38 IDs are `IndexTeam/Index-Nailong-2B` / `IndexTeam/Index-Nailong-9B`.
39 The [official collection](https://huggingface.co/collections/IndexTeam/index-translate)
40 includes quantized releases; Echo GGUF is the text backbone only.
41
42 The advertised text API is `https://index-translate.bilibili.com/v1`, model
43 `Index-Translate-35B-A3B`. A bounded public-text probe on 2026-10-06 returned
44 **HTTP 412**, an explicit access-policy rejection. No credentials/private
45 content were sent. This endpoint is not qualified as a working service.
46
47 | Separate package | Published scope | Integration status |
48 | --- | --- | --- |
49 | [Echo S2TT](https://github.com/bilibili/Index-Translate/blob/main/inference/echo-s2tt/README.md) | Chinese audio/video → English/Japanese/Spanish timestamped subtitles; 2B guide estimates about 10 GB VRAM | Local pipeline candidate, not the public text API or generic 150-language STT. |
50 | [Echo S2ST](https://github.com/bilibili/Index-Translate/blob/main/inference/echo-s2st/README.md) | Chinese → English/Spanish/Japanese; English → Chinese/Spanish/Japanese, preserving source voice. CUDA GPU ≥12 GB (2B) / ≥24 GB (9B) VRAM. | Reviewed dubbing-job candidate; long-video orchestration is separate and does not generate a new video. |
51
52 ## Other candidates
53
54 This proposed sequence follows existing execution paths; no paid test has run.
55
56 | Priority / task | Official source | Fit and remaining work |
57 | --- | --- | --- |
58 | 1: Local multilingual STT | [Qwen3-ASR](https://github.com/QwenLM/Qwen3-ASR), 0.6B / 1.7B, Apache-2.0 | Evaluate Chinese/dialect accuracy through a reviewed local adapter beside the voice resolver. Prove hardware, latency and failed-backend privacy before changing defaults. |
59 | 2: Local TTS | [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS), 0.6B / 1.7B, Apache-2.0; [CosyVoice](https://github.com/QwenAudio/CosyVoice), `Fun-CosyVoice3-0.5B-2512` | Evaluate synthesis/design/permitted voice references through existing Engine permissions, independently of the chat provider. |
60 | 2: Duration-controlled dubbing | [IndexTTS](https://github.com/index-tts/index-tts) | Its official repository uses the bilibili Model Use License Agreement. Do not infer Apache-2.0 from Index-Translate or a fork; review selected weights/terms separately. |
61 | 3: Video generation | [xAI video API](https://docs.x.ai/developers/model-capabilities/video/generation), `grok-imagine-video-1.5` | Separate asynchronous `/v1/videos/generations` and result polling. Needs typed cost/task authority, cancellation, durable job identity and verified output artifacts. A chat adapter is insufficient. |
62
63 Reuse the Engine, permission gate and artifact receipts. Pin reviewed runtime/
64 weights, expose the backend/upload destination before execution and preserve an
65 explicit offline choice. Downloads, hosted calls and voice-reference uploads
66 require ordinary authorization. Record actual failures, language directions,
67 licence scope and hardware proof. Related contracts: [providers](PROVIDERS.md),
68 [tools](TOOL_SURFACE.md), [plugins](PLUGIN_AUTHORING.md).
69
69 lines MARKDOWN