Skip to content

Commit 1c8b15f

Browse files
J-JaywalkerJames Walker
andauthored
Fix channel_diarization label in wrong class (#135)
* moved channel_diarization_labels to common inherited class * update changelog and version * add optional to channel_diarization_labels --------- Co-authored-by: James Walker <jamesw@speechmatics.com>
1 parent 2a948d4 commit 1c8b15f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.0.6] - 2025-06-19
9+
10+
- Moved channel_diarization_labels field from realtime transcription config to common class.
11+
812
## [4.0.5] - 2025-06-18
913

1014
- Added missing flag to call_middleware for multichannel mode.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.5
1+
4.0.6

speechmatics/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ def asdict(self) -> Dict[Any, Any]:
134134
transcript_filtering_config: Optional[dict] = None
135135
"""Configuration for applying filtering to the transcription."""
136136

137+
channel_diarization_labels: Optional[List[str]] = None
138+
"""Add your own speaker or channel labels to the transcript"""
139+
137140

138141
@dataclass
139142
class RTSpeakerDiarizationConfig:
@@ -304,9 +307,6 @@ class TranscriptionConfig(_TranscriptionConfig):
304307
audio_events_config: Optional[AudioEventsConfig] = None
305308
"""Optional configuration for audio events"""
306309

307-
channel_diarization_labels: List[str] = None
308-
"""Add your own speaker or channel labels to the transcript"""
309-
310310
def as_config(self):
311311
dictionary = self.asdict()
312312
dictionary.pop("translation_config", None)

0 commit comments

Comments
 (0)