Record audio only

189 views
Skip to first unread message

John Burch

unread,
Jan 12, 2016, 3:33:22 PM1/12/16
to kurento
Hi,

How would you record audio only, ideally to a mp3 file rather than a webm file, and only request permission for the microphone using the Kurento JS libraries.

Searched everywhere but can't find an answer.

Many thanks in advance

John

Ivan Gracia

unread,
Jan 13, 2016, 5:11:19 AM1/13/16
to Kurento Public
There is no ready example for JS, but it's easy to adapt any of the tutorials for that. Which are you planning to do, JS or Node?

There is, however, a Java recording tutorial that lets you choose which type of media to record.

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Burch

unread,
Jan 13, 2016, 6:00:43 AM1/13/16
to kurento
Many thanks, that is exactly what I wanted in the JS index.js file, function getConstraints();

Ivan Gracia

unread,
Jan 13, 2016, 6:21:02 AM1/13/16
to Kurento Public
Great to hear that!

Ivan Gracia


John Burch

unread,
Jan 26, 2016, 9:08:14 AM1/26/16
to kurento
Just in case anybody else is trying to do this. You also need to set an option mediaProfile of 'WEBM_AUDIO_ONLY' in the elements passed to pipeline.create.

Attached is the complete index.js for the kurentu-recorder javascript tutorial. This will only record audio.


index.js

Ivan Gracia

unread,
Jan 26, 2016, 9:41:00 AM1/26/16
to Kurento Public
Thanks for sharing that! Perhaps you should make a pull request based on those changes, if you'd like, as it will definitely show others how to correctly do that in JS. There's a Java version of the kurento-hello-world project called kurento-hello-world-recording, which does exactly that.

Ivan Gracia



On Tue, Jan 26, 2016 at 3:08 PM, John Burch <johnb...@googlemail.com> wrote:
Just in case anybody else is trying to do this. You also need to set an option mediaProfile of 'WEBM_AUDIO_ONLY' in the elements passed to pipeline.create.

Attached is the complete index.js for the kurentu-recorder javascript tutorial. This will only record audio.


Reply all
Reply to author
Forward
0 new messages