wip: implemented listen, transcribe, play

This commit is contained in:
Dave Horton
2020-01-17 09:15:23 -05:00
parent 1a656f3f0e
commit 0d4c1d9d8c
24 changed files with 688 additions and 108 deletions

View 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"
}
]

View File

@@ -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"
}

View File

@@ -13,4 +13,4 @@
}
]
}
}
}

View File

@@ -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
}
}
}
}