hahahumble / speechgpt

💬 SpeechGPT is a web application that enables you to converse with ChatGPT.
https://speechgpt.app
MIT License
2.72k stars 404 forks source link

是否支持流式阅读ChatGPT的回复 #54

Open pbhfcycssjlmm opened 1 year ago

pbhfcycssjlmm commented 1 year ago

Is your feature request related to a problem?

因为配置语音合成账号还挺麻烦的,所以还没有尝试你们的方案。 目前ChatGPT是流式返回文字的,能否实时阅读流式返回的文字呢?而不是等一句话吐完了或者全部都合成完了再送去语音合成。

Describe the solution you'd like

像人类一样阅读屏幕上出现的文字。

Additional context

No response

erbanku commented 1 year ago

https://github.com/hahahumble/speechgpt/issues/40#issue-1657347970 Please follow request 4, and @hahahumble'sresponse to this.

  1. When the assistant generates a lengthy response, I have to wait for the honest answer to be developed before I can listen or read it. Streaming output for both text and TTS would make this process smoother and more enjoyable.

Currently, I have not found any TTS API that supports streaming. A possible solution is to split the assistant's responses into multiple sentences and send multiple requests.

hahahumble commented 1 year ago

7. When the assistant generates a lengthy response, I have to wait for the honest answer to be developed before I can listen or read it. Streaming output for both text and TTS would make this process smoother and more enjoyable.

之后会支持的