Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Multilanguage with openai-edge-tts #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions local-ai-packaged/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ POSTGRES_USER=root
POSTGRES_PASSWORD=password
POSTGRES_DB=n8n

OPENAI_EDGE_TTS_API_KEY=password

N8N_ENCRYPTION_KEY=super-secret-key
N8N_USER_MANAGEMENT_JWT_SECRET=even-more-secret
12 changes: 12 additions & 0 deletions local-ai-packaged/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ language model and Qdrant as your vector store.
> combines robust components that work well together for proof-of-concept
> projects. You can customize it to meet your specific needs

## Local Multilanguage
With openai-edge-tts you can use a nice tts on Open WebUI on multiple languages
go to Open WebUI admin settings http://localhost:3000/admin/settings
go to Audio, on TTS Settings choose OpenAI
put this on the URL http://openai-edge-tts:5050/v1
on API Key put "password" or whatever you put on the .env OPENAI_EDGE_TTS_API_KEY
click save

it should work now, to change languages and voices, go to settings, audio
change Set Voice to any on this list eg:pt-BR-AntonioNeural (this one is from brazil)
[List of voices and languages](https://gist.github.com/BettyJJ/17cbaa1de96235a7f5773b8690a20462)

## Upgrading

### For Nvidia GPU users
Expand Down
15 changes: 15 additions & 0 deletions local-ai-packaged/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ volumes:
ollama_storage:
qdrant_storage:
open-webui:
openai-edge-tts:

networks:
demo:
Expand Down Expand Up @@ -57,6 +58,20 @@ services:
volumes:
- open-webui:/app/backend/data

openai-edge-tts:
image: travisvn/openai-edge-tts:latest
networks: ['demo']
restart: unless-stopped
container_name: openai-edge-tts
environment:
- API_KEY=${OPENAI_EDGE_TTS_API_KEY}
ports:
- "5050:5050"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- openai-edge-tts:/app/backend/data

postgres:
image: postgres:16-alpine
networks: ['demo']
Expand Down