Record audio microphone
-
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
-
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
-
JKSH hello, well I'm using mysql, with respect to the subject there will be an example.
-
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/ )
-
Hai JKSH , Can you please tell how to record speaker output to a file.Am using Qt 4.7.4.
-
Hai JKSH , Can you please tell how to record speaker output to a file.Am using Qt 4.7.4.
-
Done!!!!!!
-
Done!!!!!!