Gandr TTS as a LangChain tool.
One pip install, then a standard agent tool your LLM can call.
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 package | pip install gandr-langchain |
| A key | GANDR_API_KEY in the environment |
| LangChain | Any recent version with tool support |
| Python | 3.9 or newer |