Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Record audio microphone
Forum Updated to NodeBB v4.3 + New Features

Record audio microphone

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 5.6k 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.
  • T Offline
    T Offline
    topocc
    wrote on last edited by
    #1

    Hi I have a question is it possible to record audio from the microphone and save it in database, for later playback.

    in case if you can as I can do it or I have to use.

    I was thinking about using ffmpeg

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Yes you can. Have a look at "QAudioInput":http://qt-project.org/doc/qt-4.8/qaudioinput.html to get started, and feel free to ask more questions if you need help :)

      Basically, you need:

      QAudioInput, to convert sound into bytes

      A 3rd-party library (like FFmpeg) to convert bytes into an audio file

      A database driver (like "Qt's SQL drivers":http://qt-project.org/doc/qt-4.8/sql-driver.html ) if you want your program to store it in a database. You don't need this, if you store the audio files directly on your hard disk -- just use "QFile":http://qt-project.org/doc/qt-4.8/qfile.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • T Offline
        T Offline
        topocc
        wrote on last edited by
        #3

        JKSH hello, well I'm using mysql, with respect to the subject there will be an example.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hello topo1, there is already an example for using QAudioInput in the link I provided. Please try it first, and let us know what you learnt.

          Also, could you tell us:

          What experience do you have with Qt?

          What experience do you have with QIODevice?

          What experience do you have with using 3rd-party libraries in your program?

          After that, I'll be happy to provide some more examples.

          [quote author="topo1" date="1348517254"]JKSH hello, well I'm using mysql[/quote]Then you need to build the MySQL plugin for Qt. You can find out how in the "official guide":http://qt-project.org/doc/qt-4.8/sql-driver.html#how-to-build-the-qmysql-plugin-on-windows , or search for "MySQL" in this forum (e.g. http://qt-project.org/forums/viewthread/18828/ )

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vinothrajendran4
            wrote on last edited by
            #5

            Hai JKSH , Can you please tell how to record speaker output to a file.Am using Qt 4.7.4.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vinothrajendran4
              wrote on last edited by
              #6

              Hai JKSH , Can you please tell how to record speaker output to a file.Am using Qt 4.7.4.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vinothrajendran4
                wrote on last edited by
                #7

                Done!!!!!!

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vinothrajendran4
                  wrote on last edited by
                  #8

                  Done!!!!!!

                  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