text-to-speech

Produce actual audio output from the computer's speakers using text-to-speech. Use this skill when the user asks to speak, say something out loud, talk, vocalize, read aloud, announce, play audio from text, or produce voice output. Can use OS-native commands (macOS say, Linux espeak) or high-quality API-based TTS (OpenAI). The key point: this MUST produce real sound, not just text.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "text-to-speech" with this command: npx skills add dalehurley/phpbot/dalehurley-phpbot-text-to-speech

Skill: text-to-speech

When to Use

Use this skill when the user asks to:

  • Say something out loud / speak / talk
  • Read text aloud or announce something
  • Generate audio from text
  • Create a voice message or spoken output
  • Use text-to-speech / TTS
  • Produce audible output from the computer speakers

CRITICAL: This skill produces REAL AUDIO from the speakers. NOT just text.

Input Parameters

ParameterRequiredDescriptionExample
text_contentYesThe text to speak out loudhello I am P-H-P Bot

Procedure

  1. Extract the text content from the user's request
  2. Try the simplest approach first — use the OS built-in TTS:
    • macOS: say "{{TEXT_CONTENT}}" (zero dependencies, instant)
    • Linux: espeak "{{TEXT_CONTENT}}" or spd-say "{{TEXT_CONTENT}}"
    • Verify it worked (exit code 0)
  3. If higher quality is needed or the simple approach fails, escalate:
    • Check for an OpenAI API key: get_keyssearch_computerask_user
    • Generate speech via API: curl the OpenAI TTS endpoint, save to MP3
    • Play the MP3: afplay (macOS) or mpv/aplay (Linux)
  4. Confirm to the user that audio was played from the speakers

Reference Commands

# Simplest: macOS built-in (try this first)
say "hello I am P-H-P Bot"

# With voice selection
say -v Samantha "hello I am P-H-P Bot"

# Higher quality: OpenAI TTS API → play result
curl -s https://api.openai.com/v1/audio/speech \
  -H "Authorization: Bearer ${OPENAI_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","input":"hello I am P-H-P Bot","voice":"alloy"}' \
  --output /tmp/speech.mp3 && afplay /tmp/speech.mp3

Example

talk out loud and say "hello I am P-H-P Bot"
say "good morning" out loud
speak the following text: welcome to PHP Bot
read this aloud: the quick brown fox

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

desktop-control

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

summarize-unread-emails

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

csv-tools

No summary provided by upstream source.

Repository SourceNeeds Review