Skip to content

This repository contains example projects that make use of the High Fidelity Spatial Audio API.

License

Notifications You must be signed in to change notification settings

luiscuenca/Spatial-Audio-API-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spatial Audio API Examples

This repository contains example projects that make use of the Spatial Audio API.

These example projects augment the API walkthrough guides you can find at highfidelity.com/api/guides.

We would love your contributions! If you're interested in submitting an example application of your own, open a pull request against this repository.

The examples Directory

😎 The examples directory of this repository contains complete, commented, tested example projects that import the High Fidelity Spatial Audio Client Library.

Plain HTML/JS Examples

Listen to a simulated conversation between bots as they walk around you in this virtual space.

A more complicated version of the simple Web App, with more user controls and UI.

A basic, but complete, 2D multi-user spatialized sound demo, in less than 600 lines of code.

Corresponds to the "Build a Simple Web App" guide at highfidelity.com/api/guides/web/simple.

Similar to the "simple" example above, except this one allows a user to select their audio input/output devices dynamically.

This project exemplifies how to make use of User Data Subscriptions in projects that use the Spatial Audio API.

A multi-track spatial audio demo.

Multiple users can connect simultaneously, move around and communicate using spatialized audio.

NodeJS Examples

Corresponds to the "Make a DJ Bot" guide at highfidelity.com/api/guides/nodejs/djBot.

Add bots/npcs to a space which can be given specific properties or programmed to carry out actions.

Corresponds to the "Build a Web App with the Spatial Audio API, Express, and EJS" guide at highfidelity.com/api/guides/nodejs/express.

Corresponds to the "Get a JWT" guide at highfidelity.com/api/guides/misc/getAJWT.

A basic webapp that makes use of the NodeJS version of the Spatial Audio API with Webpack. The functionality of this webapp matches that of the "simple" example above.

The experiments Directory

πŸ‰ The experiments directory of this repository contains experimental example projects that import the High Fidelity Spatial Audio Client Library. These examples may not be documented as thoroughly as the above examples. Enjoy!

Plain HTML/JS Experiments

Experience High Fidelity Spatial Audio with 2D video chat powered by TokBox.

Inspect and debug in 3D any Hifi Audio Space. powered by THREE.js

NodeJS Experiments

Move around as dots in a 3D space with spatial audio.

Explore various environments connected in a grid with spatial audio between them.

Drop the Spatial Microphone in a High Fidelity Spatial Audio Space to record the audio in that Space from coordinates (0, 0, 0). The Spatial Microphone saves audio recordings in .wav format by default.

A comfortable virtual 3D audio environment for speakers and an audience that makes use advanced of High Fidelity's Spatial Audio API.

A Web application that lets users watch synced YouTube videos together while chatting in a virtual 3D environment using High Fidelity's spatial audio technology.

Discover the entire world in 3D with others with High Fidelity Spatial Audio, Twilio and Google Street View.

Experience High Fidelity Spatial Audio with 2D video chat powered by Agora.

Experience High Fidelity Spatial Audio with 2D video chat powered by Daily.

Experience High Fidelity Spatial Audio with 2D video chat powered by Twilio.

Minecraft Experiments

Experience High Fidelity's spatial audio while playing Minecraft: Java Edition with others.

Audio Environments

Featuring a combination of HTML/JS and NodeJS

Explore a 3d auditory experience with your friends.

Virtual office with walls and private rooms.

Live Demos

This repository employs GitHub Pages, which means that you can look at some of these example applications live by browsing this page.

None of the example projects committed to this repository contain an embedded JWT, which means connecting to the Spatial Audio API Server from these live examples will not work.

For more information about JWTs, see the "Authorized Access and JWTs" section of our Spatial Audio FAQ.

About

This repository contains example projects that make use of the High Fidelity Spatial Audio API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published