TTS_language defined

tts_cz fixed to play 0.0x numbers correctly
CZ system and custom promts shifted to 260+
This commit is contained in:
mhotar@gmail.com
2012-08-13 20:15:44 +00:00
parent ddfc9f9e17
commit ec1df22130
5 changed files with 37 additions and 6 deletions
+11 -5
View File
@@ -132,11 +132,17 @@ void playNumber(int16_t number, uint8_t unit, uint8_t att)
int8_t mode = MODE(att);
if (mode > 0) {
div_t qr = div(number, (mode == 1 ? 10 : 100));
playNumber(qr.quot);
pushUnitPrompt(qr.quot,PROMPT_CELA);
playNumber(qr.rem,0,ZENSKY);
pushPrompt(PROMPT_UNITS_BASE+((unit-1)*4)+3);
div_t qr = div(number, (mode == 1 ? 10 : 100));
if (qr.rem) {
playNumber(qr.quot);
pushUnitPrompt(qr.quot,PROMPT_CELA);
if (mode != 1 && qr.rem < 10)
pushPrompt (PROMPT_NULA);
playNumber(qr.rem,0,ZENSKY);
pushPrompt(PROMPT_UNITS_BASE+((unit-1)*4)+3);
}
else
playNumber(qr.quot, unit);
return;
}