"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "1ddb70f9e5faaa70bfa333a053ec6b1ccc83c311"
Commit 72f9a4e3 authored by Moto Hira's avatar Moto Hira Committed by Facebook GitHub Bot
Browse files

Refactor the internal of transforms module (#2309)

Summary:
Pull Request resolved: https://github.com/pytorch/audio/pull/2309

For upcoming improved Kaldi features which are comprised of multiple classes / functions, put all the transforms implementations in dedicated directory.

Reviewed By: nateanl

Differential Revision: D35303682

fbshipit-source-id: 5bc8c07ef639683008c0f76ffe56e3941f772659
parent d65a0f3e
from ._transforms import (
Spectrogram,
InverseSpectrogram,
GriffinLim,
AmplitudeToDB,
MelScale,
InverseMelScale,
MelSpectrogram,
MFCC,
LFCC,
MuLawEncoding,
MuLawDecoding,
Resample,
TimeStretch,
Fade,
FrequencyMasking,
TimeMasking,
SlidingWindowCmn,
Vad,
SpectralCentroid,
Vol,
ComputeDeltas,
PitchShift,
RNNTLoss,
PSD,
MVDR,
)
__all__ = [
"AmplitudeToDB",
"ComputeDeltas",
"Fade",
"FrequencyMasking",
"GriffinLim",
"InverseMelScale",
"InverseSpectrogram",
"LFCC",
"MFCC",
"MVDR",
"MelScale",
"MelSpectrogram",
"MuLawDecoding",
"MuLawEncoding",
"PSD",
"PitchShift",
"RNNTLoss",
"Resample",
"SlidingWindowCmn",
"SpectralCentroid",
"Spectrogram",
"TimeMasking",
"TimeStretch",
"Vad",
"Vol",
]
......@@ -7,39 +7,12 @@ from typing import Callable, Optional
import torch
from torch import Tensor
from torchaudio import functional as F
from .functional.functional import (
from torchaudio.functional.functional import (
_get_sinc_resample_kernel,
_apply_sinc_resample_kernel,
)
__all__ = [
"Spectrogram",
"InverseSpectrogram",
"GriffinLim",
"AmplitudeToDB",
"MelScale",
"InverseMelScale",
"MelSpectrogram",
"MFCC",
"LFCC",
"MuLawEncoding",
"MuLawDecoding",
"Resample",
"TimeStretch",
"Fade",
"FrequencyMasking",
"TimeMasking",
"SlidingWindowCmn",
"Vad",
"SpectralCentroid",
"Vol",
"ComputeDeltas",
"PitchShift",
"RNNTLoss",
"PSD",
"MVDR",
]
__all__ = []
class Spectrogram(torch.nn.Module):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment