ソースを参照

fix: change order in requirement.txt

lanvent 3 年 前
コミット
90ccb091ca
2 ファイル変更10 行追加4 行削除
  1. 7 1
      README.md
  2. 3 3
      requirements.txt

+ 7 - 1
README.md

@@ -80,9 +80,15 @@ cd chatgpt-on-wechat/
 pip3 install -r requirements.txt
 ```
 
+其中`tiktoken`要求`python`版本在3.8以上,它用于精确计算会话使用的tokens数量,可以不装但建议安装。
+
 **(3) 拓展依赖 (可选):**
 
-语音识别及语音回复功能需安装`ffmpeg`,参考[#415](https://github.com/zhayujie/chatgpt-on-wechat/issues/415)
+使用`google`或`baidu`语音识别需安装`ffmpeg`,
+
+默认的`openai`语音识别不需要安装`ffmpeg`。
+
+参考[#415](https://github.com/zhayujie/chatgpt-on-wechat/issues/415)
 
 ## 配置
 

+ 3 - 3
requirements.txt

@@ -8,9 +8,9 @@ pysilk>=0.0.1
 pysilk_mod>=1.6.0
 pyttsx3>=2.90
 requests>=2.28.2
-SpeechRecognition>=3.10.0
-tiktoken>=0.3.2
 webuiapi>=0.6.2
 wechaty>=0.10.7
 wechaty_puppet>=0.4.23
-chardet>=5.1.0
+chardet>=5.1.0
+SpeechRecognition
+tiktoken>=0.3.2