Skip to content

Commit

Permalink
feat fork audio support bidirectional audio stream
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Mar 27, 2024
1 parent a6a942c commit cde803d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"passDtmf": "boolean",
"playBeep": "boolean",
"disableBidirectionalAudio": "boolean",
"bidirectionalAudioSampleRate": "number",
"timeout": "number"
},
"required": [
Expand Down Expand Up @@ -363,6 +364,7 @@
"passDtmf": "boolean",
"playBeep": "boolean",
"disableBidirectionalAudio": "boolean",
"bidirectionalAudioSampleRate": "number",
"sampleRate": "number",
"timeout": "number",
"transcribe": "#transcribe",
Expand Down
15 changes: 15 additions & 0 deletions test/jambonz-verb-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,21 @@ test("validate correct verbs", async (t) => {
"url": "wss://myrecorder.example.com/calls",
"mixType" : "stereo"
},
{
"verb": "listen",
"url": "wss://myrecorder.example.com/calls",
"mixType" : "stereo",
"bidirectionalAudioSampleRate": 8000
},
{
"verb": "config",
"listen": {
"enable": true,
"url": "wss://myrecorder.example.com/calls",
"mixType" : "stereo",
"bidirectionalAudioSampleRate": 8000
}
},
{
"verb": "message",
"to": "15083084809",
Expand Down

0 comments on commit cde803d

Please sign in to comment.