Commit
·
b18cbba
1
Parent(s):
a4ee6eb
whisper_online works with the new sentence segment
Browse files
src/whisper_streaming/whisper_online.py
CHANGED
@@ -5,8 +5,8 @@ import librosa
|
|
5 |
from functools import lru_cache
|
6 |
import time
|
7 |
import logging
|
8 |
-
from
|
9 |
-
from
|
10 |
|
11 |
logger = logging.getLogger(__name__)
|
12 |
|
@@ -290,7 +290,7 @@ if __name__ == "__main__":
|
|
290 |
# logging.basicConfig(format='whisper-%(levelname)s:%(name)s: %(message)s',
|
291 |
# level=getattr(logging, args.log_level))
|
292 |
|
293 |
-
set_logging(args, logger,others=["
|
294 |
|
295 |
audio_path = args.audio_path
|
296 |
|
|
|
5 |
from functools import lru_cache
|
6 |
import time
|
7 |
import logging
|
8 |
+
from backends import FasterWhisperASR, MLXWhisper, WhisperTimestampedASR, OpenaiApiASR
|
9 |
+
from online_asr import OnlineASRProcessor, VACOnlineASRProcessor
|
10 |
|
11 |
logger = logging.getLogger(__name__)
|
12 |
|
|
|
290 |
# logging.basicConfig(format='whisper-%(levelname)s:%(name)s: %(message)s',
|
291 |
# level=getattr(logging, args.log_level))
|
292 |
|
293 |
+
set_logging(args, logger,others=["online_asr"])
|
294 |
|
295 |
audio_path = args.audio_path
|
296 |
|