mirror of
https://github.com/jambonz/freeswitch-modules.git
synced 2026-01-25 02:08:27 +00:00
fix: return empty deepgram transcripts that signify an endpoint
Signed-off-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
@@ -84,7 +84,8 @@ namespace {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char* emptyTranscript = "{\"alternatives\":[{\"transcript\":\"\",\"confidence\":0.0,\"words\":[]}]}";
|
static const char* emptyTranscript =
|
||||||
|
"\"is_final\":false,\"speech_final\":false,\"channel\":{\"alternatives\":[{\"transcript\":\"\",\"confidence\":0.0,\"words\":[]}]}";
|
||||||
|
|
||||||
static void reaper(private_t *tech_pvt) {
|
static void reaper(private_t *tech_pvt) {
|
||||||
std::shared_ptr<deepgram::AudioPipe> pAp;
|
std::shared_ptr<deepgram::AudioPipe> pAp;
|
||||||
|
|||||||
Reference in New Issue
Block a user