Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Hi, I am trying to develop application that record audio from one computer(online) and send it to other. But I am totaly new with audio recording/processing I also don't know what is the best way to send and recive audio data. Some advice how to do right, or some tutorials will be great. Thank you.
do you want to achieve real-time streaming?
Or simply record a audio file and transfer this file?
Actually the approaches are very similar.
To get an overview of QtMultimedia module's audio classes see here.
For recording to file you can use QAudioRecorder class. For a stream approach you should use QAudioInput class.
For sending data over network you can use QTcpSocket (inherits QIODevice) class.
For basic network transfer with QTcpSocket check the Fortune Client/Server example to get an idea how these classes are used. You decide then what actual data get sent over the socket (audio data stream in your case)
But just so you know this is a very hard topic as a beginner (i assume) to start with.
@raven-worx Thank you your response. I want to achieve real - time streaming. And how to get data back from client side I also need to bind QTcpSocket to QAudioOutput ? If it is hard what is right point start with in audio streaming?
And how to get data back from client side I also need to bind QTcpSocket to QAudioOutput ?
The same way.
If it is hard what is right point start with in audio streaming?
First of all i would start with the Fortune Client/server example i've posted to get comfortable with network data transfer. Also you may want to search for other client/server examples.
You can also play around and get convenient with the Qt audio classes and try to achieve some simple tasks, like recording audio (using QAudioInput class) and write it to a file.
After playing around sometime you will notice where you have problems.
Then check the internet if there are already solutions to your problem, if not ask for help here on the forum.
Ok thank you for the help.