Showing
2 changed files
with
4 additions
and
4 deletions
| @@ -136,9 +136,9 @@ const TAG = 'VoiceRecoginizer' | @@ -136,9 +136,9 @@ const TAG = 'VoiceRecoginizer' | ||
| 136 | 136 | ||
| 137 | export class VoiceRecoginizer { | 137 | export class VoiceRecoginizer { |
| 138 | private static MICROPHONEMISSION: Permissions = 'ohos.permission.MICROPHONE' | 138 | private static MICROPHONEMISSION: Permissions = 'ohos.permission.MICROPHONE' |
| 139 | - private static READMEDIA: Permissions = 'ohos.permission.READ_MEDIA' | 139 | + private static READMEDIA: Permissions = 'ohos.permission.READ_IMAGEVIDEO' |
| 140 | private static INTENT: Permissions = "ohos.permission.INTERNET" | 140 | private static INTENT: Permissions = "ohos.permission.INTERNET" |
| 141 | - private static WRITE_MEDIA: Permissions = "ohos.permission.WRITE_MEDIA" | 141 | + private static WRITE_MEDIA: Permissions = "ohos.permission.WRITE_IMAGEVIDEO" |
| 142 | 142 | ||
| 143 | private static appKey = "EospGmM6mdPljjjm" | 143 | private static appKey = "EospGmM6mdPljjjm" |
| 144 | private static url = "wss://nls-gateway.cn-shanghai.aliyuncs.com:443/ws/v1" | 144 | private static url = "wss://nls-gateway.cn-shanghai.aliyuncs.com:443/ws/v1" |
| @@ -184,7 +184,7 @@ | @@ -184,7 +184,7 @@ | ||
| 184 | ], | 184 | ], |
| 185 | "requestPermissions": [ | 185 | "requestPermissions": [ |
| 186 | { | 186 | { |
| 187 | - "name": "ohos.permission.READ_MEDIA", | 187 | + "name": "ohos.permission.READ_IMAGEVIDEO", |
| 188 | "reason": "$string:permission_photo_tip", | 188 | "reason": "$string:permission_photo_tip", |
| 189 | "usedScene": { | 189 | "usedScene": { |
| 190 | "abilities": [ | 190 | "abilities": [ |
| @@ -194,7 +194,7 @@ | @@ -194,7 +194,7 @@ | ||
| 194 | } | 194 | } |
| 195 | }, | 195 | }, |
| 196 | { | 196 | { |
| 197 | - "name": "ohos.permission.WRITE_MEDIA", | 197 | + "name": "ohos.permission.WRITE_IMAGEVIDEO", |
| 198 | "reason": "$string:permission_photo_tip", | 198 | "reason": "$string:permission_photo_tip", |
| 199 | "usedScene": { | 199 | "usedScene": { |
| 200 | "abilities": [ | 200 | "abilities": [ |
-
Please register or login to post a comment