All discussions

Help & Questions

WASM Background Audio

XenoxYT opened this discussion
View on GitHub

Will there be a way to import Audio on the WASM Synapseq version without using a URL (For me it currently doesnt work with cloud services, even when hosted locally on a webserver)?

2 replies

  1. ruanklein replied

    You can host your audio files in any directory that is accessible by your web server.

    For example:
    http://localhost:5000/audio/river.wav

    webserver/
    ├── audio/
    │   ├── river.wav
    │   ├── rain.wav
    │   └── forest.wav
    ...
    

    Spsq:

    @ambiance river http://localhost:5000/audio/river.wav
    
    preset
      ambiance river amplitude 30
    …
    

    Starting web server:

    cd webserver
    python3 -m http.server 5000
    

    If it’s not working when used this way, I need to know how you’re running your web server and the contents of your .spsq file.

  2. XenoxYT replied

    Got it to work by enabling CORS Headers.

Reply on GitHub

This is a static mirror of the SynapSeq GitHub Discussions.