From 5c3a1484c31cc0c452f2153b9b88fbcca49ed085 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 23 Aug 2024 15:50:03 -0700 Subject: [PATCH] docs text to speech --- docs/my-website/docs/text_to_speech.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/my-website/docs/text_to_speech.md b/docs/my-website/docs/text_to_speech.md index 5e5f8b99063..2001adab17f 100644 --- a/docs/my-website/docs/text_to_speech.md +++ b/docs/my-website/docs/text_to_speech.md @@ -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.