@tpmjs/tools-hllm
Convert text to speech using the configured TTS provider.
Test @tpmjs/tools-hllm (textToSpeech) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-hllmpnpm add @tpmjs/tools-hllmyarn add @tpmjs/tools-hllmbun add @tpmjs/tools-hllmdeno add npm:@tpmjs/tools-hllmimport { textToSpeech } from '@tpmjs/tools-hllm';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { textToSpeech } from '@tpmjs/tools-hllm';
const result = await generateText({
model: openai('gpt-4o'),
tools: { textToSpeech },
prompt: 'Your prompt here...',
});
console.log(result.text);(text: string, speed?: number, voice?: string, format?: string) => Promise<unknown>Available configuration options
textstringThe text to convert to speech.
voicestringVoice ID or name to use for synthesis.
speednumberSpeech speed multiplier (0.5-2.0). Default: 1.0
formatstringAudio output format. Default: mp3
Schema extracted: 2/23/2026, 4:31:38 AM
ERROR: No README data found!
Downloads/month
167
GitHub Stars
0
Quality Score