Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. sayit Adapter mp3 hochladen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    sayit Adapter mp3 hochladen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @DJMarc75 last edited by

      @djmarc75 sagte in sayit Adapter mp3 hochladen:

      ob mein Hamster aktiv ist

      so?

      Bild Text

      DJMarc75 1 Reply Last reply Reply Quote 1
      • DJMarc75
        DJMarc75 @Homoran last edited by DJMarc75

        @homoran Muahahaha 😂
        Ich hab tatsächlich einen knapp 2qm Käfig für meinen Zwerghamster und da drin 2 BWM und eine Laufradüberwachung installiert 😱 😎

        IMG_20220628_180300.jpg

        1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @ionar last edited by

          @ionar

          Du bist schon im Iobroker Ordner , quasi automatisch.
          Alles was du anlegst wird unter opt/Iobroker/….. abgelegt.

          I 1 Reply Last reply Reply Quote 0
          • I
            ionar @haselchen last edited by ionar

            @haselchen

            2022-07-08 21:39:00.006	error	Error: ENOENT: no such file or directory, open '/mp3/purge.mp3'
            2022-07-08 21:38:00.004	error	Error: ENOENT: no such file or directory, open '/iobroker/mp3/purge.mp3'
            2022-07-08 21:37:00.004	error	Error: ENOENT: no such file or directory, open 'iobroker/mp3/purge.mp3'
            2022-07-08 21:35:00.005	error	Error: ENOENT: no such file or directory, open 'opt/iobroker/mp3/purge.mp3'
            

            Egal, wie ich es ablege, er findet die Datei nicht.

            Edit: Das Slash vor dem Opt hat gefehlt. Sorry

            1 Reply Last reply Reply Quote 0
            • I
              ionar @DJMarc75 last edited by ionar

              @djmarc75 sagte in sayit Adapter mp3 hochladen:

              Die MP3 Dateien hab ich per FTP-Programm in den im Bild genannten Ordner gespeichert (opt/iobroker/mp3).
              Die 40; davor ist die prozentuale Wiedergabelautstärke von der im Sonos eingestellten Lautstärke.

              Welches Objekt hast du als "Text to Speech" genommen? Das vom Sayit-Adapter oder vom Sonos-Adapter? Die haben beide dieses Objekt.

              Edit: Der Sayit_Adapter ist es.

              I 1 Reply Last reply Reply Quote 0
              • I
                ionar @ionar last edited by ionar

                @ionar Die Datei ist schon im Sonos Lautsprecher (App) zu sehen und lässt sich manuell abspielen, aber über das Skript klappt es nicht.

                try to control id sonos.0.root.192_XXX_X_209.tts with {"val":"30;http://192.XXX.X.123:8082/state/sayit.0.tts.mp3","ack":false,"ts":1657309XXX365,"q":0,"from":"system.adapter.sayit.0","user":"system.user.admin","lc":165XXXXXX0332}
                

                Ich habe XXX eingefügt. Keine Ahnung, ob das irgendwelche sensiblen Daten sind 😳

                I 1 Reply Last reply Reply Quote 0
                • I
                  ionar @ionar last edited by ionar

                  Bildschirmfoto 2022-07-08 um 22.05.22.png

                  Er hat es nicht automatisch abgespielt und Probleme mit der Lautstärke, egal ob mit Volume im oberen Baustein oder ohne. Das Volume wurde oft auf 0 gesetzt.

                  So funktioniert es. Er lädt die Datei. Es drückt den Play Button und erhöht dann das Volume.

                  Sorry für das Gespamme.

                  Edit: klappt auch nicht zuverlässig. Manchmal wird das Lied, das vorher irgendwann gespielt hat, abgespielt, anstatt der mp3.

                  DJMarc75 1 Reply Last reply Reply Quote 0
                  • DJMarc75
                    DJMarc75 @ionar last edited by

                    @ionar sagte in sayit Adapter mp3 hochladen:

                    Manchmal wird das Lied, das vorher irgendwann gespielt hat, abgespielt, anstatt der mp3.

                    Das Geheimnis liegt daran den Queue zurückzusetzen.

                    Hier mal ein Beispiel:

                    Screenshot 2022-07-09 043718.png


                    <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                    <variable type="timeout" id="timeout">timeout</variable>
                    </variables>
                    <block type="on_ext" id="W4Xkrm(F|Sg_6T?s=w(W" x="-212" y="-87">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                    <shadow type="field_oid" id="u-:j1FK4Xd0_uv_Uz|T,">
                    <field name="oid">default</field>
                    </shadow>
                    </value>
                    <statement name="STATEMENT">
                    <block type="controls_if" id="^tES1i(c-^cK8(PwPR1"> <value name="IF0"> <block type="logic_compare" id="p;Xw)N#Ya//3Pl]DqXn">
                    <field name="OP">EQ</field>
                    <value name="A">
                    <block type="get_value" id="cz~-x^oq:ujJnw.JDPkS">
                    <field name="ATTR">val</field>
                    <field name="OID">sonos.0.root.192_168_178_172.state_simple</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="logic_boolean" id="[vWuM.1YE2Hcj9ELj54"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=":#0BF,ejQwxK:}^z6Da{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sayit.0.tts.text</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="u05C(_)v*T}4Db%h68B#"> <field name="TEXT">40;/opt/iobroker/mp3/pling.mp3</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="kKd=2L@#y0yK,SE.9ugY"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="r;0!oP2QqLax97oz1Ksw"> <field name="oid">sayit.0.tts.text</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_cleartimeout" id="Xua#oo)^(aausT4Kldu">
                    <field name="NAME"></field>
                    <next>
                    <block type="controls_if" id="|ON=Im/vJ~:-@I9HP;_]">
                    <value name="IF0">
                    <block type="logic_compare" id="k|D4R]m8-al@uF00j^B,">
                    <field name="OP">NEQ</field>
                    <value name="A">
                    <block type="on_source" id="=XEqqoVZvUJ:nsIP%{x">
                    <field name="ATTR">state.val</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="text" id="3AHtAODn#f]d19?i5Tn0">
                    <field name="TEXT"></field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="control" id="TYf];Oav^U|sHUdk35m}">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">sayit.0.tts.clearQueue</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="logic_boolean" id=":z-|oT1|k[^.PRc8xhzb">
                    <field name="BOOL">TRUE</field>
                    </block>
                    </value>
                    <next>
                    <block type="timeouts_settimeout" id="#o58
                    CPGGY}wnf{X6GRV">
                    <field name="NAME">timeout</field>
                    <field name="DELAY">10000</field>
                    <field name="UNIT">ms</field>
                    <statement name="STATEMENT">
                    <block type="control" id="V474asWQNq2AS6Yh2a!{">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">sayit.0.tts.clearQueue</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="logic_boolean" id="{jb%0VsY9!KVVRtO66#S">
                    <field name="BOOL">FALSE</field>
                    </block>
                    </value>
                    </block>
                    </statement>
                    </block>
                    </next>
                    </block>
                    </statement>
                    </block>
                    </next>
                    </block>
                    </statement>
                    </block>
                    </next>
                    </block>
                    </xml>

                    Dein Blockly oben stiftet Verwirrung im System da TTS automatisch abspielt. 😀

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Marty56 @DJMarc75 last edited by

                      Ich habe mit der Kombination sayit und Sonos Wochen meines Lebens verschwendet.

                      Der Sonos Adapter funktioniert nicht zuverlässig und das seit mehr als 4 Jahren. Es ist sinnlos hier herumzudoktern. Ich habe den Ansatz völlig aufgegeben und würde auch nicht empfehlen es nochmal zu versuchen.

                      Was mit Sonos funktioniert, ist das Http API (Forums Suche). Dort gibt es auch eine Text to Speech Unterstützung. Das funktioniert sehr zuverlässig, ist aber eine riesengroße Fummelei und eigentlich nur eine Lösung für Programmierer. Es gibt dazu einen Thread im Forum.
                      Ich habe keine Ahnung von Blocky, aber ich vermute die Lösung funktioniert nur mit Javascript.
                      Für Leute, die nicht herumfummeln wollen, und text2speech wollen, würde ich einen billigen Alexa Lautsprecher empfehlen, die gibt es schon ab 20 Euro und der Alexa Adapter funktioniert unproblematisch und hat sogar eine bessere Text2Speech Engine als das Sonos HTTP API.

                      DJMarc75 1 Reply Last reply Reply Quote 0
                      • DJMarc75
                        DJMarc75 @Marty56 last edited by

                        @marty56 sagte in sayit Adapter mp3 hochladen:

                        Ich habe mit der Kombination sayit und Sonos Wochen meines Lebens verschwendet.
                        Der Sonos Adapter funktioniert nicht zuverlässig und das seit mehr als 4 Jahren. Es ist sinnlos hier herumzudoktern. Ich habe den Ansatz völlig aufgegeben und würde auch nicht empfehlen es nochmal zu versuchen.

                        Also ich habe ein paar Stunden "genutzt" um diese Kombi in den Griff zu bekommen. Hilft nix wenn man durch eigene negative Erfahrungen gleich etwas madig redet.
                        Hier geht es ja auch nicht darum dass der SONOS Adapter bis ins Detail ausgereizt wird (stimme Dir aber zu dass der Adapter eher nicht so der Hit ist) sondern lediglich um ein Gimmick um gelegentlich eigene MP3 abzuspielen.

                        @marty56 sagte in sayit Adapter mp3 hochladen:

                        würde ich einen billigen Alexa Lautsprecher empfehlen

                        Und genau das können diese Teile nicht !

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          Marty56 @DJMarc75 last edited by

                          @djmarc75 ok. Ich wollte hier keinem "etwas madig reden", sondern nur einen einfachen Lösungsansatz präsentieren und damit hilfsbereit sein.
                          Schade, dass ich das wohl nicht erreicht habe.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate
                          FAQ Cloud / IOT
                          HowTo: Node.js-Update
                          HowTo: Backup/Restore
                          Downloads
                          BLOG

                          639
                          Online

                          32.0k
                          Users

                          80.4k
                          Topics

                          1.3m
                          Posts

                          5
                          24
                          1724
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo