mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-01-25 02:08:06 +00:00
support google stt version 2 (#49)
* support google stt version 2 * fix review comments * fix review comment
This commit is contained in:
15
specs.json
15
specs.json
@@ -646,6 +646,7 @@
|
||||
"awsOptions": "#awsOptions",
|
||||
"azureOptions": "#azureOptions",
|
||||
"assemblyAiOptions": "#assemblyAiOptions",
|
||||
"googleOptions": "#googleOptions",
|
||||
"customOptions": "#customOptions"
|
||||
},
|
||||
"required": [
|
||||
@@ -698,6 +699,20 @@
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"googleOptions" : {
|
||||
"properties": {
|
||||
"serviceVersion": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"v1",
|
||||
"v2"
|
||||
]
|
||||
},
|
||||
"speechStartTimeoutMs": "number",
|
||||
"speechEndTimeoutMs": "number",
|
||||
"transcriptNormalization": "array"
|
||||
}
|
||||
},
|
||||
"cobaltOptions": {
|
||||
"properties": {
|
||||
"serverUri": "string",
|
||||
|
||||
@@ -412,6 +412,27 @@ test("validate correct verbs", async (t) => {
|
||||
"interim": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "transcribe",
|
||||
"transcriptionHook": "http://example.com/transcribe",
|
||||
"recognizer": {
|
||||
"vendor": "nvidia",
|
||||
"language" : "en-US",
|
||||
"interim": true,
|
||||
"googleOptions": {
|
||||
"serviceVersion": "v2",
|
||||
"speechStartTimeoutMs": 500,
|
||||
"speechEndTimeoutMs": 1000,
|
||||
"transcriptNormalization" : [
|
||||
{
|
||||
"search": "dog",
|
||||
"replace": "cat",
|
||||
"case_sensitive": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "rest:dial",
|
||||
"account_sid": "1291964182631236912836123912",
|
||||
|
||||
Reference in New Issue
Block a user