File size: 373 Bytes
b0dd51d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)