tool

speech processing tool.

Classes

SpeechTool

Base class for non-verbal speech processing tools.

class SpeechTool(device, overwrite=False, verbose=True)[source]

Bases: Tool

Base class for non-verbal speech processing tools.

Parameters:
  • device (str)

  • overwrite (bool)

  • verbose (bool | int)

inference(audio_path, diarization_path, features_path)[source]

Template of the inference method.

Parameters:
  • audio_path (Union[str, Path]) – Path to the audio track.

  • diarization_path (Union[str, Path]) – Path to the diarization file.

  • features_path (Union[str, Path]) – Path to the feature file.

Returns: