Code Monkey home page Code Monkey logo

audiostreamer's People

Contributors

alangumer avatar havvy avatar jwdeitch avatar noamtcohen avatar spabst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audiostreamer's Issues

Safari support?

It works on chrome, but the button does nothing on Safari. Any suggestions?

Chrome crashes after few minutes with re-sampler

The re-smapler code works after the last change and I could use it with sample rate of 8000 (128kbps), also the delay is better ; however, the Chrome browser crashes after a few minutes.
The chrome doesn't leave anything that I could catch in debug, it just moves suddenly to the "Ah snap. something went wrong..."
I tried increasing the buffer with no help, but what I did notice is that if the page I am using has additional traffic, like a player streaming it crashes much faster and when reverting to without the re-sampler, it doesn't happen.
Any idea how to debug it?

Strem data to clients

Hello! Thank you for such an awesome streamer. Could you tell if there is possible to record data as well as stream it to other clients?

how to change wss to http post?

I want to use good examples.
However, I would like to change what is wss to http post using ajax or axios.
In site.js, is the client sent as wss, resampler-worker.js in resample to postMessage, and delivered to its own server?
I tried with axios directly but it does not work. What should I do?

no recording

hi, when I click on start recording on the client side just creates an empty wav-file on the server side. I have installed the two required modules but I am not that experienced with node.js.. what could I possibly do wrong? thanks

Error while saving Mp3

There's a problem on lame encoder when encoding to Mp3 returning segmentation fault. I've just downloaded the project files and changed config.json to Mp3. Is there any configuration in lame that should be done prior to executing the code?

How to use the resampler?

Hi Noam

I noticed you have added a re-sampler code, I tried loading it on the client page together with the site.js, etc...
In the server.js, still when I change the sample rate to anything that is 44100, the sound is distorted, because its working only on the playback.
Its a great solution and with the option to lower the bit rate (lower the sample), it can be economic and more reliable. Right now its using more than 700kbps.

Thanks,
Yaki

Directly play on the server

Hi, thanks for the solution, simple and nice.
I need to play the sound in real time instead of saving it. Any suggestions, how can I achieve it?

Regards

Listening to the audio

The audio is being saved, but how can I actually listen to the audio? Have you build another page where I can "press play" and listen to the live stream?

Won't run

Hi, I downloaded a copy of this project and installed it on my localhost to test. When I run the server.js with nodejs a browser tab opens automatically to https://localhost:9191 and nothing loads from the server. I see a message on the browser screen saying "Cannot GET /", and there's no output in the console from the server. I tried this in Firefox and Chrome, same error in both.

Any idea why?

I also noticed that in site.js for the client you have this:
socket = new WebSocket('ws://localhost:9000/demo');
but the server listens on 9191, so I'm not sure why it points to port 9000 over an insecure connection (ws://).

Saving chunks of audio instead of a single file

Hello,

I want to process the live stream coming from the browser and for that, I'll need to save small chunks, say 2 seconds each of the audio.
The end result might look something like 1.wav, 2.wav, 3.wav etc. where every file is 2 seconds long.

I tried different approaches but was unable to make it work properly.

I would appreciate any help :)

Thanks!

Max record time

noamtcohen, thanks for this great project! I would like to know though, is there anyway to set a max record length time / file size on the server side js?

Thanks

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.