fix: return empty deepgram transcripts that signify an endpoint

Signed-off-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
Dave Horton
2024-01-14 13:31:20 -05:00
parent 9e3783e138
commit 7c45b53690

View File

@@ -84,7 +84,8 @@ namespace {
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) {
std::shared_ptr<deepgram::AudioPipe> pAp;