How do I record STEREO audio?

0 favourites
  • 7 posts
From the Asset Store
Dwarf - Voice Pack
$6 USD
60% off
468 Dwarf vocal sounds recorded with a professional voice actor
  • I want to record binaural audio so I bought a special microphone. Unfortunately, the audio recorder built into Construct appears to only be mono!

    Is there any way to record stereo audio?

    UPDATE: I should have been more specific in my initial question. I am looking for a way to record stereo audio using Construct 3. (Even if I have to use the Javascript feature.) It's part of a more extensive program.

  • Audacity is an excellent, free, and open source, audio recording software that should be able to do what you want.

  • Best I can tell there isn’t a way to select between mono and stereo recording in construct. You’ll have to use JavaScript to do it at a lower level. It has nothing to do with construct at that point. In fact construct may just add some complexity to do it.

    Google is your friend to find examples of maybe some libraries that handle that.

    Best I can tell it involves requesting access to the microphone, creating a web audio context with stereo, use the microphone as a source, that sends chunks of raw audio to an array. Then use a library or something to encode it as some sound format.

    Doable but could take some time to do. Best case you’ll find some code you can drop in and use.

    I’m a fan of trying to find a way to do stuff. But you have to weigh the effort to do it vs shifting to a different idea.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello! use audacity.(you can export to mp3 wave ogg ect. record you'r sound save it if

    you whant and export them to mp3 ogg wave or other(mp3 work in construct normaly)

    when your file 'sound ' is convert import him on construct.

  • Thanks for all the replies!

    I should have been a little more specific about what I need to do. I have written a little tool that does two things:

    1) It records audio from my microphone

    2) It starts a timer, so when I press keys on the keypad I can save the timestamps, and the key values, in a JSON file.

    I have another program that starts a timer and PLAYS the audio files. Then I can look at the JSON timestamps to "sync" the audio file with my program. I have this working already, but the audio files are Mono, and Stereo would be much better.

    Is it possible to launch Audacity from Construct 3? I wonder if the timing would be a little inconsistent, though.

  • Like I said you can probably do it with js. You'd effectively be making at least parts of three plugins: "audio", "user media" and "video recorder". All to just add stereo recording, which it looks like is possible to add but I'm getting that from various sources when googling about it. It still is more work than I'm willing to do at this point even to test to see if you can record in stereo. Worst case the browser only has mono recording, or you have to handle setting it up differently for each export type.

    You can run other programs from a construct project with a nwjs export, but antivirus programs may complain, and then there's the matter of knowing where audacity is installed to run it. Unless you bundle it with your program that is. But the process of running a program, having it do something in an automated fashion and then feeding the result back to your original program is a very hard problem to solve, even if it's even possible. html5 and javascript within nwjs isn't the right tool for that job.

  • I misunderstood, running another program as part of a construct app is probably not feasible.

    As rojohound said, you can try looking into JavaScript to record in stereo.

    Personally I would just look into creating the audio file and accompanying data file with Audacity by itself, and importing those for use in construct rather than using construct for both asset creation and playback. Unless the goal is for the end user to be able to record and create their own content, then that obviously wouldn't be ideal.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)