deepgram gather: if both endpointing and utterance_end_ms are set (bu… (#644)

* deepgram gather: if both endpointing and utterance_end_ms are set (but not continous asr) return either when we get speech_final or UtteranceEnd.  This is the belt-and-suspenders apprach deepgram is recommending

* include verb id in action hook if one was provided in the verb set

* minor
This commit is contained in:
Dave Horton
2024-02-12 12:32:43 -05:00
committed by GitHub
parent c894369a13
commit f0533c881b
2 changed files with 2 additions and 10 deletions

View File

@@ -160,6 +160,7 @@ class Task extends Emitter {
const httpHeaders = b3 && {b3};
span.setAttributes({'http.body': JSON.stringify(params)});
try {
if (this.id) params.verb_id = this.id;
const json = await this.cs.requestor.request(type, this.actionHook, params, httpHeaders);
span.setAttributes({'http.statusCode': 200});
const isWsConnection = this.cs.requestor instanceof WsRequestor;