audiojs / audio

Class for high-level audio manipulations [NOT MAINTAINED]
MIT License
240 stars 9 forks source link

TypeError: saveAs is not a function #52

Open EugeneHerasymchuk opened 6 years ago

EugeneHerasymchuk commented 6 years ago

The error appeared using Audio library

Audio.load(link).then(audio =>
        audio
          .slice(this.range[0], (this.range[1] - this.range[0]), {copy: false})
          .save('sample-edited.mp3')
      )
Uncaught (in promise) TypeError: saveAs is not a function
    at eval (browser.js?f831:42)
    at new Promise (<anonymous>)
    at save (browser.js?f831:40)
    at Audio.save (core.js?a391:285)
    at eval (HelloWorld.vue?18db:122)

Audio was installed using npm i -S audiojs/audio