Intended Audience
- Developers
License
- OSI Approved :: Apache Software License
Programming Language
- Python :: 3
- Python :: 3 :: Only
- Python :: 3.10
Topic
- Multimedia :: Sound/Audio
- Scientific/Engineering :: Artificial Intelligence
Zoom AI plugin for LiveKit Agents
Support for Zoom Scribe speech-to-text, in two modes:
- Live (docs): streaming over WebSocket. Scribe's own VAD ends each speech turn and returns its final transcript.
- Fast (docs): one HTTP request per utterance. Not streaming, so
AgentSessionpairs it with a VAD.
See zoom.ai for all Zoom AI Services APIs and features.
Installation
pip install livekit-plugins-zoom-ai
Or install with the LiveKit Agents extra:
uv add "livekit-agents[zoom-ai]"
Pre-requisites
The plugin needs a Zoom AI Services API key with the Scribe permissions. Get your credentials at zoom.ai.
Set it in your .env file:
ZOOM_AI_API_KEY=<your_zoom_api_key>
Usage
Scribe Live (streaming)
Scribe detects the end of each turn, so let the STT drive turn detection:
from livekit.agents import AgentSession
from livekit.plugins import zoom_ai
session = AgentSession(
stt=zoom_ai.STT(language="en-US"),
turn_handling={"turn_detection": "stt"},
# ... llm, tts, etc.
)
Scribe Live with LiveKit turn detection
To let LiveKit's VAD and turn detector decide when the user is done, turn Scribe's VAD off with turn_detection="none". Each time LiveKit ends the user's speech, the plugin commits the audio so far (input_audio_buffer.commit) and Scribe returns its final transcript:
from livekit.agents import AgentSession, inference
from livekit.plugins import silero, zoom_ai
session = AgentSession(
stt=zoom_ai.STT(turn_detection="none"),
vad=silero.VAD.load(),
turn_handling={"turn_detection": inference.TurnDetector()}, # or "vad"
# ... llm, tts, etc.
)
In this mode the STT sends no start or end of speech events, so use a VAD with "vad" or a turn detector model, not "stt".
Scribe Fast (per utterance)
from livekit.agents import AgentSession
from livekit.plugins import silero, zoom_ai
session = AgentSession(
stt=zoom_ai.STT(mode="fast"),
vad=silero.VAD.load(), # cuts the audio into utterances
# ... llm, tts, etc.
)
Without an agent
Both modes also work on their own, for example for transcription. Outside an agent job, pass an aiohttp session:
stt = zoom_ai.STT(http_session=session, silence_duration_ms=600) # Live
stream = stt.stream() # push_frame() audio, then iterate the stream for SpeechEvents
event = await zoom_ai.STT(mode="fast", http_session=session).recognize(frames) # Fast
For transcription, a longer silence_duration_ms (such as 600) keeps sentences with pauses together and can improve accuracy; the 350 ms default is tuned for voice agents.
Options
Options map to the Scribe API fields of the same name; see the Scribe docs for what each one does and its availability. For a Scribe feature without an option here, pass its fields in extra_kwargs.
| Option | Default | Description |
|---|---|---|
mode |
"live" |
"live" (streaming) or "fast" (one request per utterance) |
api_key |
$ZOOM_AI_API_KEY |
Zoom AI Services API key |
language |
"en-US" |
Recognition language (supported languages); a regional variant Scribe doesn't list uses its base language's locale (en-GB → en-US) |
model |
None |
Recognition model; None uses Scribe's default |
language_detection |
None |
Language detection mode (Live supports "continuous"); the language Scribe detects is in SpeechData.language. With zoom-scribe-multilingual in Live, set it to get each final's language |
turn_detection |
"server" |
Live: "server" (Scribe's VAD ends each turn) or "none" (Scribe's VAD off; each flush from LiveKit's VAD or turn detector commits the turn) |
silence_duration_ms |
350 |
Live, turn_detection="server": silence (ms) that ends a turn; None uses Scribe's default |
diarization |
False |
Speaker labels: SpeechData.speaker_id, or metadata["speaker_segments"] when several people speak in one final |
word_time_offsets |
False |
Fast: word timings in SpeechData.words |
channel_separation |
False |
Fast: recognize each stereo channel separately; channels in metadata["channel_segments"] |
vocabulary |
None |
Words and phrases to recognize, such as names and product terms |
text_polishing |
False |
Polished text as the transcript, with the original in metadata["transcript"]; if polishing fails, the original text. en-US only |
extra_kwargs |
None |
Other Scribe request fields, e.g. {"config": {"language_detection": {"candidate_languages": ["en-US", "fr-FR"]}}} to restrict language detection |
base_url |
https://api.zoom.us/v2/aiservices/scribe |
Scribe API base URL |