diff --git a/CHANGELOG.md b/CHANGELOG.md index e80c493..cbca673 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.14.5] - 2024-03-20 + +## Added + +- Support for audio_events in Batch CLI. + ## [1.14.4] - 2024-03-04 ## Added diff --git a/VERSION b/VERSION index 4e00d0a..24a57f2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.14.4 +1.14.5 diff --git a/speechmatics/cli_parser.py b/speechmatics/cli_parser.py index 5ac2d23..c3172cd 100644 --- a/speechmatics/cli_parser.py +++ b/speechmatics/cli_parser.py @@ -480,6 +480,16 @@ def get_arg_parser(): help="Enable audio event detection and print events in square-brackets to the console, e.g. [MUSIC]", ) + # Parent parser for batch auto-chapters argument + batch_audio_events_parser = argparse.ArgumentParser(add_help=False) + batch_audio_events_parser.add_argument( + "--audio-events", + dest="detect_chapters", + action="store_true", + help="Enable audio event detection, " + "will include `audio_events` and `audio_event_summary` keys in output (JSON only)", + ) + # Build our actual parsers. mode_subparsers = parser.add_subparsers(title="Mode", dest="mode") @@ -514,6 +524,7 @@ def get_arg_parser(): batch_sentiment_analysis_parser, batch_topic_detection_parser, batch_auto_chapters_parser, + batch_audio_events_parser, ], help="Transcribe one or more audio files using batch mode, while waiting for results.", )