Skip to content

Commit d4da461

Browse files
committedApr 14, 2024·
fix: docker python3.11-slim have no libssl1.1
Signed-off-by: yihong0618 <[email protected]>
1 parent 5ed01bd commit d4da461

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG PIP_INDEX_URL=https://pypi.org/simple
66
# 使用 ARG 定义的变量作为 pip 源地址
77
RUN python3 -m venv .venv && .venv/bin/pip install --no-cache-dir -r requirements.txt -i ${PIP_INDEX_URL}
88

9-
FROM python:3.10-slim
9+
FROM python:3.10-slim-buster
1010

1111
WORKDIR /app
1212
COPY --from=builder /app/.venv /app/.venv

‎README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@ docker build --build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
271271

272272
### 第三方 TTS
273273

274-
我们目前支持两种第三方 TTS:edge/openai
274+
我们目前支持是三种第三方 TTS:edge/openai/azure
275275

276276
[edge-tts](https://github.com/rany2/edge-tts) 提供了类似微软tts的能力
277+
[azure-tts](https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/9-more-realistic-ai-voices-for-conversations-now-generally/ba-p/4099471) 提供了微软 azure tts 的能力
278+
[openai-tts](https://platform.openai.com/docs/guides/text-to-speech) 提供了类似 openai tts 的能力
277279

278280
#### Usage
279281

@@ -292,7 +294,7 @@ docker build --build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
292294
edge-tts --list-voices
293295
```
294296

295-
#### 在容器中使用edge-tts
297+
#### 在容器中使用 edge-tts/azure-tts/openai-tts
296298

297299
由于 Edge TTS 启动了一个本地的 HTTP 服务,所以需要将容器的端口映射到宿主机上,并且指定本地机器的 hostname:
298300

0 commit comments

Comments
 (0)
Please sign in to comment.