Is it possible to get a stereo audio feed into Chrome? - javascript

For instance, if I have a stereo audio interface/sound card, could I get the left and right channels separately into javascript for realtime-ish audio processing of stereo audio?

I think it's actually not possible to get stereo audio into Chrome. According to the following URL: https://bugs.chromium.org/p/chromium/issues/detail?id=453876
Unfortunately we don't support [...] multiple devices at the moment.

Related

Can a web browser use multiple audio sources concurrently?

I have a computer with multiple audio out ports on the sound card. Can I use the web audio api or something to play different audio source to different output ports?
For example, in a browser, load 3 tracks and send each track to a different audio output port on the sound card.
Hmm. The channel splitter seems to have more fine grained control of audio channel. I’m not sure if that is what I would need though. One multi channel audio source to multiple monos?
https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode

Is there a way to get the audio playing from the speakers of a device

So I've been battling with an issue for a while now, I've been trying to get the audio playing through the speakers of a device using the MediaDevices singleton object in javascript.
I'm trying to achieve something similar to Shazam or snapchat where they can both get the audio playing from the speakers of a device and also from a microphone so that I can for instance be taking a video using my microphone and video cam and also streaming the sound playing from the background.
I'll like to know if this is possible because I tried using devices with kind of "audiooutput" and deviceId of "default" accessible through the enumerateDevices method assuming that's the device's output speaker but I still get the audio from the microphone even when using the device kind of "audiooutput".
Note: I'm able to combine multiple audio nodes successfully.
I'm not asking for a do it for me answer, just a theory of how to go about implementing it if it's possible in javascript.
Thanks in advance :D
No, this isn't possible via the Web Audio API. Not all platforms even support this capability.
On some platforms, you can use getDisplayMedia() and get audio with it, but compatibility isn't great right now.

How to display arraybuffer video stream data with out using Media Source Extensions?

We are working on video player. We area receiving video stream through web sockets as a arraybuffer. We can able to play video by using MSE. But we had a probelm in IOS browsers which they dont support MSE and we dont want to use HLS. Any other way we can play video using arraybuffer data with out unsing MSE?

createjs SoundJS plays mono sound instead of stereo

I use createjs.Sound to play short sound for my project. I wasn't able to use .mp3 format file and converted it to .ogg format. .ogg is playable, but sound is mono channel (I hear only in one side of headset). When I tried to play same file with VLC player, it sounds stereo channel (same file). I understood that have no problem with conversion of file and problem may be in configuration of SoundJS.
Can anyone advice how to configure SoundJS to play stereo channel audio?
There was a bug in a version of SoundJS - maybe it's because of that (depends on the version you are using...). Check the SoundJS-Github page for further information: https://github.com/CreateJS/SoundJS/issues/182
You can also try to change the pan property: http://www.createjs.com/docs/soundjs/classes/AbstractSoundInstance.html#property_pan

Recording video HTML5

I want to be able to record videos with audio using HTML and Javascript.
After some research i can get video streaming with getUserMedia. Also There is WebRTC for recording but as far as i understood its not yet implemented in desktop browsers (only mobile browsers support it). So now i can just capture video, but i cant save it to server or record it.
What other options do i have ?. Does anyone knows a good flash alternative or HTML5 alternative that allows me to capture and save video to server with audio and also has maximum time of recording
Full disclosure: I work for Ziggeo.
When it comes to WebRTC, here is the rundown for browsers supporting it:
on Chrome and Opera, you have to record audio and video separately and encode them yourself in JS; then, send them to your servers and transcode them using e.g. ffmpeg to mp4s and other target formats
on Firefox, you can get a webm object for video and audio combined and send it to your servers.
For all other browsers and older versions of the ones mentioned you'd need to fall back to Flash recording which usually is based on RTMP and flv.

Categories