Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Problem] SayIt an Pi 3 spricht nicht?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Problem] SayIt an Pi 3 spricht nicht?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dutchman
      Dutchman Developer Most Active Administrators last edited by

      @Vardaaran:

      instellungen (der Instanz). Ich glaube, dass hier der Fehler ist… `

      here we go, einziges probleme welches ich im moment habe ist das zwischen gong und abspielen der datei 5 sekunden sitzen…

      979_screen_shot_2017-06-18_at_15.20.02.png

      Greetz,

      Dutch

      1 Reply Last reply Reply Quote 0
      • Vardaaran
        Vardaaran last edited by

        Alles 1:1 übernommen:
        2335_si02.jpg
        2335_si03.jpg
        Aber immer noch nichts zu hören! Weder gong noch den Text… 😢

        Auf Pi via ssh einloggen und

        mpg321 /opt/iobroker/node_modules/iobroker.sayit/say.mp3
        

        Gibt den Text aber wieder korrekt aus. 😐

        Welche Version von SayIt verwendest Du den?

        Noch eine Idee, was ich noch probieren kann?

        1 Reply Last reply Reply Quote 0
        • Dutchman
          Dutchman Developer Most Active Administrators last edited by

          arbeite mit 1.5.1

          979_screen_shot_2017-06-18_at_15.40.56.png

          Letzte idee die ich noch habe ist den sayit adapter auf console löschen und neu installieren.

          Also:

          sudo iobroker del sayit
          

          dan erts npm cache lehr machen

          sudo npm cache clean
          

          dan adapter neu installieren

          sudo iobroker add sayit
          

          dan zur sicherheit noch nen upload (nur wen es nicht geht)

          sudo iobroker upload all
          

          Greetz,

          Dutch

          1 Reply Last reply Reply Quote 0
          • Vardaaran
            Vardaaran last edited by

            und wieder vielen Dank!

            Zu hören ist noch immer nichts - auch nach upload nicht - aber immerhin ist jetzt eine Fehlermeldung im Log!

            ! ````
            javascript.0 2017-06-18 21:00:35.070 info Stop script script.js.TEST.sayit-test2-blockly
            sayit.0 2017-06-18 21:00:08.174 error Cannot get file: received file is too short
            sayit.0 2017-06-18 21:00:08.081 info saying: let's testing
            javascript.0 2017-06-18 21:00:08.071 info script.js.TEST.sayit-test2-blockly: registered 0 subscriptions and 0 schedules
            javascript.0 2017-06-18 21:00:08.059 info Start javascript script.js.TEST.sayit-test2-blockly
            javascript.0 2017-06-18 20:59:18.998 info Stop script script.js.TEST.sayit-test
            sayit.0 2017-06-18 20:59:14.612 error Cannot get file: received file is too short
            sayit.0 2017-06-18 20:59:14.358 info saying: a auf ein Neues!
            javascript.0 2017-06-18 20:59:14.345 info script.js.TEST.sayit-test: registered 0 subscriptions and 0 schedules
            javascript.0 2017-06-18 20:59:14.289 info Start javascript script.js.TEST.sayit-test
            sayit.0 2017-06-18 20:56:55.549 info All files uploaded
            sayit.0 2017-06-18 20:56:55.471 info Upload announce mp3 files
            sayit.0 2017-06-18 20:56:55.455 info starting. Version 1.5.1 in /opt/iobroker/node_modules/iobroker.sayit, node: v4.8.3
            host.raspberrypi 2017-06-18 20:56:54.118 info instance system.adapter.sayit.0 started with pid 7265
            host.raspberrypi 2017-06-18 20:56:54.088 info object change system.adapter.sayit.0
            sayit.0 2017-06-18 20:56:39.169 info stopping...
            sayit.0 2017-06-18 20:56:39.161 info stopping...
            sayit.0 2017-06-18 20:56:39.158 info All files uploaded
            sayit.0 2017-06-18 20:56:39.066 info Upload announce mp3 files
            sayit.0 2017-06-18 20:56:39.064 info Install process. Upload files and stop.
            sayit.0 2017-06-18 20:56:39.047 info starting. Version 1.5.1 in /opt/iobroker/node_modules/iobroker.sayit, node: v4.8.3
            host.raspberrypi 2017-06-18 20:54:52.830 info Do not restart adapter system.adapter.sayit.0 because disabled or deleted
            host.raspberrypi 2017-06-18 20:54:52.829 error instance system.adapter.sayit.0 terminated with code 0 (OK)
            host.raspberrypi 2017-06-18 20:54:52.799 info stopInstance system.adapter.sayit.0 killing pid 5804
            sayit.0 2017-06-18 20:54:52.785 info stopping...
            host.raspberrypi 2017-06-18 20:54:52.537 error Cannot write files: /opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/files/sayit.admin/_data.json: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/files/sayit.admin/_data.json'
            sayit.0 2017-06-18 20:54:51.780 info stopping...

            1 Reply Last reply Reply Quote 0
            • Dutchman
              Dutchman Developer Most Active Administrators last edited by

              Komische Meldung… Probier Mal nen längeren text wir kommen der Sache näher


              Send from mobile device

              1 Reply Last reply Reply Quote 0
              • Vardaaran
                Vardaaran last edited by

                also noch länger???

                javascript.0	2017-06-18 21:16:41.782	info	Stop script script.js.TEST.sayit-test2-blockly
                sayit.0	2017-06-18 21:16:37.382	error	Cannot get file: received file is too short
                sayit.0	2017-06-18 21:16:37.297	info	saying: let's testing ist offenbar zu kurz. Geht es etwas länger? Also wirklich länger. Aber wie viel länger? Wir werden sehen
                javascript.0	2017-06-18 21:16:37.263	info	script.js.TEST.sayit-test2-blockly: registered 0 subscriptions and 0 schedules
                javascript.0	2017-06-18 21:16:37.261	info	Start javascript script.js.TEST.sayit-test2-blockly
                
                1 Reply Last reply Reply Quote 0
                • Dutchman
                  Dutchman Developer Most Active Administrators last edited by

                  Man eh harte nuss!

                  Könnte es sein das die rechte nicht stimmen wodurch ioBroker/sayit die Datei nicht sehen ?

                  Mach Mal

                  sudo chmod -R 777 /opt/iobroker
                  

                  Ist ein sicherer Befehl, rechte müssen im kompletten Verzeichnis ab root 777 sein

                  –-----------------------

                  Send from mobile device

                  1 Reply Last reply Reply Quote 0
                  • Vardaaran
                    Vardaaran last edited by

                    @Dutchman:

                    Mach Mal

                    sudo chmod -R 777 /opt/iobroker
                    

                    Ist ein sicherer Befehl, rechte müssen im kompletten Verzeichnis ab root 777 sein `
                    Gemacht. Jetzt gibt es keinen Fehler mehr, aber immer noch nichts zu hören:

                    javascript.0	2017-06-18 22:02:54.615	info	Stop script script.js.TEST.sayit-test
                    sayit.0	2017-06-18 22:02:48.073	info	Copied file '/opt/iobroker/node_modules/iobroker.sayit/say.mp3' to '/opt/iobroker/cache/981d1d8def7b8543dc17b9d3385ff07f.mp3'
                    sayit.0	2017-06-18 22:02:46.755	info	saying: Ist wirklich eine harte Nuss! Vielen Dank für die ausdauernde Hilfe!
                    sayit.0	2017-06-18 22:02:45.743	info	saying: /opt/iobroker/node_modules/iobroker.sayit/gong.mp3
                    javascript.0	2017-06-18 22:02:45.713	info	script.js.TEST.sayit-test: registered 0 subscriptions and 0 schedules
                    javascript.0	2017-06-18 22:02:45.712	info	Start javascript script.js.TEST.sayit-test
                    javascript.0	2017-06-18 22:02:41.946	info	Stop script script.js.TEST.sayit-test
                    

                    Könnte es an den Rechten von Pulseaudio oder mpg321 liegen?

                    mpg321 /opt/iobroker/node_modules/iobroker.sayit/say.mp3
                    

                    Geht und gibt das erstellte MP3-File wieder…

                    1 Reply Last reply Reply Quote 0
                    • Dutchman
                      Dutchman Developer Most Active Administrators last edited by

                      Hmm…

                      Vielleicht Mal im Tesmspesk/Teamviewer kwatschen und Installationen vergleichen?


                      Send from mobile device

                      1 Reply Last reply Reply Quote 0
                      • Vardaaran
                        Vardaaran last edited by

                        habe mich eigentlich strikt an dieses Tut gehalten.

                        http://youness.net/raspberry-pi/bluetoo … -ad2p-only

                        Mehr habe ich nicht gemacht.

                        1 Reply Last reply Reply Quote 0
                        • Vardaaran
                          Vardaaran last edited by

                          Habe jetzt ein altes Image geladen und nochmals ganz von Vorne angefangen.

                          Dann erst mal mpg321 installiert und den Lautsprecher mit einem Klinkenstecker direkt am Pi angeschlossen: SayIt spricht ohne Probleme!

                          Dann nach dieser Anleitung den Lautsprecher über Bluetooth verbunden und SayIt bleibt stumm! 😞

                          http://youness.net/raspberry-pi/bluetoo … -ad2p-only

                          Das Problem liegt glaube ich bei Pulseaudio.

                          Bei dieser Anleitung wird ja gesagt:

                          http://forum.iobroker.net/viewtopic.php … 114#p52068
                          @Zeebo:

                          Die Dienste müssen im root-Kontext gestartet werden, da ioBroker als root ausgeführt wird. Werden die nachfolgenden Dienste nur als normaler Benutzer, z.B. pi ausgeführt, funktioniert es zwar von der Console aus im Benutzerkontext, jedoch nicht aus ioBroker heraus. `
                          Was ja genau mein Problem ist.

                          Wenn ich aber nach dieser Anleitung vorgehe, kann ich folgende Schritte nicht ausführen:
                          @Zeebo:

                          Das könnt ihr mit den folgenden Befehlen fixen, indem wir das Profil wählen, welches die Senke enthält. und die default-sink setzen. In diesem Fall 'a2dp':

                          sudo pactl set-card-profile bluez_card.XX_XX_XX_XX_XX_XX a2dp
                          sudo pactl set-default-sink bluez_sink.XX_XX_XX_XX_XX_XX
                          ```` `  
                          

                          da die Befehle einfach nicht angenommen werde (ja, ich habe natürlich die richtige MAC-Adresse eingetragen 😄 )…

                          Und beim Ausführen von Pulseaudio über root meckert Pulseaudio ebenfalls rum.

                          Und SayIt sagt:

                          ! ````
                          sayit.0 2017-06-21 15:02:17.491 error Can't open libao driver with device default (is device in use?)
                          sayit.0 2017-06-21 15:02:17.491 error ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_bluetooth.so
                          sayit.0 2017-06-21 15:02:17.491 error MPEG 2.0 layer III, 32 kbit/s, 24000 Hz mono
                          sayit.0 2017-06-21 15:02:17.491 error Playing MPEG stream from say.mp3 ...
                          sayit.0 2017-06-21 15:02:17.491 error Directory: /opt/iobroker/node_modules/iobroker.sayit
                          sayit.0 2017-06-21 15:02:17.491 error tcgetattr(): Inappropriate ioctl for device
                          sayit.0 2017-06-21 15:02:17.491 error THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
                          sayit.0 2017-06-21 15:02:17.491 error Uses code from various people. See 'README' for more!
                          sayit.0 2017-06-21 15:02:17.491 error now maintained by Nanakos Chrysostomos and others.
                          sayit.0 2017-06-21 15:02:17.491 error Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
                          sayit.0 2017-06-21 15:02:17.491 error High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
                          sayit.0 2017-06-21 15:02:17.491 error Cannot play:Error: Command failed: mpg321 '/opt/iobroker/node_modules/iobroker.sayit/say.mp3' -a default
                          sayit.0 2017-06-21 15:02:17.468 info Copied file '/opt/iobroker/node_modules/iobroker.sayit/say.mp3' to '/opt/iobroker/cache/790814bc3890533bdfd13659432d12d0.mp3'
                          sayit.0 2017-06-21 15:02:17.196 info saying: irgendwie muss es doch gehen
                          sayit.0 2017-06-21 15:02:16.241 error Can't open libao driver with device default (is device in use?)
                          sayit.0 2017-06-21 15:02:16.241 error ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_bluetooth.so
                          sayit.0 2017-06-21 15:02:16.241 error MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
                          sayit.0 2017-06-21 15:02:16.241 error Playing MPEG stream from gong.mp3 ...
                          sayit.0 2017-06-21 15:02:16.241 error Directory: /opt/iobroker/node_modules/iobroker.sayit
                          sayit.0 2017-06-21 15:02:16.241 error tcgetattr(): Inappropriate ioctl for device
                          sayit.0 2017-06-21 15:02:16.241 error THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
                          sayit.0 2017-06-21 15:02:16.241 error Uses code from various people. See 'README' for more!
                          sayit.0 2017-06-21 15:02:16.241 error now maintained by Nanakos Chrysostomos and others.
                          sayit.0 2017-06-21 15:02:16.241 error Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
                          sayit.0 2017-06-21 15:02:16.241 error High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
                          sayit.0 2017-06-21 15:02:16.241 error Cannot play:Error: Command failed: mpg321 '/opt/iobroker/node_modules/iobroker.sayit/gong.mp3' -a default
                          sayit.0 2017-06-21 15:02:16.177 info saying: /opt/iobroker/node_modules/iobroker.sayit/gong.mp3
                          javascript.0 2017-06-21 15:02:16.162 info script.js.TEST.sayit-test: registered 0 subscriptions and 0 schedules
                          javascript.0 2017-06-21 15:02:16.156 info Start javascript script.js.TEST.sayit-test
                          javascript.0 2017-06-21 15:02:13.781 info Stop script script.js.TEST.sayit-test

                          
                          Jemand noch eine Idee? :|
                          1 Reply Last reply Reply Quote 0
                          • D
                            Desa last edited by

                            Ja, Da ich ein ähnliches Problem hatte befor ich zu OMX Player gegangen bin und dann doch wieder zurück ^^

                            Ich hoffe das ich nicht gesteinigt werde, aber im Fhem Forum bin ich letztes mal fündig geworden.

                            Ich kopier einfach mal das wichtigste raus

                            da ich nicht weiss ob Ich den link Posten darf
                            ` > Ich habe festgellt, dass beim Aufruf in der Commandozeile vom rpi trotz, dass er den mp3 abspielt, eine Fehlermeldung mit ausspuckt (snd_pcm_open_noupdate) Unknown PCM cards.pcm.front).

                            Dies habe ich behoben indem ich in der /usr/share/alsa/alsa.conf die Zeile pcm.front cards.pcm.front” in pcm.front cards.pcm.default“ geändert habe.

                            Also das gesamte Doing:

                            sudo apt-get install alsa-utils

                            sudo apt-get install mpg321

                            sudo apt-get install lame

                            In der /usr/share/alsa/alsa.conf die Zeile pcm.front cards.pcm.front” in pcm.front cards.pcm.default“ ändern. und > root@banana-pi:/opt/fhem# ls -l /dev/snd/

                            total 0

                            drwxr-xr-x 2 root root 60 Jan 1 2010 by-path

                            crw-rw–-- 1 root audio 116, 4 Jan 1 2010 controlC0

                            crw-rw---- 1 root audio 116, 3 Jan 1 2010 pcmC0D0c

                            crw-rw---- 1 root audio 116, 2 Jan 1 2010 pcmC0D0p

                            crw-rw---- 1 root audio 116, 33 Jan 1 2010 timer `

                            Benutze jedoch auch Fhem mit,

                            Und bitte kontrolliere ob du unter beiden Usern root wie auch deinem User abspielen kannst.

                            Hoffe das Hilft dir ein bisschen weiter, bei mir fehlte damals die hälfte von alsa

                            Lg

                            1 Reply Last reply Reply Quote 0
                            • Vardaaran
                              Vardaaran last edited by

                              Vielen Dank für den Tipp!

                              Werde es baldmöglichst ausprobieren. Bis dahin habe ich wieder das alte Image geladen und lasse den Lautsprecher mit Klinke verbunden. Manchmal ist die alte Methode doch die Beste… 😉 😄

                              1 Reply Last reply Reply Quote 0
                              • S
                                Snatch last edited by

                                Hallo,

                                ich habe exakt das gleiche Problem. Per Console 1a, per SayIt direkt aus IBroker nix.

                                Gibt es hier eine Lösung mittlerweile?

                                Grüße

                                1 Reply Last reply Reply Quote 0
                                • Vardaaran
                                  Vardaaran last edited by

                                  @Snatch:

                                  Hallo,

                                  ich habe exakt das gleiche Problem. Per Console 1a, per SayIt direkt aus IBroker nix.

                                  Gibt es hier eine Lösung mittlerweile?

                                  Grüße `

                                  Leider nicht. 😢

                                  Habe mich mit der "Kabellösung" abgefunden…

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Snatch last edited by

                                    @Vardaaran:

                                    @Snatch:

                                    Hallo,

                                    ich habe exakt das gleiche Problem. Per Console 1a, per SayIt direkt aus IBroker nix.

                                    Gibt es hier eine Lösung mittlerweile?

                                    Grüße `

                                    Leider nicht. 😢

                                    Habe mich mit der "Kabellösung" abgefunden… `

                                    Sehr schade, dann teste ich mal weiter.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Snatch last edited by

                                      So, ich habe etwas gefunden was das Problem sein könnte aber kann es nicht deute.

                                      Im Objekt "MP3" steht folgendes "Can be accessed from web server under http://ip:8082/state/sayit.0.tts.mp3".

                                      Der Link führt aber ins leere (Ja, IP wurde angepasst).

                                      Dieses Objekt wird immer dann aufgerufen, wenn ein Text ausgegeben werden soll. Liegt vielleicht daran. Verstehe aber nicht, wie ich das fixen könnte.

                                      Grüße

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Snatch last edited by

                                        So, bei mir geht es jetzt.

                                        Habe SayIt komplett deinstalliert:

                                        iobroker stop
                                        npm remove iobroker.sayit
                                        iobroker start
                                        
                                        

                                        Dann das Verzeichnis war aber SayIt unter "Instanzen" immer noch da, also auch dort nochmal deinstalliert.

                                        Anschließend SayIt wieder installiert:

                                        iobroker stop
                                        npm install iobroker.sayit
                                        iobroker upload
                                        iobroker start
                                        
                                        

                                        Dann eben im IOBroker die Instanz "SayIt" wieder angelegt.

                                        Nun funktioniert es wunderbar mit meinem Blocky-Skript

                                        1 Reply Last reply Reply Quote 0
                                        • V
                                          vondefenn last edited by

                                          Gleiches Problem bei mir seit STRETCH; liegt an den Zugriffsrechten von root auf das pulse audio, bzw. für root wird keine pulse-audio Instanz geladen; (weil iobroker als root läuft). Normale User laden den pulse audio mit login, daher funktioniert das auch über die Shell, aber nicht in der sayit Instanz)

                                          Lösung siehe:

                                          https://askubuntu.com/questions/751750/ … t-usermode

                                          solved it by running,

                                          pulseaudio -D as root on each start up.

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

                                          Support us

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

                                          1.1k
                                          Online

                                          31.7k
                                          Users

                                          79.7k
                                          Topics

                                          1.3m
                                          Posts

                                          5
                                          31
                                          4329
                                          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