From 50902db95252f8f8ef795ee778efaa2c09b547f5 Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 19 Jun 2025 13:21:06 +0100 Subject: [PATCH 1/3] moved channel_diarization_labels to common inherited class --- speechmatics/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/speechmatics/models.py b/speechmatics/models.py index 764e656..5c9f36e 100644 --- a/speechmatics/models.py +++ b/speechmatics/models.py @@ -134,6 +134,9 @@ def asdict(self) -> Dict[Any, Any]: transcript_filtering_config: Optional[dict] = None """Configuration for applying filtering to the transcription.""" + channel_diarization_labels: List[str] = None + """Add your own speaker or channel labels to the transcript""" + @dataclass class RTSpeakerDiarizationConfig: @@ -304,9 +307,6 @@ class TranscriptionConfig(_TranscriptionConfig): audio_events_config: Optional[AudioEventsConfig] = None """Optional configuration for audio events""" - channel_diarization_labels: List[str] = None - """Add your own speaker or channel labels to the transcript""" - def as_config(self): dictionary = self.asdict() dictionary.pop("translation_config", None) From 6c77bfefc07c916c28d9e4f4cb6adc8495fc3302 Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 19 Jun 2025 13:49:03 +0100 Subject: [PATCH 2/3] update changelog and version --- CHANGELOG.md | 4 ++++ VERSION | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2275b..0d643ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.0.6] - 2025-06-19 + +- Moved channel_diarization_labels field from realtime transcription config to common class. + ## [4.0.5] - 2025-06-18 - Added missing flag to call_middleware for multichannel mode. diff --git a/VERSION b/VERSION index 8b2dd6c..9eefef7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.5 \ No newline at end of file +4.0.6 \ No newline at end of file From 59c2e95dbebc65df47eb7af4884fb487e4165e38 Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 19 Jun 2025 14:04:45 +0100 Subject: [PATCH 3/3] add optional to channel_diarization_labels --- speechmatics/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speechmatics/models.py b/speechmatics/models.py index 5c9f36e..c0539f0 100644 --- a/speechmatics/models.py +++ b/speechmatics/models.py @@ -134,7 +134,7 @@ def asdict(self) -> Dict[Any, Any]: transcript_filtering_config: Optional[dict] = None """Configuration for applying filtering to the transcription.""" - channel_diarization_labels: List[str] = None + channel_diarization_labels: Optional[List[str]] = None """Add your own speaker or channel labels to the transcript"""