
# 打开/关闭扬声器
**接口描述**
该接口用于控制服务端扬声器打开或关闭。
**注意事项**
连接设备后使用。
**接口定义**
```
/* 打开\关闭扬声器 */   
int SetRemoteSpeakerMute(bool isSpeakerMute);
```
**参数描述**
| 参数            | 是否必须 | 类型   | 描述                                                                  |
|:---|:---|:---|:---|
| isSpeakerMute | 是    | bool | true 扬声器静音 false 扬声器打开 |
   
**返回值**
0 接口调用成功 非0 接口调用失败
**异步回调事件结果**
参见[4.6.4.1.9](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0046.html)OnSetRemoteSpeakerMuteResult和[4.6.4.2.1](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0053.html)OnRemoteServiceStatusChangedNotify。
**示例代码**
```
// 扬声器静音   
 if (mShareServiceController != NULL) {   
     mShareServiceController->SetRemoteSpeakerMute(true);   
 }
```
