diff --git a/CHANGELOG.md b/CHANGELOG.md index f6ebb78..4bbdfcb 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.10] - 2024-06-21 + +## Fixed + +- Disfluency option now exposed for batch. + ## [1.14.9] - 2024-06-14 ### Added diff --git a/VERSION b/VERSION index 0b94c5f..9beda55 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.14.9 +1.14.10 diff --git a/speechmatics/cli_parser.py b/speechmatics/cli_parser.py index 7839077..2c45de2 100644 --- a/speechmatics/cli_parser.py +++ b/speechmatics/cli_parser.py @@ -191,6 +191,13 @@ def get_arg_parser(): default=None, help=("Filter out quiet audio which falls below this threshold (0.0-100.0)"), ) + config_parser.add_argument( + "--remove-disfluencies", + default=None, + action="store_true", + required=False, + help=("Removes words tagged as disfluency."), + ) config_parser.add_argument( "--operating-point", choices=["standard", "enhanced"], @@ -505,13 +512,6 @@ def get_arg_parser(): required=False, help="Comma-separated list of whitelisted event types for audio events.", ) - rt_transcribe_command_parser.add_argument( - "--remove-disfluencies", - default=None, - action="store_true", - required=False, - help="Removes words tagged as disfluency.", - ) rt_transcribe_command_parser.add_argument( "--extra-headers", default=dict(), diff --git a/tests/test_cli.py b/tests/test_cli.py index c77e592..defc087 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -343,6 +343,10 @@ ["batch", "transcribe", "--volume-threshold", "3.1"], {"volume_threshold": 3.1}, ), + ( + ["batch", "transcribe", "--remove-disfluencies"], + {"remove_disfluencies": True}, + ), ], ) def test_cli_arg_parse_with_file(args, values):