rein0421 commited on
Commit
891dc6c
·
verified ·
1 Parent(s): 611943f

Upload process.py

Browse files
Files changed (1) hide show
  1. process.py +2 -2
process.py CHANGED
@@ -89,7 +89,7 @@ class AudioProcessor():
89
  matched_time_ms += len(AudioSegment.from_file(segment_file))
90
 
91
  unmatched_time_ms = total_duration_ms - matched_time_ms
92
- return matched_time_ms, unmatched_time_ms, output_folder
93
 
94
 
95
  def process_multi_audio(self, reference_pathes, input_path, output_folder='/tmp/data/matched_multi_segments', seg_duration=1.0, threshold=0.5):
@@ -141,7 +141,7 @@ class AudioProcessor():
141
  if match is not None:
142
  matched_time[match] += seg_duration
143
 
144
- return matched_time,segment_file,segmented_path
145
 
146
 
147
  def save_audio_from_base64(self,base64_audio,output_dir,output_filename,temp_format='webm'):
 
89
  matched_time_ms += len(AudioSegment.from_file(segment_file))
90
 
91
  unmatched_time_ms = total_duration_ms - matched_time_ms
92
+ return matched_time_ms, unmatched_time_ms
93
 
94
 
95
  def process_multi_audio(self, reference_pathes, input_path, output_folder='/tmp/data/matched_multi_segments', seg_duration=1.0, threshold=0.5):
 
141
  if match is not None:
142
  matched_time[match] += seg_duration
143
 
144
+ return matched_time
145
 
146
 
147
  def save_audio_from_base64(self,base64_audio,output_dir,output_filename,temp_format='webm'):