sharawadji
A library for playing spatialised audio localised in embedded Google Street View.
Heavily based on the Sounds of Street View Framework by Amplifon.
Usage
First, you need to create a JSON/JavaScript array containing the soundwalk data. Here's an example of a soundwalk with 2 sounds:
Then you can instantiate Sharawadji
over a Street View instance with the given sounds.
const container = document; // make sure you start the StreetView near the soundsconst mapOptions = position: lat lng pov: heading: heading pitch: pitch ; const map = container mapOptions; // you can toggle debug mode and the optional Web Audio compressorconst options = debug: false compressor: true ;// `sounds` is the soundwalk data objectconst sharawadji = sounds map options;