setPlaybackSpeed abstract method

Future<void> setPlaybackSpeed(
  1. int speed
)

设置当前音频文件的播放速度。

你需要在 open 后调用该方法。

  • speed 播放速度。推荐取值范围为 30,400,其中: 30: 0.3 倍速。 100: 原始速度。 400: 4 倍速。

Returns 方法成功调用时,无返回值;方法调用失败时,会抛出 AgoraRtcException 异常,你需要捕获异常并进行处理。详见错误码了解详情和解决建议。

Implementation

Future<void> setPlaybackSpeed(int speed);