# ElevenLabsText2SpeechTool

> **Class** in `langchain_community`

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

Tool that queries the Eleven Labs Text2Speech API.

In order to set this up, follow instructions at:
https://elevenlabs.io/docs

## Signature

```python
ElevenLabsText2SpeechTool()
```

## Extends

- `BaseTool`

## Properties

- `model`
- `voice`
- `name`
- `description`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/tools/eleven_labs/text2speech/ElevenLabsText2SpeechTool/validate_environment)
- [`play()`](https://reference.langchain.com/python/langchain-community/tools/eleven_labs/text2speech/ElevenLabsText2SpeechTool/play)
- [`stream_speech()`](https://reference.langchain.com/python/langchain-community/tools/eleven_labs/text2speech/ElevenLabsText2SpeechTool/stream_speech)

---

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