Skip to content

Treat empty and null speech voice values as omitted - #1086

Merged
0xShug0 merged 1 commit into
mainfrom
fix/server-empty-voice
Oct 25, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/server-empty-voice

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

An empty voice previously skipped the configured default preset, dropping its reference audio; null raised a JSON type error. Treat both values as omitted in shared speech-request parsing. Nonempty voice selections, explicit voice_ref precedence, and rejection of other value types retain their existing behavior.

Updates the server docs and existing voice-preset regression tests.

Validation:

  • Debug server build and server_voice_preset_test, server_runtime_selection_test, and server_speech_option_exceptions_test passed.
  • Live OmniVoice Q8 HTTP requests with a configured reference audio/transcript: omitted voice, "", and null all returned HTTP 200 and byte-identical 3.36-second WAVs.
  • Explicit reference audio matched the default; a named preset with its own speed setting correctly overrode the default and matched equivalent explicit request settings.

Addresses #1078.

@0xShug0
0xShug0 merged commit 8aeaa29 into main Oct 25, 2026
12 checks passed
@0xShug0
0xShug0 deleted the fix/server-empty-voice branch October 25, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant