ubuntu@ubuntu-virtual-machine:~/Desktop/new$ ./main.py…
- User
ubuntu@ubuntu-virtual-machine:~/Desktop/new$ ./main.py /home/ubuntu/.local/lib/python3.10/site-packages/pyannote/audio/core/io.py:43: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call. torchaudio.set_audio_backend("soundfile") /home/ubuntu/.local/lib/python3.10/site-packages/pyannote/audio/pipelines/speaker_verification.py:43: UserWarning: torchaudio._backend.get_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call. backend = torchaudio.get_audio_backend() INFO:speechbrain.utils.quirks:Applied quirks (see speechbrain.utils.quirks): [allow_tf32, disable_jit_profiling] INFO:speechbrain.utils.quirks:Excluded quirks specified by the SB_DISABLE_QUIRKS environment (comma-separated list): [] /home/ubuntu/.local/lib/python3.10/site-packages/pyannote/audio/pipelines/speaker_verification.py:45: UserWarning: Module 'speechbrain.pretrained' was deprecated, redirecting to 'speechbrain.inference'. Please update your script. This is a change from SpeechBrain 1.0. See: https://github.com/speechbrain/speechbrain/releases/tag/v1.0.0 from speechbrain.pretrained import ( /home/ubuntu/.local/lib/python3.10/site-packages/pyannote/audio/pipelines/speaker_verification.py:53: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call. torchaudio.set_audio_backend(backend) /home/ubuntu/.local/lib/python3.10/site-packages/pyannote/audio/tasks/segmentation/mixins.py:37: UserWarning: torchaudio.backend.common.AudioMetaData has been moved to torchaudio.AudioMetaData. Please update the import path. from torchaudio.backend.common import AudioMetaData Initializing AudioProcessor with cpu Loading Whisper v2 model: base No language specified, language will be first be detected for each audio file (increases inference time). Error initializing models: TranscriptionOptions.init() missing 2 required positional arguments: 'multilingual' and 'hotwords'
script: import whisperx import torch import torchaudio from demucs.pretrained import get_model from demucs.apply import apply_model import numpy as np import soundfile as sf import subprocess from pathlib import Path import os from config import * from torch.hub import load as torch_hub_load from silero_vad import load_silero_vad, get_speech_timestamps
class AudioProcessor: def init(self, model_size=DEFAULT_MODEL_SIZE, whisper_version=DEFAULT_WHISPER_VERSION): torch.set_num_threads(CPU_THREADS) print(f"Initializing AudioProcessor with {DEVICE}") self.init_models(model_size, whisper_version)
def init_models(self, model_size, whisper_version): try: print(f"Loading Whisper {whisper_version} model: {model_size}") self.whisper_model = whisperx.load_model( model_size, device=DEVICE, compute_type="float32", download_root=str(MODELS_DIR), language=None, # Set to None for automatic language detection, or specify 'en' for English )
- Assistant