RealtimeEventMap
Properties
Section titled “Properties”audio: (data) => void;Raw PCM audio from the model (send to client/transport).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”void
disconnected
Section titled “disconnected”disconnected: () => void;Connection closed.
Returns
Section titled “Returns”void
error: (error) => void;Connection error.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”void
interrupted
Section titled “interrupted”interrupted: () => void;User interrupted the model (barge-in).
Returns
Section titled “Returns”void
tool-call
Section titled “tool-call”tool-call: (id, name, args) => void;Model wants to call a tool.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”void
transcript
Section titled “transcript”transcript: (text, role) => void;Transcript of user or assistant speech.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”void
turn-complete
Section titled “turn-complete”turn-complete: () => void;Model finished speaking for this turn.
Returns
Section titled “Returns”void