Moin,
also folgendes steht in der Api:
https://www.doorbird.com/downloads/api_lan.pdf?rev=0.24LIVE AUDIO TRANSMIT
Transmit audio (G.711 μ-law) from your mobile device (e.g. Home Automation tablet)
to the device. Only one consumer can transmit audio (talk) at the same time. The
second consumer will be rejected.
When the request is correct, but the requesting user has no permission to view the
live stream at the moment, the request is answered with a return code 204. This
usually happens for users without “watch-always” permission when there was no ring
event in the past 5 minutes.
Please note, that the audio connection can get interrupted at any time, when the
official DoorBird App requests the stream. It has precedence over users of the LANAPI.
Method: POST
Required permission: valid user, “watch always” or ring event in the past 5 minutes for the requesting user
Syntax:
http://<device-ip>/bha-api/audio-transmit.cgi
Example 1: Singlepart audio data transmit with G.711 μ-law (authorization omitted).
POST /bha-api/audio-transmit.cgi HTTP/1.0\r\n
Content-Type: audio/basic\r\n
Content-Length: 9999999\r\n
Connection: Keep-Alive\r\n
Cache-Control: no-cache\r\n
\r\n
<AUDIO DATA>
<AUDIO DATA>
<AUDIO DATA>
...
Example 2: Multipart audio data transmit with G.711 μ-law (authorization omitted).
Ich hatte unter anderem diesen Link zum umwandeln gefunden:
http://g711.org/Oder aber auch dieses Tool probiert:
http://www.znak.fi/user/pdonner/g711tool/Leider ohne Erfolg.
Was ich mir nämlich hätte vorstellen können:
- Es klingelt und ich lasse eine Datei abspielen: "Einen Moment bitte die Hausbewohner werden informiert"
- Der Briefkasten geht auf und die klingel sagt: "Vielen Dank für die Post bis zum nächsten mal"
- Die Haustür geht auf (ohne dass vorher geklingelt wird) und die Klingel sagt: "Es ist noch Post im Briefkasten"
- Die Haustür geht zu (innen keine Bewegung mehr erkannt): "Alarmanlage wird in 5 Sekunden aktiviert"
- Über die Gesichtserkennung (woran ich noch arbeite) wird eine bekannte Person erkannt. Und wird namentlich begrüßt :-)
Nun bin ich gespannt ob du oder die anderen hier eine Lösung finden was funktioniert. :-)
Ach Eins noch... Wie hättest du die Datei an den Doorbird geschickt? Ich habe dafür eine kleine HTML Seite gebastelt die per Get/Post und diverse Formate etc. die Datei an den Doorbird sendet.
In diesem Sinne schon mal schöne Feiertage!