diff --git a/config.py b/config.py index 412ba3dd..ad206d02 100644 --- a/config.py +++ b/config.py @@ -202,7 +202,7 @@ ALIYUN_SECRET="" # (无需填写) # GPT-SOVITS 文本转语音服务的运行地址(将语言模型的生成文本朗读出来) -TTS_TYPE = "DISABLE" # EDGE_TTS / LOCAL_SOVITS_API / DISABLE +TTS_TYPE = "EDGE_TTS" # EDGE_TTS / LOCAL_SOVITS_API / DISABLE GPT_SOVITS_URL = "" EDGE_TTS_VOICE = "zh-CN-XiaoxiaoNeural" diff --git a/docs/GithubAction+AllCapacity b/docs/GithubAction+AllCapacity index 4ba0e31a..0ebc1d3c 100644 --- a/docs/GithubAction+AllCapacity +++ b/docs/GithubAction+AllCapacity @@ -28,6 +28,8 @@ RUN python3 -m pip install -r request_llms/requirements_chatglm.txt RUN python3 -m pip install -r request_llms/requirements_newbing.txt RUN python3 -m pip install nougat-ocr +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y # 预热Tiktoken模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' diff --git a/docs/GithubAction+AllCapacityBeta b/docs/GithubAction+AllCapacityBeta index d3a06ee1..263d5e9e 100644 --- a/docs/GithubAction+AllCapacityBeta +++ b/docs/GithubAction+AllCapacityBeta @@ -36,6 +36,9 @@ RUN python3 -m pip install -r request_llms/requirements_chatglm.txt RUN python3 -m pip install -r request_llms/requirements_newbing.txt RUN python3 -m pip install nougat-ocr +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y + # 预热Tiktoken模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' diff --git a/docs/GithubAction+ChatGLM+Moss b/docs/GithubAction+ChatGLM+Moss index 3212dc2f..7ccdb269 100644 --- a/docs/GithubAction+ChatGLM+Moss +++ b/docs/GithubAction+ChatGLM+Moss @@ -21,7 +21,8 @@ RUN python3 -m pip install -r request_llms/requirements_qwen.txt RUN python3 -m pip install -r request_llms/requirements_chatglm.txt RUN python3 -m pip install -r request_llms/requirements_newbing.txt - +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y # 预热Tiktoken模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' diff --git a/docs/GithubAction+JittorLLMs b/docs/GithubAction+JittorLLMs index 189eb244..7b27a04f 100644 --- a/docs/GithubAction+JittorLLMs +++ b/docs/GithubAction+JittorLLMs @@ -23,6 +23,9 @@ RUN python3 -m pip install -r request_llms/requirements_jittorllms.txt -i https: # 下载JittorLLMs RUN git clone https://github.com/binary-husky/JittorLLMs.git --depth 1 request_llms/jittorllms +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y + # 禁用缓存,确保更新代码 ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache RUN git pull diff --git a/docs/GithubAction+NoLocal b/docs/GithubAction+NoLocal index 5c49b948..c645871f 100644 --- a/docs/GithubAction+NoLocal +++ b/docs/GithubAction+NoLocal @@ -12,6 +12,8 @@ COPY . . # 安装依赖 RUN pip3 install -r requirements.txt +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y # 可选步骤,用于预热模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' diff --git a/docs/GithubAction+NoLocal+AudioAssistant b/docs/GithubAction+NoLocal+AudioAssistant index 6d6dab0a..17e2ed70 100644 --- a/docs/GithubAction+NoLocal+AudioAssistant +++ b/docs/GithubAction+NoLocal+AudioAssistant @@ -15,6 +15,9 @@ RUN pip3 install -r requirements.txt # 安装语音插件的额外依赖 RUN pip3 install aliyun-python-sdk-core==2.13.3 pyOpenSSL webrtcvad scipy git+https://github.com/aliyun/alibabacloud-nls-python-sdk.git +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y + # 可选步骤,用于预热模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' diff --git a/docs/GithubAction+NoLocal+Latex b/docs/GithubAction+NoLocal+Latex index e8fbca83..00a3b6ab 100644 --- a/docs/GithubAction+NoLocal+Latex +++ b/docs/GithubAction+NoLocal+Latex @@ -25,6 +25,9 @@ COPY . . # 安装依赖 RUN pip3 install -r requirements.txt +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y + # 可选步骤,用于预热模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' diff --git a/docs/GithubAction+NoLocal+Vectordb b/docs/GithubAction+NoLocal+Vectordb index 45074d93..c354566f 100644 --- a/docs/GithubAction+NoLocal+Vectordb +++ b/docs/GithubAction+NoLocal+Vectordb @@ -19,6 +19,9 @@ RUN pip3 install transformers protobuf langchain sentence-transformers faiss-cp RUN pip3 install unstructured[all-docs] --upgrade RUN python3 -c 'from check_proxy import warm_up_vectordb; warm_up_vectordb()' +# edge-tts需要的依赖 +RUN apt update && apt install ffmpeg -y + # 可选步骤,用于预热模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'