#include <Ecore.h>
#include "assert.h"
+#include "tct_common.h"
//& set: Stt
+#define API_NAMESPACE "STT_UTC"
+#define MICROPHONE_FEATURE "http://tizen.org/feature/microphone"
+#define SPEECH_RECOGNITION_FEATURE "http://tizen.org/feature/speech.recognition"
#define assert_eq_with_reset_TC_mode(ret, exp) do { \
if (ret != exp) { \
{
/* start of TC */
int ret = -1;
- g_stt_supported = false;
- system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &g_stt_supported);
+ g_stt_supported = TCTCheckSystemInfoFeatureSupported(MICROPHONE_FEATURE, API_NAMESPACE) &&
+ TCTCheckSystemInfoFeatureSupported(SPEECH_RECOGNITION_FEATURE, API_NAMESPACE);
+
g_current_state = 0;
g_error = TIZEN_ERROR_NONE;
#include <dlog.h>
#include "assert.h"
+#include "tct_common.h"
+
+#define API_NAMESPACE "STT_UTC"
+#define MICROPHONE_FEATURE "http://tizen.org/feature/microphone"
+#define SPEECH_RECOGNITION_FEATURE "http://tizen.org/feature/speech.recognition"
extern void transfer_arg(int * argc, char ** argv[]);
void utc_stte_startup(void)
{
/* start of TC */
- system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &g_is_supported);
+ g_is_supported = TCTCheckSystemInfoFeatureSupported(MICROPHONE_FEATURE, API_NAMESPACE) &&
+ TCTCheckSystemInfoFeatureSupported(SPEECH_RECOGNITION_FEATURE, API_NAMESPACE);
if (g_is_supported == false)
return;