I want to run ./encode -t 10 -s test.g711 to get a g711 file on DM365(DVSDK2.1.18)
but it shows error:Failed to create speech device
STEP1:
i followed what someone said, rebuild the kernel integrating the cq93 modeles, and in the speech.c insert sAttrs.soundStd = Sound_Std_ALSA;
so the program can go on, but has another error:Failed to encode speech buffer
STEP2:
in the speech.c, i modify as follows:#define INBUFSIZE OUTBUFSIZE * 2 to #define INBUFSIZE OUTBUFSIZE //* 2
now the program can run without error, but i get nothing,the size of the test.g711 is 0!!!
and i find the before encoding, the InBuff has nothing, it look like the encoder do not read sample from the sound device!!!
so, who can tell me why? how to resolve it ?
THX