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