node-sonos-http-api
node-sonos-http-api copied to clipboard
voicerss speed paramter
As the default tts voice speed is too fast (I set it to -2 for better understanding the voices), I manually added the speed to \lib\tts-providers\voicerss.js
const ttsRequestUrl =
http://api.voicerss.org/?key=${settings.voicerss}&f=22khz_16bit_mono&hl=${language}&src=${phrase}&r=-2;
It would be nice if this could be part of the configuration:
{ "voicerss_api_key": "api_key_here", "voicerss_speed: "-2" }
Speed can be -20 tio 20.
And I think that the language will be mostly the same in every environment, so da predefined default language would also be fine:
{ "voicerss_api_key": "api_key_here", "voicerss_speed: "-2", "voicerss_lang: "de-de" }
I used the update but can't get it work. The old syntax quit working and returns an error. { "voicerss: "api_key_here" }
The new syntax { "voicerss_api_key": "api_key_here", "voicerss_speed: "-2", "voicerss_lang: "de-de" } seems not to work. Neither key, nor speed, nor lang is working for me. settings.json file is used as I can successfully change the port.
Would be really nice to get this feature globaly. From my point of view the speed of Google's pronunciation is a little too slow not to say "sleepy".