Spaces:
Running
Running
jhj0517
commited on
Commit
·
477e9f5
1
Parent(s):
ac480c2
chore: add credit
Browse files
modules/diarize/audio_loader.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
from functools import lru_cache
|
|
|
1 |
+
# Adapted from https://github.com/m-bain/whisperX/blob/main/whisperx/audio.py
|
2 |
+
|
3 |
import os
|
4 |
import subprocess
|
5 |
from functools import lru_cache
|
modules/diarize/diarize_pipeline.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import pandas as pd
|
3 |
import os
|
|
|
1 |
+
# Adapted from https://github.com/m-bain/whisperX/blob/main/whisperx/diarize.py
|
2 |
+
|
3 |
import numpy as np
|
4 |
import pandas as pd
|
5 |
import os
|
modules/vad/silero_vad.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
from faster_whisper.vad import VadOptions, get_vad_model
|
2 |
import numpy as np
|
3 |
from typing import BinaryIO, Union, List, Optional
|
|
|
1 |
+
# Adapted from https://github.com/SYSTRAN/faster-whisper/blob/master/faster_whisper/vad.py
|
2 |
+
|
3 |
from faster_whisper.vad import VadOptions, get_vad_model
|
4 |
import numpy as np
|
5 |
from typing import BinaryIO, Union, List, Optional
|