path: root/rbutil/rbutilqt/base/ttssapi.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-12-24rbutil: Merge rbutil with utils folder.Dominik Riebeling1-274/+0
rbutil uses several components from the utils folder, and can be considered part of utils too. Having it in a separate folder is an arbitrary split that doesn't help anymore these days, so merge them. This also allows other utils to easily use libtools.make without the need to navigate to a different folder. Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
2021-01-02rbutil: Modernize connect() to new pointer-to-member syntax.Dominik Riebeling1-2/+2
Change-Id: If737fe5a8f4ab9f83560511839fdc4ad8b187786
2020-12-05rbutil: Rework handling of available voice languages.Dominik Riebeling1-7/+4
- Move Rockbox voice language names handling to PlayerBuildInfo, and handle it similarly to the rest of the device specific values. Rework internal handling to simplify things. - Enable language list from build server for installing prerendered voice files other than english. - Extend unit tests. Change-Id: I1a1a717fa4409fa965dabc86f52d52a4fc516315
2020-11-19rbutil: Modernize code to use C++11 nullptr.Dominik Riebeling1-2/+2
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
2020-09-27rbutil: Fix some minor issues found by clazy.Dominik Riebeling1-1/+1
Change-Id: I0e63df09caf959dcb325c6ad2297c4348388a831
2020-08-16rbutil: QString::split() changed with Qt 5.14.Dominik Riebeling1-1/+5
Avoid a deprecated warning, and make it compile with Qt6, which removes the old version. Change-Id: Iaad10660a0c8bda9d7aa52ee250489ed135bd8a8
2020-08-16rbutil: Initial Qt6 support.Dominik Riebeling1-0/+4
Qt6 replaces QTextStream::setCodec() with QTextStream::setEncoding(). Change-Id: I4cfa90d89f54ad49d061ad859585a2a74b5f9786
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling1-11/+12
Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
2012-09-09Make SAPI implementation more parametrizable.Dominik Riebeling1-32/+30
Move command line template for listing voices and generation into protected member variables and initialize them in the constructor. This allows derived classes to overwrite these, allowing to change the command line call. Make the name used for storing the classes values to the configuration parametrize at all. Remove SAPI4 support, this will be handled in a derived class later. Change-Id: Ib5a261c56cdf93a44fffdfa6edea409d89fd84ba
2012-09-08Change sapi_voice.vbs voice list separation character.Dominik Riebeling1-1/+4
The currently used comma for separating voices for the /listvoices command is used by Speech Platform based voices. Change the character to a semicolon which isn't used by voices. Change-Id: I1a7e6e4229f864f56635143e864dadf38cdd7e73
2012-06-25Add missing class name to System Trace log.Dominik Riebeling1-1/+1
To identify the source for System Trace entries qDebug() calls usually add the class name at the beginning. Add some missing ones and remove some trailing spaces. Change-Id: I3179bb206e96de8b5a1c05c0fc0958936e4513f3
2012-05-19Show nicer language names in voice creation dialog.Dominik Riebeling1-2/+6
Instead of showing the internal language names show some more human friendly string. Currently only applies to the voice creation dialog, the language configuration dialog needs further adjustments to support display strings differing from values. Change-Id: Ic94838f1079c1d09a666d7dbd9682c577f686b3f
2012-02-22Don't poll SAPI script output.Dominik Riebeling1-5/+2
Wait for the process to signal new data available instead of polling its output. Fixes synchronisation issues with sapi_voice.vbs that were causing FS#12595. Change-Id: I86e844e837ed20f32005fdccf7ec9e8c1efbe983
2012-01-17Fix a typo.Dominik Riebeling1-1/+1
Change-Id: I32a0d202385f025e0f450f7ba2fba5b6334d8f39
2012-01-17TTS: check if created wav file exists.Dominik Riebeling1-0/+4
Instead of simply assuming the wav file that is supposed to be created by the TTS engine check if the file actually exists and return an error if not. Change-Id: I9e4a85a061b44b48931614602683b1dfe7dfce67
2012-01-14Improve error handling and logging.Dominik Riebeling1-7/+10
- Fix a warning - Log an error if the file to encode cannot be read. - Adjust some log strings.
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling1-1/+0
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-09-26Rockbox Utility TTS: implement reading TTS vendor.Dominik Riebeling1-2/+24
Support retrieving the vendor name of the TTS. This will be used by TTS string corrections. Currently no other TTS but SAPI supports this, and only correction strings for SAPI voices depend on the vendor information. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-04-22Fix SAPI default speed being way too fast.Dominik Riebeling1-2/+5
The settings currently can't differentiate between default values for different subitems (i.e. different TTS systems). As a result the default value returned for SAPI speed was way out of bounds, leading to the upper limit getting used. Work around this limitation by checking the value for bounds and use a sensible value in that case. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-02-04Replace list of languages with map.Dominik Riebeling1-3/+2
- Use ISO codes as keys for voice languages instead of enumeration. - Instead of trying to select a suitable voicefile language from the UI language use the ISO codes stored as UI language and match against the mapping. - Always store the selected UI language. Fixes the voicefile creation language lookup to fail if the language used is the system language. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-09-26Improve some trace messages.Dominik Riebeling1-2/+4
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-06-04rbutil: Make TTS and encoders run on all cores \n FS#11160 by Delyan KratunovDominik Wenger1-2/+11
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-03-03Code police.Dominik Riebeling1-15/+26
- remove tabs. - remove trailing spaces. - break overly long lines. - fix indentation errors. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-24rbutil: split RbSettings. use Stable/unstable status from server.Dominik Wenger1-1/+2
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-10-13rbutil: split tts.cpp/h into individual files.Dominik Wenger1-0/+213
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657