Supergiovane / node-red-contrib-sonospollytts

Play speech TTS using Sonos.
https://www.facebook.com/supergiovaneDev
MIT License
12 stars 6 forks source link

SSML payload causes error in file-path #41

Closed JulianMBr closed 4 years ago

JulianMBr commented 4 years ago

The following payload with SSML produces the following error:

Payload: '<speak>Guten Morgen! Gerade sind es <emphasis level="strong">' & roofTemp & ' Grad</emphasis> draußen.</speak>'

"SonosPollyTTS: notifyError - msg: /opt/iobroker/iobroker-data/node-red//sonospollyttsstorage/ttsfiles/_less_speak_greater_Guten Morgen_em_ Gerade sind es _less_emphasis level="strong"_greater_25 Grad_less_/emphasis_greater_ draußen_stop__less_/speak_greater__Hans_ssml.mp3 error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/node-red//sonospollyttsstorage/ttsfiles/_less_speak_greater_Guten Morgen_em_ Gerade sind es _less_emphasis level="strong"_greater_25 Grad_less_/emphasis_greater_ draußen_stop__less_/speak_greater__Hans_ssml.mp3'"

Without using SSML (and therefore the tags) it is working fine.

Supergiovane commented 4 years ago

Hi Julian sonospollytts doesn't support emphasis at this time. You need to pass simple texts, for example "Guten Morgen! Gerade sind es 24 Grad draußen.", without the "<" and ">" brackets.

JulianMBr commented 4 years ago

Hey,

but that means I cannot use SSML, correct?

Supergiovane commented 4 years ago

Yes, sorry, i mean SSML. As soon as Amazon will add more SSML tags, i'll begin to work on that as well.

JulianMBr commented 4 years ago

Alright, thanks for the clarification! No worries and thank you for all those great nodes!