[Neues Modul] BOSE SoundTouch

Begonnen von dominik, 05 Januar 2016, 22:28:40

Vorheriges Thema - Nächstes Thema

fred_feuerstein

#615
Hast du es mal mit    
"
als Maskierung vor und nach dem Text probiert?

Bin auch nicht sicher, ob das so funktioniert.


Gruß, Fred

FHEM auf Raspberry PI 3B+ im 7Zoll TouchDisplay Gehäuse, OS: Bullseye, mit Z-Wave RaZberry-Modul, 868CUL (WMBUS), LaCrosseCUL (Temp) und knapp 300 Devices aller Art

Mad


fred_feuerstein

und welcher Deiner PUSH Widgets aus deinen Versuchen auf der vorigen Seite hat vom Aufbau her funktioniert?
Gruß, Fred

FHEM auf Raspberry PI 3B+ im 7Zoll TouchDisplay Gehäuse, OS: Bullseye, mit Z-Wave RaZberry-Modul, 868CUL (WMBUS), LaCrosseCUL (Temp) und knapp 300 Devices aller Art

Mad

Der hier funktioniert.
<div data-type="push" data-fhem-cmd="set BOSE_XYZ speak &quot;Das ist ein Test&quot;"></div>

Allerdings nur bei den Soundtouch 20 und 30. Die portable reagiert gar nicht auf den speak Befehl.

            

Prof. Dr. Peter Henning

Und um auch den Grund zu nennen, warum das mit dem &quot; funktioniert: &ldquo; und &rdquo; sind typografische Anführungszeichen, die verwendet man in Code _in der Regel nicht_.

Noch mal zum Thema der disconnects: Ich habe mit
define c_Bose_Find cmdalias Bose_Find AS {my $hash=$defs{'BOSEST'};;delete($hash->{helper}{DISCOVERY_PID});;BOSEST_startDiscoveryProcess($hash)}
ein FHEM-Kommando namens Bose_Find definiert. Das wird mittels eines DOIF
define ST.EG.N2 DOIF ([BOSE_C4F312DD64C7:state] eq "offline") (Bose_Find)
aufgerufen und führt dann die entsprechende Funktion aus dem dem BOSEST-Modul aus (Achtung: BOSEST ist bei mir auch der Devicename für das Hauptdevice).

Zum Thema Sprachausgabe: Ich habe das sehr komfortabel gelöst, auf allen meinen Endgeräten (Tablets und BOSE-Kisten) mit derselben Stimme (Marlene von Amazon Polly) und komfortablem Caching ebenso wie vordefinierten Audiodateien. Irgendwann schreibe ich mal einen lägeren Wiki-Artikle darüber - derzeit steht das nur im FHEM-Buch.


LG

pah


fred_feuerstein

Das mit der Ausgabe klingt sehr interessant :)

Ansonsten wegen den disconnects und deinem Hinweis, dass dein hauptdevice auch BOSEST heisst. Also hast du eine bose Box mit Namen BOSEST? (Also mal mit: define BOSEST BOSEST... angelegt?) oder wie meinst du das?

Ich würde es nämlich gerne mal mit deiner Lösung probieren. Bin aber nicht sicher was ich an dem hash Befehl ändern muss bei mir.
Habe aktuell 4 bose Geräte.
Gruß, Fred

FHEM auf Raspberry PI 3B+ im 7Zoll TouchDisplay Gehäuse, OS: Bullseye, mit Z-Wave RaZberry-Modul, 868CUL (WMBUS), LaCrosseCUL (Temp) und knapp 300 Devices aller Art

Prof. Dr. Peter Henning

Zitatdefine BOSEST BOSEST
Ja

define c_Bose_Find cmdalias Bose_Find AS {my $hash=$defs{<devicename>};;delete($hash->{helper}{DISCOVERY_PID});;BOSEST_startDiscoveryProcess($hash)}

LG

pah

fred_feuerstein

Ok. Danke.
Habs eingerichtet. Mal sehen wie es sich verhält bzgl. Disconnects :)
Gruß, Fred

FHEM auf Raspberry PI 3B+ im 7Zoll TouchDisplay Gehäuse, OS: Bullseye, mit Z-Wave RaZberry-Modul, 868CUL (WMBUS), LaCrosseCUL (Temp) und knapp 300 Devices aller Art

fred_feuerstein

Also das mit dem bose_find funktioniert prima.

Ich habe das DOIF bei mir nur geändert, damit egal welche Bose-Box (habe 4 Soundtouch Geräte) offline geht, das DOIF greift.
Ausserdem ein wait-Attribut auf 180s gesetzt. Damit auch genügend Zeit abgewartet wird, bis erneut das DOIF bei offline auslöst.

Klappt prima! Danke, Peter.
Gruß, Fred

FHEM auf Raspberry PI 3B+ im 7Zoll TouchDisplay Gehäuse, OS: Bullseye, mit Z-Wave RaZberry-Modul, 868CUL (WMBUS), LaCrosseCUL (Temp) und knapp 300 Devices aller Art

Prof. Dr. Peter Henning

#624
Muss ich irgendwie noch unter Codeschnipsel ins Wiki einstellen. Ersaufe derzeit aber als Experte für Technologiegestütztes Lernen in Supportanfragen...

LG

pah

Edit: Done. https://wiki.fhem.de/wiki/BOSE_SoundTouch_offline_vermeiden

elmattt

Bonjour, et désolé mais je ne parle pas bien allemand  :-[

J'ai un soundtouch 30 series 1 et une barre de son soundtouch 300, et je n'arrive pas à faire fonctionner le TTS sur les 2 produits :

success: <?xml version="1.0" encoding="UTF-8" ?><Error value="403" name="HTTP_STATUS_FORBIDDEN" severity="Unknown">unsupported device</Error>

Hi and sorry but i don't speak german !!

i own a soundtouch 30 séries 1 and a soundbar 300, and didn't succeed in having a working TTS ...

Can you help ??
Thanks

8)

Prof. Dr. Peter Henning

English, or French then - choose.

SoundTouch 30 should work, Soundbar 300 needs a different approach because BOSE did not put in the API.

To get it working with the 300:

- You need a DLNA Server, like miniDLNA.
- You need a few lines of code (which I can give you) that send the text to Google or Amazon, and collect the returning MP3 file
- This mp3 file needs to be placed in the proper directory of the miniDLNA as file speech.mp3, and one has to trick the miniDLNA as to avoid caching
- The 300 gets the command "play speech.mp3"

The whole process takes a few seconds, 7 at least - but works nicely

Regards

pah

elmattt

Thanks !!
soundtouch 30 and 300 same error ...

i'm interested about your proposal ;)

i just don't succeed to install minidlna ... try a lot of tutos and none of them works !!

;D

Prof. Dr. Peter Henning

Try a simple
apt-get install minidlna
apt-get install sox
apt-get install mp3wrap

and post the output here.

Regards

pah

elmattt

hello and thanks for the help ;)
everything is installed withour errors !!