Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9873 Discussions

How to record audio to Intel Galileo board?

PSomo
Novice
1,210 Views

Hello everyone,

I've been looking into the best way to record a 1min audio file so I can save it on a microSD card. I'll be recording voice notes so quality does not need to be super high. I've done this before with the arduino either using a VS1053 chip that works wonders or the neanderthal way of doing it is simply attach a microphone and record directly to the microSD breakout board in a wav PCM format, not so elegant, audio is bad but it works.

I've seen people talk about using an external USB audio interface and getting into linux's ALSA but for a simple 1 min voice notes it seems like an overkill.

I'm not a skilled programmer and I haven't programmed anything in linux but I wouldn't mind trying if it's something more or less straight forward.

So what is the best way to record simple audio files and store them to the microSD?

1 Solution
Pedro_M_Intel
Employee
265 Views

Hello psruano,

In case you want to use a USB microphone with your Galileo, you will have to first find a microphone compatible with kernel 3.8.7 (which is the kernel used on Galileo). Once you've done it, you will find to find its driver and add it to your image, for this you will have to read and understand the http://www.intel.com/support/processors/quark/sb/CS-035175.htm Intel® Quark&# 153; SoC — BSP Build Guide.

After all that is done, this guide might help you: https://jordilin.wordpress.com/2006/07/28/howto-recording-audio-from-the-command-line/ HOWTO: Recording audio from the command line | A Linux Geek wandering around.

Peter.

View solution in original post

5 Replies
Pedro_M_Intel
Employee
266 Views

Hello psruano,

In case you want to use a USB microphone with your Galileo, you will have to first find a microphone compatible with kernel 3.8.7 (which is the kernel used on Galileo). Once you've done it, you will find to find its driver and add it to your image, for this you will have to read and understand the http://www.intel.com/support/processors/quark/sb/CS-035175.htm Intel® Quark&# 153; SoC — BSP Build Guide.

After all that is done, this guide might help you: https://jordilin.wordpress.com/2006/07/28/howto-recording-audio-from-the-command-line/ HOWTO: Recording audio from the command line | A Linux Geek wandering around.

Peter.

PSomo
Novice
265 Views

Thanks Peter!

What if I wanted to record using an electret microphone as an input? Is is possible to create wav files using one as an input?

Cheers.

Pablo.

Pedro_M_Intel
Employee
265 Views

In that case, I believe you will need extra circuitry to make it work, it may be a little bit simpler than using a USB microphone, but it would still be a complex but interesting project.

Peter.

PSomo
Novice
265 Views

Could you point me in the right directon? I'm looking to save this audio files in the microSD. I've been able to do it in an arduino UNO using a microSD breakout board but what's the best way to save files to the microSD slot included in the galileo? I've read there's no need to use the SPI so what the correct way instead?

Is there a code example to write files to the microsd?

Pedro_M_Intel
Employee
265 Views

The SD card library and examples included in the Arduino IDE should also work to store files on the Galileo's SD card. Have you already tried them?

Peter.

Reply