fix: double finals bug
This commit is contained in:
@@ -240,7 +240,9 @@ class AssemblyAISTTService(STTService):
|
|||||||
if not message.transcript:
|
if not message.transcript:
|
||||||
return
|
return
|
||||||
await self.stop_ttfb_metrics()
|
await self.stop_ttfb_metrics()
|
||||||
if message.end_of_turn:
|
if message.end_of_turn and (
|
||||||
|
not self._connection_params.formatted_finals or message.turn_is_formatted
|
||||||
|
):
|
||||||
await self.push_frame(
|
await self.push_frame(
|
||||||
TranscriptionFrame(
|
TranscriptionFrame(
|
||||||
message.transcript,
|
message.transcript,
|
||||||
|
|||||||
Reference in New Issue
Block a user