Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] sayit - mp3 erzeugen geht nicht mehr

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] sayit - mp3 erzeugen geht nicht mehr

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

      @bahnuhr

      Doch, ich verstehe das schon.

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

        So, ganz neu.
        sayit, Adapter gelöscht.
        und neu installiert, jetzt 3.0.5

        Beim erstellen einer Instanz.2 kommt folgende log Meldungen (schon da stimmt was nicht)

        sayit.2
        2023-06-25 13:39:21.943	error	amixer is not available, so you may hear no audio. Install manually!
        
        sayit.2
        2023-06-25 13:39:21.936	error	sayIt.play: there was an error while playing the file: Error: spawn amixer ENOENT
        
        sayit.2
        2023-06-25 13:39:21.497	info	Upload announce mp3 files
        
        sayit.2
        2023-06-25 13:39:21.440	info	starting. Version 3.0.5 in /opt/iobroker/node_modules/iobroker.sayit, node: v18.16.1, js-controller: 4.0.24
        

        Und später kommt noch sowas:

        sayit.2
        2023-06-25 13:40:30.978	error	Error: dns service error: unknown
        

        Instanz.2 mit folgenden Einstellungen:
        12b906fc-c96c-499b-9be2-53b4770702ab-image.png

        und
        003840c5-1079-4a9b-b99c-27a69ab5e5f8-image.png

        Instanz wird dann grün.

        Script laufen gelassen:

        var request = require('request'),   fs = require('fs');
        setState('sayit.2.tts.text', "alles 1 2");  
        setTimeout(function(){ request('http://192.168.243.15:8082/state/sayit.2.tts.mp3', {encoding:'binary'}, function(error, response, body) {
            fs.writeFile("/home/iobroker/2_sayit.mp3", body, 'binary', function (err) { if(err) log('Fehler!'); }); });
        }, 2000);
        

        (auf Verz. /home/iobroker/...

        Datei wird erzeugt, aber nur 1 kb
        fd3bd790-3f97-4f3c-9dc3-5e56158fabff-image.png

        Und wenn ich diese dann per wscp kopieren auf win Rechner dann kommt im wmp
        36a44333-c80b-44c1-9950-141a9a0e5181-image.png

        Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @bahnuhr last edited by

          @bahnuhr

          Da scheint schonmal der amixer zu fehlen.

          alsa-utils sind auf dem System vorhanden?

          bahnuhr 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @bahnuhr last edited by

            @bahnuhr das angegeben Format kann IMHO bei 1kB auch nicht drin sein

            bahnuhr Jey Cee 2 Replies Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @Thomas Braun last edited by

              @thomas-braun sagte in sayit - mp3 erzeugen geht nicht mehr:

              alsa-utils

              Ich vermute nicht.
              Stand bisher nirgends das man das braucht.
              Vielleicht sollte man dem Entwickler von sayit sagen, dass das mit installiert werden sollte.
              (oder ich bin der Einzige bei dem dies fehlt!)

              wenn notwendig, wie installieren:
              npm install alsa-utils
              richtig ?

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

                @homoran sagte in sayit - mp3 erzeugen geht nicht mehr:

                @bahnuhr das angegeben Format kann IMHO bei 1kB auch nicht drin sein

                Vorher ging es aber.
                welche Version hast du?
                Klappt es bei dir ?

                1 Reply Last reply Reply Quote 0
                • Jey Cee
                  Jey Cee Developer @Homoran last edited by

                  @homoran sagte in sayit - mp3 erzeugen geht nicht mehr:

                  das angegeben Format kann IMHO bei 1kB auch nicht drin sein

                  Japp und genau das die mp3 nicht funktioniert hat er schon am Anfang gesagt. Jetzt hat er nur nochmal den beweis angetreten das es an der Datei liegt umd nicht wie er an die Datei kommt.

                  Ich hab jetzt kein Debug log gesehen. Daraus könnte man vielleicht mehr informationen ziehen.

                  bahnuhr 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @bahnuhr last edited by

                    @bahnuhr sagte in sayit - mp3 erzeugen geht nicht mehr:

                    wenn notwendig, wie installieren:
                    npm install alsa-utils
                    richtig ?

                    Nein.

                    sudo apt update
                    sudo apt install alsa-utils
                    
                    bahnuhr 1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active @Jey Cee last edited by

                      @jey-cee sagte in sayit - mp3 erzeugen geht nicht mehr:

                      Debug log

                      kommt auch nicht viel mehr:

                      sayit.2
                      2023-06-25 13:57:18.148	info	saying: alles 1 2
                      
                      sayit.2
                      2023-06-25 13:56:49.473	info	Upload announce mp3 files
                      
                      sayit.2
                      2023-06-25 13:56:49.395	info	starting. Version 3.0.5 in /opt/iobroker/node_modules/iobroker.sayit, node: v18.16.1, js-controller: 4.0.24
                      
                      sayit.2
                      2023-06-25 13:56:47.842	debug	Plugin sentry Initialize Plugin (enabled=true)
                      
                      sayit.2
                      2023-06-25 13:56:40.061	info	stopping...
                      
                      sayit.2
                      2023-06-25 13:56:39.339	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                      
                      sayit.2
                      2023-06-25 13:56:38.834	info	stopping...
                      
                      1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @Thomas Braun last edited by

                        @thomas-braun
                        utils sind drauf:

                        dieter@iobroker:/opt/iobroker$ sudo apt update
                        [sudo] Passwort für dieter:
                        OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                        OK:2 http://deb.debian.org/debian bullseye InRelease
                        Holen:3 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB]
                        OK:4 https://deb.nodesource.com/node_18.x bullseye InRelease
                        Es wurden 44,1 kB in 2 s geholt (21,7 kB/s).
                        Paketlisten werden gelesen… Fertig
                        Abhängigkeitsbaum wird aufgebaut… Fertig
                        Statusinformationen werden eingelesen… Fertig
                        Alle Pakete sind aktuell.
                        dieter@iobroker:/opt/iobroker$ sudo apt install alsa-utils
                        Paketlisten werden gelesen… Fertig
                        Abhängigkeitsbaum wird aufgebaut… Fertig
                        Statusinformationen werden eingelesen… Fertig
                        Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                         linux-image-5.10.0-18-amd64
                        Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                        Die folgenden zusätzlichen Pakete werden installiert:
                         libatopology2 libfftw3-single3
                        Vorgeschlagene Pakete:
                         dialog libfftw3-bin libfftw3-dev
                        Die folgenden NEUEN Pakete werden installiert:
                         alsa-utils libatopology2 libfftw3-single3
                        0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                        Es müssen 1.887 kB an Archiven heruntergeladen werden.
                        Nach dieser Operation werden 4.750 kB Plattenplatz zusätzlich benutzt.
                        Möchten Sie fortfahren? [J/n] j
                        Holen:1 http://deb.debian.org/debian bullseye/main amd64 libatopology2 amd64 1.2.4-1.1 [67,8 kB]
                        Holen:2 http://deb.debian.org/debian bullseye/main amd64 libfftw3-single3 amd64 3.3.8-2 [762 kB]
                        Holen:3 http://deb.debian.org/debian bullseye/main amd64 alsa-utils amd64 1.2.4-1 [1.058 kB]
                        Es wurden 1.887 kB in 0 s geholt (6.371 kB/s).
                        Vormals nicht ausgewähltes Paket libatopology2:amd64 wird gewählt.
                        (Lese Datenbank ... 59946 Dateien und Verzeichnisse sind derzeit installiert.)
                        Vorbereitung zum Entpacken von .../libatopology2_1.2.4-1.1_amd64.deb ...
                        Entpacken von libatopology2:amd64 (1.2.4-1.1) ...
                        Vormals nicht ausgewähltes Paket libfftw3-single3:amd64 wird gewählt.
                        Vorbereitung zum Entpacken von .../libfftw3-single3_3.3.8-2_amd64.deb ...
                        Entpacken von libfftw3-single3:amd64 (3.3.8-2) ...
                        Vormals nicht ausgewähltes Paket alsa-utils wird gewählt.
                        Vorbereitung zum Entpacken von .../alsa-utils_1.2.4-1_amd64.deb ...
                        Entpacken von alsa-utils (1.2.4-1) ...
                        libfftw3-single3:amd64 (3.3.8-2) wird eingerichtet ...
                        libatopology2:amd64 (1.2.4-1.1) wird eingerichtet ...
                        alsa-utils (1.2.4-1) wird eingerichtet ...
                        alsa-restore.service is a disabled or a static unit, not starting it.
                        alsa-state.service is a disabled or a static unit, not starting it.
                        Trigger für man-db (2.9.4-2) werden verarbeitet ...
                        Trigger für libc-bin (2.31-13+deb11u6) werden verarbeitet ...
                        dieter@iobroker:/opt/iobroker$
                        
                        

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

                          Instanz 2 neu gestartet.
                          Script laufen lassen.
                          Die Datei hat weiterhin nur 1 kb.

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

                            @Jey-Cee
                            @Thomas-Braun

                            So, weiteres ausprobieren.

                            Das Abspielen eines Textes im Browser mit der dazugehörigen Instanz klappt.

                            Das Script:

                            setTimeout(function(){ request('http://192.168.243.15:8082/state/sayit.4.tts.mp3', {encoding:'binary'}, function(error, response, body) {
                                fs.writeFile("/home/iobroker/2_sayit.mp3", body, 'binary', function (err) { if(err) log('Fehler!'); }); });
                            }, 2000);
                            
                            

                            funktioniert jedoch nicht mehr!

                            Was hat sich da geändert ?
                            Es wird immer nur eine Datei mit 1kb erzeugt.

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @bahnuhr last edited by

                              @bahnuhr

                              Von Javascript hab ich keine Ahnung.

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

                                jetzt wird es ganz komisch.

                                Habe gerade geseheh, dass der DP mp3 gar nicht mehr existiert!
                                b2cd7e33-d5c7-4671-aeab-0d2ad7ff2e16-image.png

                                Wenn dieser nicht mehr da ist, kann natürlich auch nichts mehr erzeugt werden.

                                Frage:
                                Warum ist dieser weg ?
                                Wer kann dies beantworten ?

                                @Jey-Cee
                                Warst du nicht auch bei der Entwicklung dabei ?

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

                                  @bahnuhr bei mir sieht es so aus
                                  82d40e55-498d-4fa0-88f5-93b294ebb3ae-image.png
                                  f91e8275-883c-4a53-8575-6eb46447f0c0-image.png

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

                                    @crunchip

                                    Vielleicht wird bei dir mp3 auch nur noch angezeigt.

                                    Funktioniert mein Script bei dir ?

                                    crunchip 1 Reply Last reply Reply Quote 0
                                    • Jey Cee
                                      Jey Cee Developer @bahnuhr last edited by

                                      @bahnuhr sagte in sayit - mp3 erzeugen geht nicht mehr:

                                      Frage:
                                      Warum ist dieser weg ?

                                      Binary States werden mit js-controller 5 deprecated, es kann also sein das mp3 solch ein state ist/war und der jetzt schon entfernt wurde.

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

                                        Oh mann,
                                        alles neu installiert (wieder einmal)

                                        Im log kommt aber immer noch:

                                        sayit.2
                                        2023-06-25 14:34:02.363	error	amixer is not available, so you may hear no audio. Install manually!
                                        
                                        sayit.2
                                        2023-06-25 14:34:02.355	error	stderr: amixer: Control default open error: No such file or directory
                                        
                                        sayit.2
                                        2023-06-25 14:34:01.473	info	Upload announce mp3 files
                                        

                                        Hab ich doch aber vorhin erst gemacht; mit Hilfe von @Thomas-Braun

                                        Die Kiste mag mich heute nicht 😉

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

                                          @jey-cee sagte in sayit - mp3 erzeugen geht nicht mehr:

                                          Binary States werden mit js-controller 5 deprecated, es kann also sein das mp3 solch ein state ist/war und der jetzt schon entfernt wurde.

                                          Das wäre aber "Mist".

                                          Dann stellt sich wieder die Frage wie gehe ich vor:

                                          • Ich möchte bei einem beliebigen Text eine mp3 erzeugen und diese dann in ein Verzeichnis speichern.
                                            Und dies hatte ja mit o.g. Script geklappt.
                                          1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Jey Cee last edited by

                                            @jey-cee

                                            encoding:'binary

                                            Ist das der springende Punkt?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            522
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            errorsyntaxerror unexpected sayit
                                            6
                                            78
                                            3764
                                            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