Giter Site home page Giter Site logo

asifbg-systems / spatial-audio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from livekit-examples/spatial-audio

0.0 0.0 0.0 926 KB

Home Page: https://spatial-audio-demo.livekit.io

License: Apache License 2.0

JavaScript 0.77% TypeScript 99.15% CSS 0.08%

spatial-audio's Introduction

Spatial Audio with LiveKit

Sample Gif

This is a demo of spatial audio using LiveKit. Users join a little 2D world, and hear other users' audio in stereo, based on their position and distance relative to you.

Online demo

You can try an online demo right now at https://spatial-audio-demo.livekit.io/.

Running locally

Clone the repo and install dependencies:

git clone [email protected]:livekit-examples/spatial-audio.git
cd spatial-audio
npm install

Create a new LiveKit project at http://cloud.livekit.io. Then create a new key in your project settings.

Create a new file at spatial-audio/.env.development and add your new API key and secret as well as your project's WebSocket URL (found at the top of http://cloud.livekit.io):

LIVEKIT_API_KEY=<your api key>
LIVEKIT_API_SECRET=<your api secret>
LIVEKIT_WS_URL=wss://<your-project>.livekit.cloud

(Note: this file is in .gitignore. Never commit your API secret to git.)

Then run the development server:

npm run dev

You can test it by opening http://localhost:3000 in a browser.

Deploying for production

This demo is a Next.js app. You can deploy to your Vercel account with one click:

Deploy with Vercel

Refer to the Next.js deployment documentation for more about deploying to a production environment.

Asset credits

This demo uses the following assets:

They're both wonderful artists, check out their work!

spatial-audio's People

Contributors

keepingitneil avatar noahlt avatar lukasio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.