speechtotext.benchmark.customBenchmarks
Module for benchmarks of speechtotext.
Use this module like this:
# Imports
from speechtotext.datasets import Dataset
from speechtotext.benchmark.benchmarks import *
# Settings
number_of_samples = 10
dataset = Dataset(path_to_dir="path/to/dir", name= "dataset_name")
Benchmark.set_dataset(dataset)
# Create benchmark
wb = WhisperBenchmark()
# Run benchmark
wb(number_of_samples)
# Convert metrics to pandas dataframe
df = wb.convert_to_pandas()
print(df)
# Save metrics to csv (saves with datetime in name)
benchmark_results_to_csv([wb])
Classes
Benchmark for Amazon API transcribe. |
|
Benchmark for AssemblyAI API. |
|
Benchmark for Azure API. |
|
Benchmark for Deepgram API. |
|
Benchmark for Google API transcribe. |
|
Benchmark for Speechmatics API. |
|
Benchmark for API whisper models. |
|
Benchmark for local whisper models. |