Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. MP3 Abspielen

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    MP3 Abspielen

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

      @bahnuhr said in MP3 Abspielen:

      hat bei mir noch nie funktioniert !

      Also bei mir schon.
      Der Baustein aus einem meiner Blocklys:

      setState("sayit.1.tts.text"/*Text to speech*/, '20;/opt/iobroker/MP3/pepper.mp3');
      

      Nutze diese per Sonos und Browserausgabe.

      @bahnuhr said in MP3 Abspielen:

      steht oben schon

      Sorry, eben erst gesehen.

      1 Reply Last reply Reply Quote 0
      • Y
        Yandor @bahnuhr last edited by

        @bahnuhr

        Datei liegt im /opt/iobroker/iobroker-data/files/vis.0/mp3/ Verzeichnis

        ubuntu@ubuntu:/opt/iobroker/iobroker-data/files/vis.0/mp3$ ls -la
        total 464
        drwxrwxr-x+ 2 ubuntu   ubuntu     4096 Apr 17 11:24 .
        drwxrwxr-x+ 4 iobroker iobroker   4096 Apr 17 11:24 ..
        -rw-rw-r--+ 1 ubuntu   ubuntu   360306 Jun  1  2021 Intro.mp3
        -rw-rw-r--+ 1 ubuntu   ubuntu   105169 Jun  1  2021 correct.mp3
        
        

        Die Say it Einstellung sind;
        Ausgabe durch: Browser;
        Sprache: Google Deutsch;
        Ankündigung: Keins;
        Browser Instanz FFFFFF

        Letzteres hat sich ja bereit geklärt ( kommt von Blockly)

        habe das hier auch nochmal probiert:

        setState("sayit.1.tts.text"/*Text to speech*/, '20;/opt/iobroker/MP3/pepper.mp3');
        

        leider geht es immer noch nicht

        bahnuhr 3 Replies Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @Yandor last edited by

          @yandor sagte in MP3 Abspielen:

          sayit.1

          bist du sicher, dass du .1 hast und nicht etwa .0.

          Deshalb wollte ich eigentlich eine Hardcopy deiner Instanz config.

          bahnuhr 1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @Yandor last edited by

            @yandor sagte in MP3 Abspielen:

            setState("sayit.1.tts.text"/Text to speech/, '20;/opt/iobroker/MP3/pepper.mp3');

            diese Datei sehe ich nicht in deinem Verzeichnis.

            Und oben wolltest du answer.mp3 abspielen.
            Auch diese Datei ist nicht im Ordner.

            1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @Yandor last edited by bahnuhr

              @yandor

              Und deine beiden Verzeichnisse passen auch nicht zusammen.

              oben steht:
              ubuntu@ubuntu:/opt/iobroker/iobroker-data/files/vis.0/mp3
              unten steht:
              /opt/iobroker/MP3/pepper.mp3

              mach das mal vernünftig und stell hardcopy hier rein.
              Dann kann man auch helfen.

              Y 1 Reply Last reply Reply Quote 0
              • Y
                Yandor @bahnuhr last edited by

                @bahnuhr

                Sry hatte

                setState("sayit.1.tts.text"/Text to speech/, '20;/opt/iobroker/MP3/pepper.mp3');
                
                

                diesen Code dummerweise einfach hier kopiert im Scyrpt habe ich ihn natürlich angepasst auf:

                setState('sayit.0.tts.,text', '20;/opt/iobroker/iobroker-data/files/vis.0/mp3/correct.mp3');
                
                1 Reply Last reply Reply Quote 0
                • bahnuhr
                  bahnuhr Forum Testing Most Active @bahnuhr last edited by

                  @bahnuhr sagte in MP3 Abspielen:

                  Hardcopy deiner Instanz config.

                  Y 1 Reply Last reply Reply Quote 0
                  • Y
                    Yandor @bahnuhr last edited by

                    @bahnuhr

                    meinst du das hier: ?

                    {
                      "_id": "sayit.0",
                      "type": "meta",
                      "common": {
                        "name": "User files for SayIt",
                        "type": "meta.user"
                      },
                      "native": {},
                      "from": "system.adapter.sayit.0",
                      "ts": 1650195521595,
                      "user": "system.user.admin"
                    }
                    
                    bahnuhr 1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active @Yandor last edited by

                      @yandor
                      37abf3bf-eafb-4622-bfa9-85c8a4b27952-image.png

                      Y 1 Reply Last reply Reply Quote 1
                      • Y
                        Yandor @bahnuhr last edited by

                        @bahnuhr

                        14ff76d8-cb4e-4836-92d6-7dfb4db8e17a-image.png

                        bahnuhr 2 Replies Last reply Reply Quote 0
                        • bahnuhr
                          bahnuhr Forum Testing Most Active @Yandor last edited by

                          @yandor

                          Das ist aber nicht die stable Version. Die aktuellste ist 1.12.3. Und die sieht anders aus.
                          Aber egal, müsste trotzdem funktionieren.

                          Also wenn die Datei im Ordner ist, dann muss mit

                          setState('sayit.0.tts.,text', '/opt/iobroker/iobroker-data/files/vis.0/mp3/correct.mp3');
                          

                          auch etwas kommen.

                          Kontrollieren auch mal Groß- / Kleinschreibung.

                          Kannst du die mp3 normal unter win abspielen ?
                          Vielleicht hat die Datei ja ne Macke.

                          1 Reply Last reply Reply Quote 1
                          • bahnuhr
                            bahnuhr Forum Testing Most Active last edited by bahnuhr

                            noch was:
                            Worauf soll die Datei denn abgespielt werden.
                            "browser" ist normal browser in win.
                            Also nicht Android !

                            4e84597d-6074-461e-9c3b-84bdf996761e-image.png

                            1 Reply Last reply Reply Quote 1
                            • bahnuhr
                              bahnuhr Forum Testing Most Active @Yandor last edited by

                              @yandor

                              Und ?

                              Klappt es denn jetzt ?

                              Y 1 Reply Last reply Reply Quote 0
                              • Y
                                Yandor @bahnuhr last edited by

                                @bahnuhr

                                Ja jetzt hat es Funktioniert, habe den Sayit Adapter nochmals neu installiert.

                                Allerdings werden die Sound Dateien mit recht langem Delay abgespielt. 2 Ausführungen kurz hintereinander geht gar nicht.
                                Leider nicht so ganz wie ich mir das vorgestellt habe. Kann es sein das es an der Version liegt?

                                DJMarc75 bahnuhr 2 Replies Last reply Reply Quote 0
                                • DJMarc75
                                  DJMarc75 @Yandor last edited by

                                  @yandor Du scheinst keine PN zu lesen....

                                  bahnuhr 1 Reply Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active @DJMarc75 last edited by

                                    @djmarc75 sagte in MP3 Abspielen:

                                    Du scheinst keine PN zu lesen....

                                    Und was soll da drin stehen.
                                    Schreib doch mal für die Öffentlichkeit.

                                    Könnte ja sein man kann es mal gebrauchen.

                                    DJMarc75 1 Reply Last reply Reply Quote 0
                                    • bahnuhr
                                      bahnuhr Forum Testing Most Active @Yandor last edited by

                                      @yandor sagte in MP3 Abspielen:

                                      Allerdings werden die Sound Dateien mit recht langem Delay abgespielt.

                                      Bitte genauer. Damit kann man nichts anfangen.

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

                                        @bahnuhr said in MP3 Abspielen:

                                        Könnte ja sein man kann es mal gebrauchen.

                                        Das war nur ein Blockly.


                                        <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="GvMG#-0EU9NPKV~$?@W" x="-762.7361106872559" y="387.50000000000114">
                                        <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=";-N8T{8T/}c}7v1RM#06">
                                        <field name="oid">default</field>
                                        </shadow>
                                        </value>
                                        <statement name="STATEMENT">
                                        <block type="control" id="g-,73QX#o=ts_N?V[+/~">
                                        <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="Sg$hWecXiI.ujHEDE!@">
                                        <field name="TEXT">20;/deinPfadzurDatei.mp3</field>
                                        </block>
                                        </value>
                                        </block>
                                        </statement>
                                        </block>

                                        Aber das funktioniert bei Dir ja nicht, wegen Lautstärkeanpassung.

                                        @yandor said in MP3 Abspielen:

                                        2 Ausführungen kurz hintereinander geht gar nicht.

                                        Das liegt daran dass Du die VIS-Frontend und den VIS-Editor gleichzeitig offen hast. Dann wird die MP3 in beiden Fenstern abgespielt.

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

                                          @frankthegreat said in MP3 Abspielen:

                                          Prio 1=Alexa

                                          no chance

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

                                            @djmarc75

                                            Hmm, naja ein bisschen was geht da doch.
                                            Über Alexa kann ich die fertigen Töne/MP3 aus der Amazon Datenbank abspielen.

                                            Also keine selbsterstellten oder ausgewählten MP3 aber ist erstmal ein Anfang 🤘

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            965
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            38
                                            1639
                                            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