Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs tts

Ishaan Jaffa7bcc0e88e35
diff --git a/docs/my-website/docs/providers/azure.md b/docs/my-website/docs/providers/azure.md
index dc64bffc1cc..381ecfed54f 100644
--- a/docs/my-website/docs/providers/azure.md
+++ b/docs/my-website/docs/providers/azure.md
@@ -327,6 +327,39 @@ response = litellm.completion(
print(response)
```
+## Azure Text to Speech (tts)
+
+**LiteLLM PROXY**
+
+```yaml
+ - model_name: azure/tts-1
+ litellm_params:
+ model: azure/tts-1
+ api_base: "os.environ/AZURE_API_BASE_TTS"
+ api_key: "os.environ/AZURE_API_KEY_TTS"
+ api_version: "os.environ/AZURE_API_VERSION"
+```
+
+**LiteLLM SDK**
+
+```python
+from litellm import completion
+
+## set ENV variables
+os.environ["AZURE_API_KEY"] = ""
+os.environ["AZURE_API_BASE"] = ""
+os.environ["AZURE_API_VERSION"] = ""
+
+# azure call
+speech_file_path = Path(__file__).parent / "speech.mp3"
+response = speech(
+ model="azure/<your-deployment-name",
+ voice="alloy",
+ input="the quick brown fox jumped over the lazy dogs",
+ )
+response.stream_to_file(speech_file_path)
+```
+
## Advanced
### Azure API Load-Balancing
diff --git a/docs/my-website/docs/text_to_speech.md b/docs/my-website/docs/text_to_speech.md
index f936bbdf907..0e7b436a3fd 100644
--- a/docs/my-website/docs/text_to_speech.md
+++ b/docs/my-website/docs/text_to_speech.md
@@ -82,43 +82,10 @@ litellm --config /path/to/config.yaml
| Provider | Link to Usage |
|-------------|--------------------|
-| OpenAI | |
-| Azure OpenAI| |
+| OpenAI | [Usage](#quick-start) |
+| Azure OpenAI| [Usage](../docs/providers/azure#azure-text-to-speech-tts) |
| Vertex AI | [Usage](../docs/providers/vertex#text-to-speech-apis) |
-## Azure Usage
-
-**PROXY**
-
-```yaml
- - model_name: azure/tts-1
- litellm_params:
- model: azure/tts-1
- api_base: "os.environ/AZURE_API_BASE_TTS"
- api_key: "os.environ/AZURE_API_KEY_TTS"
- api_version: "os.environ/AZURE_API_VERSION"
-```
-
-**SDK**
-
-```python
-from litellm import completion
-
-## set ENV variables
-os.environ["AZURE_API_KEY"] = ""
-os.environ["AZURE_API_BASE"] = ""
-os.environ["AZURE_API_VERSION"] = ""
-
-# azure call
-speech_file_path = Path(__file__).parent / "speech.mp3"
-response = speech(
- model="azure/<your-deployment-name",
- voice="alloy",
- input="the quick brown fox jumped over the lazy dogs",
- )
-response.stream_to_file(speech_file_path)
-```
-
## ✨ Enterprise LiteLLM Proxy - Set Max Request File Size
Use this when you want to limit the file size for requests sent to `audio/transcriptions`