5.13 Local audio file recording parameters


new TRTCAudioRecordingParams(filePath)

This parameter is used to specify the recording parameters in the audio recording API startAudioRecording.

Name Type Description
filePath String

[Field description] storage path of the audio recording file, which is required.
[Note] this path must be accurate to the file name and extension. The extension determines the format of the audio recording file. Currently, supported formats include PCM, WAV, and AAC. For example, if you specify the path as mypath/record/audio.aac, it means that you want the SDK to generate an audio recording file in AAC format. Please specify a valid path with read/write permissions; otherwise, the audio recording file cannot be generated.