def __init__(self,
get_raw_audio: Callable[[], ndarray],
sample_rate: int = 16000,
id: Optional[str] = None,
label: Optional[str] = "nolabel",
fourier_window_length: int = 512,
hop_length: int = 128,
mel_frequency_count: int = 128,
label_with_tags: str = None,
positional_label: Optional[PositionalLabel] = None):
super().__init__(id=id, label=label)
# The default values for hop_length and fourier_window_length are powers of 2 near the values specified in the wave2letter paper.
self.get_raw_audio = get_raw_audio
self.sample_rate = sample_rate
self.fourier_window_length = fourier_window_length
self.hop_length = hop_length
self.mel_frequency_count = mel_frequency_count
self.label_with_tags = label_with_tags
self.positional_label = positional_label
评论列表
文章目录