Skip to content

A TTS that fits in your CPU (and pocket)

Python

Add the new languages to the api (#336)

Gabriel de Marmiesse797209501de9
diff --git a/deploy.sh b/deploy.sh
index b57e357..b3df11c 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,6 +1,7 @@
set -ex
export COMMIT_SHA=$(git rev-parse --short HEAD)
-docker buildx bake -f docker-bake.hcl --push
+docker -H ssh://[email protected] \
+ buildx bake -f docker-bake.hcl --push
docker -H ssh://[email protected] stack deploy \
--with-registry-auth -c swarm-config.yaml pocket-tts
diff --git a/swarm-config.yaml b/swarm-config.yaml
index aece9f4..fd76cb6 100644
--- a/swarm-config.yaml
+++ b/swarm-config.yaml
@@ -159,6 +159,24 @@ services:
- "traefik.http.services.server-spanish.loadbalancer.server.port=80"
- "traefik.http.routers.server-spanish.priority=100"
+ backend-dutch:
+ image: rg.fr-par.scw.cloud/namespace-unruffled-tereshkova/pocket-tts-server:${COMMIT_SHA}
+ volumes:
+ - hf-cache:/root/.cache/huggingface
+ command: ["serve", "--port", "80", "--host", "0.0.0.0", "--language", "dutch", "--quantize"]
+ deploy:
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.server-dutch.rule=Host(`pocket-tts-api.kyutai.org`) && PathPrefix(`/dutch`)"
+ - "traefik.http.routers.server-dutch.middlewares=strip-api-dutch"
+ - "traefik.http.middlewares.strip-api-dutch.replacepathregex.regex=^/dutch/(.*)"
+ - "traefik.http.middlewares.strip-api-dutch.replacepathregex.replacement=/$$1"
+ - "traefik.http.routers.server-dutch.entrypoints=websecure"
+ - "traefik.http.routers.server-dutch.tls=true"
+ - "traefik.http.routers.server-dutch.tls.certresolver=letsencrypt"
+ - "traefik.http.services.server-dutch.loadbalancer.server.port=80"
+ - "traefik.http.routers.server-dutch.priority=100"
+
volumes:
letsencrypt: