Slide 20
Slide 20 text
)UNM3FTQPOTFͷEBUBʹ7VFKTʹ͢Λઃఆ͢Δ
// BMIଌఆॲཧ
app.intent('bmi', (conv, {height, weight}) => {
const bmiVal = (parseFloat(weight) / (parseFloat(height)/100 * parseFloat(height)/
100)).toFixed(1);
var speechText = `͋ͳͨͷBMI${bmiVal}Ͱ͢ɻ`;
conv.ask(speechText);
conv.ask(new HtmlResponse({
url: `https://{݁Ռը໘ͷURL}`,
suppress: true,
data: {
bmi: speechText,
},
}));
});