Feat: google-translate-tts support

This commit is contained in:
Grail Finder
2026-01-08 09:28:16 +03:00
parent 5f0de6f311
commit 5191689578
7 changed files with 207 additions and 17 deletions

View File

@@ -96,11 +96,21 @@ This document explains how to set up and configure the application using the `co
- Enable or disable text-to-speech functionality.
#### TTS_URL (`"http://localhost:8880/v1/audio/speech"`)
- The endpoint for TTS API.
- The endpoint for TTS API (used with `kokoro` provider).
#### TTS_SPEED (`1.2`)
- Playback speed for speech output (1.0 is normal speed).
#### TTS_PROVIDER (`"kokoro"`)
- TTS provider to use. Options: `"kokoro"` or `"google"`.
- `"kokoro"`: Uses Kokoro FastAPI TTS server (requires TTS_URL to be set). Provides high-quality voice synthesis but requires a running Kokoro server.
- `"google"`: Uses Google Translate TTS with gopxl/beep for local playback. Works offline using Google's public TTS API with local audio playback via gopxl/beep. Supports multiple languages via TTS_LANGUAGE setting.
#### TTS_LANGUAGE (`"en"`)
- Language code for TTS (used with `google` provider).
- Examples: `"en"` (English), `"es"` (Spanish), `"fr"` (French)
- See Google Translate TTS documentation for supported languages.
### Speech-to-Text (STT) Settings
#### STT_ENABLED (`false`)

View File

@@ -1,5 +1,7 @@
after [installing](https://github.com/GrailFinder/gf-lt/tree/master?tab=readme-ov-file#how-to-install)
[set up your config](config.md)
### RP case example
check the (https://github.com/GrailFinder/gf-lt/tree/master?tab=readme-ov-file#how-to-install) and
[setting up your config](config.md)
To roleplay, we would need to create a character card or get one from the web.
For this tutorial, we are going to use the default character Seraphina from [SillyTavern (ST)](https://github.com/SillyTavern/SillyTavern/blob/release/default/content/default_Seraphina.png).