ooga04_speaker 0.0.12 copy "ooga04_speaker: ^0.0.12" to clipboard
ooga04_speaker: ^0.0.12 copied to clipboard

Playing audio file

speaker #

Play the specified resource as audio.

Feature #

  • Speaking resources over HTTP(S)
  • Plays audio even when the app is in the background
  • You can define what happens when playback ends (normal or abnormal)
  • There is no way to stop it if it starts in the current version
  • iOS support.

Usage #


  var _speaker = Speaker(onSpeakEnd: () async {
    // Write processing at the speak end.
  });

  await _speaker.play("speaking resource");


  var _speaker = Speaker(onSpeakEnd: () async {
    // Write processing at the all speak end.
  });

 
  await _speaker.plays(["speaking resource1", "speaking resource2"]);

local audio file integration #

pubspec.yaml

flutter:
  assets:
    - audios/example.mp3


  _speaker.play("example.mp3");

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Playing audio file

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ooga04_speaker