Use NVIDIA Canary-1B-v2 for ASR, Translation, and Computerized SRT Subtitle Export in Python
import time, json, gc, math, urllib.request import torch, numpy as np, soundfile as sf, librosa print(“>>> PHASE 2: operating tutorialn”) print(“NumPy:”, np.__version__, “| PyTorch:”, torch.__version__) print(“CUDA out there:”, torch.cuda.is_available()) if torch.cuda.is_available(): print(“GPU:”, torch.cuda.get_device_name(0), f”| VRAM: {torch.cuda.get_device_properties(0).total_memory/1e9:.1f} GB”) else: print(“⚠️ No GPU — will run on CPU (very gradual). ” “Set Runtime > Change runtime sort…
