Skip to content

Commit

Permalink
Add AzureOpenAiTextToSpeech driver in config
Browse files Browse the repository at this point in the history
  • Loading branch information
vachillo committed Sep 12, 2024
1 parent c6d2f9e commit 4a05106
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions griptape/configs/drivers/azure_openai_drivers_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
AzureOpenAiEmbeddingDriver,
AzureOpenAiImageGenerationDriver,
AzureOpenAiImageQueryDriver,
AzureOpenAiTextToSpeechDriver,
LocalVectorStoreDriver,
)
from griptape.utils.decorators import lazy_property
Expand Down Expand Up @@ -92,3 +93,13 @@ def vector_store_driver(self) -> LocalVectorStoreDriver:
azure_ad_token_provider=self.azure_ad_token_provider,
)
)

@lazy_property()
def text_to_speech_driver(self) -> AzureOpenAiTextToSpeechDriver:
return AzureOpenAiTextToSpeechDriver(
model="tts",
azure_endpoint=self.azure_endpoint,
api_key=self.api_key,
azure_ad_token=self.azure_ad_token,
azure_ad_token_provider=self.azure_ad_token_provider,
)

0 comments on commit 4a05106

Please sign in to comment.