# AzureCogsText2SpeechTool

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/azure_cognitive_services/text2speech/AzureCogsText2SpeechTool)

Tool that queries the Azure Cognitive Services Text2Speech API.

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

## Signature

```python
AzureCogsText2SpeechTool()
```

## Extends

- `BaseTool`

## Properties

- `azure_cogs_key`
- `azure_cogs_region`
- `speech_language`
- `speech_config`
- `name`
- `description`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/tools/azure_cognitive_services/text2speech/AzureCogsText2SpeechTool/validate_environment)

---

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