hankp46
Posts: 12
Joined: Thu Jun 16, 2016 4:39 pm

Connecting headset - Playback Working but Not Recording Raspian Stretch

Fri Jun 14, 2019 4:40 pm

Running a fresh copy of Raspian Stretch. Connected my Bluetooth Headset via Dashboard controls. Can playback wav files.But when trying to record with headset microphone get following errors:

pi@raspberrypi:~ $ arecord onvers.wav
ALSA lib bluealsa-pcm.c:680:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA transport: No such device
arecord: main:788: audio open error: No such device

Then tried following:

pi@raspberrypi:~ $ arecord -D bluealsa onvers.wav
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
arecord: main:788: audio open error: No such file or directory

My asoundrc file is as follows;

pcm.!default {
type plug
slave.pcm {
type bluealsa
device "FC:58:FA:0C:74:0C"
interface "hci0"
profile "a2dp"
}
}

ctl.!default {
type bluealsa
}
```Amixer shows:

pi@raspberrypi:~ $ amixer -D bluealsa
Simple mixer control 'ONN In-Ear - A2DP',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [on]
Front Right: Playback 127 [100%] [on]
Simple mixer control 'ONN In-Ear - SCO',0
Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Limits: Playback 0 - 15 Capture 0 - 15
Mono: Playback 15 [100%] [on] Capture 15 [100%] [on]
Simple mixer control 'ONN In-Ear | Battery',0
Capabilities: pvolume pvolume-joined
Playback channels: Mono
Limits: Playback 0 - 100
Mono: Playback 100 [100%]

has anybody gotten a headset to work on a Raspberry Pi?

Return to “General discussion”