19 #ifdef _WIN32_WINNT_WIN8 21 #elif defined(_WIN32) || defined(_MSC_VER) || defined(MINGW) 23 #if defined(_MSC_VER) && _MSC_VER < 1900 24 #define snprintf _snprintf 39 snprintf(buf,
sizeof(buf),
"\'%c\'", c);
41 snprintf(buf,
sizeof(buf),
"[character %d]", static_cast<int>(c));
42 return (std::string) buf;
46 #if defined(_MSC_VER) || defined(MINGW) 47 ::Sleep(static_cast<int>(seconds * 1000.0));
48 #elif defined(__CYGWIN__) 49 sleep(static_cast<int>(seconds));
51 usleep(static_cast<int>(seconds * 1000000.0));
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Sleep(float seconds)
std::string CharToString(const char &c)