# TextToSpeechTool

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/texttospeech/TextToSpeechTool)

Tool that queries the Google Cloud Text-to-Speech API.

Inherits from [`BaseTool`][langchain_core.tools.BaseTool].

Synthesizes audio from text with support for multiple languages and voice options.

!!! note "Installation"

    Requires additional dependencies:

    ```bash
    pip install langchain-google-community[texttospeech]
    ```

!!! note "Setup Required"

    Follow [setup instructions](https://cloud.google.com/text-to-speech/docs/before-you-begin)
    to configure Google Cloud Text-to-Speech API.

## Signature

```python
TextToSpeechTool(
    self,
    **kwargs: Any = {},
)
```

## Extends

- `BaseTool`

## Constructors

```python
__init__(
    self,
    **kwargs: Any = {},
) -> None
```


## Properties

- `name`
- `description`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/community/langchain_google_community/texttospeech.py#L40)