Skip to main content
Using OpenClaw? Install the live PyAI skills for task-based speech and calling from ClawHub. See the OpenClaw setup guide for install commands, permissions and example prompts.
Give users a way to speak to your app and hear its answers. Use Hear for transcription and Speak for speech synthesis while keeping your existing LLM, tools and application logic.
This integration calls PyAI directly. It does not require or establish a PyAI listing in Vercel AI Gateway. Your PyAI account handles speech billing.

Try Hear and Speak before integrating

Open the live voice demo: record a question about PyAI, see Hear’s transcript, and listen to Speak’s reply. You can also type. The product answers are scripted; transcription and speech use real PyAI APIs. Three free questions, no signup required; daily demo limits apply. The hosted demo is a standalone Hear + Speak reference app. To use these APIs in your own application, get a free API key and follow the setup below. The demo also includes a signup link.

Install

Use Node.js 22 or newer, on the server:
The key needs speak:synthesize and hear:transcribe. Never expose it in browser code or a public environment variable.

Speak, then transcribe

This makes two requests and consumes your PyAI quota or credit. Retries are disabled so an uncertain billed request is not automatically submitted again. Inspect the error before retrying. The example buffers a complete WAV and uses synchronous transcription; it is not a realtime or streaming recipe.

Runnable example and verification

Download the runnable example and its contract tests. The same helper passed a live Speak → Hear round trip on October 25, 2026: a 2.48-second WAV was transcribed correctly, with two successful requests and no retries. This verifies the integration path; it is not a latency SLA or a multilingual quality benchmark.

Choose languages and voices

Hear supports 29 recognition languages with automatic detection. Speak’s stock catalog spans 17 language groups. Select a suitable voice from GET https://api.pyai.com/v1/voices and consult the language table. Test your application’s accents, audio conditions and preferred voices before production rollout.

What does it cost?

See the PyAI pricing page for current Hear and Speak rates and billing details. LLM and hosting costs are separate.

Is customer audio used for training?

PyAI’s default no-training warranty covers customer inputs and outputs for shared/general model training. This is separate from retention; see the privacy policy.

Build a streaming voice agent

For streaming audio and your own turn policy, use the LiveKit Agents or Pipecat Python integration. For a managed conversational session, see Omni.