Rexording audio from a microphone

Get help using Construct 2

Post » Tue Feb 11, 2014 5:29 am

Nice and simple question, what's the easiest way to record audio from the microphone ? I know that the ability is potentially there as you can address the microphone and tou can save info with the engine to file.

if anyone knows of a plugin even that will spit out an MP3/M4A that would even be usable for my needs :-)
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Fri Sep 12, 2014 10:57 am

Yes please; even better, the open source Opus codec would be better for storing audio files (preferably on a server).
I'd even pay good money for a plugin like this for C2.
B
9
S
3
Posts: 26
Reputation: 794

Post » Fri Sep 12, 2014 11:49 am

@Milupa5: You guys should check the User media plugin. That's what you need to get the microphone input.

Nevertheless, for recording/saving/loading on server it's far more complex than you believe and no plugin will help you out due to HTML5's nature.
You need to find your own way to put the "audio" file to a string/data format (this possibly could use a plugin, none exist for that as far as I know) and need to have AJAX calls to scripts on your server that will handle its being saved/loaded.

Look the how do I FAQ for AJAX usage example.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,311
Reputation: 71,086

Post » Sat Sep 13, 2014 2:19 am

Kyatric wrote:@Milupa5: You guys should check the User media plugin. That's what you need to get the microphone input.

Nevertheless, for recording/saving/loading on server it's far more complex than you believe and no plugin will help you out due to HTML5's nature.
You need to find your own way to put the "audio" file to a string/data format (this possibly could use a plugin, none exist for that as far as I know) and need to have AJAX calls to scripts on your server that will handle its being saved/loaded.

Look the how do I FAQ for AJAX usage example.

i totally DON'T get how user media work
just want simple way to record sound to data(json?base64?whatever!)
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Sat Sep 13, 2014 10:57 am

I don't think it's actually possible to record audio to a file with User Media. I looked at it at length, and couldn't figure it out. Obviously saving it on a remote server is a different animal and would be the next step..

fongka2 wrote:
Kyatric wrote:@Milupa5: You guys should check the User media plugin. That's what you need to get the microphone input.

Nevertheless, for recording/saving/loading on server it's far more complex than you believe and no plugin will help you out due to HTML5's nature.
You need to find your own way to put the "audio" file to a string/data format (this possibly could use a plugin, none exist for that as far as I know) and need to have AJAX calls to scripts on your server that will handle its being saved/loaded.

Look the how do I FAQ for AJAX usage example.

i totally DON'T get how user media work
just want simple way to record sound to data(json?base64?whatever!)


I
B
9
S
3
Posts: 26
Reputation: 794


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests