I want to implement using QAudioRecorder recording function,
The following code, write a Demo, can run in the ubuntu, after cross-compilation can also run the development board,
Voice file directory under the/workspace,
So simple code that can be generated under ubuntu y111. Wav,
In the development board no this file
#include
#include
#include
#include
Int main (int arg c, char * argv [])
{
QCoreApplication a (arg c, argv);
QAudioRecorder * m_pAudioRecorder=new QAudioRecorder ();
QString fileName="/workspace/y111";
QDebug () & lt; & lt;" FileName: "& lt;
M_pAudioRecorder - & gt; Record ();
Return a.e xec ();
}
Hope bosses to give directions, do not understand why, thank you very much
CodePudding user response:
Use command line search to see if the fileCodePudding user response: