Change-Id: Ibb7a6af4efad3e453810a5c9c99894b17ec63232
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
void __tts_config_voice_changed_cb(const char* before_lang, int before_voice_type, const char* language, int voice_type, bool auto_voice, void* user_data)
{
SLOG(LOG_DEBUG, TAG_TTSC, "Voice changed : Before lang(%s) type(%d) , Current lang(%s), type(%d)",
void __tts_config_voice_changed_cb(const char* before_lang, int before_voice_type, const char* language, int voice_type, bool auto_voice, void* user_data)
{
SLOG(LOG_DEBUG, TAG_TTSC, "Voice changed : Before lang(%s) type(%d) , Current lang(%s), type(%d)",
int tts_create(tts_h* tts)
{
int tts_create(tts_h* tts)
{
do {
ret = tts_dbus_request_finalize(client->uid);
if (0 != ret) {
do {
ret = tts_dbus_request_finalize(client->uid);
if (0 != ret) {
if (TTS_ERROR_TIMED_OUT != ret) {
SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] result : %s", __tts_get_error_code(ret));
break;
if (TTS_ERROR_TIMED_OUT != ret) {
SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] result : %s", __tts_get_error_code(ret));
break;
}
} while (0 != ret);
} else {
}
} while (0 != ret);
} else {
void __tts_screen_reader_changed_cb(bool value)
{
g_screen_reader = value;
}
void __tts_screen_reader_changed_cb(bool value)
{
g_screen_reader = value;
}
int tts_set_mode(tts_h tts, tts_mode_e mode)
{
int tts_set_mode(tts_h tts, tts_mode_e mode)
{
do {
ret = tts_dbus_request_finalize(client->uid);
if (0 != ret) {
do {
ret = tts_dbus_request_finalize(client->uid);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
}
} while (0 != ret);
} else {
}
} while (0 != ret);
} else {
while (0 != ret) {
ret = tts_dbus_request_add_text(client->uid, text, temp, voice_type, speed, client->current_utt_id, client->credential);
if (0 != ret) {
while (0 != ret) {
ret = tts_dbus_request_add_text(client->uid, text, temp, voice_type, speed, client->current_utt_id, client->credential);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
} else {
*utt_id = client->current_utt_id;
}
} else {
*utt_id = client->current_utt_id;
}
while (0 != ret) {
ret = tts_dbus_request_play(client->uid, client->credential);
if (0 != ret) {
while (0 != ret) {
ret = tts_dbus_request_play(client->uid, client->credential);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
while (0 != ret) {
ret = tts_dbus_request_stop(client->uid);
if (0 != ret) {
while (0 != ret) {
ret = tts_dbus_request_stop(client->uid);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
while (0 != ret) {
ret = tts_dbus_request_pause(client->uid);
if (0 != ret) {
while (0 != ret) {
ret = tts_dbus_request_pause(client->uid);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
while (0 != ret) {
ret = tts_dbus_request_set_private_data(client->uid, key, data);
if (0 != ret) {
while (0 != ret) {
ret = tts_dbus_request_set_private_data(client->uid, key, data);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
while (0 != ret) {
ret = tts_dbus_request_get_private_data(client->uid, key, data);
if (0 != ret) {
while (0 != ret) {
ret = tts_dbus_request_get_private_data(client->uid, key, data);
if (0 != ret) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
if (TTS_ERROR_INVALID_PARAMETER == ret && false == is_prepared) {
client->current_state = TTS_STATE_CREATED;
if (0 == tts_prepare_sync(tts)) {
static Eina_Bool __tts_notify_error(void *data)
{
tts_h tts = (tts_h)data;
static Eina_Bool __tts_notify_error(void *data)
{
tts_h tts = (tts_h)data;
int __tts_cb_utt_started(int uid, int utt_id)
{
int __tts_cb_utt_started(int uid, int utt_id)
{
int tts_repeat(tts_h tts, char** text_repeat, int* utt_id)
{
int tts_repeat(tts_h tts, char** text_repeat, int* utt_id)
{
return client->cb_ref_count;
}
return client->cb_ref_count;
}
int tts_client_get_connected_client_count()
{
GList *iter = NULL;
int tts_client_get_connected_client_count()
{
GList *iter = NULL;
{
return g_client_list;
}
{
return g_client_list;
}
int tts_dbus_request_play_pcm(int uid)
{
DBusMessage* msg;
int tts_dbus_request_play_pcm(int uid)
{
DBusMessage* msg;