Closed krrishdholakia closed 3 days ago
azure tts support
- 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"
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)
Closes https://github.com/BerriAI/litellm/issues/4002
๐ New Feature ๐ Bug Fix ๐งน Refactoring ๐ Documentation ๐ Infrastructure โ Test
If UI changes, send a screenshot/GIF of working UI fixes
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Title
azure tts support
Proxy Usage
SDK Usage
Relevant issues
Closes https://github.com/BerriAI/litellm/issues/4002
Type
๐ New Feature ๐ Bug Fix ๐งน Refactoring ๐ Documentation ๐ Infrastructure โ Test
Changes
[REQUIRED] Testing - Attach a screenshot of any new tests passing locall
If UI changes, send a screenshot/GIF of working UI fixes