- Added new language strings for voice input functionality in English and Chinese. - Updated manifest to include microphone permission for voice recording. - Enhanced ai-chat-message component to support voice input with visual feedback for recording and cancellation gestures. - Integrated voice recorder functionality in ai-chat-voice-panel, allowing users to record audio with a maximum duration of 60 seconds. - Implemented audio handling logic to upload recorded audio files and display them in the chat interface. - Added error handling for voice recording failures and user notifications. - Updated styles for improved UI/UX during voice recording interactions.
99 lines
2.5 KiB
Plaintext
99 lines
2.5 KiB
Plaintext
{
|
|
"module": {
|
|
"name": "entry",
|
|
"type": "entry",
|
|
"description": "$string:module_desc",
|
|
"mainElement": "EntryAbility",
|
|
"metadata": [
|
|
{
|
|
"name": "client_id",
|
|
"value": "6917586915104411748"
|
|
}
|
|
],
|
|
"deviceTypes": [
|
|
"phone",
|
|
],
|
|
"deliveryWithInstall": true,
|
|
"installationFree": true,
|
|
"pages": "$profile:main_pages",
|
|
"abilities": [
|
|
{
|
|
"name": "EntryAbility",
|
|
"srcEntry": "./ets/entryability/EntryAbility.ets",
|
|
"description": "$string:EntryAbility_desc",
|
|
"icon": "$media:app_icon",
|
|
"label": "$string:EntryAbility_label",
|
|
"startWindowIcon": "$media:startIcon",
|
|
"startWindowBackground": "$color:start_window_background",
|
|
"exported": true,
|
|
"skills": [
|
|
{
|
|
"entities": [
|
|
"entity.system.home"
|
|
],
|
|
"actions": [
|
|
"action.system.home"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"srcEntry": "./ets/abilitystage/AbilityStage.ets",
|
|
"dependencies": [
|
|
{
|
|
"bundleName": "com.huawei.hms.ascfruntime",
|
|
"moduleName": "ascf",
|
|
"versionCode": 10006300
|
|
}
|
|
],
|
|
"requestPermissions": [
|
|
{
|
|
"name": "ohos.permission.INTERNET",
|
|
"usedScene": {
|
|
"abilities": [
|
|
"EntryAbility"
|
|
],
|
|
"when": "always"
|
|
}
|
|
},
|
|
{
|
|
"name": "ohos.permission.GET_NETWORK_INFO",
|
|
"usedScene": {
|
|
"abilities": [
|
|
"EntryAbility"
|
|
],
|
|
"when": "always"
|
|
}
|
|
},
|
|
{
|
|
// PR-FRONTEND-VOICE-INPUT (2026-09-24): 元服务录音需要麦克风权限
|
|
"name": "ohos.permission.MICROPHONE",
|
|
"usedScene": {
|
|
"abilities": [
|
|
"EntryAbility"
|
|
],
|
|
"when": "always"
|
|
}
|
|
},
|
|
{
|
|
"name": "ohos.permission.VIBRATE"
|
|
}
|
|
],
|
|
//卡片部分
|
|
"extensionAbilities": [
|
|
{
|
|
"name": "EntryFormAbility",
|
|
"srcEntry": "./ets/entryformability/EntryFormAbility.ets",
|
|
"label": "$string:EntryFormAbility_label",
|
|
"description": "$string:EntryFormAbility_desc",
|
|
"type": "form",
|
|
"metadata": [
|
|
{
|
|
"name": "ohos.extension.form",
|
|
"resource": "$profile:form_config"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |