Skip to content

Commit

Permalink
support config->transcribe run in background (#37)
Browse files Browse the repository at this point in the history
* support config->transcribe run in background

* wip

* fix review comments
  • Loading branch information
xquanluu authored Dec 26, 2023
1 parent 63aa94a commit 1e6b241
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"bargeIn": "#bargeIn",
"record": "#recordOptions",
"listen": "#listenOptions",
"transcribe": "#transcribeOptions",
"amd": "#amd",
"notifyEvents": "boolean",
"reset": "string|array",
Expand Down Expand Up @@ -91,6 +92,16 @@
"enable"
]
},
"transcribeOptions": {
"properties": {
"enable": "boolean",
"transcriptionHook": "string",
"recognizer": "#recognizer"
},
"required": [
"enable"
]
},
"dequeue": {
"properties": {
"id": "string",
Expand Down
8 changes: 8 additions & 0 deletions test/jambonz-verb-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ test("validate correct verbs", async (t) => {
"input" : ["speech"],
"actionHook": "/userInput"
},
"transcribe": {
"enable": true,
"transcriptionHook": "http://server.com/hook",
"recognizer": {
"vendor": "google",
"language": "de-DE",
}
},
"onHoldMusic": "http://server.com/hold",
"actionHookDelayAction": {
"enabled": true,
Expand Down

0 comments on commit 1e6b241

Please sign in to comment.