2016-06-16 5 views
0

Alexa + Lambda + Javascript로 더 발음적인 발음을 처리하고 일시 중지하려고합니다. 나는 문서에서 보았습니다 : https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference 당신은 음성 합성 마크 업 언어를 사용하여 그렇게 할 수 있습니다. 그러나, 내가 빌드 및 알렉사 뭔가 말할 수 있도록 자바 스크립트 개체를 보낼 때 오류 메시지가 나타납니다.Amazon Echo (Alexa) 및 SSML에 문제가있는 경우

이것은 내가 알렉사 람다 로그 파일에서 말을 보내고있다 속성 : 저는 누락 정확히의

{ outputSpeech: { type: 'SSML', ssml: '<speak>This output speech uses SSML.</speak>' } } 

어떤 아이디어?

미리 감사드립니다.

+0

당신은 또한 오류 메시지를 공유 할 수 있습니까? – master565

답변

1

buildSSMLSpeechletResponse를 업데이트했는지 확인하십시오. 콜백에 사용할 새로운 함수를 추가하여 올바른 영역에 SSML 출력을 사용할 수있게했습니다.

function buildSSMLSpeechletResponse(title, output, repromptText, shouldEndSession) { 
 
    return { 
 
     outputSpeech: { 
 
      type: "SSML", 
 
      ssml: output 
 
     }, 
 
     card: { 
 
      type: "Simple", 
 
      title: "SessionSpeechlet - " + title, 
 
      content: "SessionSpeechlet - " + output 
 
     }, 
 
     reprompt: { 
 
      outputSpeech: { 
 
       type: "SSML", 
 
       text: repromptText 
 
      } 
 
     }, 
 
     shouldEndSession: shouldEndSession 
 
    }; 
 
}

관련 문제