In-app Chat
On this page

Class

2026-07-06
ZIMAudioErrorZIMAudioANSParam
ZIMAudioRecordConfigZIMAudioPlayConfig

ZIMAudioError

Error messages generated by the SDK.

Details

It can be used to record the error type and error information generated by the SDK, check the error code table on the ZEGO official website, and seek assistance from ZEGO technical support.

Declared in ZIMAudioDefines.h

Properties

code

code
@property ZIMAudioErrorCode code

Error code.

message

message
@property NSString *message

Error message.

ZIMAudioANSParam

Noise suppression configuration.

Details

Includes noise suppression mode.

Declared in ZIMAudioDefines.h

Properties

mode

mode
@property ZIMAudioANSMode mode

Noise Suppression Mode (ANS).

ZIMAudioRecordConfig

Recording configuration.

Details

Configure the recording file output path and maximum recording time during recording.

Declared in ZIMAudioDefines.h

Properties

filePath

filePath
@property NSString *filePath

The output path of the recording file. Currently, only full absolute paths with the suffix .mp3 or .m4a are supported. When passing in file paths in other formats, the SDK will throw an illegal file path error.

maxDuration

maxDuration
@property unsigned int maxDuration

The maximum recording time, the default is 60000 ms, which is 60s. The unit of this parameter is milliseconds, and the maximum value does not exceed 120000.

ZIMAudioPlayConfig

Playing configuration.

Details

Configuration specifies the audio file path and routing type that currently need to be played.

Declared in ZIMAudioDefines.h

Properties

filePath

filePath
@property NSString *filePath

The absolute path of the file needs to be played. Currently, only full absolute paths with the suffix .mp3 or .m4a are supported. When passing in file paths in other formats, the SDK will throw an illegal file path error.

routeType

routeType
@property ZIMAudioRouteType routeType

Starting audio routing type when playing. The default playback device is the speaker.

Previous

Function Overview

Next

Protocol

On this page

Back to top