8000 GitHub - tonylokko/audio-wasm: Rust and Javascript example on audio recording to a bucket with effects.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tonylokko/audio-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audio-wasm

Rust and Javascript example on audio recording to a bucket with effects.

This is an example i put together on how to use a wasm module from inside an s3 bucket to write to an s3 bucket. Using client-side javascript is a really useful tool for static sites and you can do a lot of complicated things but webassembly allows us to use other languages to do a little more.

The tool does the following. We host it all in an s3 bucket - in my case i used a datacore swarm one because i had access to it but any s3 compatible storage should do. The javascript side of the house handles the following:

  • we use the javascript aws s3 sdk to handle the upload with chunking done via the wasm implementation.
  • the effects and presets are set using javascript - processing done by rust

Usage -> The initial storage configuration for the bucket that we're going to store data in looks like this.

initialstorage

Once we've connected the recording screen looks like this

initialrecording

When we click on start recording the webbrowser will prompt for what microphone to use.

micgrab

Then once its allowed the audio stream starts to send to the wasm module with any effects we have enabled.

When the user clicks stop recording it saves to the bucket which then creates the file. Any file in the list can be played back or deleted from the front page.

playbackordelete

About

Rust and Javascript example on audio recording to a bucket with effects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0