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

[Feature] Improved API interface, no need to provide reference audio and text #495

Closed
fastfading opened this issue Aug 23, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@fastfading
Copy link

https://notion.fish.audio/APIs-2afdd0529d72479e96834df114c16274
api 这里需要设置 ReferenceAudio
references=[
ServeReferenceAudio(
audio=open("lengyue.wav", "rb").read(),
text="Text in reference AUDIO",
)
],

作为api ,用户哪里去找和原模型一致的 音频。
使用很不方便。

能不能改成像demo 一样,
用户只要设置text 和 reference id

@xeoshow
Copy link

xeoshow commented Aug 23, 2024

其实可以两种形态都支持最好。
另外,这个API接口方式,国内不翻墙也可以正常调用吗?
https://fish.audio/zh-CN/go-api/

@fastfading
Copy link
Author

request = ServeTTSRequest(
text="Hello, world!",
# references=[
# ServeReferenceAudio(
# audio=open("lengyue.wav", "rb").read(),
# text="Text in reference AUDIO",
# )
# ],
reference_id="7f92f8afb8ec43bf81429cc1c9199cb1",
)

改写后一直报错
{"status":401,"message":"Invalid API key"}

@Stardust-minus
Copy link
Member

request = ServeTTSRequest( text="Hello, world!", # references=[ # ServeReferenceAudio( # audio=open("lengyue.wav", "rb").read(), # text="Text in reference AUDIO", # ) # ], reference_id="7f92f8afb8ec43bf81429cc1c9199cb1", )

改写后一直报错 {"status":401,"message":"Invalid API key"}

是不是没有填写API Key

@fastfading
Copy link
Author

request = ServeTTSRequest( text="Hello, world!", # references=[ # ServeReferenceAudio( # audio=open("lengyue.wav", "rb").read(), # text="Text in reference AUDIO", # ) # ], reference_id="7f92f8afb8ec43bf81429cc1c9199cb1", )
改写后一直报错 {"status":401,"message":"Invalid API key"}

是不是没有填写API Key

这里好容易误解, 填的token , 要填的居然是 id

@leng-yue
Copy link
Member

之前没及时更新文档, 在改了.jpg

@Stardust-minus Stardust-minus changed the title [Feature]改善api 接口, 不需要提供reference audio and text [Feature] Improved API interface, no need to provide reference audio and text Sep 8, 2024
@Stardust-minus
Copy link
Member

#515 Change title to English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants