mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 06:07:13 +08:00
[voice] fix issue
This commit is contained in:
@@ -72,11 +72,11 @@ cd chatgpt-on-wechat/
|
|||||||
pip3 install itchat-uos==1.5.0.dev0
|
pip3 install itchat-uos==1.5.0.dev0
|
||||||
pip3 install --upgrade openai
|
pip3 install --upgrade openai
|
||||||
|
|
||||||
如果使用google的语音识别,需要安装speech_recognition和依赖的ffmpeg
|
如果使用google的语音识别,需要安装speech_recognition和依赖的ffmpeg和espeak
|
||||||
pip3 install SpeechRecognition
|
pip3 install SpeechRecognition
|
||||||
--在MacOS中安装ffmpeg,brew install ffmpeg
|
--在MacOS中安装ffmpeg,brew install ffmpeg espeak
|
||||||
--在Windows中安装ffmpeg,下载ffmpeg.exe
|
--在Windows中安装ffmpeg,下载ffmpeg.exe
|
||||||
--在Linux中安装ffmpeg,apt-get install ffmpeg
|
--在Linux中安装ffmpeg,apt-get install ffmpeg espeak
|
||||||
```
|
```
|
||||||
注:`itchat-uos`使用指定版本1.5.0.dev0,`openai`使用最新版本,需高于0.27.0。
|
注:`itchat-uos`使用指定版本1.5.0.dev0,`openai`使用最新版本,需高于0.27.0。
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ class WechatChannel(Channel):
|
|||||||
tmpFilePath = './tmp/'
|
tmpFilePath = './tmp/'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
voices = self.engine.getProperty('voices')
|
|
||||||
isExists = os.path.exists(self.tmpFilePath)
|
isExists = os.path.exists(self.tmpFilePath)
|
||||||
if not isExists:
|
if not isExists:
|
||||||
os.makedirs(self.tmpFilePath)
|
os.makedirs(self.tmpFilePath)
|
||||||
|
|||||||
Reference in New Issue
Block a user