Skip to content

Commit ad7c9c8

Browse files
committed
[HIGGS AUDIO] Add dynamic system_prompt and reference_audio for runtime control
- Add system_prompt field to AudioSpeechRequest for dynamic style control - Add reference_audio and reference_text fields for voice cloning at runtime - Priority: request values > preset values > defaults - Add test examples for emotional variations
1 parent 8a958e5 commit ad7c9c8

4 files changed

Lines changed: 1875 additions & 8 deletions

File tree

‎higgs-audio-poc/vllm-v2/Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ COPY higgs_audio.py /usr/local/lib/python3.12/dist-packages/vllm/model_executor/
1717
# - Fixes WAV headers (single file with correct duration)
1818
COPY serving_audio_patched.py /usr/local/lib/python3.12/dist-packages/vllm/entrypoints/bosonai/serving_audio.py
1919

20+
# Fix 3: Add system_prompt field to AudioSpeechRequest for dynamic style control
21+
COPY protocol_patched.py /usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/protocol.py
22+
2023
# Add custom voice presets with system prompts for style control
2124
COPY custom_voices.json /usr/local/lib/python3.12/dist-packages/vllm/entrypoints/bosonai/voice_presets/custom_voices.json
2225

0 commit comments

Comments
 (0)