Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #123

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion en/hms-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
76 changes: 75 additions & 1 deletion en/hw-mmsdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down
6 changes: 5 additions & 1 deletion zh/hms-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

- 完善内部实现

Expand Down
73 changes: 72 additions & 1 deletion zh/hw-mmsdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
```

### 实时信令

#### 点对点发送消息
Expand Down