abyf
Posts: 1
Joined: Fri Jan 17, 2020 8:05 am

Sending acoustic sound to the cloud

Fri Jan 17, 2020 8:10 am

Hello,
I am a newbie. I would like to send recorded audio on the raspberry pi to the cloud. I have already configured the Google cloud. Can you lend me a helping hand?

Thank you

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Sending acoustic sound to the cloud

Fri Jan 17, 2020 9:38 am

I think we need more details to be helpful.

- Do you want to do realtime processing of the sound or just storing it ?
- What exactly have you "set up" in the cloud ?
- What programming languages do you know/intend to use ?

PiGraham
Posts: 3939
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Sending acoustic sound to the cloud

Fri Jan 17, 2020 10:26 am

abyf wrote:
Fri Jan 17, 2020 8:10 am
Hello,
I am a newbie. I would like to send recorded audio on the raspberry pi to the cloud.
The first thing you need is an interface to capture audio. The Pi has no audio in channel.

You can use a "USB soundcard" and a an analogue microphone.
You can use a USB microphone
You can use a web cam with built-in microphone
You should be able to use a Bluetooth microphone
There are some i2s audio input devices available

Once you have an audio input you should get an audio input device to use.

Here is a tutorial based on a USB mic.
https://www.seeedstudio.com/blog/2019/0 ... erry-pi-4/

They use arecord from the command line to record PCM audio to a wav file.

There are various ways to compress PCM audio to smaller files and commonly supported formats. mp3 and ogg being two options.

arecord has an option to list available audio devices.
aplay is a simple way to play those wav files.

You could write code in python with pygame to record audio.

https://realpython.com/playing-and-reco ... nd-python/
Last edited by PiGraham on Fri Jan 17, 2020 1:11 pm, edited 1 time in total.

LTolledo
Posts: 3431
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Sending acoustic sound to the cloud

Fri Jan 17, 2020 10:35 am

Sending acoustic sound to the cloud....

I'll just step outside.... face up.....and yell at the top of my voice :mrgreen:

Ehem... going back to topic...

not much detail presented
how do you plan to acquire the sound? as mentioned above, the RPi has no built-in audio in.
what audio format?
why put in in the "cloud"?

you'll need to fill us up more on what you want so as others can give meaningful advice
otherwise its back to what I wrote above... ;)
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Return to “General discussion”