Merge pull request #3030 from marekjg/master
Fix arguments order in pcm_to_np call
This commit is contained in:
commit
c5ca78a4ed
@ -168,7 +168,7 @@ def split_audio_file(audio_path,
|
||||
segments = vad_split(frames, aggressiveness=aggressiveness)
|
||||
for segment in segments:
|
||||
segment_buffer, time_start, time_end = segment
|
||||
samples = pcm_to_np(audio_format, segment_buffer)
|
||||
samples = pcm_to_np(segment_buffer, audio_format)
|
||||
yield time_start, time_end, samples
|
||||
|
||||
def to_mfccs(time_start, time_end, samples):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user