---
name: "offRecordingEvent"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.3.2" }
  - { name: "@ray-js/ray", version: "0.3.23" }
platform:
  - "iOS"
  - "Android"
async: true
title: "offRecordingEvent - 移除监听：持续录音事件"
---

## offRecordingEvent

> [VERSION] BaseKit >= 2.3.2 | @ray-js/ray >= 0.3.23

> [PLATFORM] iOS, Android

> ⚡ **支持 Promise 调用** — 不传 success / fail / complete 回调时，该方法返回 Promise。

### 描述

持续录音事件

### 参数

`(listener: Function)`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `listener` | `(params: AudioRecordBufferBean) => void` | 是 | - |  |

### 引用对象

##### `interface` AudioRecordBufferBean

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `buffer` | `number[]` | `2.3.2` | 数据流 |


### 示例代码

#### Demo

```tsx
import { onRecordingEvent, offRecordingEvent } from '@ray-js/ray'

const listener = function (res) { console.log(res) }
onRecordingEvent(listener)
offRecordingEvent(listener)
```
