Banana Pi BPI-M1 Manual page 27

Table of Contents

Advertisement

BPI-M1 MIC
Simple mixer control 'LINEIN APM',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 7 [100%]
Simple mixer control 'Ldac Left Mixer',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Ldac Right Mixer',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Left Capture Mute',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'MIC output volume',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 7 [100%]
Simple mixer control 'Rdac Right Mixer',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Right Capture Mute',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
This step is critical. One false muted channel and you are out of the game.
Test recording.
# arecord -L
Should show a device.
# arecord -f S16_LE -r 44100 -t wav test.wav
Should make kind of Sound. Stop it with ctr-c and check the file.
B. SoX Recording / Streaming
Install SoX
# apt-get install sox libsox-fmt-all
client pc too.
Record striaght to mp3
# rec -c 2 -C 64 test.mp3
-c 2 two channels
-C 64 tell the encoder to produce a 64kbit/s mp3
Stop it with ctr-c, check the output.
Listen to it live over LAN
Banana:
# rec -c 2 -C 64 -t mp3 - | netcat -l -p 9000
-t mp3 - produce mp3 stream to stdout
Sox gives you tools like: sox, rec and play. I would suggest you install it on the
27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents