/* Calculate xRT */
clock_gettime(CLOCK_MONOTONIC_RAW, &g_finish_playing);
long long int time_processing = (uint64_t)TIME_DIFF(g_request_playing, g_finish_playing);
- long long int time_speech = (long long int)(1000 * g_total_data_size * sizeof(short) / (rate * audio_type_bytes));
+ long long int time_speech = (long long int)(1000 * g_total_data_size * sizeof(char) / (rate * audio_type_bytes));
double xRT = (double)(time_processing) / (double)time_speech;
SLOG(LOG_INFO, tts_tag(), "[SERVER] time_processing : %lld, time_speech : %lld, total data size: %d", time_processing, time_speech, g_total_data_size);
SLOG(LOG_INFO, tts_tag(), "[SERVER] xRT : %lf", xRT);