Skip to main content
OpenAI is a speech-to-text plugin. It transcribes the caller’s audio into text for the LLM using OpenAI’s transcription models. By default it streams over OpenAI’s realtime transcription WebSocket; it can also run in non-streaming HTTP mode with built-in voice activity detection.

Setup

Set your OpenAI API key in the worker environment. Generate a key from the OpenAI dashboard:

Usage

Import the plugin and pass it to the pipeline’s stt slot.

Azure

For speech-to-text on Azure, use the Azure STT plugin.

Parameters

Constructor parameters for OpenAISTT. The Python and Node JS SDKs share these field names.

Import paths

Transcribed text passes to the LLM once turn detection decides the caller has finished speaking.

Inference models

These OpenAI models also run through the Inference Gateway on your Zero Runtime auth token, with no OpenAI API key. Pass the model id to the same class imported from zeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).