I am having an issue with the Python new Beta ASK SDK. I have tried to start with Voice First, and my content works great. But when I try to add a template for the Echo Show, my Echo tells me "The Target device does not support directives for the Display Interface", but the content will work fine on an Echo Show. Obviously i want the content to work on all devices. What am I doing wrong?
My code that works for Voice only looks like this:
handler_input.response_builder.speak(speech_text).set_card( SimpleCard("Card Title", speech_text)).set_should_end_session( False) return handler_input.response_builder.response
This is the code that works on the Echo Show, give voice prompts, and will show response cards on the Alexa App, but wont work on the Echo.
handler_input.response_builder.speak(speech_text).set_card( SimpleCard(title, speech_text)).set_should_end_session( False).add_directive( RenderTemplateDirective( BodyTemplate3( token="token", back_button=BackButtonBehavior.HIDDEN, background_image=bg_img, image=main_img, title=title, text_content=text_content ))) return handler_input.response_builder.response