Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

勾选stream mode选项程序报错 #611

Closed
whmyxh opened this issue Jul 20, 2024 · 7 comments
Closed

勾选stream mode选项程序报错 #611

whmyxh opened this issue Jul 20, 2024 · 7 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation stale The topic has been ignored for a long time

Comments

@whmyxh
Copy link

whmyxh commented Jul 20, 2024

勾选这个选项后生成一次语音后,程序就无法运行了。

@fumiama
Copy link
Member

fumiama commented Jul 22, 2024

勾选这个选项后生成一次语音后,程序就无法运行了

这是已知问题,我还没找到解决办法,疑似是gradio自己对流式的支持有问题。

@fumiama fumiama added bug Something isn't working documentation Improvements or additions to documentation labels Jul 22, 2024
@fumiama
Copy link
Member

fumiama commented Jul 22, 2024

对。bug多。我们在测试bug啊

不会说话可以不说,不想用可以不用,没人逼你。不要在其他人的issue下用发泄情绪的方式打搅正常讨论。

@fumiama
Copy link
Member

fumiama commented Jul 22, 2024

对。bug多。我们在测试bug啊

不会说话可以不说,不想用可以不用,没人逼你。不要在其他人的issue下用发泄情绪的方式打搅正常讨论。

好的。这就是所谓的支持流式输出。我只是说事实罢了,哎,心态要稳。

请记住,您没有给开源社区一分钱,没有人有义务无偿为您解答任何问题。对于您这种不具有提问的智慧的伸手党和完全不会做贡献,只会嘴皮子抱怨的开源蛀虫,我们今后将不会回答您的任何问题,除非您的态度改观。

@fumiama fumiama pinned this issue Jul 24, 2024
@subway-jack
Copy link

enmm我早上尝试去看了一下gradio的源码,试了很多种办法,他原理上针对音频流是通过二进制数据输出到/stream/下的一个文件夹内,然后把改地址传到Audio里,但貌似浏览器不支持直接读取二进制文件。我就修改了一下gradio的源码把他弄成每次生成一个文件,包括历史,类似积累的输出吧,然后通过/file=/file_path读取,但每次输出太快会覆盖掉之前的wav文件,没办法也需要要等全部弄好才能播放。可能还是等他怎么处理/stream/。很难受

@fumiama
Copy link
Member

fumiama commented Jul 27, 2024

enmm我早上尝试去看了一下gradio的源码,试了很多种办法,他原理上针对音频流是通过二进制数据输出到/stream/下的一个文件夹内,然后把改地址传到Audio里,但貌似浏览器不支持直接读取二进制文件。我就修改了一下gradio的源码把他弄成每次生成一个文件,包括历史,类似积累的输出吧,然后通过/file=/file_path读取,但每次输出太快会覆盖掉之前的wav文件,没办法也需要要等全部弄好才能播放。可能还是等他怎么处理/stream/。很难受

还是得等待官方修复了😂

@whmyxh
Copy link
Author

whmyxh commented Jul 29, 2024

enmm我早上尝试去看了一下gradio的源码,试了很多种办法,他原理上针对音频流是通过二进制数据输出到/stream/下的一个文件夹内,然后把改地址传到Audio里,但貌似浏览器不支持直接读取二进制文件。我就修改了一下gradio的源码把他弄成每次生成一个文件,包括历史,类似积累的输出吧,然后通过/file=/file_path读取,但每次输出太快会覆盖掉之前的wav文件,没办法也需要要等全部弄好才能播放。可能还是等他怎么处理/stream/。很难受

还是得等待官方修复了😂

直接屏蔽就没有这个bug了,等什么时候修好再恢复😊

@github-actions github-actions bot added the stale The topic has been ignored for a long time label Nov 6, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 15 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation stale The topic has been ignored for a long time
Projects
None yet
Development

No branches or pull requests

3 participants