Skip to content

Instantly share code, notes, and snippets.

@frivas
Created May 2, 2019 16:46
Show Gist options
  • Save frivas/d6edf4920c9488ff7fd3a5c6e8854fc4 to your computer and use it in GitHub Desktop.
Save frivas/d6edf4920c9488ff7fd3a5c6e8854fc4 to your computer and use it in GitHub Desktop.
LaunchRequest
def handle(self, handler_input):
prepareTools()
polly = connectToPolly()
polly_mix_result = generatePollyMix(polly, "Hola, bienvenidos a esta skill de ejemplo. Prueba decirme nombres de chico y chica y eso determinará la voz que utilizaré", 'Lucia', background_file_intro)
audio_mix = getS3AudioFile()
speech_text = f"<speak> Esto es Poly {audio_mix} Dime un numbre</speak>"
logger.info(speech_text)
logger.info(get_plain_text_content(primary_text=speech_text))
handler_input.response_builder.speak(speech_text).set_should_end_session(False)
return handler_input.response_builder.response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment