# AzureCogsSpeech2TextTool

> **Class** in `langchain_community`

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

Tool that queries the Azure Cognitive Services Speech2Text API.

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

## Signature

```python
AzureCogsSpeech2TextTool()
```

## 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/speech2text/AzureCogsSpeech2TextTool/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/tools/azure_cognitive_services/speech2text.py#L20)