correct silences handling when language not auto
This commit is contained in:
parent
fc9cb66813
commit
872faa422a
3 changed files with 10 additions and 7 deletions
|
|
@ -14,10 +14,10 @@ from typing import Dict, Tuple
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
from whisperlivekit.whisper import _convert_hf_state_dict
|
||||||
from whisperlivekit.whisper.audio import HOP_LENGTH, SAMPLE_RATE
|
from whisperlivekit.whisper.audio import HOP_LENGTH, SAMPLE_RATE
|
||||||
from whisperlivekit.whisper.model import ModelDimensions
|
from whisperlivekit.whisper.model import ModelDimensions
|
||||||
from whisperlivekit.whisper.utils import exact_div
|
from whisperlivekit.whisper.utils import exact_div
|
||||||
from whisperlivekit.whisper import _convert_hf_state_dict
|
|
||||||
|
|
||||||
|
|
||||||
def _load_state_dict(repo_path: Path) -> Dict[str, torch.Tensor]:
|
def _load_state_dict(repo_path: Path) -> Dict[str, torch.Tensor]:
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,18 @@ import argparse
|
||||||
import base64
|
import base64
|
||||||
import gzip
|
import gzip
|
||||||
import io
|
import io
|
||||||
|
import math
|
||||||
import pathlib
|
import pathlib
|
||||||
import sys
|
import sys
|
||||||
import math
|
|
||||||
from typing import List, Optional, Sequence, Tuple, Union
|
from typing import List, Optional, Sequence, Tuple, Union
|
||||||
|
|
||||||
import numpy as np
|
|
||||||
import torch
|
|
||||||
from datasets import Audio as DatasetAudio, load_dataset
|
|
||||||
import soundfile as sf
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
import numpy as np
|
||||||
|
import soundfile as sf
|
||||||
|
import torch
|
||||||
|
from datasets import Audio as DatasetAudio
|
||||||
|
from datasets import load_dataset
|
||||||
|
|
||||||
REPO_ROOT = pathlib.Path(__file__).resolve().parents[1]
|
REPO_ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||||
WHISPER_ROOT = REPO_ROOT / "whisper"
|
WHISPER_ROOT = REPO_ROOT / "whisper"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
"""Copy core files from web directory to Chrome extension directory."""
|
"""Copy core files from web directory to Chrome extension directory."""
|
||||||
|
|
||||||
import shutil
|
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
def sync_extension_files():
|
def sync_extension_files():
|
||||||
|
|
||||||
web_dir = Path("whisperlivekit/web")
|
web_dir = Path("whisperlivekit/web")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue