---
title: OpusEncoderCreateApi
description: "创建Opus编码器，类似Opus 1.3.1版本的opus_encoder_create接口。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/252RC1/armnative/kunpengcpsvideo_16_0103.html
sourcePath: /source/zh/kunpengboostkithistory/252RC1/armnative/kunpengcpsvideo_16_0103.html
indexId: 27a8fe01add9885aab5d1b44613b11af04be51dc155a08d2c3fee6fcb416aa8879
---
# 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中定义。
