Skip to content

Instantly share code, notes, and snippets.

View Plachtaa's full-sized avatar

Songting Plachtaa

View GitHub Profile
@Plachtaa
Plachtaa / cosyvoice_stream_demo.py
Created October 10, 2025 09:19
Use Gradio to interprete how CosyVoice2's bitstream mode works with LLM generation
import os
import threading
import queue
import uuid
from typing import Optional, Tuple, Dict
import numpy as np
import gradio as gr
import torchaudio