/*
-* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
#ifndef __TTSD_DATA_H_
#define __TTSD_DATA_H_
-#include "ttsp.h"
+#include "ttse.h"
#ifdef __cplusplus
extern "C" {
#endif
+
typedef enum {
APP_STATE_CREATED = 0,
APP_STATE_READY,
APP_STATE_PLAYING,
APP_STATE_PAUSED
-} app_state_e;
+} app_tts_state_e;
typedef struct {
int utt_id;
void* data;
unsigned int data_size;
- ttsp_result_event_e event;
- ttsp_audio_type_e audio_type;
+ ttse_result_event_e event;
+ ttse_audio_type_e audio_type;
int rate;
int channels;
} sound_data_s;
int ttsd_data_reset_used_voice(int uid, ttsd_used_voice_cb callback);
-int ttsd_data_get_client_state(int pid, app_state_e* state);
+int ttsd_data_get_client_state(int pid, app_tts_state_e* state);
-int ttsd_data_set_client_state(int pid, app_state_e state);
+int ttsd_data_set_client_state(int pid, app_tts_state_e state);
int ttsd_data_get_current_playing();
-typedef bool(*ttsd_data_get_client_cb)(int pid, int uid, app_state_e state, void* user_data);
+typedef bool(*ttsd_data_get_client_cb)(int pid, int uid, app_tts_state_e state, void* user_data);
int ttsd_data_foreach_clients(ttsd_data_get_client_cb callback, void* user_data);