Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-08-29 14:37:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdd2749c9083b59951ed80b8bb31916d12c683d0
fdd2749c
1 parent
041dba91
feat:调整项目相机权限设置
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
sight_harmony/features/wdHwAbility/src/main/ets/voiceRecognizer/VoiceRecoginizer.ets
sight_harmony/products/phone/src/main/module.json5
sight_harmony/features/wdHwAbility/src/main/ets/voiceRecognizer/VoiceRecoginizer.ets
View file @
fdd2749
...
...
@@ -136,9 +136,9 @@ const TAG = 'VoiceRecoginizer'
export class VoiceRecoginizer {
private static MICROPHONEMISSION: Permissions = 'ohos.permission.MICROPHONE'
private static READMEDIA: Permissions = 'ohos.permission.READ_
MEDIA
'
private static READMEDIA: Permissions = 'ohos.permission.READ_
IMAGEVIDEO
'
private static INTENT: Permissions = "ohos.permission.INTERNET"
private static WRITE_MEDIA: Permissions = "ohos.permission.WRITE_
MEDIA
"
private static WRITE_MEDIA: Permissions = "ohos.permission.WRITE_
IMAGEVIDEO
"
private static appKey = "EospGmM6mdPljjjm"
private static url = "wss://nls-gateway.cn-shanghai.aliyuncs.com:443/ws/v1"
...
...
sight_harmony/products/phone/src/main/module.json5
View file @
fdd2749
...
...
@@ -184,7 +184,7 @@
],
"requestPermissions"
:
[
{
"name"
:
"ohos.permission.READ_
MEDIA
"
,
"name"
:
"ohos.permission.READ_
IMAGEVIDEO
"
,
"reason"
:
"$string:permission_photo_tip"
,
"usedScene"
:
{
"abilities"
:
[
...
...
@@ -194,7 +194,7 @@
}
},
{
"name"
:
"ohos.permission.WRITE_
MEDIA
"
,
"name"
:
"ohos.permission.WRITE_
IMAGEVIDEO
"
,
"reason"
:
"$string:permission_photo_tip"
,
"usedScene"
:
{
"abilities"
:
[
...
...
Please
register
or
login
to post a comment