setPlaybackSpeed

fun setPlaybackSpeed(rate: Float): Boolean

Sets the audio playback speed.

Return

true if the speed is set successfully; false otherwise. If rate is out of range, this returns false.

Parameters

rate

The audio playback speed rate in the range [0.25f, 4.0f].