Skip to content

Gandr TTS as a LangChain tool.

One pip install, then a standard agent tool your LLM can call.

Ask Claude CodeAsk ChatGPT

The whole integration

Install, construct, hand to the agent.

Integration
pip install gandr-langchain

from gandr_langchain import GandrText2SpeechTool

tool = GandrText2SpeechTool(voice="gandr-leo")

The tool is a standard LangChain tool, so it plugs into any agent that accepts a tool list. The key comes from GANDR_API_KEY.

What it needs

What it takes

One packagepip install gandr-langchain
A keyGANDR_API_KEY in the environment
LangChainAny recent version with tool support
Python3.9 or newer

A key and one stream, and your LangChain agent speaks.

Get a key

Full API reference , gandr.ai/docs