node-red-node-watson icon indicating copy to clipboard operation
node-red-node-watson copied to clipboard

TTS sample rate

Open hipitihop opened this issue 5 years ago • 2 comments

The node UI parameters allows format selection but not sample rate. Is it possible to provide the sample rate via the incoming msg e.g.

msg.payload = "Hello world from Watson";
msg.sampleRate = 16000;
return msg;

hipitihop avatar Jul 07 '19 03:07 hipitihop

Looks like whether you can or must supply sample rate is dependent on the selected format.

https://cloud.ibm.com/apidocs/text-to-speech#synthesize-audio-get

I have added this requirement to the backlog.

chughts avatar Jul 08 '19 12:07 chughts

@chughts Thanks. Indeed some formats must specify whereas others are optional and have defaults. I'm particularly interested in WAV because I need 16000 and the default is 22050

hipitihop avatar Jul 12 '19 00:07 hipitihop