HELPME!-Can you use the microphone in construct 2?

Discussion and feedback on Construct 2

Post » Wed Feb 27, 2013 8:14 pm

Hello, my question is this.

Is there any plugin that option to interact with the microphone?

I would like to perform for example, actions like this:

The player should blow into the microphone, this recognition of the blow, and it happened in an action game.

Is there any plugin?

How do you install a plugin?


I have the free edition version r120.
B
7
S
2
Posts: 177
Reputation: 1,484

Post » Wed Feb 27, 2013 8:24 pm

What's your target platform? The HTML5 navigator.getUserMedia() API exposes access to the microphone, but support is currently very patchy (I think limited to Chrome only under Win, not sure about mobile platforms)
B
8
S
2
G
3
Posts: 83
Reputation: 2,668

Post » Wed Feb 27, 2013 8:33 pm

The platform that is intended application is for Google Chrome.

If possible I said, as I install the plugin, and what?
B
7
S
2
Posts: 177
Reputation: 1,484

Post » Wed Feb 27, 2013 9:12 pm

Helpme please!!
B
7
S
2
Posts: 177
Reputation: 1,484

Post » Wed Feb 27, 2013 9:32 pm

Could someone answer me?

The application is designed for Google Chrome.
What I look for is a plugin that use the microphone.
For example, the user blows into the microphone, and do any action.

If there is a plugin so, can you tell me where I download and how to install?

I have the free version 120 of construct 2.
B
7
S
2
Posts: 177
Reputation: 1,484

Post » Wed Feb 27, 2013 10:09 pm

I don't think there's such a plugin existing atm.
I'm not even sure there's any library or support in browser to allow you to detect and use the microphone as an input source (produce a sound in the microphone to trigger an action in game) at the moment.
You may want to try and use Construct2's SDK to make one.

Please don't bump/be impatient.
If you have more informations to add, use the "Edit post" option in "Post options" on the last post you made.
Bumping is tolerated every 24 hours, not every 24 minutes.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Thu Feb 28, 2013 9:20 am

The getusermedia API is your friend: http://dev.w3.org/2011/webrtc/editor/getusermedia.html

It is afaik only supported by Chrome, Safari and Android Browsers atm. Implementation isn't really that hard if you know some js. If I would have time to study the Construct 2 SDK docs I could implement it. Maybe the next week...
B
15
S
4
G
2
Posts: 16
Reputation: 2,129

Post » Thu Feb 28, 2013 10:20 am

I just hacked together a C2 plugin that exposes access to the microphone based on the approach used at http://webaudiodemos.appspot.com/input/index.html

It works, but it's currently completely unusable in a production environment:
For starters, it only works in the dev build of Google Canary and, even then, you first have to manually configure the Web Audio Input setting via chrome://flags/ (you also have to manually accept access to the microphone when prompted when the page loads). And, because it's running in Canary, it crashes every 30 secs or so.

So, technically possible? Yes. Usable? No.

I'd wait a year or so and see what the adoption of getUserMedia is like then.
B
8
S
2
G
3
Posts: 83
Reputation: 2,668

Post » Thu Feb 28, 2013 5:48 pm

Can't we use a third party recorder and then save it as an audio files and then properly sync it with what ever you needed it to. I believe that what i did when i still have Liveswif animation program
B
7
S
2
G
3
Posts: 58
Reputation: 2,284

Post » Fri Mar 01, 2013 12:04 pm

@amariscal

I am using the following plugin:

http://www.scirra.com/forum/plugin-microphone-record-compress_topic54970.html

Developed by Pode.

It works with "Flash".
B
90
S
5
G
8
Posts: 165
Reputation: 7,648

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans and 14 guests