mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
docs text to speech
This commit is contained in:
parent
c3987745fe
commit
5c3a1484c3
1 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# Text to Speech
|
||||
|
||||
## Quick Start
|
||||
## **LiteLLM Python SDK Usage**
|
||||
### Quick Start
|
||||
|
||||
```python
|
||||
from pathlib import Path
|
||||
|
|
@ -18,7 +19,7 @@ response = speech(
|
|||
response.stream_to_file(speech_file_path)
|
||||
```
|
||||
|
||||
## Async Usage
|
||||
### Async Usage
|
||||
|
||||
```python
|
||||
from litellm import aspeech
|
||||
|
|
@ -47,7 +48,7 @@ async def test_async_speech():
|
|||
asyncio.run(test_async_speech())
|
||||
```
|
||||
|
||||
## Proxy Usage
|
||||
## **LiteLLM Proxy Usage**
|
||||
|
||||
LiteLLM provides an openai-compatible `/audio/speech` endpoint for Text-to-speech calls.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue