Standalone Audio Inference Locally on PC

Hi all,

I am trying local audio inferencing for the first time. So it is evident that I will miss something out.
Here are the steps that I did:

  1. I trained the model in EI studio with my audio samples and downloaded the C++ library
  2. Cloned the Linux standalone repo and merged the downloaded C++ library contents as advised here
  3. Built the project and ran the binary file

However, it is not able to set the parameters as stated in the output shown below.

cris@T580:~/Downloads/example-standalone-inferencing-linux/build$ ./audio plughw:0,0
cannot set parameters (Cannot allocate memory)

Here is the output for the sound card query.

cris@T580:~/Downloads/example-standalone-inferencing-linux/build$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                  HDA Intel PCH at 0xdc248000 irq 167

Please let me know if I missed out something.

@crisdeodates Hmm… so this comes from snd_pcm_hw_params - do you have any way of seeing if you can record / play anything using the sound card? I see this error sometimes with misconfigured asound, e.g.:

https://bbs.archlinux.org/viewtopic.php?id=256191