Skip to content

Higgs_Audio_TTS voice cloning not working and Higgs TTS generation reached max_tokens before EOC (Arabic, CPU) #471

Description

@user6654126

Environment:

OS:Linux Mint 22.3 - Cinnamon 64-bit
CPU:AMD Ryzen 5 8400F
GPU: RTX 5060 8G VRAM
RAM: 6000MHz 16GB RAM
Model: higgs-audio-v3-tts-4b-q8_0.gguf
version: latest v0.7.2

Symptom:

when i use this model with backend cpu sometime it work , if the TTS script is small meaning less than 2 minutes.
but the problem it doesn't even use reference voice in voice cloning instead it use different and random voices and i noticed it switch into different voice after whatever limit i set in --text-chunk-size 300
so how i make it use the reference voice for voice cloning

Commands arabic test:

./build/linux-cpu-release/bin/audiocpp_cli
--task tts
--family higgs_audio_tts
--session-option "higgs_audio.mem_saver=true"
--model /home/xxxx/audio.cpp/build/linux-cpu-release/bin/models/Higgs-Audio-v3-TTS-4B-GGUF/higgs-audio-v3-tts-4b-q8_0.gguf
--backend cpu
--threads 10
--text "$(cat /home/xxxx/audio.cpp/inputs/gemini-arabic-mini.txt)"
--voice-ref /home/xxxx/audio.cpp/inputs/stoic_10seconds.wav
--reference-text "$(cat /home/xxxx/audio.cpp/inputs/stoic_10seconds.txt)"
--out /home/xxxx/audio.cpp/outputs/higgs_ara_1.wav
--text-chunk-size 300
--metrics
--log

Logs:
higgs_ara_1 log.txt

also if i removed --session-option "higgs_audio.mem_saver=true" \ and --text-chunk-size 300 \ i get Higgs TTS generation reached max_tokens before EOC
and if script is long +5 minutes i get EOC so how to fix that

Commands arabic test:

./build/linux-cpu-release/bin/audiocpp_cli
--task tts
--family higgs_audio_tts
--model /home/xxxx/audio.cpp/build/linux-cpu-release/bin/models/Higgs-Audio-v3-TTS-4B-GGUF/higgs-audio-v3-tts-4b-q8_0.gguf
--backend cpu
--threads 10
--text "$(cat /home/xxxx/audio.cpp/inputs/gemini-arabic-mini.txt)"
--voice-ref /home/xxxx/audio.cpp/inputs/stoic_10seconds.wav
--reference-text "$(cat /home/xxxx/audio.cpp/inputs/stoic_10seconds.txt)"
--out /home/xxxx/audio.cpp/outputs/higgs_ara_1.wav
--metrics
--log

Logs:
higgs_ara_2 log.txt

gemini-arabic-mini.txt
stoic_10seconds.txt
higgs_ara_1.wav
stoic_10seconds.wav

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions