qianchencc
qianchencc
当我尝试使用这个实例中的程序混合一个声音模型并保存到本地时,问题发生了. import requests response = requests.post( "http://localhost:8880/v1/audio/voices/combine", json="af_heart(2.2)+af_nicole(2.8)+af_jessica(1.5)", headers={"Accept": "application/octet-stream"} ) if response.status_code != 200: print(f"Error: {response.text}") exit(1) with open("custom_voice.pt", "wb") as f: f.write(response.content) print("音色文件保存成功") 当json输入如上时,显然af_heart(2.2)会被下面这段相应的代码识别成一个模型,而非匹配权重.因此引发了错误: Error: {"detail":{"error":"validation_error","message":"Base voice 'af_heart(2.2)'...
尚不清楚如何稳定触发,但是我经常在使用时发现这一问题: 只要按下转录键,就会变成类似于“嗯,对的对的,嗯对对对”这样看起来像是模型幻觉的转录。重启后端和输入法都无法解决这一问题。 目前发现重启主机,或者重新运行scripts/setup-audio.py可以解决。 估计是对于音频设备的检查有问题。 安装环境为ubuntu25.10,fcitx5。不知道有没有其他人出现过这样的情况?
我已经完成了这一项工作,并且表现得非常好,因此在这里分享我的代码. https://github.com/user-attachments/assets/1e7982c0-80f1-4e34-8dc8-e1e0e68cc07f 首先打开文件lib/python3.9/site-packages/streamlit_chatbox/messages.py,或是在pycharm中ctrl+点击ChatBox类 然后作以下修改 ```python def ai_say( self, elements: Union[OutputElement, str, List[Union[OutputElement, str]]] = None, metadata: Dict = {}, ) -> List[OutputElement]: self.init_session() elements = self._prepare_elements(elements) chat_ele = st.chat_message("assistant", avatar=self._assistant_avatar)...
### System Info / 系統信息 1. pip uninstall transformers pip install git+https://github.com/Tsumugii24/transformers 如果git报错,那么 git clone https://github.com/Tsumugii24/transformers pip install transformers/ 2. pip install --upgrade Triton==3.4.0 pip install kernels 我的显卡为4090,在不使用MXFP4量化的情况下基本上显存不足。如果一切正常,gpt-oss-20b将占用14G左右显存。 ### Running...
## Why do you need it? 我希望使用这个插件替换掉我本地的提示词,不过这个插件目前无法支持流式的输出。 ## How could it be? 可以在接受请求时先检查stream参数,选择不同的请求读取策略。 ## Other related information 目前我测试了openai格式调用以及request调用,后者在流式下可以接受到一个响应,前者接受不到响应。 --- ## Why do you need it? I want to use this...