node-sonos-http-api icon indicating copy to clipboard operation
node-sonos-http-api copied to clipboard

voicerss speed paramter

Open henmedia opened this issue 8 years ago • 2 comments

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" }

henmedia avatar Jan 02 '17 12:01 henmedia

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.

JayVee2 avatar Jan 13 '18 15:01 JayVee2

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".

0rTiN avatar Jan 02 '20 11:01 0rTiN