windows_audio

A simple windows audio plugin for flutter

Implementation

Add the flutter plugin to your pubspec.yaml file

dependencies:
  windows_audio: ^1.0.0

Firstly, import the flutter plugin

import "package:windows_audio/windows_audio.dart";

Then create an instance of the player

final Player = WindowsAudio();

Finally load the audio and play it

Player.load("assets/audio/filename");
Player.play();

Make sure that you have added the audio to the pubspec.yaml file

assets:
 - assets/audio/filename

This plugin supports wav, mp3 and ogg files.