Revert "add printing api for personal voices" 54/316954/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 2 Sep 2024 01:53:05 +0000 (10:53 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Mon, 2 Sep 2024 01:55:41 +0000 (10:55 +0900)
This reverts commit c489db72256a4a44e4ef7e587b278e2e19bf4a42.

Change-Id: Ia977b3620f6c0c5e256776521861c49cb4b82721

common/tts_config_mgr.c

index dc83591..1b2b99b 100644 (file)
@@ -2210,42 +2210,6 @@ bool tts_config_check_default_voice_is_valid(const char* language, int type)
        return __tts_config_mgr_check_lang_is_valid(config_info.engine_id, language, type);
 }
 
-int __tts_config_mgr_print_personal_info(const char* engine_id)
-{
-       char filepath[512] = {'\0',};
-
-       memset(filepath, '\0', 512);
-       snprintf(filepath, 512, "%s/%s-%s", TTS_DOWNLOAD_PERSONAL_INFO, engine_id, "personal.xml");
-
-       tts_personal_info_s* info = NULL;
-       int ret = tts_parser_get_personal_info(filepath, &info);
-       if (0 != ret) {
-               return -1;
-       }
-
-       GSList *iter_personal_voice = NULL;
-       tts_config_personal_s* personal_voice = NULL;
-       if (g_slist_length(info->personal_voices) > 0) {
-               /* Get a first item */
-               iter_personal_voice = g_slist_nth(info->personal_voices, 0);
-
-               int j = 1;
-               while (NULL != iter_personal_voice) {
-                       /*Get handle data from list*/
-                       personal_voice = iter_personal_voice->data;
-
-                       SLOG(LOG_DEBUG, TAG_TTSCONFIG, "  [%dth] lang(%s) unique_id(%s) display_name(%s) device_name(%s)", j, personal_voice->language, personal_voice->unique_id, personal_voice->display_name, personal_voice->device_name);
-
-                       /*Get next item*/
-                       iter_personal_voice = g_slist_next(iter_personal_voice);
-                       j++;
-               }
-       } else {
-               return -1;
-       }
-
-       return 0;
-}
 
 int __tts_config_mgr_print_engine_info()
 {
@@ -2295,13 +2259,6 @@ int __tts_config_mgr_print_engine_info()
                } else {
                        SLOG(LOG_ERROR, TAG_TTSCONFIG, "  Voice is NONE");
                }
-
-               SLOG(LOG_DEBUG, TAG_TTSCONFIG, " Personal Voices");
-               int ret = __tts_config_mgr_print_personal_info(engine_info->uuid);
-               if (0 != ret) {
-                       SLOG(LOG_ERROR, TAG_TTSCONFIG, "  Personal Voice is NONE");
-               }
-
                iter = g_slist_next(iter);
                i++;
        }