mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
xinference plugin: I can't select voice when using tts #111
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @937089773 on GitHub (Mar 21, 2025).
Self Checks
Dify version
all
Plugin version
0.0.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
As shown in the above figure, after I selected the Cosyvoice model, I was unable to select the voice information. This is because the get_customizable_model_schema method in the dify-official-plugins\models\xinference\models\tts\tts.py file did not return the model_properties.
This is the code I fixed.
It can now be displayed normally.
✔️ Error log
No response
@wxy8435 commented on GitHub (Mar 31, 2025):
这个bug,如果是本地docker 部署的 dify 镜像,应该怎么修正啊?
@937089773 commented on GitHub (Mar 31, 2025):
这个有几种方式
1,可以将docker中的代码复制出来,docker cp,修改完成之后,将这个代码挂载到docker里面
2,如果不想那么复杂,可以在上面的操作中,将运行的容器保存为镜像,docker commit可以将容器保存为镜像
3,可以用源码的dockerfile构建镜像使用
@scottywei commented on GitHub (Apr 8, 2025):
直接在docker/volumes/里面找到tts.py修改之后再启动,不生效呢?
After directly modifying tts.py in docker/volumes/ and then starting it again, the changes don’t take effect.
@sliqiao commented on GitHub (Apr 8, 2025):
官方能不能更新这个Bug,提供最新的Docker镜像,大家简单一点,这一行代码,直接把我们卡死了;
我们不想自己编译源码
@robin12jbj commented on GitHub (Jun 18, 2025):
excuse me, i run dify with docker, and xinference with conda env, how to use this project and edit the code? And where is the code you have editted? By the way, except dify sources code, how to use this project?
@robin12jbj commented on GitHub (Jun 18, 2025):
have you solved this problem yet? are you tts.py in volumes\plugin_daemon\cwd\langgenius\xinference-0.0.3@.....\models\tts\tts.py?
@937089773 commented on GitHub (Jun 19, 2025):
The environmental information I use is:
pycharm
conda -> python==3.12
The projects dify, Dify-official -plugins and Dify-plugins were downloaded respectively.
If you need to debug the project "dify-official-plugins", you need to install the go development environment
Some projects cannot run in windows. You will find this problem during the debugging process. It is best if they can run in the linux environment. The project can be run locally. You need to search for specific environmental information yourself on google.
You can deploy some projects through docker and then just debug a certain project.
@robin12jbj commented on GitHub (Jun 19, 2025):
I have already used dify in docker and it's linux environment. And where is the file I should modify and can I just modify and restart dify in docker to solve this problem?
@robin12jbj commented on GitHub (Jun 19, 2025):
I run dify with docker. And above is the official volume mounted in docker. Is this tts.py is what you said above? If so, why can't I solve the problem by modify the tts.py and restart docker?
@937089773 commented on GitHub (Jun 19, 2025):
I wonder what your docker-compose.yaml configuration is like
Take my configuration as an example: The /app/storage configuration in the plugin_daemon container is mounted under d:/dify/plugin
So the TTS. Py in d: \ dify \ plugins \ CWD \ langgenius \ xinference - hundreds @ 04 dee9c8396689421df7537f73ebb4b26efbcb7e0b9c32b7f09236e84bb97b3 Under c\models\tts\tts.py.
It needs to be searched according to the specific version. Maybe yours is not 0.0.2, it might be 0.0.3
@937089773 commented on GitHub (Jun 19, 2025):
Yes, it can be done this way, but it should be noted that if the configuration in docker is changed and not synchronized to the host's disk, it will cause the docker container to be destroyed and the configuration to be lost. Of course, you can turn the modified container into an image, and this can also solve the problem
@robin12jbj commented on GitHub (Jun 20, 2025):
I have changed the code as you say, but error in console. Is this normal?
@dosubot[bot] commented on GitHub (Aug 21, 2025):
Hi, @937089773. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and valuable contribution!