---
title: OpusEncoderCreateApi
description: "创建Opus编码器，类似Opus 1.3.1版本的opus_encoder_create接口。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/240RC2/armnative/kunpengcpsvideo_16_0103.html
sourcePath: /source/zh/kunpengboostkithistory/240RC2/armnative/kunpengcpsvideo_16_0103.html
indexId: c300de175c0b69aa9ec4fa1286ef6e45d53d8f4145ca5cc11b908cc6e23a1e7679
---
# OpusEncoderCreateApi

#### 函数功能

创建Opus编码器，类似Opus 1.3.1版本的opus_encoder_create接口。


#### 约束说明

NA


#### 函数原型

OpusEncoder *OpusEncoderCreateApi(opus_int32 Fs, int channels, int application, int *error)


#### 参数说明

与Opus 1.3.1中opus_encoder_create接口一致，请参见Opus 1.3.1中定义。


#### 返回值说明

与Opus 1.3.1中opus_encoder_create接口一致，请参见Opus 1.3.1中定义。
