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/