diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bbdfcb..45a2ea1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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). +## [1.15.0] - 2024-07-31 + +## Added + +- Speaker change deprecation warning + ## [1.14.10] - 2024-06-21 ## Fixed diff --git a/VERSION b/VERSION index 9beda55..141f2e8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.14.10 +1.15.0 diff --git a/speechmatics/batch_client.py b/speechmatics/batch_client.py index a8958ff..fd0fc79 100644 --- a/speechmatics/batch_client.py +++ b/speechmatics/batch_client.py @@ -231,6 +231,12 @@ def submit_job( a filepath as a string or Path object, or a dict""" ) + if config_dict.get("transcription_config", {}).get("diarization") == "channel_and_speaker_change": + LOGGER.warning( + "DeprecationWarning: Speaker Change Detection has been deprecated " + "and will not be supported in future versions of this package." + ) + # If audio=None, fetch_data must be specified file_object = None try: diff --git a/speechmatics/client.py b/speechmatics/client.py index 8aca612..0462267 100644 --- a/speechmatics/client.py +++ b/speechmatics/client.py @@ -448,6 +448,12 @@ async def run( :raises Exception: Can raise any exception returned by the consumer/producer tasks. """ + if transcription_config.speaker_change_sensitivity or transcription_config.diarization == "speaker_change": + LOGGER.warning( + "DeprecationWarning: Speaker Change Detection has been deprecated " + "and will not be supported in future versions of this package." + ) + self.transcription_config = transcription_config self.seq_no = 0 self._language_pack_info = None