watson-developer-cloud / node-red-node-watson

A collection of nodes for the IBM Watson services
Apache License 2.0
82 stars 86 forks source link

TTS sample rate #458

Open hipitihop opened 5 years ago

hipitihop commented 5 years ago

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;
chughts commented 5 years ago

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.

hipitihop commented 4 years ago

@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