WordPress Audio Converter

Turn WordPress posts into audio your readers can stream.

This deployment serves the API and the audio player route. Use the quick steps below to trigger audio generation and confirm the backend is reachable.

Send a POST request
Call POST /api/generate-audio with a WordPress post slug and URL (or guid/permalink).
Audio is rendered & stored
Text is chunked, converted via OpenAI TTS, merged, then uploaded to Bunny Storage.
Play on the public route
Open /audio/[slug] to stream the generated MP3 directly from the CDN.
API request example
Send JSON to generate or re-generate an MP3 for a WordPress post.
curl -X POST https://your-domain.com/api/generate-audio \
  -H "Content-Type: application/json" \
  -d '{
    "post": { "post_name": "my-article-slug" },
    "wordpressUrl": "https://example.com/my-article-slug",
    "voice": "alloy"
  }'

Required env vars: OPENAI_API_KEY, BUNNY_STORAGE_ZONE, BUNNY_STORAGE_ACCESS_KEY, and BUNNY_STORAGE_PUBLIC_BASE_URL.

Debug checklist
Common deployment checks when the page shows blank or logs are empty.

Home page now renders — confirms server-side rendering is working.

  • Verify environment variables exist in the deployment target (OpenAI + Bunny). Missing values will now be logged explicitly.
  • Use the request ID in server logs to trace the full audio generation flow.
  • Open the audio route after a run: /audio/your-slug.