omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Access microphone?

    Pythonista
    microphone objcutil
    2
    3
    4466
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • newtoonie
      newtoonie last edited by

      Is there a way to access the iPad's microphone with objc_util or any other module?

      (I really just want to obtain the loudness that the microphone picks up)

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        something like this
        https://github.com/shaun-h/pythonista-objc-utils/blob/master/Audio Recording.py
        to get the recorder object. then you can use updateMeters() followed by either peakPowerForChannel_(channel) or averagePowerForChannel_(channel). See the apple docs on AVAudioRecorder

        1 Reply Last reply Reply Quote 1
        • newtoonie
          newtoonie last edited by

          Thanks my dude ;)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors