summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/mixer
AgeCommit message (Expand)AuthorFilesLines
2017-11-14Update app DEPENDS for new HMI frameworkScott Murray1-3/+7
2017-11-05Allow SRCREV handling through poky-agl.confeel_4.99.2eel/4.99.24.99.2Jan-Simon Möller1-2/+2
2017-05-29Unpin after Daring Dab RC1Jan-Simon Moeller1-1/+0
2017-05-25Add a bbappend with pinnning for all packages with AUTOREVdab_3.99.1dab/3.99.13.99.1Jan-Simon Möller1-0/+1
2016-12-28Use inherit aglwgt in application recipesJan-Simon Möller1-22/+6
2016-12-21Add AGL mixer application recipeMatt Porter1-0/+34
t> #include <QString> #include <QDebug> #define SYS_LANGUAGE_INIT 0 #define SYS_LANGUAGE_JP 1 #define SYS_LANGUAGE_EN 2 #define TTSMAX (2048) class Guidance_Module : public QObject { Q_OBJECT public: int g_voicelanguage = SYS_LANGUAGE_INIT; QString g_voice_module = ""; Q_INVOKABLE void guidance(const QString &text){ char tts_voice[TTSMAX]; int len = 0; memset(tts_voice,0,TTSMAX); strncat(tts_voice, "sh flite '", (TTSMAX - len - 1)); len = strlen(tts_voice); strncat(tts_voice, text.toUtf8().data(), (TTSMAX - len - 1)); len = strlen(tts_voice); strncat(tts_voice, "'&", (TTSMAX - len - 1)); system(tts_voice); } }; #endif // GUIDANCE_MODULE_H