melhorando as falas da alexa
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
This commit is contained in:
@@ -670,7 +670,7 @@ class NaviSonicPlayFavouriteSongs(AbstractRequestHandler):
|
|||||||
song_id_list = connection.build_song_list_from_favourites()
|
song_id_list = connection.build_song_list_from_favourites()
|
||||||
|
|
||||||
if song_id_list is None:
|
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)
|
handler_input.response_builder.speak(text).ask(text)
|
||||||
|
|
||||||
return handler_input.response_builder.response
|
return handler_input.response_builder.response
|
||||||
@@ -730,7 +730,8 @@ class NaviSonicSongDetails(AbstractRequestHandler):
|
|||||||
artist = sanitise_speech_output(current_track.artist)
|
artist = sanitise_speech_output(current_track.artist)
|
||||||
album = sanitise_speech_output(current_track.album)
|
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)
|
handler_input.response_builder.speak(text)
|
||||||
|
|
||||||
return handler_input.response_builder.response
|
return handler_input.response_builder.response
|
||||||
@@ -997,7 +998,7 @@ class SystemExceptionHandler(AbstractExceptionHandler):
|
|||||||
logger.error(f'Intent Name Was: {get_intent_name(handler_input)}')
|
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("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)
|
handler_input.response_builder.speak(speech).ask(speech)
|
||||||
|
|
||||||
return handler_input.response_builder.response
|
return handler_input.response_builder.response
|
||||||
|
|||||||
Reference in New Issue
Block a user