Skip to the content.

Hifi-Spatial-API-Example-Office

"Hifi Spatial API Example Office" Example Screenshot

Hifi Spatial API Example Office - a spooky audio environment featuring:

Usage

Setup

  1. Install NodeJS v14.15.x
  2. Install npm
    • MacOS: If you encounter admin priviledge errors, add prefix=/Users/yourusername/.npm-global to your ~/.npmrc (or another prefix)
  3. Run npm install in the utils directory
  4. Create your space on the High Fidelity’s Spatial Audio API Developer Console
  5. Create a JWT in that space.
  6. Create an admin JWT in that space.
  7. Edit client\index.html to set HIFI_AUDIO_JWT to the client (non-admin) JWT.
  8. Deploy the client directory to your webserver of choice.
    • For example, to use the node webserver, change to the client directory, type npm install -g http-server, then type http-server

Install the audio environment

This installs attenuation zones for each room by using the High Fidelity RESTful audio environment management api

  1. Go into the utils directory.
  2. Type npm run update:zones -- -s <your space id> -j <your admin JWT>

Connect and Play

  1. Go to the URL to which you deployed the client directory. For example, (http://localhost:8080/)

Author

Roxanne Skelly