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

feat: support live TTS of fish audio #555

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

frostming
Copy link
Collaborator

Signed-off-by: Frost Ming [email protected]

@yihong0618
Copy link
Owner

voice always the same
@frostming no matter how to change the voice id

@frostming
Copy link
Collaborator Author

It seems like an upstream issue. The voice is not changeable in websocket mode via reference_id config @abersheeran

@abersheeran
Copy link

It seems like an upstream issue. The voice is not changeable in websocket mode via reference_id config @abersheeran

已经复现,转交给相关同事在看了。

@abersheeran
Copy link

验证过了,已经修复。

@yihong0618
Copy link
Owner

现在的情况是不播放了。。。

@abersheeran
Copy link

测了几遍都没问题,能不能看看具体是什么错误?网络?返回的二进制不是音频流?还是提前中断?

@frostming
Copy link
Collaborator Author

frostming commented Oct 29, 2024

测了几遍都没问题,能不能看看具体是什么错误?网络?返回的二进制不是音频流?还是提前中断?

Traceback (most recent call last):
  File "/Users/fming/wkspace/github/tetos/.venv/lib/python3.11/site-packages/fish_audio_sdk/websocket.py", line 135, in tts
    message = await ws.receive_bytes()
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fming/wkspace/github/tetos/.venv/lib/python3.11/site-packages/httpx_ws/_api.py", line 883, in receive_bytes
    event = await self.receive(timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fming/wkspace/github/tetos/.venv/lib/python3.11/site-packages/httpx_ws/_api.py", line 805, in receive
    raise WebSocketDisconnect(event.code, event.reason)
httpx_ws._exceptions.WebSocketDisconnect: (<CloseReason.NO_STATUS_RCVD: 1005>, '')

@abersheeran
Copy link

明白了,你是手写的一个参数字典。之前 api 校验时默认值没处理好导致缺了个参数无法通过校验,现在滚动更新上去了。

Signed-off-by: Frost Ming <[email protected]>
@yihong0618 yihong0618 merged commit 9e4a4b5 into yihong0618:main Oct 29, 2024
2 checks passed
@yihong0618
Copy link
Owner

@abersheeran @frostming Thanks

@frostming frostming deleted the feat/live-tts-fish branch October 30, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants