tool

transcription tool.

Classes

TranscriptionTool

Base class for transcription tools.

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

Bases: Tool

Base class for transcription tools.

Parameters:
  • device (str)

  • overwrite (bool)

  • verbose (bool | int)

enhance(transcription_path, diarization_path, identification_path, enhanced_transcription_path)[source]

Enhances an audio transcription by fusing the transcribed audio with inferred speaker diarization and identification.

Parameters:
  • transcription_path (Union[str, Path]) – Path to the transcription file.

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

  • identification_path (Union[str, Path]) – Path to the identification file.

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

Returns:

inference(audio_path, transcription_path)[source]

Template of the inference method.

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

  • transcription_path (Union[str, Path]) – Path to the transcription file.

Returns: