support houndify stt (#108)

* support houndify stt

* add testcase

* wip
This commit is contained in:
Hoan Luu Huu
2025-10-14 11:42:34 +07:00
committed by GitHub
parent 577191ed0d
commit b4856e9d05
2 changed files with 86 additions and 1 deletions

View File

@@ -755,7 +755,8 @@
"customOptions": "#customOptions", "customOptions": "#customOptions",
"verbioOptions": "#verbioOptions", "verbioOptions": "#verbioOptions",
"speechmaticsOptions": "#speechmaticsOptions", "speechmaticsOptions": "#speechmaticsOptions",
"openaiOptions": "#openaiOptions" "openaiOptions": "#openaiOptions",
"houndifyOptions": "#houndifyOptions"
}, },
"required": [ "required": [
"vendor" "vendor"
@@ -833,6 +834,42 @@
"transcriptNormalization": "array" "transcriptNormalization": "array"
} }
}, },
"houndifyOptions": {
"properties": {
"latitude": "number",
"longitude": "number",
"city": "string",
"state": "string",
"country": "string",
"timeZone": "string",
"domain": "string",
"audioEndpoint": "string",
"maxSilenceSeconds": "number",
"maxSilenceAfterFullQuerySeconds": "number",
"maxSilenceAfterPartialQuerySeconds": "number",
"vadSensitivity": "number",
"vadTimeout": "number",
"vadMode": "string",
"vadVoiceMs": "number",
"vadSilenceMs": "number",
"vadDebug": "boolean",
"audioFormat": "string",
"enableNoiseReduction": "boolean",
"enableProfanityFilter": "boolean",
"enablePunctuation": "boolean",
"enableCapitalization": "boolean",
"confidenceThreshold": "number",
"enableDisfluencyFilter": "boolean",
"maxResults": "number",
"enableWordTimestamps": "boolean",
"maxAlternatives": "number",
"partialTranscriptInterval": "number",
"sessionTimeout": "number",
"connectionTimeout": "number",
"customVocabulary": "array",
"languageModel": "string"
}
},
"cobaltOptions": { "cobaltOptions": {
"properties": { "properties": {
"serverUri": "string", "serverUri": "string",

View File

@@ -279,6 +279,54 @@ test("validate correct verbs", async (t) => {
} }
}, },
}, },
{
"verb": "gather",
"actionHook": "http://example.com/collect",
"input": ["digits", "speech"],
"bargein": true,
"dtmfBargein": true,
"finishOnKey": "#",
"numDigits": 5,
"timeout": 8,
"recognizer": {
"vendor": "houndify",
"language": "en-US",
"houndifyOptions": {
"latitude": 30.6,
"longitude": 30.6,
"city": "Huston",
"state": "CA",
"country": "US",
"timeZone": "GMT",
"domain": "Voice",
"audioEndpoint": "https://api.houndify.com/v1/audio",
"maxSilenceSeconds": 5,
"maxSilenceAfterFullQuerySeconds": 3,
"maxSilenceAfterPartialQuerySeconds": 2,
"vadSensitivity": 0.5,
"vadTimeout": 1000,
"vadMode": "auto",
"vadVoiceMs": 250,
"vadSilenceMs": 500,
"vadDebug": true,
"audioFormat": "PCM16",
"enableNoiseReduction": true,
"enableProfanityFilter": false,
"enablePunctuation": true,
"enableCapitalization": true,
"confidenceThreshold": 0.7,
"enableDisfluencyFilter": true,
"maxResults": 5,
"enableWordTimestamps": true,
"maxAlternatives": 3,
"partialTranscriptInterval": 100,
"sessionTimeout": 30000,
"connectionTimeout": 5000,
"customVocabulary": ["jambonz", "telephony", "voip"],
"languageModel": "enhanced"
}
},
},
{ {
"verb": "gather", "verb": "gather",
"actionHook": "http://example.com/collect", "actionHook": "http://example.com/collect",