Closed peetzweg closed 7 years ago
Super duper easy
const synthesize = text => {
const params = {
OutputFormat: "mp3",
SampleRate: "8000",
Text: text,
TextType: "text",
VoiceId: "Joey"
};
const polly = new Polly();
return polly.synthesizeSpeech(params).promise();
};
Write a Javascript programm which uses aws polly to generate the audio file for a given text