Spaces:
Running
Running
Update process.py
Browse files
__pycache__/process.cpython-310.pyc
CHANGED
Binary files a/__pycache__/process.cpython-310.pyc and b/__pycache__/process.cpython-310.pyc differ
|
|
__pycache__/transcription.cpython-310.pyc
ADDED
Binary file (2.84 kB). View file
|
|
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
|
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
|
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, 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 |
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'):
|