Sprachausgabe über Bluetooth-Lautsprecher

Begonnen von ChHerrm, 15 Januar 2016, 17:14:34

Vorheriges Thema - Nächstes Thema

ChHerrm

Hallo!
Ich habe ein Problem mit der Sprachausgabe per Bluetooth-Lautsprecher dass ich trotz viel Recherchearbeit bislang nicht lösen konnte. Vom Raspberry Pi 2 kann ich den Bluetoothlautsprecher über
{system('mplayer -ao alsa:device=bluetooth /home/pi/NAS/Weckton.mp3')}

ein Lied abspielen lassen. Das Pairing und die Rechte scheinen also eher nicht das Problem zu sein. Was jetzt aber noch nicht geht, ist die Ausgabe von Sprache bzw. auch des Speakweather-Moduls und das Webstream Modul zwecks Radio. In der 98_Text2Speech.pm habe ich außerdem folgende Zeile angepasst:
my $mplayerAudioOpts = '-ao alsa:device=bluetooth';
Das interessiert FHEM jedoch erstmal herzlich wenig. Kann mir jemand damit auf die Sprünge helfen? :-\

PS: Sprache wird jetzt auch nicht mehr per Audiokabel ausgegeben nach der Anpassung. Scheint wohl irgendwie das Device so nicht zu finden (?)

Hier nochmal die Auswertung des Logfiles:

2016.01.15 17:15:20 4: Text2Speech:/usr/bin/mplayer -ao alsa:device=bluetoothhw=0.0  -nolirc -noconsolecontrols -softvol -softvol-max 110 -volume 100 cache/3c4f47c016c723c4c6ba0d0716a69822.mp3
MPlayer svn r34540 (Raspbian), built with gcc-4.6 (C) 2000-2012 MPlayer Team

Playing cache/3c4f47c016c723c4c6ba0d0716a69822.mp3.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in cache/
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 16000 Hz, 1 ch, floatle, 32.0 kbit/6.25% (ratio: 4000->64000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO_ALSA] alsa-lib: pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM bluetoothhw:0,0
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=bluetoothhw=0.0'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video