Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How do I select the top microphone on iOS
QtWS25 Last Chance

How do I select the top microphone on iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
audio deviceaudio recording
2 Posts 2 Posters 296 Views
  • 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.
  • J Offline
    J Offline
    Jake7373
    wrote on 21 Aug 2023, 17:40 last edited by
    #1

    I'm having some trouble finding documentation on how to select the top front microphone on iOS using QT. How is it done?

    The following code:

    QList devices = QMediaDevices::audioInputs(); for(const auto& deviceInfo: devices) { qDebug() << "Device name:" << deviceInfo.id(); qDebug() << "Supported sample rates:" << deviceInfo.minimumSampleRate()<< "; " << deviceInfo.maximumSampleRate(); qDebug() << "Supported channel counts:" << deviceInfo.minimumChannelCount() << "; " << deviceInfo.maximumChannelCount(); qDebug() << "Supported codecs:" << deviceInfo.supportedSampleFormats(); qDebug() << "--------------------------------"; }

    only outputs one device which clearly isn't true:

    Device name: "com.apple.avfoundation.avcapturedevice.built-in_audio:0" Supported sample rates: 1 ; 96000 Supported channel counts: 1 ; 16 Supported codecs: QList(UInt8, Int16, Int32, Float)

    I need to know how I select the top microphone instead of the (default) bottom microphone.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wadu
      wrote on 20 Jun 2024, 12:12 last edited by wadu
      #2

      How can I select the top front microphone on an iOS device using Qt? I’m currently using some code to list the available audio input devices, but it only detects a single default microphone. I need to find a way to specifically choose the top front microphone instead of the default bottom one for my application. Could someone explain how to achieve this or point me to the relevant documentation?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved