Skip to content

Commit

Permalink
Moved remove-disfluencies arg to both batch and rt (#100)
Browse files Browse the repository at this point in the history
* Moved remove-disfluencies arg to both batch and rt

* Update changelog and version
  • Loading branch information
TeriDSpeech authored Jun 21, 2024
1 parent 1e736f0 commit e3d35d8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.9
1.14.10
14 changes: 7 additions & 7 deletions speechmatics/cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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(),
Expand Down
4 changes: 4 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e3d35d8

Please sign in to comment.