# EdenAiTextToSpeechTool

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/edenai/audio_text_to_speech/EdenAiTextToSpeechTool)

Tool that queries the Eden AI Text to speech API.
for api reference check edenai documentation:
https://docs.edenai.co/reference/audio_text_to_speech_create.

To use, you should have
the environment variable ``EDENAI_API_KEY`` set with your API token.
You can find your token here: https://app.edenai.run/admin/account/settings

## Signature

```python
EdenAiTextToSpeechTool()
```

## Extends

- `EdenaiTool`

## Properties

- `name`
- `description`
- `args_schema`
- `language`
- `return_type`
- `rate`
- `pitch`
- `volume`
- `audio_format`
- `sampling_rate`
- `voice_models`
- `voice`
- `feature`
- `subfeature`

## Methods

- [`check_only_one_provider_selected()`](https://reference.langchain.com/python/langchain-community/tools/edenai/audio_text_to_speech/EdenAiTextToSpeechTool/check_only_one_provider_selected)
- [`check_voice_models_key_is_provider_name()`](https://reference.langchain.com/python/langchain-community/tools/edenai/audio_text_to_speech/EdenAiTextToSpeechTool/check_voice_models_key_is_provider_name)

---

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