mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-01-25 02:08:06 +00:00
feat fork audio support bidirectional audio stream (#48)
* feat fork audio support bidirectional audio stream * update bidirectionalAudio
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
"passDtmf": "boolean",
|
||||
"playBeep": "boolean",
|
||||
"disableBidirectionalAudio": "boolean",
|
||||
"bidirectionalAudio": "#bidirectionalAudio",
|
||||
"timeout": "number"
|
||||
},
|
||||
"required": [
|
||||
@@ -363,6 +364,7 @@
|
||||
"passDtmf": "boolean",
|
||||
"playBeep": "boolean",
|
||||
"disableBidirectionalAudio": "boolean",
|
||||
"bidirectionalAudio": "#bidirectionalAudio",
|
||||
"sampleRate": "number",
|
||||
"timeout": "number",
|
||||
"transcribe": "#transcribe",
|
||||
@@ -959,5 +961,12 @@
|
||||
"retries": "number",
|
||||
"actions": "array"
|
||||
}
|
||||
},
|
||||
"bidirectionalAudio" : {
|
||||
"properties": {
|
||||
"enabled": "boolean",
|
||||
"streaming": "boolean",
|
||||
"sampleRate": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -314,6 +314,29 @@ test("validate correct verbs", async (t) => {
|
||||
"url": "wss://myrecorder.example.com/calls",
|
||||
"mixType" : "stereo"
|
||||
},
|
||||
{
|
||||
"verb": "listen",
|
||||
"url": "wss://myrecorder.example.com/calls",
|
||||
"mixType" : "stereo",
|
||||
"bidirectionalAudio": {
|
||||
enabled: true,
|
||||
streaming: true,
|
||||
sampleRate: 8000
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"listen": {
|
||||
"enable": true,
|
||||
"url": "wss://myrecorder.example.com/calls",
|
||||
"mixType" : "stereo",
|
||||
"bidirectionalAudio": {
|
||||
enabled: true,
|
||||
streaming: true,
|
||||
sampleRate: 8000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "message",
|
||||
"to": "15083084809",
|
||||
|
||||
Reference in New Issue
Block a user