김수민

-

......@@ -59,6 +59,8 @@
<workItem from="1574342689824" duration="11000" />
<workItem from="1574396813813" duration="10012000" />
<workItem from="1574494473410" duration="2577000" />
<workItem from="1574565997693" duration="30000" />
<workItem from="1574569996051" duration="559000" />
</task>
<servers />
</component>
......
......@@ -147,11 +147,22 @@ function handleEvent(event) {
var objBody = JSON.parse(response.body);
result.text = objBody.message.result.translatedText;
//번역된 문자 audio로 저장
if(options.form.target=='ko'){
let audio_options={
'Text': result.text,
'OutputFormat': 'mp3',
'VoiceId':'Amy'
'VoiceId':'Amy',
"LanguageCode":'ko-KR'
};
}
else if(options.form.target=='en'){
let audio_options={
'Text': result.text,
'OutputFormat': 'mp3',
'VoiceId':'Amy',
"LanguageCode":'en-US'
};
}
Polly.synthesizeSpeech(audio_options, (err, data) => {
console.log("check");
if (err) {
......