cosyvoice.cpp
cosyvoice.cpp copied to clipboard
CosyVoice inference in C/C++
我的 https://github.com/HaujetZhao/Qwen3-TTS-GGUF 就是只把 LLM 部分提取为 GGUF,用现成的 LLama.cpp 加速,然后其它部分转为 onnx 用 OnnxRuntime 跑,二者都可以用 gpu 加速。 当然我这是调包行为。 如果要用纯 cpp 实现,可以把各个组件剥离开,分别用 gpu (cuda/vulkan) 跑。如果 llm 部分不能跑,就把 llm 部分提取为适合 llama.cpp 的结构,llama.cpp 必定是可以跑的,对比看看它是做了什么优化。
does it have a plan to enable streaming audio generation support in the future?
CosyVoice3 v0.2.0: clicks at native streaming joins; cumulative HiFT context reduces discontinuities
## Summary With CosyVoice3 streaming on v0.2.0 (`67d45feb2f654bbc66cca25bff78464b3ec08fa1`), some voiced chunk boundaries contain an audible click/pop in the PCM produced by the native C API. This is observable before HTTP...
在 windows 上使用 RTX A4000 cuda 调用时,每隔几分钟就会发生一次 Failed to decode LLM output. 错误,导致接口调用卡住 10s+, 使用相同的参数,再次调用又可以正常返回。 我使用的是单线程无并发调用,post 内容如下: {"model":"cosyvoice3-2512","input":"再看看眼神平静的牧尘","voice":"alloy","speed":1,"response_format":"wav","mode":"instruct","instruct_text":"用沉稳、客观、清晰的语调朗读,语速平稳,不要带情绪起伏,像新闻主播播报"} 日志如下: cosyvoice-server.exe -m "models\CosyVoice3-2512_Q8_0.gguf" --prompt-speech "models\prompt-speech\test2.gguf" --host 127.0.0.1 --port 9999 ggml_cuda_init: found...
您好,感谢您开发和维护 cosyvoice.cpp。 我目前使用 CosyVoice 官方 Python 仓库进行 CosyVoice3 推理,发现合成音频有较高概率在句首出现短促的杂音、爆音或 click/pop,句尾偶尔也会出现类似问题。 这个现象与官方仓库中的以下 Issue 比较相似: - https://github.com/QwenAudio/CosyVoice/issues/1786 我注意到您之前在 cosyvoice.cpp 中增加了一个默认启用的 20ms fade-in 后处理: - https://github.com/Lourdle/cosyvoice.cpp/commit/48ed9435fc5f7cf4aca3ec0c68a12494379ce0b9 从提交代码来看,处理方式是对生成音频开头的约 20ms 做线性淡入。我想请教几个问题: 1. 您当时添加 fade-in,是否也是因为观察到了 CosyVoice3...
我在 Windows 11 使用了 VS2022 和 VS2026 配置生成后,cosyvoice-cli 可以编译成功, cosyvoice-server 都出现了以下错误,不知道作者有没有遇到? 我使用如下配置: cmake -B ../build -S ./cosyvoice.cpp ^ -DCMAKE_BUILD_TYPE=Release ^ -DICU_PREBUILT_DIR="./cpp-deps/icu4c-78.3-Win64-MSVC2022" ^ -DORT_PREBUILT_DIR="./cpp-deps/onnxruntime-win-x64-1.29.0" 错误信息如下: ... cosyvoice.cpp\tools\server\httplib.ixx(79,1): fatal error C1001: 内部编译器错误。...
tts bug
如果文本带有emoji的话,我发现流式tts的话会报错,普通完整的tts不报错,可能是流式tts会对文本进行切分?建议输入的时候对emoji等非法输入进行清除 Failed to sample token from LLM output. This might be wrong with the model or caused by an issue with the sampling parameters.
作者好,我纯使用者,Windows 11 + RTX A4000,跑的 release:cosyvoice-b8b69f7-windows-x64-miniaudio-no_icu(内置 GGML CUDA 后端,cuda 13.1 构建)。 GGML 版本: llama-b8581-bin-win-cuda-13.1-x64 从 https://huggingface.co/yang-qi1222/cosyvoice3_stream.cpp/tree/main/prompts 下载的 prompt 跑出来很稳;但用自己的 wav 做 zero-shot 克隆,逐句合成时出现:①音量大小句间漂移 ②前导有嘶嘶/咔哒 ③韵律偶尔跳戏。 参考音频处理: ``` ffmpeg -i in.wav...
运行bug
(py312) ligong@ligong-System-Product-Name:~/chenmc/cosyvoice.cpp$ ./build-cuda/bin/cosyvoice-server --model CosyVoice3-2512_Q8_0.gguf --voice-prompt alloy=1.gguf --host 0.0.0.0 --port 8080 --backend cuda0 --stream --chunk-tokens 200 [KVDBG] LLM kv_cache raw=0x800008C2 separate=1 k=2 v=6 fallback=2 fattn=1 allow_fallback=1 [KVDBG] DIT kv_cache raw=0x5481AC01...
I tried to add a new interface for v1/audio/speech-stream to the AI. The process worked, but there was a current sound at the junction of each returned audio data packet....