Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
RapidASR
Commits
f62a3d9d
Unverified
Commit
f62a3d9d
authored
Feb 13, 2023
by
SWHL
Committed by
GitHub
Feb 13, 2023
Browse files
Fix bugs
parent
7d0435cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
rapid_paraformer/kaldifeat/feature.py
rapid_paraformer/kaldifeat/feature.py
+1
-1
rapid_paraformer/rapid_paraformer.py
rapid_paraformer/rapid_paraformer.py
+1
-1
rapid_paraformer/utils.py
rapid_paraformer/utils.py
+1
-0
No files found.
rapid_paraformer/kaldifeat/feature.py
View file @
f62a3d9d
...
...
@@ -270,7 +270,7 @@ def compute_fbank_feats(
waveform
,
blackman_coeff
=
0.42
,
dither
=
1.0
,
energy_floor
=
0
.0
,
energy_floor
=
1
.0
,
frame_length
=
25
,
frame_shift
=
10
,
high_freq
=
0
,
...
...
rapid_paraformer/rapid_paraformer.py
View file @
f62a3d9d
...
...
@@ -55,7 +55,7 @@ class RapidParaformer():
def
load_data
(
self
,
wav_content
:
Union
[
str
,
np
.
ndarray
,
List
[
str
]])
->
List
:
def
load_wav
(
path
:
str
)
->
np
.
ndarray
:
waveform
,
_
=
librosa
.
load
(
path
)
waveform
,
_
=
librosa
.
load
(
path
,
sr
=
None
)
return
waveform
[
None
,
...]
if
isinstance
(
wav_content
,
np
.
ndarray
):
...
...
rapid_paraformer/utils.py
View file @
f62a3d9d
...
...
@@ -165,6 +165,7 @@ class WavFrontend():
frame_shift
=
self
.
frame_shift
,
dither
=
self
.
dither
,
energy_floor
=
0.0
,
window_type
=
self
.
window_type
,
sample_frequency
=
self
.
fs
)
feat
=
mat
.
astype
(
np
.
float32
)
feat_len
=
np
.
array
(
mat
.
shape
[
0
]).
astype
(
np
.
int32
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment