diffsptk 2.1.0__tar.gz → 2.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffsptk-2.1.0 → diffsptk-2.1.1}/PKG-INFO +5 -5
- {diffsptk-2.1.0 → diffsptk-2.1.1}/README.md +1 -1
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/misc/utils.py +1 -1
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/imglsadf.py +0 -8
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mglsadf.py +5 -2
- diffsptk-2.1.1/diffsptk/version.py +1 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/pyproject.toml +3 -3
- diffsptk-2.1.0/diffsptk/version.py +0 -1
- {diffsptk-2.1.0 → diffsptk-2.1.1}/.gitignore +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/CITATION.cff +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/LICENSE +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/__init__.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/functional.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/misc/__init__.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/misc/signals.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/__init__.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/acorr.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/acr2csm.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/alaw.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ap.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/b2mc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/c2acr.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/c2mpir.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/c2ndps.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/cdist.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/cqt.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/csm2acr.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/dct.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/decimate.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/delay.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/delta.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/dequantize.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/df2.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/dfs.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/drc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/entropy.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/excite.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/fbank.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/fftcep.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/frame.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/freqt.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/freqt2.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/gmm.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/gnorm.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/grpdelay.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/histogram.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ialaw.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/icqt.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/idct.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ifreqt2.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ignorm.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/imsvq.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/interpolate.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ipqmf.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/istft.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/iulaw.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ivq.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lar2par.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lbg.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/levdur.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/linear_intpl.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lpc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lpc2lsp.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lpc2par.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lpccheck.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lsp2lpc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lsp2sp.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/lspcheck.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/magic_intpl.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mc2b.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mcep.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mcpf.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mfcc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mgc2mgc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mgc2sp.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mgcep.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mlpg.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mlsacheck.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/mpir2c.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/msvq.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ndps2c.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/norm0.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/par2lar.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/par2lpc.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/pca.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/phase.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/pitch.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/plp.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/pol_root.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/poledf.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/pqmf.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/quantize.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/rlevdur.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/rmse.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/root_pol.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/smcep.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/snr.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/spec.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/stft.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/ulaw.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/unframe.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/vq.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/window.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/yingram.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/zcross.py +0 -0
- {diffsptk-2.1.0 → diffsptk-2.1.1}/diffsptk/modules/zerodf.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffsptk
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: Speech signal processing modules for machine learning
|
|
5
5
|
Project-URL: Homepage, https://sp-tk.sourceforge.net/
|
|
6
6
|
Project-URL: Documentation, https://sp-nitech.github.io/diffsptk/latest/
|
|
@@ -20,14 +20,14 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Requires-Python: >=3.8
|
|
22
22
|
Requires-Dist: librosa>=0.10.1
|
|
23
|
-
Requires-Dist: numpy<2.0.0
|
|
24
|
-
Requires-Dist: scipy<1.14.0
|
|
23
|
+
Requires-Dist: numpy<2.0.0,>=1.20.3
|
|
24
|
+
Requires-Dist: scipy<1.14.0,>=1.0.0
|
|
25
25
|
Requires-Dist: soundfile>=0.10.2
|
|
26
26
|
Requires-Dist: torch>=1.11.0
|
|
27
27
|
Requires-Dist: torchaudio>=0.11.0
|
|
28
28
|
Requires-Dist: torchcomp>=0.1.1
|
|
29
29
|
Requires-Dist: torchcrepe>=0.0.21
|
|
30
|
-
Requires-Dist: torchlpc
|
|
30
|
+
Requires-Dist: torchlpc<0.5.0,>=0.2.0
|
|
31
31
|
Requires-Dist: vector-quantize-pytorch<=1.12.12,>=0.8.0
|
|
32
32
|
Provides-Extra: dev
|
|
33
33
|
Requires-Dist: build; extra == 'dev'
|
|
@@ -47,7 +47,7 @@ Description-Content-Type: text/markdown
|
|
|
47
47
|
*diffsptk* is a differentiable version of [SPTK](https://github.com/sp-nitech/SPTK) based on the PyTorch framework.
|
|
48
48
|
|
|
49
49
|
[](https://sp-nitech.github.io/diffsptk/latest/)
|
|
50
|
-
[](https://sp-nitech.github.io/diffsptk/2.1.
|
|
50
|
+
[](https://sp-nitech.github.io/diffsptk/2.1.1/)
|
|
51
51
|
[](https://pepy.tech/project/diffsptk)
|
|
52
52
|
[](https://pypi.python.org/pypi/diffsptk)
|
|
53
53
|
[](https://pypi.python.org/pypi/diffsptk)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*diffsptk* is a differentiable version of [SPTK](https://github.com/sp-nitech/SPTK) based on the PyTorch framework.
|
|
4
4
|
|
|
5
5
|
[](https://sp-nitech.github.io/diffsptk/latest/)
|
|
6
|
-
[](https://sp-nitech.github.io/diffsptk/2.1.
|
|
6
|
+
[](https://sp-nitech.github.io/diffsptk/2.1.1/)
|
|
7
7
|
[](https://pepy.tech/project/diffsptk)
|
|
8
8
|
[](https://pypi.python.org/pypi/diffsptk)
|
|
9
9
|
[](https://pypi.python.org/pypi/diffsptk)
|
|
@@ -108,7 +108,7 @@ def replicate1(x, left=True, right=True):
|
|
|
108
108
|
return y
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
def remove_gain(a,
|
|
111
|
+
def remove_gain(a, value=1, return_gain=False):
|
|
112
112
|
K, a1 = torch.split(a, [1, a.size(-1) - 1], dim=-1)
|
|
113
113
|
a = F.pad(a1, (1, 0), value=value)
|
|
114
114
|
if return_gain:
|
|
@@ -25,14 +25,6 @@ class PseudoInverseMGLSADigitalFilter(nn.Module):
|
|
|
25
25
|
def __init__(self, filter_order, frame_period, **kwargs):
|
|
26
26
|
super().__init__()
|
|
27
27
|
|
|
28
|
-
# Change the default value of the order of Taylor series.
|
|
29
|
-
# This is because inverse filtering requires the large value.
|
|
30
|
-
if (
|
|
31
|
-
kwargs.get("mode", "multi-stage") == "multi-stage"
|
|
32
|
-
and "taylor_order" not in kwargs
|
|
33
|
-
):
|
|
34
|
-
kwargs["taylor_order"] = 40
|
|
35
|
-
|
|
36
28
|
self.mglsadf = PseudoMGLSADigitalFilter(filter_order, frame_period, **kwargs)
|
|
37
29
|
|
|
38
30
|
def forward(self, y, mc):
|
|
@@ -244,8 +244,7 @@ class MultiStageFIRFilter(nn.Module):
|
|
|
244
244
|
|
|
245
245
|
def forward(self, x, mc):
|
|
246
246
|
c = self.mgc2c(mc)
|
|
247
|
-
|
|
248
|
-
c = remove_gain(c, value=0)
|
|
247
|
+
c0, c = remove_gain(c, value=0, return_gain=True)
|
|
249
248
|
|
|
250
249
|
if self.phase == "minimum":
|
|
251
250
|
c = c.flip(-1)
|
|
@@ -264,6 +263,10 @@ class MultiStageFIRFilter(nn.Module):
|
|
|
264
263
|
x = x.unfold(-1, c.size(-1), 1)
|
|
265
264
|
x = (x * c).sum(-1) / a
|
|
266
265
|
y += x
|
|
266
|
+
|
|
267
|
+
if not self.ignore_gain:
|
|
268
|
+
K = torch.exp(self.linear_intpl(c0))
|
|
269
|
+
y *= K.squeeze(-1)
|
|
267
270
|
return y
|
|
268
271
|
|
|
269
272
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.1"
|
|
@@ -24,14 +24,14 @@ classifiers = [
|
|
|
24
24
|
"Programming Language :: Python :: 3 :: Only",
|
|
25
25
|
]
|
|
26
26
|
dependencies = [
|
|
27
|
-
"numpy < 2.0.0",
|
|
28
|
-
"scipy < 1.14.0",
|
|
27
|
+
"numpy >= 1.20.3, < 2.0.0",
|
|
28
|
+
"scipy >= 1.0.0, < 1.14.0",
|
|
29
29
|
"librosa >= 0.10.1",
|
|
30
30
|
"soundfile >= 0.10.2",
|
|
31
31
|
"torch >= 1.11.0",
|
|
32
32
|
"torchaudio >= 0.11.0",
|
|
33
33
|
"torchcrepe >= 0.0.21",
|
|
34
|
-
"torchlpc >= 0.2.0",
|
|
34
|
+
"torchlpc >= 0.2.0, < 0.5.0",
|
|
35
35
|
"torchcomp >= 0.1.1",
|
|
36
36
|
"vector-quantize-pytorch >= 0.8.0, <= 1.12.12",
|
|
37
37
|
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|