# AzureAiServicesTextToSpeechTool

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/azure_ai_services/text_to_speech/AzureAiServicesTextToSpeechTool)

Tool that queries the Azure AI Services Text to Speech API.

In order to set this up, follow instructions at:
https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-text-to-speech?pivots=programming-language-python

## Signature

```python
AzureAiServicesTextToSpeechTool()
```

## Extends

- `BaseTool`

## Properties

- `name`
- `description`
- `return_direct`
- `azure_ai_services_key`
- `azure_ai_services_region`
- `speech_language`
- `speech_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/tools/azure_ai_services/text_to_speech/AzureAiServicesTextToSpeechTool/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/tools/azure_ai_services/text_to_speech.py#L15)