@getdial/sdk - v0.21.0
Python SDK
AI SDK
getdial.ai
Preparing search index...
serializeServerAudioMessage
Function serializeServerAudioMessage
serializeServerAudioMessage
(
message
:
|
{
timestamp
:
number
;
type
:
"ping_pong"
}
|
{
payload
:
string
;
type
:
"media"
}
|
{
type
:
"clear"
}
|
{
name
:
string
;
type
:
"mark"
}
|
{
type
:
"end_call"
}
,
)
:
string
Validate + serialize an outbound frame to a JSON string.
Parameters
message
:
|
{
timestamp
:
number
;
type
:
"ping_pong"
}
|
{
payload
:
string
;
type
:
"media"
}
|
{
type
:
"clear"
}
|
{
name
:
string
;
type
:
"mark"
}
|
{
type
:
"end_call"
}
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Python SDK
AI SDK
getdial.ai
@getdial/sdk - v0.21.0
Loading...
Validate + serialize an outbound frame to a JSON string.