speechbrain.utils

Package containing various tools (accuracy, checkpoints …)

speechbrain.utils.Accuracy

Calculate accuracy.

speechbrain.utils.DER

Calculates Diarization Error Rate (DER) which is the sum of Missed Speaker (MS), False Alarm (FA), and Speaker Error Rate (SER) using md-eval-22.pl from NIST RT Evaluation.

speechbrain.utils.EDER

Calculates Emotion Diarization Error Rate (EDER) which is the sum of Missed Emotion (ME), False Alarm (FA), and Confusion (CF).

speechbrain.utils.bleu

Library for computing the BLEU score

speechbrain.utils.callchains

Chaining together callables, if some require relative lengths

speechbrain.utils.checkpoints

This module implements a checkpoint saver and loader.

speechbrain.utils.data_pipeline

A pipeline for data transformations.

speechbrain.utils.data_utils

This library gathers utilities for data io operation.

speechbrain.utils.depgraph

A dependency graph for finding evaluation order.

speechbrain.utils.distributed

Guard for running certain operations on main process only

speechbrain.utils.edit_distance

Edit distance and WER computation.

speechbrain.utils.epoch_loop

Implements a checkpointable epoch counter (loop), optionally integrating early stopping.

speechbrain.utils.hparams

Utilities for hparams files

speechbrain.utils.hpopt

Utilities for hyperparameter optimization.

speechbrain.utils.logger

Managing the logger, utilities

speechbrain.utils.metric_stats

The metric_stats module provides an abstract class for storing statistics produced over the course of an experiment and summarizing them.

speechbrain.utils.optimizers

Implements functions to avoid optimizing certain parameters

speechbrain.utils.parallel

Parallel processing tools to help speed up certain tasks like data preprocessing.

speechbrain.utils.parameter_transfer

Convenience functions for the simplest parameter transfer cases.

speechbrain.utils.profiling

Polymorphic decorators to handle PyTorch profiling and benchmarking.

speechbrain.utils.superpowers

Superpowers which should be sparingly used.

speechbrain.utils.text_to_sequence

from https://github.com/keithito/tacotron

speechbrain.utils.torch_audio_backend

Library for checking the torchaudio backend.

speechbrain.utils.train_logger

Loggers for experiment monitoring.

Summary

Reference