Azure OpenAI
Orate supports Azure's OpenAI services.
Azure OpenAI is a cloud-based AI platform that provides a range of OpenAI models on their cloud computing platform.
Setup
The Azure OpenAI provider is available by default in Orate. To import it, you can use the following code:
Configuration
The Azure OpenAI provider looks for a number of environment variables. These variables are required for the provider to work. Simply add the following to your .env
file:
Usage
The Azure OpenAI provider provides a single interface for all of Azure's OpenAI services.
Text to Speech
The Azure OpenAI provider provides a tts
function that allows you to create a text-to-speech synthesis function using Azure OpenAI TTS.
You can specify the voice to use by passing it as an argument to the tts
function.
You can also specify specific OpenAI properties by passing them as an argument to the tts
function.
Speech to Text
The Azure OpenAI provider provides a stt
function that allows you to create a speech-to-text transcription function using Azure OpenAI Whisper.
You can also specify specific OpenAI properties by passing them as an argument to the stt
function.