Spaces:
Running
on
Zero
Running
on
Zero
Update whisper_cs.py (#36)
Browse files- Update whisper_cs.py (fdedc6af4c1079ec0a3d978a18c0820f7a189622)
Co-authored-by: Sarah Solito <ssolito@users.noreply.huggingface.co>
- whisper_cs.py +1 -0
whisper_cs.py
CHANGED
|
@@ -174,6 +174,7 @@ def transcribe_audio(model, audio_path: str) -> Dict:
|
|
| 174 |
def generate(audio_path, use_v2_fast):
|
| 175 |
|
| 176 |
if use_v2_fast:
|
|
|
|
| 177 |
left_channel_path = "temp_mono_speaker2.wav"
|
| 178 |
right_channel_path = "temp_mono_speaker1.wav"
|
| 179 |
|
|
|
|
| 174 |
def generate(audio_path, use_v2_fast):
|
| 175 |
|
| 176 |
if use_v2_fast:
|
| 177 |
+
split_stereo_channels(audio_path)
|
| 178 |
left_channel_path = "temp_mono_speaker2.wav"
|
| 179 |
right_channel_path = "temp_mono_speaker1.wav"
|
| 180 |
|