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