Created
May 2, 2019 16:46
-
-
Save frivas/d6edf4920c9488ff7fd3a5c6e8854fc4 to your computer and use it in GitHub Desktop.
LaunchRequest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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