# YX_Voice 配置文档 ## 1. Gradle配置 ```groovy android { defaultConfig { applicationId "com.yaxon.voice" } aaptOptions { noCompress "pcm" // 不压缩PCM音频文件 } buildTypes { release { outputFileName = "YX_Voice.apk" } } } ``` ## 2. Manifest配置 ```xml ``` ## 3. 权限声明 ```xml ``` ## 4. IPC配置 ```java YxIpcConfig yxIpcConfig = new YxIpcConfig(); yxIpcConfig.addRemoteStartService(PackageConst.MUSIC_PKG); yxIpcConfig.addRemoteStartService(PackageConst.SETTING_PKG); yxIpcConfig.setRemoteListener(ProtocolManager.getInstance()); YxIPC.getInstance().bind(this, yxIpcConfig); ``` ## 5. TXZ连接配置 ```java TxzProtocolManager.initialize(this); TxzProtocolManager.connect(PackageConst.TXZ_PKG_NEW); TxzProtocolManager.getConnection(PackageConst.TXZ_PKG_NEW).addConnectionListener(this); ``` ## 6. 模块依赖 ``` YX_Voice ├── YX_IPC_SDK (IPC通信) ├── YX_Lib_CommonBase (公共基础库) ├── YX_AutoMotiveSDK (车载SDK) ├── library-release-0127.aar (TXZ协议库) ├── tools.jar (工具库) ├── framework_classes.jar (系统框架) └── serial-0.1.6_classes.jar (串口库) ``` ## 7. 包名依赖 | 包名 | 说明 | |------|------| | com.txzing.voiceassistant | TXZ语音助手 | | com.yaxon.music | 音乐模块 | | com.yaxon.radio | 收音机模块 | | com.yaxon.hvac | 空调模块 | | com.yaxon.bluetooth | 蓝牙模块 | | com.yaxon.setting | 设置模块 | | com.yaxon.carcontrol | 车辆控制模块 | | com.yaxon.avm | 360环视模块 | | com.yaxon.dvr | 行车记录仪模块 | | com.android.systemui | 系统UI | ## 8. 版本历史 | 版本 | 日期 | 作者 | 说明 | |------|------|------|------| | 1.0 | 2024-01-05 | 张博威 | 初始版本 | | 1.1 | 2024-02-19 | mango | TXZ协议集成 | | 1.2 | 2024-07-02 | ZhangBoWei | 协议抽象优化 | | 1.3 | 2025-03-13 | - | 唤醒词修改功能 | --- *文档整理日期: 2026-05-27*