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

#### 函数功能

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


#### 函数原型

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中的定义。
