hailin
913267fb9d
fix: 提交完整的Android项目配置文件,修复跨机器构建失败
...
问题描述:
在其他机器 (C:\Users\ph) 上执行 flutter build apk 时报错:
"Build failed due to use of deleted Android v1 embedding."
原因是 Android 项目配置文件未被提交到 Git 仓库。
根本原因:
之前重新生成 Android 项目(从 speech_to_text 迁移到 record 包)时,
新生成的 Android 构建文件只在本地存在,未提交到远程仓库。
其他机器 clone/pull 后缺少这些文件,导致构建失败。
本次提交包含的文件:
Android 构建配置:
- android/settings.gradle.kts — Gradle 插件配置 (AGP 8.11.1, Kotlin 2.2.20)
- android/build.gradle.kts — 根项目 Gradle 配置
- android/app/build.gradle.kts — 应用模块配置 (namespace: com.iagent.it0_app, Java 17)
- android/gradle.properties — JVM 参数 (8G heap), AndroidX 启用
- android/gradle/wrapper/gradle-wrapper.properties — Gradle 8.14
Android 清单与入口:
- android/app/src/main/AndroidManifest.xml — 主清单 (v2 embedding, INTERNET+RECORD_AUDIO权限, cleartext允许)
- android/app/src/debug/AndroidManifest.xml — Debug 清单
- android/app/src/profile/AndroidManifest.xml — Profile 清单
- android/app/src/main/kotlin/.../MainActivity.kt — FlutterActivity (v2 embedding)
Android 资源:
- res/drawable/ — 启动画面背景
- res/mipmap-*/ — 应用图标 (hdpi~xxxhdpi)
- res/values/ — 主题样式 (LaunchTheme + NormalTheme, 含夜间模式)
Flutter 项目元数据:
- .gitignore — Flutter 项目忽略规则
- .metadata — Flutter SDK 版本追踪
- android/.gitignore — Android 构建产物忽略规则
构建要求:
- Flutter SDK >= 3.38.0 (pubspec.lock 约束)
- 其他机器需执行: flutter clean && flutter pub get 后重新构建
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 16:17:18 -08:00
hailin
a568558585
feat: replace speech_to_text with GTCRN ML noise reduction + backend STT
...
Replace traditional on-device speech_to_text with a modern pipeline:
- Record audio via `record` package with hardware noise suppression
- Apply GTCRN neural denoising (sherpa-onnx, ICASSP 2024, 48K params)
- Trim silence, POST to backend /voice/transcribe (faster-whisper)
Changes:
- Add /transcribe endpoint to voice-service for audio file upload
- Add SpeechEnhancer wrapper for sherpa-onnx GTCRN model (523KB)
- Rewrite chat_page.dart voice input: record → denoise → transcribe
- Keep NoiseReducer.trimSilence for silence removal only
- Upgrade record to v6.2.0, add sherpa_onnx, path_provider
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 07:59:15 -08:00
hailin
00f8801d51
Initial commit: IT0 AI-powered server cluster operations platform
...
Full-stack monorepo with DDD + Clean Architecture:
- Backend: 7 NestJS microservices + 5 shared libraries (TypeScript)
- Mobile: Flutter app with Riverpod (Dart)
- Web Admin: Next.js dashboard with Zustand + React Query
- Voice: Python voice service (STT/TTS/VAD)
- Infra: Docker Compose, K8s manifests, Turborepo build
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:54:37 -08:00