Transcriber

class essence_extractor.src.Transcriber(output_path='audios')

Extracts audio from a video file and transcribes it to text.

output_path

The path to the output directory.

Type:

str

extract_audio(video_file_path)

Extracts audio from a video file.

Parameters:

video_file_path (str) – The path to the video file.

Returns:

The path to the extracted audio file.

Return type:

str

split_audio_into_token_chunks(transcript_result, chunk_size=200)

Split audio into chunks of equal length or silence.

transcribe_audio(audio_file_path)

Transcribes audio to text.

Parameters:

audio_file_path (str) – The path to the audio file.

Returns:

The path to the transcription file.

Return type:

str