autocar / voice_message_player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voicey - Flutter voice message player

Demo

Voicey is a flutter package to play voice messages in chats. Also, you can sicking by dragging on voice noises.

Platform Support

Android iOS MacOS Web
✔️ ✔️ ✔️ ✔️

Installation

First add voicey to your pubsbec.yaml file:

dependencies:
  voice_message_package: <latest-version>

Next, get package from pub dependencies:

flutter pub get

How to use

All you need is pass your audio file src to VoiceMessage widget:

VoiceMessageView(
  controller: VoiceController(
    audioSrc: 'https://dl.musichi.ir/1401/06/21/Ghors%202.mp3',
    maxDuration: const Duration(seconds: 0),
    isFile: false,
    onComplete: () {},
    onPause: () {},
    onPlaying: () {},
    onError: (err) {},
  ),
)

Todo

  • [✔️] Cache audio and play from cache.
  • [✔️] Seeking on audio by drag on noises.
  • [✔️] Change playback speed.
  • [✔️] Handle exceptions.
  • dynamic size for voice widget.

License

Licensed under the MIT license. See LICENSE.

📌Find me at www.mehran.monster

Contributing

🍺 Pull requests are welcome!

Don't forget that open-source makes no sense without contributors. No matter how big your changes are, it helps us a lot even it is a line of change.

About

License:MIT License


Languages

Language:Dart 82.0%Language:HTML 12.1%Language:Ruby 4.1%Language:Swift 1.3%Language:Kotlin 0.4%Language:Objective-C 0.1%