How tencent-hunyuan/auk works
AuK is a foundational speech generation and editing model. Users provide instructions, text and optionally reference audio through the CLI, Gradio, Python API or ComfyUI; inference encodes inputs, runs the generation model and decodes audio. The README documents zero-shot and instruction TTS, content and lyric editing, acoustic and paralinguistic edits, enhancement and separation. Prompt enhancement and fine-tuning are also represented. Connections among unsampled task-specific code are omitted where the excerpts and index do not establish them.
Main entry points: bigvgan_flow_vae.py BigVGAN Flow VAE · infer_auk.py Inference runtime · infer_gradio.py Gradio demo · nodes.py ComfyUI nodes
Components 20
User interfaces
- CLI
src/auk/infer/infer_cli.py - Gradio demo
src/auk/infer/infer_gradio.py - ComfyUI nodes
comfyui/ComfyUI-AuK/nodes.py - Python inference API
src/auk/infer/infer_auk.py
Prompt processing
- Prompt enhancer
src/auk/infer/pe.py
Inference model
- Inference runtime
src/auk/infer/infer_auk.py - CFM edit model
src/auk/model/cfm_edit.py - Flux2 edit backbone
src/auk/model/flux2_edit.py - Transformer blocks
src/auk/model/modules.py - Speech task capabilities
src/auk/model
Audio codec
- BigVGAN Flow VAE
src/auk/model/vae/bigvgan_flow_vae.py - VITS flows
src/auk/model/vae/modules/vits/flows.py - Audio layers
src/auk/model/vae/modules/commons/layers.py - Audio operations
src/auk/model/vae/modules/commons/ops.py - BigVGAN activations
src/auk/model/vae/modules/bigvgan/activations.py - Alias-free activations
src/auk/model/vae/modules/bigvgan/alias_free_torch/act.py - Alias-free filters
src/auk/model/vae/modules/bigvgan/alias_free_torch/filter.py - Alias-free resampling
src/auk/model/vae/modules/bigvgan/alias_free_torch/resample.py
Model training
- Fine-tuning
src/auk/train/train.py
Other components
- User
Connections 22
- User → CLI: submits task
README.md - User → Gradio demo: submits task
README.md - User → ComfyUI nodes: runs workflow
README.md - User → Python inference API: calls API
README.md - CLI → Inference runtime: calls inference
src/auk/infer/infer_cli.py - Gradio demo → Inference runtime: calls inference
src/auk/infer/infer_gradio.py - ComfyUI nodes → Inference runtime: creates runtime
comfyui/ComfyUI-AuK/nodes.py - Gradio demo → Prompt enhancer: uses enhancer
src/auk/infer/infer_gradio.py - ComfyUI nodes → Prompt enhancer: uses enhancer
comfyui/ComfyUI-AuK/nodes.py - Inference runtime → CFM edit model: builds model
src/auk/infer/infer_auk.py - Inference runtime → Flux2 edit backbone: builds backbone
src/auk/infer/infer_auk.py - Flux2 edit backbone → Transformer blocks: uses blocks
src/auk/model/flux2_edit.py - CFM edit model → Flux2 edit backbone: runs transformer
- Inference runtime → BigVGAN Flow VAE: encodes audio
src/auk/infer/infer_auk.py - BigVGAN Flow VAE → VITS flows: uses flows
src/auk/model/vae/bigvgan_flow_vae.py - BigVGAN Flow VAE → Audio layers: uses layers
src/auk/model/vae/bigvgan_flow_vae.py - BigVGAN Flow VAE → Audio operations: uses operations
src/auk/model/vae/bigvgan_flow_vae.py - BigVGAN Flow VAE → BigVGAN activations: uses activations
src/auk/model/vae/bigvgan_flow_vae.py - BigVGAN Flow VAE → Alias-free activations: uses activations
src/auk/model/vae/bigvgan_flow_vae.py - BigVGAN Flow VAE → Alias-free filters: uses filters
- BigVGAN Flow VAE → Alias-free resampling: uses resampling
- User → Fine-tuning: fine-tunes model
README.md