say.js icon indicating copy to clipboard operation
say.js copied to clipboard

slow speed not working properly on all voices on Mac

Open psenough opened this issue 6 years ago • 3 comments

On Mac OSX, all voices seem to handle speed up but only Alex seems able to do slow down. Example with output experienced: say.speak('Hello!','Alex','0.5'); //speaks slow say.speak('Hello!','Alex','1.0'); //speaks normal say.speak('Hello!','Alex','2.0'); //speaks fast

say.speak('Hello!','Samantha','0.5'); //speaks normal say.speak('Hello!','Samantha','1.0'); //speaks normal say.speak('Hello!','Samantha','2.0'); //speaks fast

command line seems to work fine, both of the following examples speak slow: say -v Alex "hello" -r100 say -v Samantha "hello" -r100

psenough avatar Dec 13 '18 18:12 psenough

seems to be convertSpeed that's screwing up, if i bypass line 24 of darwin.js with args.push('-r', speed) and use say.speak('Hello!','Samantha','100'); she speaks slow

psenough avatar Dec 13 '18 18:12 psenough

console.log(convertSpeed(0.5)); console.log(convertSpeed('0.5')); console.log(convertSpeed(0.25)); console.log(convertSpeed('0.25')); console.log(convertSpeed(1.0)); console.log(convertSpeed('1.0')); all give proper results though, so not the function itself, weird stuff

psenough avatar Dec 13 '18 18:12 psenough

say.speak('Hello!','Samantha','80'); she speaks normal speed again. i'm guessing there is a minimum rate threshold, and that anything below that snaps back to normal speed default instead of lowest possible. haven't found any documentation online on the max and min rate for the voices. there are some information that they differ between voices. might be worth investigating further to cap these limits somehow, or just have them documented for the user to know how low can they go. :)

psenough avatar Dec 13 '18 18:12 psenough