Music playing API

I am trying to get my Ionic/ngCordova app to include small segments of sound files and I have added the ngCordova media plugin, made sure to have the source file included and injected the $ngCordova and $ionicLoading dependencies and yet I keep getting a console error that the Media object is not defined and I have tried many different syntex variations and even emulated it to both IOS and Android and I do not know why I can’t get the sound to play