16 Commits

Author SHA1 Message Date
athrxx
ee336d348b TTS: (Testbed) - implement tts enable option 2022-04-26 21:08:41 +03:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
a9bfe35216 GUI: U32: More issue fixes and general improvements
- Use the fake constructor for message dialog less often
- solve errors regarding comparision between string and u32string in midi
- solve errors in testbed/speech related to ttsMan->say
- fix unsigned comparision warning in tab.cpp
- fix issue with static strings and translations in sdl-graphics
2020-08-30 14:43:41 +02:00
aryanrawlani28
ef7ec444d3 GUI: U32: Enable u32 for tts (Windows)
They always take in U32 strings now.

- Revert tts descriptions to string, they don't use translations, so better to keep it as strings.
- Make read() take in const U32 references.
2020-08-30 14:43:41 +02:00
aryanrawlani28
d4d5b8906e GUI: U32: Begin making TTS take in U32Strings for saying
Only for strings without an explicit action. The first level takes in a u32 string, encodes it, and passes it along further with the default action

- For gui widgets, the strings are passed in as native u32 strings.
- For everything else, they are being converted to u32 by Common::convertToU32... and then being passed along
2020-08-30 14:43:41 +02:00
Thierry Crozat
6c2aaba04f TESTBED: Add test for stopping speech and immediately starting another 2020-06-21 19:09:49 +01:00
Thierry Crozat
4b774d71ac TESTBED: Use the default voice for the TTS tests 2020-06-21 16:31:15 +01:00
Jaromir Wysoglad
c2c4458253 JANITORIAL: Remove some trailing whitespaces 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
1a6ad384cb TESTBED: Increase pause in TTS pause test 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
f131cad3e5 TESTBED: Improve some TTS tests 2019-09-01 22:47:55 +03:00
Thierry Crozat
bd2757138b TESTBED: Make sure to process events while waiting for speech to finish
Same implementations of TextToSpeechManager may require system events
to be processed for the state synchronisation to work properly.

This commit also fixes a few typos or inconsistencies in some texts.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
84df34df10 TESTBED: Add tests for TTS *_NO_REPEAT actions 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
fb12e3b36b TESTBED: Rewrite parts of TTS tests.
As suggested by Criezy on github
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
98cea3e2ce TESTBED: Add state queries to TTS tests. 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
a5c9e8c74b TESTBET: Add TTS tests 2019-09-01 22:47:55 +03:00