Problème TTS V4 SONOS message "imposible de lire mp3"

Bonjour à tous,
Je galère à finaliser la fonction « Dire » avec mon Sonos One :
Aprés avoir parcouru longuement le forum je suis arrivé à créer le fichier mp3 sur mon Nas Synology mais sonos me dit : « Impossible de lire c12c36b51486193a7f57dff5a7a43ced.mp3 le fichier n’est pas correctement codé »
Voila ce que j’ai fait :

  • Installer ffmpeg sur mon RPI3 sous Buster + Reboot : sudo apt-get -y install ffmpeg
  • Créer le répertoire TTS sur mon NAS avec les droits écriture et lecteur pour Jeedom
  • Configurer plugin sonos avec chemin vers le NAS (le fichier mp3 est bien créé mais avec 0ko : c’est normal ?)
  • Ajouter dans la bibliothèque de l’application SONOS sous windows le chemin du répertoire TTS sur le NAS
  • API TTS est Activé

Log TTS :

[2020-10-26 16:13:32][DEBUG] : Call tts api : Array (     [apikey] => KkgJ4bnYsxSgTgWjCPDkNX0LEbVZ3WAd     [text] => Hello comment ca va ? ) 
[2020-10-26 16:13:32][DEBUG] : Generate tts for /tmp/jeedom/tts/03d5a7b772c2e3f3e5dc372cfe10b8e0.mp3 (Hello comment ca va ?) with engine pico
[2020-10-26 16:13:32][DEBUG] : pico2wave -l=fr-FR -w=03d5a7b772c2e3f3e5dc372cfe10b8e0.wav "Hello comment ca va ?" > /dev/null 2>&1;ffmpeg -i 03d5a7b772c2e3f3e5dc372cfe10b8e0.wav -ar 44100 -af "volume=6dB" -ac 2 -ab 192k -f mp3 /tmp/jeedom/tts/03d5a7b772c2e3f3e5dc372cfe10b8e0.mp3 > /dev/null 2>&1;rm 03d5a7b772c2e3f3e5dc372cfe10b8e0.wav

Log Sonos

[2020-10-26 16:56:47][INFO] : sending soap request to: http://192.168.1.20:1400/MediaRenderer/AVTransport/Control
[2020-10-26 16:56:47][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:AVTransport:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetMediaInfo><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetMediaInfo></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:47][DEBUG] : RESPONSE: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMediaInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><NrTracks>9</NrTracks><MediaDuration>NOT_IMPLEMENTED</MediaDuration><CurrentURI>x-rincon-queue:RINCON_7828CAF64F0401400#0</CurrentURI><CurrentURIMetaData></CurrentURIMetaData><NextURI></NextURI><NextURIMetaData></NextURIMetaData><PlayMedium>NETWORK</PlayMedium><RecordMedium>NOT_IMPLEMENTED</RecordMedium><WriteStatus>NOT_IMPLEMENTED</WriteStatus></u:GetMediaInfoResponse></s:Body></s:Envelope>
[2020-10-26 16:56:47][INFO] : sending soap request to: http://192.168.1.20:1400/MediaRenderer/RenderingControl/Control
[2020-10-26 16:56:47][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:RenderingControl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetVolume><Channel xsi:type="xsd:string">Master</Channel><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetVolume></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:47][DEBUG] : RESPONSE: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>25</CurrentVolume></u:GetVolumeResponse></s:Body></s:Envelope>
[2020-10-26 16:56:50][INFO] : sending soap request to: http://192.168.1.20:1400/MediaRenderer/AVTransport/Control
[2020-10-26 16:56:50][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:AVTransport:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetTransportInfo><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetTransportInfo></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:50][DEBUG] : RESPONSE: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetTransportInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><CurrentTransportState>STOPPED</CurrentTransportState><CurrentTransportStatus>OK</CurrentTransportStatus><CurrentSpeed>1</CurrentSpeed></u:GetTransportInfoResponse></s:Body></s:Envelope>
[2020-10-26 16:56:50][INFO] : sending soap request to: http://192.168.1.20:1400/MediaRenderer/AVTransport/Control
[2020-10-26 16:56:50][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:AVTransport:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetTransportSettings><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetTransportSettings></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:50][DEBUG] : RESPONSE: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetTransportSettingsResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><PlayMode>SHUFFLE_NOREPEAT</PlayMode><RecQualityMode>NOT_IMPLEMENTED</RecQualityMode></u:GetTransportSettingsResponse></s:Body></s:Envelope>
[2020-10-26 16:56:50][INFO] : sending soap request to: http://192.168.1.20:1400/MediaRenderer/AVTransport/Control
[2020-10-26 16:56:50][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:AVTransport:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetTransportSettings><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetTransportSettings></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:50][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:AVTransport:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetMediaInfo><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetMediaInfo></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:50][DEBUG] : RESPONSE: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMediaInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><NrTracks>9</NrTracks><MediaDuration>NOT_IMPLEMENTED</MediaDuration><CurrentURI>x-rincon-queue:RINCON_7828CAF64F0401400#0</CurrentURI><CurrentURIMetaData></CurrentURIMetaData><NextURI></NextURI><NextURIMetaData></NextURIMetaData><PlayMedium>NETWORK</PlayMedium><RecordMedium>NOT_IMPLEMENTED</RecordMedium><WriteStatus>NOT_IMPLEMENTED</WriteStatus></u:GetMediaInfoResponse></s:Body></s:Envelope>
[2020-10-26 16:56:51][INFO] : sending soap request to: http://192.168.1.20:1400/MediaRenderer/RenderingControl/Control
[2020-10-26 16:56:51][DEBUG] : REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:schemas-upnp-org:service:RenderingControl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:GetVolume><Channel xsi:type="xsd:string">Master</Channel><InstanceID xsi:type="xsd:string">0</InstanceID></ns1:GetVolume></SOAP-ENV:Body></SOAP-ENV:Envelope> 
[2020-10-26 16:56:51][DEBUG] : RESPONSE: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>25</CurrentVolume></u:GetVolumeResponse></s:Body></s:Envelope>

Il doit pas y avoir grand chose mais la je bloc !!
Merci par avance pour votre aide :grin:
Stéphane

1 « J'aime »

Personne pour m’aider ?

Bonjour à tous,
Je n’arrive pas à trouver la solution !!
Quelqu’un peut m’aider ?
Help !
Stéphane

Ton fichier n’est pas créé puisque tu dis qu’il fait 0Ko !

Bonjour à tous,
Je suis enfin arrivé à faire fonctionner la commande « Dire » avec ma Sonos one :grinning:.
En plus des éléments effectué au dessus j’ai installé le Plugin PlayTTS et lancé les dépendances.
Mais je ne pense pas que ca soit ce plugin qui ai résolu le problème car je l’ai désinstallé et cela fonctionne bien.
En plus j’ai modifié dans la configuration Jeedom le Moteur TTS qui est par défaut = Pico.
J’ai mis « Espeak » et lors d’un essai j’ai eu une voix de robot qui sortait enfin de ma Sonos.
J’ai ensuite remis Pico et la voix de la sonos est devenue identique à la fonction OK google de ma Sonos.
Ayant fait les deux manip en même temps je ne suis pas sur de l’action qui a résolu le problème.
En tout cas si ca peut aider ! :+1:
A bientot
Stéphane

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.