Translation API and TTS. 318 voices and 33 languages. Using edge-tts and libretranslate.
2.6K
TTS-Translator is a Docker image that contains an API for translating text and converting text to speech. It also provides the functionality to combine both actions to provide text-to-speech translation.
LT_LOAD_ONLY: Defines the languages to be installed.
"en,es".API_PORT: Defines the port of the API.
"8080"{
"text": "Hello world!", // [Required] Text to use
"voice": { // [Optional] Voice configuration
"name" : "es-AR-TomasNeural", // TTS voice. To list it use /tts/voices endpoint.
"volume": -50, // Voice volume
"pitch": -10, // Voice pitch
"rate": -10 // Voice rate
},
"translate": { // [Optional] Translation configuration
"from": "en", // Source language
"to": "es" // Target language
}
}
{
"text": "Hello world!", // [Required] Text to use
"from": "en", // [Required] Source language. To list it use /translate/languages endpoint.
"to": "es" // [Required] Target language. To list it use /translate/languages endpoint.
}
To run this Docker image, you can use the following command:
docker run -d -e LT_LOAD_ONLY="en,es" -e API_PORT="8080" -p 8080:8080 tmcx/tts-translator:latest
The source code of this project is available on GitHub.
This project is licensed under the LGPL-3 License for commercial use without the obligation to share the source code.
Content type
Image
Digest
sha256:15250e226…
Size
453.7 MB
Last updated
over 2 years ago
docker pull tmcx/tts-translator