Merge pull request #2348 from sam-s10s/speechmatics-stt
Fix for Speechmatics STT
This commit is contained in:
@@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Fixed an issue with the `TavusVideoService` where an error was thrown due to
|
- Fixed an issue with the `TavusVideoService` where an error was thrown due to
|
||||||
missing transcription callbacks.
|
missing transcription callbacks.
|
||||||
|
|
||||||
|
- Fixed an issue in `SpeechmaticsSTTService` where the `user_id` was set to
|
||||||
|
`None` when diarization is not enabled.
|
||||||
|
|
||||||
### Performance
|
### Performance
|
||||||
|
|
||||||
- Fixed an issue in `TaskObserver` (a proxy to all observers) that was degrading
|
- Fixed an issue in `TaskObserver` (a proxy to all observers) that was degrading
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ async def run_bot(transport: BaseTransport):
|
|||||||
This example will use diarization within our STT service and output the words spoken by
|
This example will use diarization within our STT service and output the words spoken by
|
||||||
each individual speaker and wrap them with XML tags.
|
each individual speaker and wrap them with XML tags.
|
||||||
|
|
||||||
If you do not wish to use diarization, then set the `enable_speaker_diarization` parameter
|
If you do not wish to use diarization, then set the `enable_diarization` parameter
|
||||||
to `False` or omit it altogether. The `text_format` will only be used if diarization is enabled.
|
to `False` or omit it altogether. The `text_format` will only be used if diarization is enabled.
|
||||||
|
|
||||||
By default, this example will use our ENHANCED operating point, which is optimized for
|
By default, this example will use our ENHANCED operating point, which is optimized for
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class SpeakerFragments:
|
|||||||
passive_format = active_format
|
passive_format = active_format
|
||||||
return {
|
return {
|
||||||
"text": self._format_text(active_format if self.is_active else passive_format),
|
"text": self._format_text(active_format if self.is_active else passive_format),
|
||||||
"user_id": self.speaker_id,
|
"user_id": self.speaker_id or "",
|
||||||
"timestamp": self.timestamp,
|
"timestamp": self.timestamp,
|
||||||
"language": self.language,
|
"language": self.language,
|
||||||
"result": [frag.result for frag in self.fragments],
|
"result": [frag.result for frag in self.fragments],
|
||||||
|
|||||||
Reference in New Issue
Block a user