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

1.新增wechaty方案的语音识别、语音回复功能;2.更新README; #476

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

Chiaki-Chan
Copy link
Contributor

@Chiaki-Chan Chiaki-Chan commented Mar 15, 2023

  1. 新增wechaty方案的语音识别、语音回复功能;
  2. 更新README;
  3. 更新config-template.json文件,将语音识别、回复相关配置、百度AI配置加入;
  4. 更新.gitignore文件,将.wechaty/ 目录加入排除项;

语音识别和回复所需依赖如下:
pip3 install pysilk
pip3 install pysilk-mod
pip3 install pydub

@huanyan
Copy link

huanyan commented Mar 15, 2023

建议不使用wechaty,刚切换为wechaty一运行脚本,微信警告就来了。。。风险太大了。

@zhayujie zhayujie merged commit 5b0f0e8 into zhayujie:master Mar 15, 2023
@GomeZ-SYTU
Copy link

如何切换到应用wechaty的方式,只需要在config.json中添加wechaty的token配置项么?

@Chiaki-Chan
Copy link
Contributor Author

如何切换到应用wechaty的方式,只需要在config.json中添加wechaty的token配置项么?

修改app.py中的wx为wxy,此外要自己搭建一个wechaty的服务,详见wechaty相关技术资料。

@2031905942
Copy link

warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
[WARNING][2023-04-02 14:37:53][wechat_channel.py:319] - [WX]mp3 to wav error, use mp3 path. [WinError 2] 系统找不到指定的文件。
[INFO][2023-04-02 14:37:53][bridge.py:28] - create bot openai for voice_to_text
[INFO][2023-04-02 14:37:55][openai_voice.py:25] - [Openai] voiceToText text=你好 voice file name=tmp/230402-143753.mp3
[WARNING][2023-04-02 14:37:55][wechat_channel.py:328] - [WX]delete temp file error: [WinError 2] 系统找不到指定的文件。: 'tmp/230402-143753.mp3'
[INFO][2023-04-02 14:37:55][bridge.py:28] - create bot chatGPT for chat
[INFO][2023-04-02 14:37:55][chat_gpt_bot.py:34] - [CHATGPT] query=你好
[INFO][2023-04-02 14:37:57][bridge.py:28] - create bot google for text_to_voice
[INFO][2023-04-02 14:38:00][google_voice.py:40] - [Google] textToVoice text=你好,有什么我可以帮助你解决的问题吗? voice file name=tmp/语音回复_1680417477.mp3
[INFO][2023-04-02 14:38:05][wechat_channel.py:266] - [WX] sendFile=tmp/语音回复_1680417477.mp3, receiver=@407719f80328204f8db7923b41a99baf34f6ea493bf946a3479ce0be5fbaa20d
请问这种情况如何解决?

@PawNzZi
Copy link

PawNzZi commented Jun 28, 2023

@Chiaki-Chan 兄dei,集成wechaty的代码在项目里没有了,是被删了嘛?你有集成成功过嘛?

@KunBoy5240
Copy link

如何切换到应用wechaty的方式,只需要在config.json中添加wechaty的token配置项么?

修改app.py中的wx为wxy,此外要自己搭建一个wechaty的服务,详见wechaty相关技术资料。

需要添加什么代码吗

@hd19820806
Copy link

itchat模式我百度语音识别和合成都正常 ,改为wechaty失败报错,文字对话都正常。这是为什么呢?

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.

8 participants