Skip to content

audio-load #38

Open
Open
@dy

Description

@dy

Related to audiojs/audio-loader#7 (comment) and https://github.com/dfcreative/app-audio.

Since we have freesound API, we could write a component reading any URL with optional token and returning arraybuffer with (encoded) data.

Like

let load = require('audio-load'),
    decode = require('audio-decode'),
    play = require('audio-play')

load('https://www.freesound.org/people/Sirkoto51/sounds/274153/')
    .then(decode)
    .then(play) 

That would allow for audio to load files easily as well:

let Audio = require('audio')

Audio.load('https://www.freesound.org/people/Sirkoto51/sounds/274153/', {token: xxx}).then(audio => audio.play())

APIs we could enable:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions