Skip to content

Commit 954e94d

Browse files
committed
update formatting
1 parent cfa4503 commit 954e94d

23 files changed

+26
-5
lines changed

build.sh

100644100755
File mode changed.

spafe/fbanks/bark_fbanks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/fbanks/gammatone_fbanks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional, Tuple
1011

1112
import numpy as np

spafe/fbanks/linear_fbanks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/fbanks/mel_fbanks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/bfcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/cqcc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np
@@ -208,7 +209,7 @@ def cqcc(
208209
number_of_bins_per_octave (int) : numbers of bins oer occtave.
209210
(Default is 24).
210211
resampling_ratio (float) : ratio to use for the uniform resampling.
211-
(Default is 0.95).
212+
(Default is 1.00).
212213
spectral_threshold (float) : spectral threshold.
213214
(Default is 0.005).
214215
f0 (float) : fundamental frequency.
@@ -217,7 +218,7 @@ def cqcc(
217218
(Default is 1.0).
218219
219220
Returns:
220-
(numpy.ndarray) : 2d array of BFCC features (num_frames x num_ceps).
221+
(numpy.ndarray) : 2d array of BFCC features (num_frames*resampling_ratio x num_ceps).
221222
222223
Tip:
223224
- :code:`dct` : can take the following options [1, 2, 3, 4].
@@ -300,4 +301,5 @@ def cqcc(
300301
# normalization
301302
if normalize:
302303
cqccs = normalize_ceps(cqccs, normalize)
304+
303305
return cqccs

spafe/features/gfcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional, Tuple
1011

1112
import numpy as np

spafe/features/lfcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/lpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/mfcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/msrcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/ngcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/pncc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/psrcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np

spafe/features/rplp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Optional
1011

1112
import numpy as np
@@ -148,9 +149,7 @@ def __rastaplp(
148149

149150
# equal loudness pre_emphasis
150151
E = lambda w: ((w**2 + 56.8 * 10**6) * w**4) / (
151-
(w**2 + 6.3 * 10**6)
152-
* (w**2 + 0.38 * 10**9)
153-
* (w**6 + 9.58 * 10**26)
152+
(w**2 + 6.3 * 10**6) * (w**2 + 0.38 * 10**9) * (w**6 + 9.58 * 10**26)
154153
)
155154
Y = [E(w) for w in auditory_spectrum]
156155

spafe/utils/cepstral.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
import numpy as np
1011
from scipy.signal import lfilter
1112
from typing_extensions import Literal

spafe/utils/converters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
import numpy as np
1011
from typing_extensions import Literal
1112

spafe/utils/filters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
import numpy as np
1011
from scipy import signal
1112
from typing_extensions import Literal

spafe/utils/preprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import Tuple
1011

1112
import numpy as np

spafe/utils/spectral.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
from typing import List
1011

1112
import numpy as np

spafe/utils/vis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
import numpy as np
1011

1112
from spafe.utils.converters import hz2mel, hz2bark, hz2erb

spafe/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
For a copy, see <https://github.com/SuperKogito/spafe/blob/master/LICENSE>.
77
88
"""
9+
910
__version__ = "0.3.2"

0 commit comments

Comments
 (0)