Audio Analyser using Sound CARD and Raspberry Pi


5 posts
by gecb1609 » Tue Jun 06, 2017 9:45 am
I want to make a project to analyse the realtime Audio Siignal using Raspberry Pi. Here the Audio Signal to be input to Raspberry pi using a Audio Card. Any advise on which Audio Card to use and its libraries. Any demo code is highly appreciated.
Posts: 3
Joined: Tue Jun 06, 2017 9:37 am
by flatmax » Tue Jun 06, 2017 12:57 pm
Hi there,

You can find a short list of some available cards here.

Personally I like programming in C++ and use either Jackd or ALSA.
For Jackd, there is an example audio processing client here. All you have to do is change the TestJackClient::processAudio method to what you want it to do ... that should be enough for your to test it and if you like it you can make it more yours !
The procedure to test would be compile it, then start jackd then start the test jack client.

For ALSA, you could make your own plugin. For that I like to use this class here. It is more involved, but once you have it compiling, you can install it in the ALSA plugins directory and run it with any ALSA program. Example command syntax using aplay is like so :
aplay -D yourplugin yourFile.wav

hope that helps.
Matt
Zero sound card for the Pi - live now on kickstarter : http://kck.st/2rwkQMH
Sound card for the Raspberry Pi with inbuilt microphone : http://www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card : http://www.audioinjector.net
User avatar
Posts: 297
Joined: Thu May 26, 2016 10:36 pm
by gecb1609 » Thu Jun 08, 2017 12:27 pm
Hi Matt,
Many thanks for your reply.
I need a audio card where I can provide the SPDIF IN , and analyse this SPDIF IN using Raspberry Pi.

My Kind Regards.
Posts: 3
Joined: Tue Jun 06, 2017 9:37 am
by flatmax » Fri Jun 09, 2017 1:49 pm
OK - yes, once you set up SPDIF, it should show up as just another ALSA device (JAAD). So there should be a nice simple fast track for you :)

Matt
Zero sound card for the Pi - live now on kickstarter : http://kck.st/2rwkQMH
Sound card for the Raspberry Pi with inbuilt microphone : http://www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card : http://www.audioinjector.net
User avatar
Posts: 297
Joined: Thu May 26, 2016 10:36 pm
by gecb1609 » Mon Jun 19, 2017 6:28 am
Many thanks,
This will indeed help me..
Posts: 3
Joined: Tue Jun 06, 2017 9:37 am