Correct the typo & add example URL for OpenAI compatible TTS services

This commit is contained in:
RedwindA
2024-05-23 21:19:52 +08:00
committed by GitHub
parent cdba76ef23
commit b50a8285bf

View File

@@ -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