setPlaybackSpeed method
@detail api
@brief Set the playback speed of the audio file.
@param speed The ratio of the actual playback speed than that of the original speed of the audio file in %. The range is [50,200]. The default value is 100.
@return
- 0: Success.
- < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note
- Call this API only when audio is mixing.
- The API is valid for audio file and not PCM data.
Implementation
FutureOr<int> setPlaybackSpeed(int speed) async {
return await nativeCall('setPlaybackSpeed:', [speed]);
}