2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
Other
26.77k stars 2.91k forks source link

generate_audio函数返回和API文档中的不一致 #448

Open DExpress-dev opened 1 week ago

DExpress-dev commented 1 week ago

从API文档中看到generate_audio函数返回的数据为: Returns tuple of 2 elements [0] filepath The output value that appears in the "Output Audio" Audio component. [1] str The output value that appears in the "Output Text" Textbox component. 但是实际上返回的却是类似: {"event_id":"ebe68074e43b44fea4abc3a226004f12"}

那么依哪个为准呢?

fumiama commented 1 week ago

WebUI的函数并非为API设计,事实上,如果你拉最新提交的代码,是没有generate_audio这个API的。我会在后续版本关掉API显示,日后可单独出一个纯API版本在examples/api

DExpress-dev commented 6 days ago

那现在是无法使用API接口来使用ChatTTS功能的是么?

fumiama commented 6 days ago

🈚️