next round of websocket fun

This commit is contained in:
Jacob Dubin
2026-04-12 08:31:33 -05:00
parent 41fc9a1ef6
commit 70d36bf563
12 changed files with 391 additions and 36 deletions

View File

@@ -0,0 +1,41 @@
{
"name": "neo-hub buffered audio pending flow",
"session": {
"hostName": "neo-hub.jibo.com",
"path": "/listen",
"kind": "neo-hub-listen",
"token": "fixture-pending-audio-token"
},
"steps": [
{
"text": {
"type": "LISTEN",
"transID": "fixture-trans-pending",
"data": {
"rules": [
"wake-word"
]
}
},
"expectedReplyTypes": [
"OPENJIBO_TURN_PENDING"
]
},
{
"binary": [1, 2, 3, 4],
"expectedReplyTypes": [
"OPENJIBO_AUDIO_RECEIVED"
]
},
{
"text": {
"type": "CLIENT_ASR",
"transID": "fixture-trans-pending",
"data": { }
},
"expectedReplyTypes": [
"OPENJIBO_TURN_PENDING"
]
}
]
}

View File

@@ -0,0 +1,61 @@
{
"name": "neo-hub multichunk audio chat flow",
"session": {
"hostName": "neo-hub.jibo.com",
"path": "/listen",
"kind": "neo-hub-listen",
"token": "fixture-audio-chat-token"
},
"steps": [
{
"text": {
"type": "LISTEN",
"transID": "fixture-trans-audio-chat",
"data": {
"rules": [
"wake-word"
]
}
},
"expectedReplyTypes": [
"OPENJIBO_TURN_PENDING"
]
},
{
"text": {
"type": "CONTEXT",
"transID": "fixture-trans-audio-chat",
"data": {
"audioTranscriptHint": "hello from buffered audio"
}
},
"expectedReplyTypes": [
"OPENJIBO_CONTEXT_ACK"
]
},
{
"binary": [1, 2, 3],
"expectedReplyTypes": [
"OPENJIBO_AUDIO_RECEIVED"
]
},
{
"binary": [4, 5, 6, 7],
"expectedReplyTypes": [
"OPENJIBO_AUDIO_RECEIVED"
]
},
{
"text": {
"type": "CLIENT_ASR",
"transID": "fixture-trans-audio-chat",
"data": { }
},
"expectedReplyTypes": [
"LISTEN",
"EOS",
"SKILL_ACTION"
]
}
]
}