---
name: "IpcPlayerContext.stopTalk"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "IpcContext.stopTalk - 停止对讲"
---

## IpcPlayerContext.stopTalk

> [VERSION] Base Library >= 2.21.8

### Description

Stop intercom

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | `IpcCallbackOption` | No | Callback options |

### Return Value

None


### Referenced Types

##### `interface` IpcCallbackOption

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `() => void` | No | Callback invoked on successful API call |
| `fail` | `(result: IpcFailResult) => void` | No | Callback on failure |
| `complete` | `() => void` | No | Callback on complete (success or failure) |

##### `interface` IpcFailResult

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `errorCode` | `string` | Yes | Error code |
| `errorMsg` | `string` | Yes | Error message |


### Examples

#### Stop intercom

```ts
const ipcCtx = ty.createIpcPlayerContext('deviceId');
ipcCtx.stopTalk({
  success() {
    console.log('Talkback stopped');
  },
});
```
