diff --git a/intelligent_voice/BUILD.gn b/intelligent_voice/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..145c4143b64d7fcbee195cd56843e917eec9e9fd --- /dev/null +++ b/intelligent_voice/BUILD.gn @@ -0,0 +1,28 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +if (defined(ohos_lite)) { + group("intell_voice_engine_entry") { + deps = [] + } + group("intell_voice_trigger_entry") { + deps = [] + } +} else { + group("intell_voice_engine_entry") { + deps = [ "hdi_service/engine:hdi_intell_voice_engine_service" ] + } + group("intell_voice_trigger_entry") { + deps = [ "hdi_service/trigger:hdi_intell_voice_trigger_service" ] + } +} diff --git a/intelligent_voice/README_zh.md b/intelligent_voice/README_zh.md new file mode 100644 index 0000000000000000000000000000000000000000..1bc62b325fe95ce8d3c9fda15174e7ca13f1298a --- /dev/null +++ b/intelligent_voice/README_zh.md @@ -0,0 +1,187 @@ +# intelligent_voice + +- [简介](#section11660541593) +- [目录](#section161941989596) + - [接口说明](#section1551164914237) + - [使用说明](#section129654513264) + +- [相关仓](#section1371113476307) + +## 简介 + +intelligent_voice仓下主要包含HDI接口,HDI接口主要用于: + +- 智能音频引擎的注册、管理、回调 +- Trigger模型的管理、加载、卸载,以及回调 + +## 目录 + +该仓下源代码目录结构如下所示 + +``` +drivers/peripheral/intelligent_voice/ +├── hdi_service # hdi服务,虚拟接口实现 +│ └── engine # engine虚拟接口实现 +│ └── trigger # trigger虚拟接口实现 +├── interfaces # intelligent_voice模块定义的虚拟接口 +│ └── include # 接口定义 +``` + +### 接口说明 + +intelligent_voice模块提供给intelligent_voice_framework可直接调用的能力接口,主要功能有:智能音频引擎的注册、管理、回调,Trigger模型的加载卸载,回调,以及管理等。 + +提供的部分接口说明如[表1 intelligent_voice HDI接口](#table1513255710559)所示: + +**表 1** intelligent_voice HDI接口 + + +