ArunSamespace's picture
Upload 41 files
9314fc1 verified
raw
history blame contribute delete
356 Bytes
from typing import Any
import whisper
class Audio:
@classmethod
def load_audio(cls, audio_path: str) -> Any:
"""Loads audio file from the disk
Args:
audio_path (str): path of the audio file
Returns:
Any: loaded audio file in numbers
"""
return whisper.load_audio(audio_path)