Skip to main content
Glama

text_to_phonemes

Convert English text to phoneme strings for speech synthesis using dictionary lookup, with options to adjust pitch, rate, and formant.

Instructions

Convert English text to an approximate klattsch phoneme string. This does a dictionary lookup word-by-word. Unknown words are spelled out letter-by-letter (which sounds robotic — hand-craft those for best results).

Returns a full phoneme string ready for speak/speak_file. You can (and should) edit the output before passing to speak — add stress marks (!), pitch contours (+N/-N), adjust pauses, or fix mispronounced words.

The output includes control prefixes based on your voice selections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe English text to convert (e.g. "Hello, how are you?").
pitchNoBase pitch in Hz. 100-140 = male, 180-220 = female, 250-300 = child.
rateNoPer-phoneme rate in ms. 80-100 = fast, 100-120 = normal, 200-400 = sung.
formantScaleNoFormant scale: 1.0 = male, 1.17 = female, 1.3 = child.
vibratoNoVibrato depth in Hz. 0 = off, 2-3 = natural, 5-6 = dramatic/operatic.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that conversion is approximate, uses dictionary lookup with letter-by-letter fallback, and returns a phoneme string with control prefixes. It does not mention any destructive effects or authentication needs, which are not expected for a text conversion tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at five sentences, front-loaded with purpose. Every sentence adds value: explaining the process, warning about unknown words, and advising editing. No unnecessary words or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description explains the return value (phoneme string ready for speak) and mentions control prefixes. It provides sufficient context for an agent to use the tool effectively, though it could explicitly state the output format or include a brief example.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All five parameters are described in the input schema with good detail. The description adds context about the output being editable and including control prefixes, but does not significantly enhance parameter understanding beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool converts English text to an approximate klattsch phoneme string via word-by-word dictionary lookup. It specifies the fallback spelling for unknown words and distinguishes itself from sibling tools like speak and speak_file by noting the output is ready for those tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description advises editing the output before using it with speak and warns that unknown words sounded robotic. It provides context on when to use (conversion) and best practices, though it does not explicitly state when not to use it or compare to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Endeavor-DoxiDoxi/klattsch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server