mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
wip: implemented listen, transcribe, play
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
"sip:decline": {
|
||||
"status": "hello"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
31
test/data/good/alternate-syntax.json
Normal file
31
test/data/good/alternate-syntax.json
Normal file
@@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"verb": "gather",
|
||||
"action": "https://00dd977a.ngrok.io/gather",
|
||||
"input": ["speech"],
|
||||
"timeout": 12,
|
||||
"recognizer": {
|
||||
"vendor": "google",
|
||||
"language": "en-US",
|
||||
"hints": ["sales", "support", "engineering", "human resources", "HR", "operator", "agent"]
|
||||
},
|
||||
"say": {
|
||||
"text": "Please say the name of the department that you would like to speak with. To speak to an operator, just say operator.",
|
||||
"synthesizer": {
|
||||
"vendor": "google",
|
||||
"voice": "en-US-Wavenet-C"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "say",
|
||||
"text": "I'm sorry, I did not hear a response. Goodbye.",
|
||||
"synthesizer": {
|
||||
"vendor": "google",
|
||||
"voice": "en-US-Wavenet-C"
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "hangup"
|
||||
}
|
||||
]
|
||||
@@ -9,11 +9,10 @@
|
||||
}
|
||||
],
|
||||
"listen": {
|
||||
"wsUrl": "wss://myrecorder.example.com:4433",
|
||||
"url": "wss://myrecorder.example.com:4433",
|
||||
"mixType" : "stereo",
|
||||
"sampleRate": 8000,
|
||||
"passDtmf": true,
|
||||
"source": "parent",
|
||||
"metadata": {
|
||||
"clientId": "12udih"
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,11 +10,12 @@
|
||||
],
|
||||
"transcribe": {
|
||||
"action": "http://example.com/transcribe",
|
||||
"language" : "en-US",
|
||||
"source" : "both",
|
||||
"interim": true,
|
||||
"vendor": "google",
|
||||
"jsonKey": "--json service key--"
|
||||
"recognizer": {
|
||||
"vendor": "google",
|
||||
"language" : "en-US",
|
||||
"mixType" : "stereo",
|
||||
"interim": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user