Merge pull request #3030 from marekjg/master

Fix arguments order in pcm_to_np call
This commit is contained in:
Tilman Kamp 2020-06-04 14:08:29 +02:00 committed by GitHub
commit c5ca78a4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):