cdfmlr / muvtuber

Makes your AI vtuber
445 stars 75 forks source link

使用docker搭建后,没有音频输出 #49

Closed JackChow6 closed 1 year ago

JackChow6 commented 1 year ago

2023-06-05 14:38:38 2023/06/05 06:38:38 INFO set COOLDOWN_INTERVAL from config value. COOLDOWN_INTERVAL=15s 2023-06-05 14:38:38 2023/06/05 06:38:38 INFO [dm] TextInFromDm: create newBlivedmClient to room. roomid=23391720 2023-06-05 14:38:38 2023/06/05 06:38:38 INFO [dm] chatClient started 2023-06-05 14:38:39 2023/06/05 06:38:39 INFO audioController websocket client connected remoteAddr=172.20.0.1:40780 2023-06-05 14:38:41 2023/06/05 06:38:41 INFO audioController websocket client connected remoteAddr=172.20.0.1:40794 2023-06-05 14:38:54 2023/06/05 06:38:54 INFO [dm] TextInFromDm: author=牛牛爱吃土豆呀 priority=0 content=怎么回事啊 2023-06-05 14:38:58 2023/06/05 06:38:58 INFO [PriorityReduceFilter] outputMaxPriorityOne boost Priority -> Highest author=牛牛爱吃土豆呀 content=怎么回事啊 priority=2 2023-06-05 14:38:58 2023/06/05 06:38:58 ERROR [SayerClient] Say (RPC) failed role=miku text=怎么回...回事啊 err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 172.20.0.4:50010: connect: connection refused\"" 2023-06-05 14:38:58 2023/06/05 06:38:58 INFO [audioController] sendPlayCmd to audioview cmd=playVocal track=d41d8cd... 2023-06-05 14:39:28 2023/06/05 06:39:28 WARN [allInOneSayer] start playing audio timeout: Canceling... text=怎么回事啊 2023-06-05 14:39:28 2023/06/05 06:39:28 ERROR [sayer] wait END report from audioview failed text=怎么回...回事啊 trackID=d41d8cd98f00b204e9800998ecf8427e err="context canceled" 2023-06-05 14:39:28 2023/06/05 06:39:28 WARN [allInOneSayer] AudioPlayStatusErr: Failed! text=怎么回事啊 2023-06-05 14:39:28 2023/06/05 06:39:28 ERROR [sayer] wait START report from audioview failed text=怎么回...回事啊 trackID=d41d8cd98f00b204e9800998ecf8427e err="context canceled" 2023-06-05 14:39:28 2023/06/05 06:39:28 INFO [PrioritizedChatbot] Chat(牛牛爱吃土豆呀): "怎么回事啊" 2023-06-05 14:39:28 2023/06/05 06:39:28 INFO [chatbot] SessionClient Chat: got textIn: chatbotName=ChatGPTChatbot textin=怎么回事...么回事啊 2023-06-05 14:39:28 2023/06/05 06:39:28 INFO [chatbot] SessionClient Chat: NewClient created. chatbot=ChatGPTChatbot addr=chatgpt_chatbot:50052 2023-06-05 14:39:30 2023/06/05 06:39:30 WARN [chatbot] ChatGPTChatbot Chat() failed. The SessionClient will be released if successive failures: serAddr=chatgpt_chatbot:50052 failures=0/3 err=NewSession(addr=chatgpt_chatbot:50052) failed: rpc error: code = Unknown desc = Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffffa1b09840>: Failed to establish a new connection: [Errno -2] Name or service not known'))) 2023-06-05 14:39:30 2023/06/05 06:39:30 WARN [PrioritizedChatbot] *chatbot.chatGPTChatbot.Chat(&{牛牛爱吃土豆呀 怎么回事啊 2}) failed: Chat() failed. The SessionClient will be released if successive failures: serAddr=chatgpt_chatbot:50052 failures=0/3 err=NewSession(addr=chatgpt_chatbot:50052) failed: rpc error: code = Unknown desc = Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffffa1b09840>: Failed to establish a new connection: [Errno -2] Name or service not known'))), try next chatbot 2023-06-05 14:39:30 2023/06/05 06:39:30 INFO [chatbot] SessionClient Chat: got textIn: chatbotName=MusharingChatbot textin=怎么回事...么回事啊 2023-06-05 14:39:30 2023/06/05 06:39:30 INFO [chatbot] SessionClient Chat: NewClient created. chatbot=MusharingChatbot addr=musharing_chatbot:50051 2023-06-05 14:39:30 2023/06/05 06:39:30 INFO [chatbot] SessionClient Chat: NewSession created. chatbot=MusharingChatbot addr=musharing_chatbot:50051 sessionID=4a1843f2-f7d0-4c91-8d54-10c5aa8cbbe2 2023-06-05 14:39:30 2023/06/05 06:39:30 INFO [chatbot] SessionClient Chat success. chatbot=MusharingChatbot sessionID=4a1843f... textin=怎么回事...么回事啊 textout=肯尼迪总...刺身亡? 2023-06-05 14:39:30 2023/06/05 06:39:30 INFO [PrioritizedChatbot] Chat(牛牛爱吃土豆呀): "怎么回事啊" => (MusharingChatbot): "肯尼迪总统哪年遇刺身亡?" 2023-06-05 14:39:33 2023/06/05 06:39:33 INFO [PriorityReduceFilter] outputMaxPriorityOne boost Priority -> Highest author=MusharingChatbot content=肯尼迪总统哪年...哪年遇刺身亡? priority=2 2023-06-05 14:39:33 2023/06/05 06:39:33 INFO [textOut] author=MusharingChatbot priority=2 content=肯尼迪总统哪年遇刺身亡? 2023-06-05 14:39:33 2023/06/05 06:39:33 ERROR [SayerClient] Say (RPC) failed role=miku text=肯尼迪...身亡? err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 172.20.0.4:50010: connect: connection refused\"" 2023-06-05 14:39:33 2023/06/05 06:39:33 INFO [audioController] sendPlayCmd to audioview cmd=playVocal track=d41d8cd...

cdfmlr commented 1 year ago

不好意思,可能那个 configs/externalsayer/config.yaml 里面有个默认配置写错了。请尝试将其中的

SrvAddr: "localhost:50010"

改成:

SrvAddr: "0.0.0.0:50010"

另外请参考 README 修改掉默认的 role=miku 的荒谬设定。

JackChow6 commented 1 year ago

谢谢,确实可以了,但是还要一个问题,chat的回答有点瞎回答是什么原因呢

cdfmlr commented 1 year ago

chat的回答有点瞎回答是什么原因呢

应该是你没配置好 HTTP 代理,没有访问到 ChatGPT,而是用了本地的备用小模型。在 docker-compose.yml 里改一下代理,README 里有更详细的说明

JackChow6 commented 1 year ago

我在Mac上用shadow racket代理可以访问chatgpt,我应该怎么设置docker才能让docker走shadowracket代理访问chatgpt?

cdfmlr commented 1 year ago

Review: #44, #47 & #49 are the same issue. It is finally fixed by 269b6b9a2c910fbf49978a6e8223ab48eb8eb3e7 (v0.3.6).