Aqua-TTS

This project includes code from the following third-party projects:

---

## GPT-SoVITS

Files: aquatts/_vendor/GPT_SoVITS/AR/models/t2s_model.py

Copyright (c) 2024 RVC-Boss
Licensed under the MIT License.
https://github.com/RVC-Boss/GPT-SoVITS

Modifications:
- Replaced dynamic `torch.cat` KV cache with static `scatter_` buffers
- Added bucketed CUDA Graph capture/replay (6 bucket sizes, 13 pre-captured pairs)
- Added `cuda_graph_stats` dict for per-step and EOS performance logging
- Added `precapture_cuda_graph()` for eager graph enumeration at model load
- Added `apply_cuda_graph_patch()` entry point in aquatts.modeling
- Added fallback-on-error path: CUDA Graph → static KV → dynamic torch.cat

The vendored aquatts/_vendor/GPT_SoVITS/AR/__init__.py and
aquatts/_vendor/GPT_SoVITS/AR/models/__init__.py use pkgutil.extend_path
to merge with the main GPT-SoVITS package at import time.
The BigVGAN CUDA kernel in aquatts/_vendor/GPT_SoVITS/BigVGAN/alias_free_activation/cuda/
is subject to the NVIDIA BigVGAN license below.

---

## NVIDIA BigVGAN

Files: aquatts/bigvgan/cuda/anti_alias_activation.cpp
       aquatts/bigvgan/cuda/anti_alias_activation_cuda.cu
       aquatts/bigvgan/cuda/compat.h
       aquatts/bigvgan/cuda/type_shim.h
       aquatts/_vendor/GPT_SoVITS/BigVGAN/alias_free_activation/cuda/*.cpp
       aquatts/_vendor/GPT_SoVITS/BigVGAN/alias_free_activation/cuda/*.cu
       aquatts/_vendor/GPT_SoVITS/BigVGAN/alias_free_activation/cuda/*.h

Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
Licensed under the Apache License, Version 2.0.

http://www.apache.org/licenses/LICENSE-2.0

Modifications: Added at::cuda::CUDAGuard for multi-device safety.
  Added MSVC auto-discovery loader (aquatts/_vendor/GPT_SoVITS/BigVGAN/alias_free_activation/cuda/load.py)
  that pre-compiles the kernel and caches .pyd files per GPU compute capability.

---

## alias-free-torch (BigVGAN anti-alias activation)

Files: aquatts/bigvgan/torch/__init__.py
       aquatts/bigvgan/torch/act.py
       aquatts/bigvgan/torch/filter.py
       aquatts/bigvgan/torch/resample.py

Adapted from https://github.com/junjun3518/alias-free-torch
under the Apache License, Version 2.0.

http://www.apache.org/licenses/LICENSE-2.0
