support noise isolation to config verb (#122)

* support noise isolation to config verb

* wip

* wip

* wip

* wip

* add vendor to turnTaking
This commit is contained in:
Hoan Luu Huu
2026-02-12 05:31:19 +07:00
committed by GitHub
parent fe095be5c8
commit c9cd50c559
2 changed files with 37 additions and 1 deletions

View File

@@ -76,7 +76,9 @@
"referHook": "object|string",
"earlyMedia": "boolean",
"autoStreamTts": "boolean",
"disableTtsCache": "boolean"
"disableTtsCache": "boolean",
"noiseIsolation": "#noiseIsolation",
"turnTaking": "#turnTaking"
},
"required": []
},
@@ -1400,5 +1402,21 @@
"required": [
"vendor"
]
},
"noiseIsolation" : {
"properties": {
"enable": "boolean",
"vendor": "string",
"level": "number",
"model": "string"
}
},
"turnTaking": {
"properties": {
"enable": "boolean",
"vendor": "string",
"threshold": "number",
"model": "string"
}
}
}

View File

@@ -468,6 +468,24 @@ test("validate correct verbs", async (t) => {
"speechPadMs": 1000
}
},
{
"verb": "config",
"noiseIsolation": {
"enable": true,
"vendor": "krisp",
"level": 3,
"model": "custom-model"
}
},
{
"verb": "config",
"turnTaking": {
"enable": true,
"vendor": "krisp",
"threshold": 0.5,
"model": "turn-taking-model"
}
},
{
"verb": "message",
"to": "15083084809",