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

Conversation

rnascimento13
Copy link

@rnascimento13 rnascimento13 commented Oct 24, 2024

add local multi-language TTS support

it emulates the OpenAI TTS endpoint with a local open source Microsoft Edge's online text-to-speech

just change the OPENAI BASE URL to http://openai-edge-tts:5050/v1 and API key to password (set on .env)
Screenshot from 2024-10-24 08-58-11

you can choose a voice/language on this list (eg: "en-US-AndrewNeural")
https://gist.github.com/BettyJJ/17cbaa1de96235a7f5773b8690a20462
it also support any OpenAI-compatible voices (alloy, echo, fable, onyx, nova, shimmer)

you can also set the model to "tts-1" or "tts-1-hd" (default "tts-1")

this can be used in n8n aswell

https://github.com/travisvn/openai-edge-tts

OPENAI_EDGE_TTS_API_KEY was not working on .env its fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant