Skip to main content

A command-line tool for the ASRBench framework, simplifying audio transcription system benchmarking with a single config file, supporting popular and custom transcription systems

Project description

:brazil: Versão Português Brasileiro

Asrbench-Cli

Introduction

ASRBench CLI is a complementary tool to the ASRBench framework, designed to simplify the execution of audio transcription system benchmarks directly from the command line.

With it, you can:

  • Use the most popular transcription systems on the market.
  • Add new customized transcription systems.
  • Run benchmarks simply, using just one configuration file.

Installation

To install ASRBench, all you need is Python 3.12+ and pip. Use the command below to install the latest version:

pip install asrbench-cli

[!NOTE] The list of project dependencies is available in the file pyproject.toml

Usage

The CLI requires a configuration file to work, in the same format as the framework. benchmark environment, defining datasets, transcribers and output parameters in a simple and declarative way. declarative. For more details on the structure of the configuration file, go to documentation.

Below is an example of the configuration file structure:

# data output configuration
output:
  type: "csv"
  dir: "./results"
  filename: "example_filename"

# datasets configuration
datasets:
  dataset1:
    audio_dir: "resources/common_voice_05/wav"
    reference_dir: "resources/common_voice_05/txt"

# transcription system configuration
transcribers:
  faster_whisper_medium_int8:
    asr: "faster_whisper"
    model: "medium"
    compute_type: "int8"
    device: "cpu"
    beam_size: 5
    language: "en"  

With the configuration file in hand, just run the command:

asrbench-cli run path/to/configfile.yml

The CLI will read the configuration file, set up the benchmark and run it automatically. All progress and steps will be displayed directly in the terminal, including the percentage of completion and a time estimate for the completion of each stage of the transcription process.

[!TIP] For a complete list of available commands and instructions for more advanced uses, see documentation.

License

Distributed under the MIT license. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asrbench_cli-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asrbench_cli-0.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file asrbench_cli-0.1.0.tar.gz.

File metadata

  • Download URL: asrbench_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.10 Windows/11

File hashes

Hashes for asrbench_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ffcb0936ed920e155324211743bdd65c87f7fcc5d5605580fc0ab6ac0fbec0f
MD5 9567c25750ea3397b08dbe594105cbed
BLAKE2b-256 f772a2a46bfceaa60863725eacd28c3b757e6d4f05b430412d2547257aa0d1b9

See more details on using hashes here.

File details

Details for the file asrbench_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: asrbench_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.10 Windows/11

File hashes

Hashes for asrbench_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 964f38340d37d820091a1e7dedf182e91d08c8c3e5dcef9f6bd0566ec1d58269
MD5 522e3f00780c27f4a0dce3f307dfff0a
BLAKE2b-256 263d817d30522fa82f01d3e4ed82076f0baf3b8f9c533f4ed88560b979897230

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page