Recording audio on a website (not from a mic) - audio

I was wondering if anyone knows of a way of recording audio played on a website, for example a client would play a series of sound samples on my site and he/she was able to record it and play it back (still on my website). I found tons of questions/answers of this type but in regards to recording sounds from client's mic not sounds played by a sound card.
SoundCloud has something like that:
http://eu.techcrunch.com/2010/12/01/soundcloud-launches-super-cool-ability-to-record-on-site-and-iphone-app/
In addition I am aware of red5--but I'm not exactly sure how or if it allows recording audio from a sound card. There are also other flv recorders but they all seem to do one thing: record sounds from a microphone through flash.
Thank you very much for your time.

Related

Stream music from streaming platform (Deezer, Spotify, Soundcloud) to Web Audio API

Do any of you, know a way to get the audio stream of a music platform and plug it to the Web Audio API ?
I am doing a music visualizer based on the Web Audio API. It currently reads sounds from the mic of my computer and process a real-time visualization. If I play music loud enough, my viz works !
But now I'd like to move on and only read the sound coming from my computer, so that the visualization render only to the music and no other sound such as people chatting.
I know I can buffer MP3 file in that API and it would work perfectly. But in 2020, streaming music is very common, via Deezer, Spotify, Souncloud etc.
I know they all have an API but they often offer an SDK where you cannot really do more than "play" music. There is no easy access to the stream of audio data. Maybe I am wrong and that is why I ask your help.
Thanks
The way to stream music to WebAudio is to use a MediaElementAudioSourceNode or MediaStreamAudioSourceNode. However, these nodes will output zero unless you're allowed to access the data. This means you have to set the CORS property correctly on your end and also requires the server to allow the access through CORS.
A google search will help with setting up CORS. But many sites won't allow access unless you have the right permissions. Then you are out of luck.
I find a "no-code" work around. At least on Ubuntu 18.04, I am able to tell Firefox to take my speakers as the "microphone input".
You just have to select the good "mic" in the list when your browser asks for mic permission.
That solution is very convenient since I do not need to write platform-specific binding-code to access to the audio stream

Audio out of sync in premiere pro and my audio is have constant framerate. Anybody know how to fix it?

This is the details of the video
when i play my gameplay in vlc media player it plays fine and the audio syncs with the video but when i import the video into premiere pro the audio gets out of sync. i don't know why is this happening. i researched about it and tried converting my video into CFR using Handbrake software but that didn't helped.
I'm thinking that maybe you don't have a setting selecting one your timeline that keeps the audio and video tracks synced. I personally like my timeline settings like this
Let me know if that works, if not maybe try adding a screen recording of the issue or some screenshots?

Why don't hear music after recording (Swift 2.3)

I make a karaoke application. If headphone doesn't plugin app works fine.(my voice and background music record together). it is successful. but I'm the same way with headphone Then I listen to the recording. I can not hear the background music.But I hear the voice clearly.I attached the code below I used:
https://github.com/genedelisa/AVFoundationRecorder
Just a shot in the dark, but it might be the same issue here: How can I record the audio output of the iPhone? (like sounds of my app)
It seems like you can't record the audio your own app plays using AVFoundation, but have to use CoreAudio to get the low level audio signal. Maybe that helps? :-)

How to control Kurento audio recorder quality

We recently built a demo application utilizing Kurento Media Server to record applicant video interview, but the audio quality is not well , some audio is not recognizable and some of it had high pitch noise. We've been test it on several models of PC or Mac, so this should not be device problem.
We've been using RecorderEndpoint with media profile MediaProfileSpecType.WEBM ,and all other setting remain as default.
To fix this problem, we tried:
We upgrade to Kurento 6.2.1 which use Opus as the audio encoder.
Try to using setMaxOuputBitrate of the recorder, we don't see it has improvements or I don't know which bit rate range can be used.
Change SDPOffer to setup a high bit rate audio for Opus which we don't know where to modify
None of it is working so far, so please tell us where to look.
Thanks.
Please check with this recording tutorial. The audio should be fine. Just make sure you are only sending audio, and not video. That should help.
If the audio is not being recorded correctly, I would try and hear what's coming out of your box through your browser. Try and run the hello-world tutorial, with a pair of headphones connected to your box so you don't have echoes.
About #2, if you want to raise the bitrate exchanged between the webrtc endpoint and the recorder, you need to invoke the setOutputBitrate command on the webrtc endpoint.

WebRTC Audio Is completely garbled

Check it out here:
https://webrtc.github.io/samples/src/content/devices/input-output/
All the audio recording sounds like aliens trying to communicate with you. I could of swore WebRTC was working just last week but this site of samples is completely freaking out on both my laptop and my phone.
Does anyone know why the audio is freaking out like that?

Resources