🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

audiobook

by @lnj22

Create audiobooks from web content or text files. Handles content fetching, text processing, and TTS conversion with automatic fallback between ElevenLabs, O...

πŸ’‘ Examples

import os

1. Check which TTS API is available

def get_tts_provider(): if os.environ.get("ELEVENLABS_API_KEY"): return "elevenlabs" elif os.environ.get("OPENAI_API_KEY"): return "openai" else: return "gtts" # Free, no API key needed

provider = get_tts_provider() print(f"Using TTS provider: {provider}")

πŸ“‹ Tips & Best Practices

"Content appears to be a summary"

  • Use curl directly instead of web fetch tools
  • Verify the URL is correct and accessible
  • Check if the site requires JavaScript rendering
  • "API key not found"

  • Check environment variables: echo $OPENAI_API_KEY
  • Ensure keys are exported in the shell
  • Fall back to gTTS if no paid API keys available
  • "Audio chunks don't sound continuous"

  • Ensure chunking happens at sentence boundaries
  • Consider adding small pauses between sections
  • Use consistent voice settings across all chunks
  • View on ClawHub
    TERMINAL
    clawhub install pg-essay-to-audiobook-audiobook

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’