add is_final to segmented func. sig. instead so tracing is consistent
This commit is contained in:
@@ -583,7 +583,7 @@ class RivaSegmentedSTTService(SegmentedSTTService):
|
|||||||
self._config.language_code = self._language
|
self._config.language_code = self._language
|
||||||
|
|
||||||
@traced_stt
|
@traced_stt
|
||||||
async def _handle_transcription(self, transcript: str, language: Optional[Language] = None):
|
async def _handle_transcription(self, transcript: str, is_final: bool, language: Optional[Language] = None):
|
||||||
"""Handle a transcription result with tracing."""
|
"""Handle a transcription result with tracing."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -647,7 +647,7 @@ class RivaSegmentedSTTService(SegmentedSTTService):
|
|||||||
)
|
)
|
||||||
transcription_found = True
|
transcription_found = True
|
||||||
|
|
||||||
await self._handle_transcription(text, self._language_enum)
|
await self._handle_transcription(text, True, self._language_enum)
|
||||||
|
|
||||||
if not transcription_found:
|
if not transcription_found:
|
||||||
logger.debug("No transcription results found in Riva response")
|
logger.debug("No transcription results found in Riva response")
|
||||||
|
|||||||
Reference in New Issue
Block a user