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. where to save the output of QAudioRecorder for iOS and Android?
Qt 6.11 is out! See what's new in the release blog

where to save the output of QAudioRecorder for iOS and Android?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 338 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    vudangkhoa2906
    wrote on last edited by
    #1

    I'm trying to implement voice messaging in my app. The idea is to use QAudioRecorder for recording the audio message, and save the output to a file. After recording, upload the file/data to server using QNetworkAccessManager.

    I've been following the example Qt provides for Audio Recorder (https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiorecorder-example.html). My problem is, this example seems to work fine on Desktop. But on Mobile platforms, where should I store the temp file, for Android and iOS? (aka, what should I pass to the setOutputLocation() function, like in the example https://doc.qt.io/qt-5/qmediarecorder.html#details)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Use QStandardPaths to get a suitable folder.

      Note that you will get a valid name but it does not mean that the folder already exists. You will have to create it the first time you want to use it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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