MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / NRL

Function NRL

extlibs/soloud/src/audiosource/speech/tts.cpp:1164–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162
1163
1164static int NRL(const char *s, int n, darray *phone)
1165{
1166 int old = phone->getSize();
1167 char *word = (char *) malloc(n + 3);
1168 char *d = word;
1169 *d++ = ' ';
1170
1171 while (n-- > 0)
1172 {
1173 char ch = *s++;
1174
1175 if (islower(ch))
1176 ch = toupper(ch);
1177
1178 *d++ = ch;
1179 }
1180
1181 *d++ = ' '; // kinda unnecessary
1182
1183 *d = '\0';
1184 guess_word(phone, word);
1185 free(word);
1186 return phone->getSize() - old;
1187}
1188
1189
1190static int spell_out(const char *word, int n, darray *phone)

Callers 1

xlate_wordFunction · 0.85

Calls 2

guess_wordFunction · 0.85
getSizeMethod · 0.45

Tested by

no test coverage detected