text-to-speech

Convert text to an MP3 audio file and return its file path.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/bibo1243/claw_memory --skill text-to-speech-bibo1243
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: text-to-speech
Source: https://github.com/bibo1243/claw_memory/tree/main/--help/skills/text-to-speech
Command: npx skills add https://github.com/bibo1243/claw_memory --skill text-to-speech-bibo1243

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, and includes scripts (resource) components.

What problem does it solve?

將文字轉換為自然語音,產生 MP3 檔案並回傳檔案路徑,方便在需要語音回應的情境中快速部署。

Core Features & Use Cases

  • 轉換 (Convert): 輸入文字,輸出 MP3 檔案路徑,適用於聊天機器人、語音廣播與內容生成工作流。

Quick Start

請輸入要轉換為語音的文字,並取得對應的 MP3 檔案路徑。

Frequently Asked Questions about text-to-speech

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert text to speech and get an MP3 file using OpenAI?

To convert text to speech into an MP3 file, this tool uses the OpenAI tts-1 model to generate a standard MP3 audio stream and returns the output file path. It requires the Python openai package and the OPENAI_API_KEY environment variable to process the input text.

Do I need an OpenAI API key to generate audio from text?

Yes, you need an OpenAI API key to generate audio from text. The OPENAI_API_KEY environment variable must be set to authenticate requests to the tts-1 model and produce the MP3 stream. Without it, the text-to-speech conversion will fail.

Can I use text-to-speech output for a chatbot or voice assistant?

Yes, you can use text-to-speech output for chatbots, voice assistants, and content generation workflows. The tool processes input text and returns an MP3 file path, making it suitable for systems requiring natural speech responses and automated audio generation.

What is the best way to automate MP3 audio generation from text content?

The best way to automate MP3 audio generation is passing input text to a script that calls the OpenAI tts-1 model. This process returns a standard MP3 file path, allowing automated workflows to quickly deploy natural speech output without manual intervention.

Does the text-to-speech conversion require any specific Python packages?

Yes, text-to-speech conversion requires the Python openai package. This dependency must be installed in your environment to access the tts-1 model, generate the MP3 audio stream, and return the resulting file path.