Hodgekins's Forum Posts

  • 12 posts
  • No worries!

    In order to use Cordova plugins not included in Construct I followed a tutorial here: https://www.construct.net/en/tutorials/building-mobile-apps-locally-21

    Speech recognition in Construct works perfectly everywhere apart from iOS Safari, so it won't work in iOS apps. This is nothing to do with Construct. Apple won't let iOS Safari access the microphone. To get round this I use a Cordova plugin: https://github.com/pbakondy/cordova-plugin-speechrecognition

    Now when I want to export a project, I export it as a Cordova project. Then in Terminal I run:

    plugin add cordova-plugin-speechrecognition

    cordova platform add ios

    This will generate a workspace you can open in Xcode.

    Hope that's of some use. The tutorial link above really helped me out.

  • I thought I'd solved it by running:

    runtime.objects.Audio.audioContext.resume();

    when I closed speech recognition.

    More weird stuff happens. The sound comes back at a much lower amplitude.

  • This is a pretty specific issue.

    It'll be useful to people trying to use speech recognition in an iOS app.

    iOS Safari doesn't support speech recognition so in order to use speech recognition I've installed a Cordova plugin: github.com/pbakondy/cordova-plugin-speechrecognition

    This works ok. iOS Safari is able to request microphone access & speech recognition permissions and start transcribing audio into speech.

    When I start recognising speech, Construct audio is turned down. The problem is that it doesn't seem to turn back up after I stop recognising speech.

    The only way I've found to get the audio back is to suspend the app by pressing the home button, and then switching back to the app. When you resume the app, something weird happens: the audio turns back up, but also, any audio that had been triggered that didn't play, will play all at the same time on resume.

    I know this is using a third party Cordova plugin so it's not directly related to Construct but does anyone have any information on this? Any tips or hints? Maybe I can use the Web Audio API to turn Construct's audio back on after speech recognition has finished?

    Tagged:

  • Ashley, thanks for checking that. I got it working in the end!

    I followed your tutorial here: construct.net/en/tutorials/building-mobile-apps-locally-21

    And used this Cordova plugin: ourcodeworld.com/articles/read/401/how-to-use-the-speech-recognition-api-in-cordova

    I've tested on an iPad running iOS 13 and it seems to be working ok.

  • dop2000 & Asmodean, thanks for the tips.

    9 patch is exactly what I was looking for! A basic plugin that I didn't look into when I first got into Construct.

    Thanks again :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm only trying to draw the orange bit! I don't want to draw the square outside the orange shape.

  • Does anyone know how I can draw this box using drawing canvas? Is it possible?

    The reason I want to use drawing canvas and not just a sprite is because I'll need to vary the size of the box. I will need the rounded edges to look the same regardless of the size of the box.

    Many thanks :)

    Tagged:

  • On iOS devices, it only works if they have iOS 13. iFrames won't display on iOS 12 or less.

    You can set the iFrame url to: "https://youtube.com/embed/" & Youtube Video ID

  • Hi,

    I'm trying to use speech recognition on iPads and iPhones.

    I've exported the speech recognition demo as an Xcode project and previewed it on an iPhone (running iOS 12) and an iPad (running iOS 13). In both cases the speech recognition plugin reports that speech recognition isn't supported.

    I get the same result if I just use "remote preview" and load the speech recognition demo project in Safari on an iOS device.

    Is there any way to use speech recognition on iOS devices with Construct?

    Tagged:

  • Lovely! Thanks for that :)

    I also just noticed Chadorireborn has a C3 plugin called "jQuery Plugin" so I'll check that out too.

  • , Thanks so much for getting back so quickly on this. I highly appreciate it. At the risk of sounding like a complete muppet, how do I do step 1?

    C3 plugins are in a .c3addon file. I'm not sure how to edit them.

    Apologies if I'm being a "help vampire". I'm having one of those head + brick wall days.

    Cheers,

    Ben

  • Hi,

    I'm trying to connect my game to my Drupal website using Drupal services and the whole mission is giving me a gripping headache.

    I'm using ValerypopoffJS plugin to incorporate Javascript into my game.

    C3 no longer has jQuery as a dependency as mentioned here.

    jQuery would really help what I'm trying to do though. My question is: what's the best and easiest way to include jQuery so I can use it in .js files with ValerypopoffJS?

    Many thanks,

    Ben

  • 12 posts