diff --git a/en/hms-analytics.md b/en/hms-analytics.md index c73d2a0..6a50528 100644 --- a/en/hms-analytics.md +++ b/en/hms-analytics.md @@ -16,7 +16,11 @@ ### Version Update Description -- Latest Version:[3.x] 2.3.5_6.12.0.300 +- Latest Version: [3.x] 2.4.0_6.12.0.301 + + - SDK upgrade to 6.12.0.301 + +- [3.x] 2.3.5_6.12.0.300 - Improve internal implementation - SDK upgrade to 6.12.0.300 diff --git a/en/hw-mmsdk.md b/en/hw-mmsdk.md index df3142f..0670cdd 100644 --- a/en/hw-mmsdk.md +++ b/en/hw-mmsdk.md @@ -21,7 +21,11 @@ Clients integrated with the Game Multimedia Service SDK input voice information ## Version Update Instructions -- Current version:[3.x]1.0.12_1.12.2.300 +- Current version:[3.x]1.1.0_1.13.1.300 + + - Upgrade the SDK to 1.13.1.300 + +- [3.x]1.0.12_1.12.2.300 - Improve internal implementation - Upgrade the SDK to 1.12.2.300 @@ -598,6 +602,76 @@ huawei.game.mmsdk.mmsdkService.once(huawei.game.mmsdk.API_EVENT_LIST.isEnableSpa }) huawei.game.mmsdk.mmsdkService.isEnableSpatialSound("XXX"); ``` + +#### Turn on/off voice changes + +`enableVoiceConversion (roomId: string, voiceType: number): int;` + +[Guide](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + +Parameter Description + +|Parameter|Description| +|-|-| +|roomId|Room ID| +|voiceType|Sound change type: Original sound type: Disable sound change| + +Code Example + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.enableVoiceConversion(this._teamRoomId, huawei.game.mmsdk.VoiceType.LOLITA); +``` + +#### Query the type of sound change + +`getVoiceConversionType (roomId: string): int;` + +[Guide](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + +Parameter Description + +|Parameter|Description| +|-|-| +|roomId|Room ID| + +Code Example + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.getVoiceConversionType(this._teamRoomId); +``` + +#### Test the sound effect + +`enableEarsBack (enable: boolean): int;` + +[Guide](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + +Parameter Description + +|Parameter|Description| +|-|-| +|enable|Turn on/off| + +Code Example + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.enableEarsBack(true); +``` + +#### Check the status of the in-ear monitors + +`isEarsBackEnable (): boolean;` + +[Guide](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + + +Code Example + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.isEarsBackEnable(); +``` + + #### Join Range Voice Room diff --git a/zh/hms-analytics.md b/zh/hms-analytics.md index 667d789..b8ccf3b 100644 --- a/zh/hms-analytics.md +++ b/zh/hms-analytics.md @@ -16,7 +16,11 @@ ### 版本更新说明 -- 当前版本:[3.x] 2.3.5_6.12.0.300 +- 当前版本:[3.x] 2.4.0_6.12.0.301 + + - SDK 升级到 6.12.0.301 + +- 版本:[3.x] 2.3.5_6.12.0.300 - 完善内部实现 diff --git a/zh/hw-mmsdk.md b/zh/hw-mmsdk.md index 1abfe78..75d842d 100644 --- a/zh/hw-mmsdk.md +++ b/zh/hw-mmsdk.md @@ -23,7 +23,10 @@ ## 版本更新说明 -- 当前版本:[3.x]1.0.12_1.12.2.300 +- 当前版本:[3.x]1.1.0_1.13.1.300 + - SDK 升级到 1.13.1.300 + +- [3.x]1.0.12_1.12.2.300 - 完善内部实现 - SDK 升级到 1.12.2.300 @@ -669,6 +672,74 @@ huawei.game.mmsdk.mmsdkService.once(huawei.game.mmsdk.API_EVENT_LIST.onJoinRange huawei.game.mmsdk.mmsdkService.joinRangeRoom("XXX"); ``` +#### 开启/关闭房间内语音变声 + +`enableVoiceConversion (roomId: string, voiceType: number): int;` + +[指南](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + +参数说明 + +|参数|说明| +|-|-| +|roomId|房间ID| +|voiceType|变声类型,原声类型表示关闭变声| + +代码示例 + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.enableVoiceConversion(this._teamRoomId, huawei.game.mmsdk.VoiceType.LOLITA); +``` + +#### 查询当前房间的变声类型 + +`getVoiceConversionType (roomId: string): int;` + +[指南](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + +参数说明 + +|参数|说明| +|-|-| +|roomId|房间ID| + +代码示例 + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.getVoiceConversionType(this._teamRoomId); +``` + +#### 测试变声效果 + +`enableEarsBack (enable: boolean): int;` + +[指南](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + +参数说明 + +|参数|说明| +|-|-| +|enable|开启关闭| + +代码示例 + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.enableEarsBack(true); +``` + +#### 查询耳返是否已开启 + +`isEarsBackEnable (): boolean;` + +[指南](https://developer.huawei.com/consumer/cn/doc/AppGallery-connect-Guides/gamemme-voiceconversion-android-0000001772670850) + + +代码示例 + +```TypeScript +let result = huawei.game.mmsdk.mmsdkService.isEarsBackEnable(); +``` + ### 实时信令 #### 点对点发送消息