OpenAI Read Aloud

OpenAI Read Aloud example thumbnail

Read a short text aloud with an editable voice and delivery prompt. The graph passes the supplied wording directly to speech synthesis; it does not summarize or rewrite it. The voice is AI-generated.

Try it

  1. Import the graph and add the graph-scoped secret OPENAI_API_KEY in Graph Settings > Execution Profile.
  2. Edit Text to read, Voice direction, and optionally Voice. The default voice is marin; cedar is another option.
  3. Run. Bind Audio Preview to Generate speech → media. The transcript graph output contains the supplied script, and response serves the MP3.

The built-in sample is original fictional text. No upload is required, and this example works on a localhost dev instance with outbound access to OpenAI.

Graph and limits

Text + voice + delivery prompt → validate → speech body → HTTP request → audio

To read text from a PDF without adaptation, paste a short extracted passage into Text to read. For PDF upload and prompted adaptation, use OpenAI PDF Narration.

Validation

The graph is checked against the sibling runtime with mocked provider responses. Live voice quality and paid API execution still need testing in your instance.

OpenAI speech guide

To repeat offline checks from the examples repository:

python3 scripts/check_narration_examples.py --runtime-root ../subfork-new/backend/runtime

The runtime path is a CLI argument and can point to another checkout. No provider credentials or network access are used by these checks.