speechtotext.functions
Module with functions for the speechtotext package.
Use this module like this:
# Imports
from speechtotext.functions import *
# Force torch use for cuda
force_cudnn_initialization()
# Clean string
string_cleaning("this has.//./8 to be cleaned::@")
Module attributes
Regex used to clean the transcripts. |
|
Default datetime format. |
|
Default folder to save the reports. |
|
Default path to save Benchmark results. |
Functions
Creates csv from benchmark results. |
|
Force torch use for cuda if available. |
|
Get extention of file name. |
|
Get extention of file name. |
|
Join Benchmark results. |
|
Loads and returns env variable. |
|
Allow for Method overloading for classes. |
|
Makes folder path. |
|
Creates subfolder path. |
|
Seperate benchmark results for each model. |
|
Cleaning of string for STT. |
|
Functions used to time duration of function. |
|
Return string where first character is uppercase. |
Classes
Parent class for results. |
Exceptions
Exception when API does not return a transcript. |
|
|
Exception when an required env variable is missing. |