startPlaying method

Future startPlaying(
  1. String path
)

Starts playing the voice.

Implementation

Future startPlaying(String path) async {
  // Uri audioUri = isFile ? Uri.file(audioSrc) : Uri.parse(audioSrc);
  await _player.setAudioSource(
    AudioSource.uri(Uri.file(path)),
    initialPosition: currentDuration,
  );
  _player.play();
  _player.setSpeed(speed.getSpeed);
}