g_voice_type = voice_type;
g_speed = speed;
- SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] repeat: text(%s), language(%s), voice type(%d), speed(%d)", client->text_repeat, g_language, g_voice_type, g_speed);
+ SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] repeat: text(%s), language(%s), voice type(%d), speed(%d)", client->text_repeat, (g_language) ? g_language : "NULL", g_voice_type, g_speed);
/* change default language value */
char* temp = NULL;
return ret;
}
*text_repeat = strdup(client->text_repeat);
- SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] text to repeat(%s), utt_id(%d)", *text_repeat, *utt_id);
+ SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] text to repeat(%s), utt_id(%d)", (*text_repeat) ? *text_repeat : "NULL", *utt_id);
if (NULL != tmp_text) {
free(tmp_text);
tmp_text = NULL;
/* check file path to synthesize */
else if (!strcmp("-f", argv[n])) {
src_path = TTS_STRDUP(argv[n+1]);
- SLOG(LOG_ERROR, tts_tag(), "File path : %s", src_path);
+ SLOG(LOG_ERROR, tts_tag(), "File path : %s", (src_path) ? src_path : "NULL");
if (!__tts_test_get_text_from_file(src_path, &g_text)) {
return 0;
}