move to src
Browse files
src/whisper_streaming/online_asr.py
CHANGED
@@ -311,7 +311,7 @@ class VACOnlineASRProcessor(OnlineASRProcessor):
|
|
311 |
import torch
|
312 |
|
313 |
model, _ = torch.hub.load(repo_or_dir="snakers4/silero-vad", model="silero_vad")
|
314 |
-
from silero_vad_iterator import FixedVADIterator
|
315 |
|
316 |
self.vac = FixedVADIterator(
|
317 |
model
|
|
|
311 |
import torch
|
312 |
|
313 |
model, _ = torch.hub.load(repo_or_dir="snakers4/silero-vad", model="silero_vad")
|
314 |
+
from src.whisper_streaming.silero_vad_iterator import FixedVADIterator
|
315 |
|
316 |
self.vac = FixedVADIterator(
|
317 |
model
|
silero_vad_iterator.py → src/whisper_streaming/silero_vad_iterator.py
RENAMED
File without changes
|
whisper_online.py → src/whisper_streaming/whisper_online.py
RENAMED
File without changes
|
whisper_fastapi_online_server.py
CHANGED
@@ -9,7 +9,8 @@ from fastapi import FastAPI, WebSocket, WebSocketDisconnect
|
|
9 |
from fastapi.responses import HTMLResponse
|
10 |
from fastapi.middleware.cors import CORSMiddleware
|
11 |
|
12 |
-
from whisper_online import backend_factory, online_factory, add_shared_args
|
|
|
13 |
app = FastAPI()
|
14 |
app.add_middleware(
|
15 |
CORSMiddleware,
|
|
|
9 |
from fastapi.responses import HTMLResponse
|
10 |
from fastapi.middleware.cors import CORSMiddleware
|
11 |
|
12 |
+
from src.whisper_streaming.whisper_online import backend_factory, online_factory, add_shared_args
|
13 |
+
|
14 |
app = FastAPI()
|
15 |
app.add_middleware(
|
16 |
CORSMiddleware,
|