File size: 782 Bytes
864affd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from pathlib import Path
from typing import Callable, Optional, Tuple, Union

from torch import Tensor
from torchaudio import AudioMetaData


def load(

    filepath: Union[str, Path],

    out: Optional[Tensor] = None,

    normalization: Union[bool, float, Callable] = True,

    channels_first: bool = True,

    num_frames: int = 0,

    offset: int = 0,

    filetype: Optional[str] = None,

) -> Tuple[Tensor, int]:
    raise RuntimeError("No audio I/O backend is available.")


def save(filepath: str, src: Tensor, sample_rate: int, precision: int = 16, channels_first: bool = True) -> None:
    raise RuntimeError("No audio I/O backend is available.")


def info(filepath: str) -> AudioMetaData:
    raise RuntimeError("No audio I/O backend is available.")