AH Agency • OmniVoice GPU
Colab GPU Offline
OmniVoice 600+ Languages Studio
Ye page automatically https://voice.ahagency.net par live OmniVoice UI open kar dega jaise hi aapka Google Colab T4 GPU connect hoga.
Quick Steps (Roman Urdu):
1. Download Colab Notebook karein aur Google Colab mein upload karein (ya naya notebook khol kar code paste karein).
2. Colab mein Runtime → Change runtime type → T4 GPU select karein.
3. Cell run karein — connect hote hi ye page khud OmniVoice UI mein switch ho jayega!
1. Download Colab Notebook karein aur Google Colab mein upload karein (ya naya notebook khol kar code paste karein).
2. Colab mein Runtime → Change runtime type → T4 GPU select karein.
3. Cell run karein — connect hote hi ye page khud OmniVoice UI mein switch ho jayega!
Google Colab 1-Click Cell (T4 GPU)
Auto-checks every 3s
!nvidia-smi
!pip install -q omnivoice
!curl -fsSL https://github.com/jpillora/chisel/releases/download/v1.12.0/chisel_1.12.0_linux_amd64.gz | gunzip > /usr/local/bin/chisel && chmod +x /usr/local/bin/chisel
print("✅ OmniVoice & Tunnel installed!")
import os, subprocess, time, urllib.request, torch
if not torch.cuda.is_available():
raise RuntimeError("❌ GPU OFF hai! Colab mein: Runtime → Change runtime type → T4 GPU select karke dubara run karein.")
print(f"⚡ GPU Detected: {torch.cuda.get_device_name(0)}")
env = os.environ.copy()
env["FORWARDED_ALLOW_IPS"] = "*"
print("⏳ Starting OmniVoice on Colab GPU (first run downloads model weights)...")
gradio_proc = subprocess.Popen(
["omnivoice-demo", "--ip", "127.0.0.1", "--port", "7860"],
env=env,
)
# Wait until Gradio responds locally before exposing via reverse tunnel
while gradio_proc.poll() is None:
try:
with urllib.request.urlopen("http://127.0.0.1:7860/", timeout=2) as r:
if r.status < 500:
break
except Exception:
pass
time.sleep(2)
if gradio_proc.poll() is not None:
raise RuntimeError("omnivoice-demo exited early; check logs above.")
print("🟢 OmniVoice GPU ready! Connecting to https://voice.ahagency.net ...")
tunnel_cmd = [
"chisel", "client",
"--auth", "colab:ca8a9a6b9ab195468142f9365f0889cf",
"--keepalive", "20s",
"https://voice.ahagency.net/_tunnel",
"R:0.0.0.0:7861:127.0.0.1:7860",
]
while gradio_proc.poll() is None:
subprocess.run(tunnel_cmd)
print("🔁 Tunnel reconnecting in 3s...")
time.sleep(3)