Skip to content

Commit 8af7efe

Browse files
Merge pull request #1168 from jamiepine/prep/pr-1062
feat(engines): add OmniVoice TTS engine (23 languages, non-commercial weights)
2 parents dc5b6db + ce755ff commit 8af7efe

30 files changed

Lines changed: 2293 additions & 40 deletions

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
pip install -r backend/requirements.txt
8686
pip install --no-deps chatterbox-tts
8787
pip install --no-deps hume-tada
88+
pip install --no-deps omnivoice
8889
8990
- name: Install MLX dependencies (Apple Silicon only)
9091
if: matrix.backend == 'mlx'
@@ -293,6 +294,7 @@ jobs:
293294
pip install -r backend/requirements.txt
294295
pip install --no-deps chatterbox-tts
295296
pip install --no-deps hume-tada
297+
pip install --no-deps omnivoice
296298
297299
- name: Install PyTorch with CUDA 12.8
298300
run: |
@@ -455,6 +457,7 @@ jobs:
455457
pip install -r backend/requirements.txt
456458
pip install --no-deps chatterbox-tts
457459
pip install --no-deps hume-tada
460+
pip install --no-deps omnivoice
458461
459462
- name: Build ROCm server binary (onedir)
460463
shell: bash

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
- **Stories export as M4B audiobooks or MP3 with chapter markers, and single generations export as MP3.** `GET /stories/{id}/export-audio` takes `format=wav|m4b|mp3` and `chapters=none|auto`; `auto` writes one chapter per story item titled from its first sentence (CJK aware, multi-track items deduped), so the export navigates like a real audiobook in Apple Books and Plex. `GET /history/{id}/export-audio?format=mp3` transcodes a single generation. The Stories "Export Audio" button is now a WAV / MP3 / Audiobook (M4B) menu and the history row menu gains "Export Audio (MP3)". WAV stays the default everywhere, so existing callers get the same bytes. Encoding shells out to ffmpeg (Homebrew, MacPorts and WinGet paths are searched even when the sidecar's PATH is minimal; `VOICEBOX_FFMPEG_DIR` overrides) and a missing ffmpeg returns a 503 with install instructions instead of an empty download. — @suifeng156, @joneldiablo ([#787](https://github.com/jamiepine/voicebox/pull/787), MP3 export from [#1048](https://github.com/jamiepine/voicebox/pull/1048); addresses [#165](https://github.com/jamiepine/voicebox/issues/165), [#270](https://github.com/jamiepine/voicebox/issues/270))
3030

31+
### Engines
32+
33+
- **OmniVoice TTS engine (non-commercial).** Adds k2-fsa/OmniVoice as an opt-in eighth engine: zero-shot cloning and attribute-based voice design (gender, age, pitch, accent) across the 23 languages Voicebox already lists, 24 kHz output. Its `HiggsAudioV2` codec only exists in transformers 5.x, so the modelling code is vendored under `backend/vendor/` and grafted onto the pinned 4.57 at load time; `omnivoice` installs `--no-deps` like Chatterbox and TADA. The weights are CC-BY-NC, so the engine is labelled non-commercial in the engine picker and model manager and is never a default. — @pippo73 ([#1062](https://github.com/jamiepine/voicebox/pull/1062); fixes [#380](https://github.com/jamiepine/voicebox/issues/380), [#517](https://github.com/jamiepine/voicebox/issues/517), [#791](https://github.com/jamiepine/voicebox/issues/791))
34+
3135
## [0.6.0] - 2026-10-04
3236

3337
**The stability release.** 0.5 made Voicebox a dictation and agent-voice studio; 0.6 makes it hold up. Sixty-plus contributor pull requests landed since 0.5 and most of them fix something that used to go wrong in daily use: MLX crashed with `There is no Stream(gpu, 1) in current thread` when a model was loaded on one thread and used on another, memory grew with every generation and never came back on unload, a fully-cached model retried HuggingFace five times per file before it would load offline, the Docker image could not write its own data volume, dictation refused to arm without an LLM it was never going to call, and the backend test suite would not even collect. All of that is fixed. The headline features ride on top: native AMD ROCm on Windows and in Docker, five new interface languages, and Chatterbox multilingual running on Apple Silicon through MLX.

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ RUN if [ "$PYTORCH_VARIANT" = "rocm" ]; then \
6363
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
6464
RUN pip install --no-cache-dir --prefix=/install --no-deps chatterbox-tts
6565
RUN pip install --no-cache-dir --prefix=/install --no-deps hume-tada
66+
RUN pip install --no-cache-dir --prefix=/install --no-deps omnivoice
6667
RUN pip install --no-cache-dir --prefix=/install \
6768
git+https://github.com/QwenLM/Qwen3-TTS.git
6869

‎app/src/components/CapturesTab/CapturesTab.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function CapturesTab() {
269269
// override fall through to whatever the backend picks.
270270
const engine = voice.default_engine as
271271
| 'qwen' | 'qwen_custom_voice' | 'qwen_voice_design' | 'luxtts' | 'chatterbox'
272-
| 'chatterbox_turbo' | 'tada' | 'kokoro'
272+
| 'chatterbox_turbo' | 'tada' | 'kokoro' | 'omnivoice'
273273
| undefined;
274274
return apiClient.generateSpeech({
275275
profile_id: voice.id,

‎app/src/components/Generation/EngineModelSelector.tsx‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const ENGINE_OPTIONS = [
2828
{ value: 'tada:1B', label: 'TADA 1B', engine: 'tada' },
2929
{ value: 'tada:3B', label: 'TADA 3B Multilingual', engine: 'tada' },
3030
{ value: 'kokoro', label: 'Kokoro 82M', engine: 'kokoro' },
31+
{ value: 'omnivoice', label: 'OmniVoice (non-commercial)', engine: 'omnivoice' },
3132
] as const;
3233

3334
const ENGINE_DESCRIPTIONS: Record<string, string> = {
@@ -39,27 +40,25 @@ const ENGINE_DESCRIPTIONS: Record<string, string> = {
3940
chatterbox_turbo: 'English, [laugh] [cough] tags',
4041
tada: 'HumeAI, 700s+ coherent audio',
4142
kokoro: '82M params, CPU realtime, 8 langs',
43+
omnivoice: '23 languages, voice design. CC-BY-NC weights: non-commercial use only',
4244
};
4345

4446
/** Engines that only support English and should force language to 'en' on select. */
4547
const ENGLISH_ONLY_ENGINES = new Set(['luxtts', 'chatterbox_turbo']);
4648

4749
/** Engines that support cloned (reference audio) profiles. */
48-
const CLONING_ENGINES = new Set(['qwen', 'luxtts', 'chatterbox', 'chatterbox_turbo', 'tada']);
50+
const CLONING_ENGINES = new Set([
51+
'qwen',
52+
'luxtts',
53+
'chatterbox',
54+
'chatterbox_turbo',
55+
'tada',
56+
'omnivoice',
57+
]);
4958

5059
/** Engines that synthesise a voice from a written description. */
5160
export const DESIGN_ENGINES = new Set(['qwen_voice_design']);
5261

53-
/**
54-
* Engines that actually honor the instruct kwarg at model level. Base
55-
* Qwen3-TTS accepts it but ignores it, so it is deliberately absent.
56-
*/
57-
const INSTRUCT_ENGINES = new Set(['qwen_custom_voice', 'qwen_voice_design']);
58-
59-
export function engineSupportsInstruct(engine?: string): boolean {
60-
return !!engine && INSTRUCT_ENGINES.has(engine);
61-
}
62-
6362
function getAvailableOptions(selectedProfile?: VoiceProfileResponse | null) {
6463
if (!selectedProfile) return ENGINE_OPTIONS;
6564
return ENGINE_OPTIONS.filter((opt) => isProfileCompatibleWithEngine(selectedProfile, opt.engine));

‎app/src/components/Generation/FloatingGenerateBox.tsx‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import { Textarea } from '@/components/ui/textarea';
1717
import { useToast } from '@/components/ui/use-toast';
1818
import { apiClient } from '@/lib/api/client';
19+
import { engineSupportsInstruct } from '@/lib/constants/engines';
1920
import { getLanguageOptionsForEngine, type LanguageCode } from '@/lib/constants/languages';
2021
import { useGenerationForm } from '@/lib/hooks/useGenerationForm';
2122
import { useProfile, useProfiles } from '@/lib/hooks/useProfiles';
@@ -24,7 +25,7 @@ import { cn } from '@/lib/utils/cn';
2425
import { useGenerationStore } from '@/stores/generationStore';
2526
import { useStoryStore } from '@/stores/storyStore';
2627
import { useUIStore } from '@/stores/uiStore';
27-
import { EngineModelSelector, engineSupportsInstruct } from './EngineModelSelector';
28+
import { EngineModelSelector } from './EngineModelSelector';
2829
import { ParalinguisticInput } from './ParalinguisticInput';
2930

3031
interface FloatingGenerateBoxProps {
@@ -152,7 +153,8 @@ export function FloatingGenerateBox({
152153
| 'tada'
153154
| 'kokoro'
154155
| 'qwen_custom_voice'
155-
| 'qwen_voice_design';
156+
| 'qwen_voice_design'
157+
| 'omnivoice';
156158
useEffect(() => {
157159
if (selectedProfile?.language) {
158160
form.setValue('language', selectedProfile.language as LanguageCode);
@@ -443,7 +445,7 @@ export function FloatingGenerateBox({
443445
)}
444446
</AnimatePresence>
445447

446-
{/* Instruct toggle — only for engines that actually honor the kwarg */}
448+
{/* Instruct toggle — only for engines that honor the kwarg (see INSTRUCT_ENGINES) */}
447449
<AnimatePresence>
448450
{isExpanded && engineSupportsInstruct(form.watch('engine')) && (
449451
<motion.div
@@ -530,7 +532,11 @@ export function FloatingGenerateBox({
530532
<FormControl>
531533
<Textarea
532534
{...field}
533-
placeholder={t('generation.instruct.placeholder')}
535+
placeholder={
536+
form.watch('engine') === 'omnivoice'
537+
? t('generation.instruct.placeholderOmnivoice')
538+
: t('generation.instruct.placeholder')
539+
}
534540
className="resize-none bg-transparent border border-accent/20 focus-visible:ring-1 focus-visible:ring-accent/40 rounded-2xl text-sm placeholder:text-muted-foreground/60 w-full px-3 py-2"
535541
style={{ minHeight: '60px', maxHeight: '160px' }}
536542
maxLength={500}

‎app/src/components/ServerSettings/ModelManagement.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const MODEL_DESCRIPTIONS: Record<string, string> = {
6969
'HumeAI TADA 3B Multilingual — built on Llama 3.2 3B. Supports 10 languages with high-fidelity voice cloning via text-acoustic dual alignment.',
7070
kokoro:
7171
'Kokoro 82M by hexgrad. Tiny 82M-parameter TTS that runs at CPU realtime. Supports 8 languages with pre-built voice styles. Apache 2.0 licensed.',
72+
omnivoice:
73+
'OmniVoice by k2-fsa. Zero-shot voice cloning via a diffusion language model, plus attribute-based voice design (gender, age, pitch, accent). The model covers 600+ languages; Voicebox exposes the 23 in its own language list. 24kHz output. NON-COMMERCIAL: the weights are CC-BY-NC (code is Apache 2.0; the bundled Higgs Audio V2 codec is under the Boson community licence), so do not use output commercially.',
7274
'qwen-custom-voice-1.7B':
7375
'Qwen3-TTS CustomVoice 1.7B by Alibaba. 9 premium preset voices with instruct-based style control for tone, emotion, and prosody. Supports 10 languages.',
7476
'qwen-custom-voice-0.6B':
@@ -417,7 +419,8 @@ export function ModelManagement() {
417419
m.model_name.startsWith('luxtts') ||
418420
m.model_name.startsWith('chatterbox') ||
419421
m.model_name.startsWith('tada') ||
420-
m.model_name.startsWith('kokoro'),
422+
m.model_name.startsWith('kokoro') ||
423+
m.model_name.startsWith('omnivoice'),
421424
) ?? [];
422425
const whisperModels = modelStatus?.models.filter((m) => m.model_name.startsWith('whisper')) ?? [];
423426
const llmModels = modelStatus?.models.filter((m) => m.model_name.startsWith('qwen3-')) ?? [];

‎app/src/components/VoiceProfiles/ProfileForm.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const DEFAULT_ENGINE_OPTIONS = [
7575
{ value: 'chatterbox_turbo', label: 'Chatterbox Turbo' },
7676
{ value: 'tada', label: 'TADA' },
7777
{ value: 'kokoro', label: 'Kokoro 82M' },
78+
{ value: 'omnivoice', label: 'OmniVoice (non-commercial)' },
7879
] as const;
7980

8081
function makeProfileSchema(t: (key: string) => string) {

‎app/src/i18n/locales/en/translation.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@
717717
"show": "Show delivery instructions",
718718
"hide": "Hide delivery instructions",
719719
"tooltip": "Delivery instructions (tone, emotion, pace)",
720-
"placeholder": "Delivery instructions — e.g. Speak slowly with warmth, Authoritative and clear…"
720+
"placeholder": "Delivery instructions — e.g. Speak slowly with warmth, Authoritative and clear…",
721+
"placeholderOmnivoice": "Voice attributes, comma-separated — e.g. female, low pitch, british accent (fixed vocabulary: gender, age, pitch, whisper, accent)"
721722
},
722723
"voiceSelector": {
723724
"placeholder": "Select a voice…"

‎app/src/lib/api/types.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export interface GenerationRequest {
7979
| 'chatterbox'
8080
| 'chatterbox_turbo'
8181
| 'tada'
82-
| 'kokoro';
82+
| 'kokoro'
83+
| 'omnivoice';
8384
instruct?: string;
8485
/** When true and the profile has a personality prompt, input text is rewritten in-character before TTS. */
8586
personality?: boolean;

0 commit comments

Comments
 (0)