node-red-node-watson
node-red-node-watson copied to clipboard
TTS sample rate
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;
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 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