Compare commits

...

1 Commits

Author SHA1 Message Date
Dave Horton 7c45b53690 fix: return empty deepgram transcripts that signify an endpoint
Signed-off-by: Dave Horton <daveh@beachdognet.com>
2024-01-14 13:31:20 -05:00
@@ -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;