@ Override public Reprompt getReprompt ( ) { if ( reprompt != null || ! output . shouldReprompt ( ) ) { return reprompt ; } final String repromptSpeech = yamlReader . getRandomReprompt ( output ) . orElse ( null ) ; if ( repromptSpeech != null ) { final String utteranceSsml = resolveSlotsInUtterance ( repromptSpeech ) ; final SsmlOutputSpeech ssmlOutputSpeech = new SsmlOutputSpeech ( ) ; ssmlOutputSpeech . setSsml ( utteranceSsml ) ; final Reprompt reprompt2 = new Reprompt ( ) ; reprompt2 . setOutputSpeech ( ssmlOutputSpeech ) ; return reprompt2 ; } return null ; }
Gets the generated reprompt .