This file contains hidden or 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>" |
This file contains hidden or 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): | |
# type: (HandlerInput) -> Response | |
polly = connectToPolly() | |
gender_detector = gender.Detector() | |
get_name = get_slot_value(handler_input, 'name') | |
logger.info(f"NAME {get_name}") | |
get_gender = gender_detector.get_gender(get_name.capitalize()) |
This file contains hidden or 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
function BlinkingBackground() { | |
const [isLeft, setLeft] = useState(true); | |
console.log(isLeft); | |
const onMouseMove = (evt) => { | |
return setLeft(evt.nativeEvent.offsetX < 90); | |
}; | |
const divStyle = { | |
backgroundColor: isLeft ? "blue" : "red", | |
width: "100px", | |
height: "100px" |
OlderNewer