From b50a8285bf23ffc7a60c3a79be3d824f0bb92eea Mon Sep 17 00:00:00 2001 From: RedwindA <128586631+RedwindA@users.noreply.github.com> Date: Thu, 23 May 2024 21:19:52 +0800 Subject: [PATCH] Correct the typo & add example URL for OpenAI compatible TTS services --- pages/docs/configuration/stt_tts.mdx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/docs/configuration/stt_tts.mdx b/pages/docs/configuration/stt_tts.mdx index 496ad99..f529589 100644 --- a/pages/docs/configuration/stt_tts.mdx +++ b/pages/docs/configuration/stt_tts.mdx @@ -175,7 +175,7 @@ tts: openai: apiKey: '${TTS_API_KEY}' model: 'tts-1' - voice: ['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'] + voices: ['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'] ``` you can choose between the `tts-1` and the `tts-1-hd` models, more information about the models can be found in the [OpenAI's documentation](https://platform.openai.com/docs/guides/text-to-speech/audio-quality) @@ -219,7 +219,15 @@ pronunciation_dictionary_locators: [''] # list of strings (array) ### OpenAI compatible TTS services -check the [OpenAI TTS](#openai-tts) section, just change the `url` variable to the ones that you want to use +check the [OpenAI TTS](#openai-tts) section, just change the `url` variable to the ones that you want to use. It should be a complete url: +```yaml filename="librechat.yaml" +tts: + openai: + apiKey: 'sk-xxx' + model: 'tts-1' + voices: ['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'] + url: "https://api.compatible.com/v1/audio/speech" +``` ### ElevenLabs compatible TTS services