[Google Cast] sox FAIL formats: no handler for file extension `mp3'

Bonjour,

J’ai remarqué que le TTS ne fonctionne plus depuis un certain temps.

[2020-09-13 17:50:26][DEBUG] : ACTION------ action - tts - 93b1f478-0a2a-04ec-eaa7-2ec3532b82ee - Coucou - none
[2020-09-13 17:50:26][DEBUG] : ACTION------TTS action
[2020-09-13 17:50:26][DEBUG] : CMD-TTS------TTS Filename hexdigest : ee014f261bbc00073883743e20e078c4  (Coucougttsfr-FR300)
[2020-09-13 17:50:26][DEBUG] : CMD-TTS------Generating file
sox FAIL formats: no handler for file extension `mp3'
[2020-09-13 17:50:28][ERROR] : CMD-TTS------Google Translate API : Cannot connect to API - failover to picotts  ([Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/ee014f261bbc00073883743e20e078c4.mp3')
[2020-09-13 17:50:28][DEBUG] : Traceback (most recent call last):
  File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 1634, in get_tts_data
    speech = AudioSegment.from_mp3(filenamemp3)
  File "/var/www/html/plugins/googlecast/resources/pydub/audio_segment.py", line 728, in from_mp3
    return cls.from_file(file, 'mp3', parameters=parameters)
  File "/var/www/html/plugins/googlecast/resources/pydub/audio_segment.py", line 615, in from_file
    file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False)
  File "/var/www/html/plugins/googlecast/resources/pydub/utils.py", line 60, in _fd_or_path_or_tempfile
    fd = open(fd, mode=mode)
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/ee014f261bbc00073883743e20e078c4.mp3'

sh: 1: pico2wave: not found
[2020-09-13 17:50:28][ERROR] : CMD-TTS------Exception while generating tts file : [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/ee014f261bbc00073883743e20e078c4_failover.wav'
[2020-09-13 17:50:28][DEBUG] : Traceback (most recent call last):
  File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 1742, in get_tts_data
    speech = AudioSegment.from_wav(filename)
  File "/var/www/html/plugins/googlecast/resources/pydub/audio_segment.py", line 740, in from_wav
    return cls.from_file(file, 'wav', parameters=parameters)
  File "/var/www/html/plugins/googlecast/resources/pydub/audio_segment.py", line 615, in from_file
    file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False)
  File "/var/www/html/plugins/googlecast/resources/pydub/utils.py", line 60, in _fd_or_path_or_tempfile
    fd = open(fd, mode=mode)
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/ee014f261bbc00073883743e20e078c4_failover.wav'

[2020-09-13 17:50:28][DEBUG] : TTS------File generation failed !

Une idée ?

Le plugin Google Cast est à jour.
Version de Jeedom: 3.3.53

Bonjour,
une recherche sur le problème aurait mené à ceci Impossible de faire fonctionner le TTS avec Pico - #2 par Mips

1 « J'aime »

Bonjour,

J’avais fait une recherche mais effectivement j’ai du mal m’y prendre car je n’étais pas tombé dessus.
En tout cas je vous remercie car ça a résolu mon problème.

Merci

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