From c44b22d48658a4ae2346a2884c1542493e8c49c6 Mon Sep 17 00:00:00 2001 From: nunks Date: Sat, 8 Nov 2025 21:39:53 -0300 Subject: [PATCH] melhorando as falas da alexa --- skill/app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skill/app.py b/skill/app.py index fafa667..f2c3ea2 100755 --- a/skill/app.py +++ b/skill/app.py @@ -670,7 +670,7 @@ class NaviSonicPlayFavouriteSongs(AbstractRequestHandler): song_id_list = connection.build_song_list_from_favourites() if song_id_list is None: - text = sanitise_speech_output("Você não tem nada nos favoritos.") + text = sanitise_speech_output("Não tenho nada nos favoritos.") handler_input.response_builder.speak(text).ask(text) return handler_input.response_builder.response @@ -730,7 +730,8 @@ class NaviSonicSongDetails(AbstractRequestHandler): artist = sanitise_speech_output(current_track.artist) album = sanitise_speech_output(current_track.album) - text = f'This is {title} by {artist}, from the album {album}' + # text = f'This is {title} by {artist}, from the album {album}' + text = f'Essa é {title} de {artist}, do album {album}' handler_input.response_builder.speak(text) return handler_input.response_builder.response @@ -997,7 +998,7 @@ class SystemExceptionHandler(AbstractExceptionHandler): logger.error(f'Intent Name Was: {get_intent_name(handler_input)}') #speech = sanitise_speech_output("Sorry, I didn't get that. Can you please say it again!!") - speech = sanitise_speech_output("Foi mal, não entendi. Pode repetir!!") + speech = sanitise_speech_output("Foi mal, não entendi.") handler_input.response_builder.speak(speech).ask(speech) return handler_input.response_builder.response