Class
| ZIMAudioError | ZIMAudioANSParam |
| ZIMAudioRecordConfig | ZIMAudioPlayConfig |
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
@property ZIMAudioErrorCode codeError code.
message
@property NSString *messageError message.
ZIMAudioANSParam
Noise suppression configuration.
Details
Includes noise suppression mode.
Declared in ZIMAudioDefines.h
Properties
mode
ZIMAudioRecordConfig
Recording configuration.
Details
Configure the recording file output path and maximum recording time during recording.
Declared in ZIMAudioDefines.h
Properties
filePath
@property NSString *filePathThe 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
@property unsigned int maxDurationThe 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
@property NSString *filePathThe 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
@property ZIMAudioRouteType routeTypeStarting audio routing type when playing. The default playback device is the speaker.
