{"id":51261290,"url":"https://github.com/hope2333/tsac-ng","last_synced_at":"2026-06-29T12:02:16.336Z","repository":{"id":358264633,"uuid":"1240702040","full_name":"Hope2333/tsac-ng","owner":"Hope2333","description":"神经音频编解码器 — Multi-backend neural audio codec. CPU (AVX/AVX2/AVX-512, NEON/SVE, RVV), GPU (CUDA, HIP/ROCm, Vulkan), LLVM JIT. Clean-room implementation.","archived":false,"fork":false,"pushed_at":"2026-05-25T06:41:20.000Z","size":143,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-25T08:25:57.782Z","etag":null,"topics":["arm64","audio-codec","avx","c","cuda","dac","hip","llvm-jit","neural-audio","riscv","simd","vulkan"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hope2333.png","metadata":{"files":{"readme":"README.cn.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T13:11:21.000Z","updated_at":"2026-05-25T06:41:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Hope2333/tsac-ng","commit_stats":null,"previous_names":["hope2333/tsac-ng"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Hope2333/tsac-ng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hope2333%2Ftsac-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hope2333%2Ftsac-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hope2333%2Ftsac-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hope2333%2Ftsac-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hope2333","download_url":"https://codeload.github.com/Hope2333/tsac-ng/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hope2333%2Ftsac-ng/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34925718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arm64","audio-codec","avx","c","cuda","dac","hip","llvm-jit","neural-audio","riscv","simd","vulkan"],"created_at":"2026-06-29T12:02:15.549Z","updated_at":"2026-06-29T12:02:16.330Z","avatar_url":"https://github.com/Hope2333.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsac-ng — 神经音频编解码器（多后端）\n\n**tsac-ng v0.1.4** — 对 TSAC 神经音频编解码器的逆向工程重建。兼容 `.txc` 容器格式和 `.bin` 模型文件。\n\n\u003e **🤖 AI 辅助开发**：单人开发者配合 AI 编程助手完成 **102 轮调查**（R079-R180，4 个阶段）。\n\u003e 架构设计、GDB/objdump/LD_PRELOAD 地面真值提取和验证由人类主导；实现由 AI 增强。\n\u003e 详见 [METHODOLOGY.md](.ai/METHODOLOGY.md)。\n\n---\n\n## 兼容性状态\n\n| 功能 | 状态 | % | 说明 |\n|---------|:------:|:--:|-------|\n| **自有快速 TXC 编解码** | ✅ | 100% | 原始 uint8 格式 |\n| **原版快速 TXC 解码** | 🎯 | 90% | 索引 100%。**RMS 0.2023≈0.2029**。AVX-512 已修复 |\n| **原版普通 TXC 解码** | 🔧 | 60% | Transformer+range coder 已实现。端到端待集成 |\n| **CRC32 校验** | ✅ | 100% | 多项式 0x04C11DB7 |\n| **详细输出** | ✅ | 100% | 全部匹配原版 |\n| **DAC 解码架构** | ✅ | 95% | 32conv/29snake/4convtr GDB 验证 |\n| **BF8 反量化** | ✅ | 80% | 全管线逆向。权重 corr 0.82 |\n| **CPU SIMD** | ✅ | 95% | AVX-512/AVX2/NEON/SVE/RVV。AVX-512 bug 已修复 |\n| **CUDA** | ✅ | 85% | 完整解码+编码 |\n| **HIP** | ✅ | 65% | 编译通过 |\n| **Vulkan** | 🔧 | 40% | 管线基础完成，解码/编码未接线 |\n| **LLVM JIT** | 🔧 | 35% | 4 JIT 函数工作，解码图未完成 |\n| **编码器** | ✅ | 70% | 跨步卷积已修复 |\n| **Transformer** | ✅ | 80% | 12L GPT-2 已实现 |\n| **Range Coder** | ✅ | 80% | get_freq+累积+多位 |\n| **Convt 权重** | ✅ | 100% | GDB 确认 stride=K/2 |\n\n### 🎯 Phase 4 里程碑\n\n- **RMS 0.2023 ≈ 目标 0.2029** (99.7% 匹配)\n- AVX-512 70× 放大 bug **已修复** (R161-R164)\n- weight_g 仅用于 model.6 → RMS 精确匹配\n- 0% 削波，多文件全通过\n- 残留：WAV 相关性 ~0（BF8 权重 29% 残差）\n\n---\n\n## 快速开始\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake .. -DCMAKE_BUILD_TYPE=Release \u0026\u0026 make -j$(nproc)\n./tsac-ng -v d input.txc output.wav                       # 快速 TXC 解码\n./tsac-ng -m /usr/share/tsac/dac_stereo_q8.bin d in.txc out.wav  # 原版解码\n```\n\n## 后端状态\n\n| 后端 | 构建 | 运行时 | 备注 |\n|---------|:-----:|:-------:|-------|\n| CPU (x86-64) | ✅ | ✅ | AVX/AVX2/AVX-512 |\n| CPU (ARM64) | ✅ | ✅ | NEON + SVE |\n| CPU (RISC-V) | ✅ | ✅ | RVV + scalar |\n| CUDA | ✅ | ✅ | SM 8.0+ |\n| HIP/ROCm | ✅ | ✅ | gfx1030+ |\n| Vulkan | ✅ | ⚠️ | 跨平台 |\n| LLVM JIT | ✅ | ⚠️ | 实验性 |\n\n## 已知限制\n\n- 原版快速 TXC：RMS 已匹配，WAV 波形未对齐（BF8 权重残差）\n- 普通 TXC：端到端集成待完成\n- GPU：仅 CUDA 完整可用\n\n## 许可证\n\nMIT\n\n---\n\n```\ntsac-ng v0.1.4 — Copyright (c) 2026 Hope2333 (幽零小喵)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhope2333%2Ftsac-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhope2333%2Ftsac-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhope2333%2Ftsac-ng/lists"}