Commit Graph
100 Commits
Author SHA1 Message Date
Alexander Epaneshnikov 5213d9e390 Revert "Russian: voicing switch for k (#1605)"
it doesn't work correctly
This reverts commit f1d554d2bb, reversing
changes made to a51235aaab.
2023-01-02 03:06:54 +03:00
Alexander Epaneshnikov cefd4b2cc6 code cleanup: next bunch (#1599)
Some warnings, some globals hunting.
Including fixes for asserts misuse (possible fatal for async in release
builds).
2023-01-01 21:26:09 +03:00
Alexander Epaneshnikov 8e25c78177 Some fix (#1604) 2023-01-01 03:24:56 +03:00
Alexander Epaneshnikov f1d554d2bb Russian: voicing switch for k (#1605) 2023-01-01 01:47:01 +03:00
Alexander Epaneshnikov a51235aaab Russian: add over 600000 words to ru_listx file (#1582) 2022-12-26 23:23:56 +03:00
Alexander Epaneshnikov 3e774e4ea5 Russian: remove else from v# (#1602)
workaround for #1533
2022-12-26 21:57:22 +03:00
Alexander Epaneshnikov d653008c3c Russian fix (#1578) 2022-12-26 21:33:44 +03:00
Alexander Epaneshnikov b5205df2fc CI: variants (#1586) 2022-12-26 01:07:49 +03:00
Alexander Epaneshnikov 892651bb77 code cleanup: remove chromium extension (#1598)
Rationale:

- It is not a part of eSpeak-NG, nor useful wrapper/adapter
- It is not properly documented and maintained
- It is unsafe (running PHP daemon with user privileges and [launch
ANY](https://github.com/espeak-ng/espeak-ng/blob/6d7101c03c865c625d6c92b8dda15db0859fe3c2/chromium_extension/index.php#L8)
received command via
[passthru](https://www.php.net/manual/en/function.passthru.php) -
seriously?)
2022-12-25 01:04:28 +03:00
Alexander Epaneshnikov 6d7101c03c ssml: handle invalid break strength (#1587)
Workaround for NVDA's broken SSML.


https://github.com/nvaccess/nvda/blob/7c08cf52fe1fa8357eac31bf7fb32644dad97978/source/synthDrivers/espeak.py#L336-L339
2022-12-10 22:01:06 +03:00
Alexander Epaneshnikov 35315502c4 Windows: bunch of build fixes with CMake (#1585) 2022-12-09 01:25:01 +03:00
Alexander Epaneshnikov bff745b4b3 Fix compile definitions for autoconf and vcxproj (#1584) 2022-12-08 23:31:17 +03:00
Alexander Epaneshnikov bf4db40aa5 code cleanup: compiledict: do not use temp file (#1564) 2022-12-04 12:41:47 +03:00
Alexander Epaneshnikov 29e88e0e65 Belarusian: fix single characters transcription (#1576)
fix single characters transcription for б, ж, й, ў
2022-12-04 01:11:16 +03:00
Alexander Epaneshnikov 01903ee5b7 Belarusian: fix IPA chars (#1572)
- fix IPA chars for "s;" and "z;" phonemes
- add bug note about "...i a..." case
2022-12-04 00:56:25 +03:00
Alexander Epaneshnikov d25030c668 build: support building with cmake (#1570)
Fixes: #1547

- Implement building and testing with cmake
- Download libsonic from repository (when enabled and not available as
system library), ref: #650
- Migrate android native build to cmake
- Migrate CI to cmake
- Add windows CI

TODO (might be done in separate PR):
- Building as [cmake external
project](https://cmake.org/cmake/help/latest/module/ExternalProject.html)
- Building for package managers (deb, rpm, ...)
- Strip out `vcproj` - _to be discussed_
- Strip out `autotools` after next release
- Update build documentation for `cmake`
2022-12-03 19:44:25 +03:00
Alexander Epaneshnikov 859bd63a53 code cleanup: compilation options (#1562)
Fixes: #1549

A bunch of `#ifdef` stuff cleanups, including:

- Check header presence with `__has_include` instead of autoconf's
`HAVE_XXX` macro
- Standartization of defines: consistent naming, define to 1 and check
with `#if` instead of `#ifdef`
- Compile MBROLA-related code only if configured `--with-mbrola`
- Compile tests with flags that match configuration (including async,
klatt, speechplayer, mbrola)
- Fix for API test when compiled with async
2022-11-29 23:58:03 +03:00
Alexander Epaneshnikov 6a8b6ae723 android: set buffer size to 300 (#1558)
ref: #1554
ref for buffer size:
https://github.com/nvaccess/nvda/blob/a6fb2392083b5fa1bae926102135ad452746ad3c/source/synthDrivers/_espeak.py#L338
2022-11-27 12:55:20 +03:00
Alexander Epaneshnikov e3c876325d android: set buffer size to 300
ref: #1554
ref for buffer size: https://github.com/nvaccess/nvda/blob/a6fb2392083b5fa1bae926102135ad452746ad3c/source/synthDrivers/_espeak.py#L338
2022-11-24 02:08:43 +03:00
Alexander Epaneshnikov f138267d7b tests: build with klatt and speechplayer (#1557)
Ref: #1549
2022-11-23 21:11:49 +03:00
Alexander Epaneshnikov a8ea91b2ae espeak-ng: Add -P option to configure pitch range (#1552) 2022-11-22 15:59:22 +03:00
Alexander Epaneshnikov 3556c543ab Rework CI (#1539)
- Add more compilers - especially GCC on macOS and Clang.
- Add more architectures - especially RISC-V-64
- Move build outside of QEMU (use cross-compilation)
- Use qemu-user for test on target environment
- Add Android CI with APK artifacts
2022-11-19 17:17:19 +03:00
Alexander Epaneshnikov c9c3e3c776 code cleanup: move vowelcharts out of phsource (#1540)
Tidying up a data source bundle, that is embedded e.g. in iOS app
2022-11-18 18:17:48 +03:00
Alexander Epaneshnikov 6382e36787 Fix rate setting without libsonic (#1524)
Move a code that should be shared outside HAVE_SONIC_H ifdef.

That also simplifies prosody SSML tests (made by @sthibaul) by removing
unnecessary cases.

Ref: #1512 #1368
2022-11-15 19:36:15 +03:00
Alexander Epaneshnikov 086401a48a Russian: fix for майонез rule, Whitch fix's майонеза, and майонезный (#1529) 2022-11-14 12:57:42 +03:00
Alexander Epaneshnikov 797846ff10 Russian update (#1520) 2022-11-09 22:47:05 +03:00
Alexander Epaneshnikov fc3371571a fix pronunciation of uefi (#1516)
this closes #1497
2022-11-09 15:16:54 +03:00
Alexander Epaneshnikov 1a739d6c24 Add unquoted attributes support in SSML parser (#1515)
Also check for empty skip_marker name in SSML_MARK.

Fixes #975
2022-11-09 00:12:25 +03:00
Alexander Epaneshnikov 9ce61c7c8f Fix pause duration for SSML and Sonic (#1514)
Fixes #1512

There was a two bugs.
The first is SSML duration compensation was calculated wrong because
rate was not sync to internal global state.
The second causes pauses shorten when sonic compresses it, so I back
compensated it in wavegen.
2022-11-09 00:07:07 +03:00
Alexander Epaneshnikov 63f653c992 Russian: fix for words like вышедший (#1510) 2022-11-07 18:07:08 +03:00
Alexander Epaneshnikov 30a773b8f8 Flush sonic stream on rate reset (#1508)
Fixes #1506
2022-11-07 15:46:00 +03:00
Alexander Epaneshnikov f2e0f1b97a Russian: fix for 400 and льстят, and льстит (#1504) 2022-11-05 21:31:42 +03:00
Alexander Epaneshnikov bbd977f58a Russian update (#1499) 2022-11-04 14:13:19 +03:00
Alexander Epaneshnikov 2477857f11 Android: increase target sdk to 31 (#1502) 2022-11-04 01:55:19 +03:00
Alexander Epaneshnikov 1133b29bca Android: increase target sdk to 31 2022-11-04 01:37:49 +03:00
Alexander Epaneshnikov cfeaf70fa4 Android: some fixes (#1501)
- Android: enable debug logs in debug build type
- Android: enable debug in native lib
- Android: remove hardcoded chmod
2022-11-04 01:23:24 +03:00
Alexander Epaneshnikov 6f41255ed1 Android: remove hardcoded chmod
I don't understand why it was necessary.
on some devices, the binary is in a different location. if this is still needed for something, we need
to search for chmod binary dynamicly
2022-11-04 01:12:43 +03:00
Alexander Epaneshnikov 6db277c5ed Android: enable debug in native lib 2022-11-04 01:12:21 +03:00
Alexander Epaneshnikov acaf2e8f75 Android: enable debug logs in debug build type 2022-11-04 01:04:38 +03:00
Alexander Epaneshnikov 5dd30f0395 Android: Fix compatibility issues with some vendors (#1498)
add tolower and toupper to be processed by ucd-tools in
WCTYPE_H_COMPAT_SHIM

some vendors don't provide conformance with c standard in bionic
2022-11-04 00:22:00 +03:00
Alexander Epaneshnikov 246f487814 Android: fix imports written by mistake (#1495) 2022-11-02 23:14:25 +03:00
Alexander Epaneshnikov d88fa7f6b6 Android: fix crash when opening settings on pre-7 devices (#1483) 2022-11-02 21:55:35 +03:00
Alexander Epaneshnikov 94e0024bf4 Android: Fixed a crash when trying to get list of voices (#1482)
There was a problem when reference table was overflowing because of lots
of local references.

Now espeak should not crash on some android devices.
2022-11-02 12:06:56 +03:00
Alexander Epaneshnikov 2871557cdb Russian and Czech update (#1478)
I really wonder why the code comment says.
	case NUM2_THOUSANDS_VAR2: // lang=cs,sk
and option 4 was used for Czech, and this is not the case when this
option fits the language, just the opposite.
it reads 10000000 as 10000, 11000000, as 11000, and so on
almost the same problem was in the Russian language, only it consisted
in the fact that the var_1 itself was not made correctly. And here the
variant is commented on as the one that is used in the Czech language,
but it is not used there. And the worst thing is that everyone does not
pay attention to it, well, it reads the wrong number, well, okay.
2022-10-31 12:30:43 +03:00
Alexander Epaneshnikov fa649c4b14 Belarusian: add new rules, fix old, tests (#1471)
- fix "здж" > "ждж" rule, fix test for it
- add rules for "б г д дз дж з" at the end of words
- added tests for new rules
- add devoiced rules conversion and tests
- languages.md: fix the Belarusian language name
2022-10-31 12:13:56 +03:00
Alexander Epaneshnikov 6f6a1223e6 Allow phoneme compilation without report generation (#1473)
When compile from read-only data bundle (shipped within iOS/macOS app),
we can't write compile_report file.
The simplest solution is to (almost) silently discard it.
2022-10-30 02:54:47 +03:00
Alexander Epaneshnikov 08685aaa0f Remove system() call from compiledata.c (#1475) 2022-10-29 18:19:27 +03:00
Alexander Epaneshnikov b38f563af8 Add missing compatibility check for older android versions. (#1472)
Note: this doesn't fix actual problem for some of the older devices.
Unfortunately i don't have devices with os version below than android 7,
so am not able to test.
2022-10-28 18:48:36 +03:00
Alexander Epaneshnikov 7d6deaf35b Russian update (#1459) 2022-10-28 17:31:21 +03:00
Alexander Epaneshnikov 43bf99a1e9 Respect custom N_PATH_HOME definition if passed (#1469)
On e.g. iOS it may be very long.

Helps to make #1291
2022-10-28 16:41:39 +03:00
Alexander Epaneshnikov aea62ae959 Allow out-of-tree intonations compilation (#1470)
So we can ship data bundle and compile it AOT.

Helps to make #1291
2022-10-28 16:34:40 +03:00
Alexander Epaneshnikov bdf8d0690b russian_update (#1455) 2022-10-23 02:34:39 +03:00
Alexander Epaneshnikov 14088025d2 Remove breath attributes from languages (#1451) 2022-10-18 18:03:12 +03:00
Alexander Epaneshnikov a25fa3d044 Fix pronunciation of bitwarden (#1450)
Fix pronunciation of [Bitwarden](https://bitwarden.com), the open source
password manager.
2022-10-18 13:35:57 +03:00
Alexander Epaneshnikov eaa62b6e95 Android: build updates (#1449) 2022-10-18 01:07:35 +03:00
Alexander Epaneshnikov 7d8ea50d18 Russian update (#1448) 2022-10-18 00:47:27 +03:00
Alexander Epaneshnikov 71ddc3c737 Russian update (#1447) 2022-10-17 22:49:46 +03:00
Alexander Epaneshnikov 801e6a7b51 Russian: Correction for the particle же in word-by-word reading (#1446) 2022-10-17 21:42:23 +03:00
Alexander Epaneshnikov d98f070bf7 Add ng API to enable phoneme events (#1389) 2022-10-17 21:41:57 +03:00
Alexander Epaneshnikov dc3653e858 Add directBoot support. (#1444) 2022-10-17 17:14:41 +03:00
Alexander Epaneshnikov 0ecdd33d18 Fixes for r letter in spanish (Latinamerica) (#1432) 2022-10-17 00:24:59 +03:00
Alexander Epaneshnikov a487fd0d65 Russian: fix pronunciation of large numbers (#1441) 2022-10-16 23:28:22 +03:00
Alexander Epaneshnikov caad124bde Russian_update (#1440) 2022-10-16 22:19:19 +03:00
Alexander Epaneshnikov 7b30ad14f2 Belarusian: add phoneme tests (#1439) 2022-10-16 18:52:47 +03:00
Alexander Epaneshnikov 99b232bbd8 Russian update (#1437) 2022-10-16 01:00:08 +03:00
Alexander Epaneshnikov 3c809c4d11 Russian: fix for letter я (#1435)
make letter я unstressed at the start of claws, and stressed at end of
it
2022-10-15 02:04:27 +03:00
Alexander Epaneshnikov 42409c8476 Russian: fix a bug with conjunctions (#1434) 2022-10-14 22:45:44 +03:00
Alexander Epaneshnikov 828862448a Russian update (#1433) 2022-10-14 19:49:35 +03:00
Alexander Epaneshnikov 0efae53f91 Belarusian: improvements (#1417) 2022-10-14 00:37:43 +03:00
Alexander Epaneshnikov a157abddbe Russian: fix for words with ши and жи at end (#1431)
words like ножи, персонажи, напиши, покажи.
2022-10-13 23:54:17 +03:00
Alexander Epaneshnikov 57e7fa74ff Update ChangeLog to include Updating Russian language (#1426) 2022-10-12 01:06:27 +03:00
Alexander Epaneshnikov feb75d3113 a bunch of fix's for russian language (#1425) 2022-10-11 23:42:25 +03:00
Alexander Epaneshnikov 3a3cbb95fb Georgian: increase numbers to use maximum digits (#1423) 2022-10-11 17:34:48 +03:00
Alexander Epaneshnikov e23f68f56a Russian Set Max_digits to 18 (#1382) 2022-10-06 21:46:41 +03:00
Alexander Epaneshnikov 97e557a8b2 Merge pull request #1383 from codeofdusk/nanaimo 2022-09-18 16:19:58 +03:00
Alexander Epaneshnikov ac0129f26a Merge pull request #1381 from alex19EP/windows/add-mto
Windows: add mto dict
2022-09-18 02:16:21 +03:00
Alexander Epaneshnikov 52fa8a597d Windows: add mto 2022-09-18 02:13:48 +03:00
Alexander Epaneshnikov e544403e7c Merge pull request #1372 from kirill-jjj/russian
Russian: improve numbers and add words
2022-09-18 01:22:19 +03:00
Alexander Epaneshnikov 822cb137fd Merge pull request #1371 from alex19EP/windows-fix
fix compilation on windows
2022-09-13 19:17:08 +03:00
Alexander Epaneshnikov 32ea3eaa5b Windows: update gitignore 2022-09-13 19:13:33 +03:00
Alexander Epaneshnikov 389b1a9761 Windows: fix compilation
fb06936c b52d1f3afd and c4d8976fbc broke it.
2022-09-13 19:13:32 +03:00
Alexander Epaneshnikov 6c2fe6c358 Merge pull request #1367 2022-09-13 12:39:58 +03:00
Alexander Epaneshnikov f6d6fc3d34 Merge pull request #1366 from kirill-jjj/russian
Russian: fix regressive voicing assimilation and number 8
2022-09-12 19:51:33 +03:00
Alexander Epaneshnikov 8c49e1d32e Merge pull request #1364 from djphoenix/macos-ci 2022-09-12 12:27:02 +03:00
Alexander Epaneshnikov 735ecdb856 Merge pull request #1363 from kirill-jjj/russian
fix for russian word интерфейс
2022-09-12 00:25:17 +03:00
Alexander Epaneshnikov 13116e6e93 Merge pull request #1262 from djphoenix/changelog-case
Fix changelog file case (make macOS happy with missed file)
2022-09-11 22:55:55 +03:00
Alexander Epaneshnikov d2c60721aa Merge pull request #1360 from kirill-jjj/russian
fix russian letter kA
2022-09-11 20:49:03 +03:00
Alexander Epaneshnikov da5268e326 Merge pull request #1359 from kirill-jjj/russian
a little fix in one russian letter
2022-09-11 19:00:04 +03:00
Alexander Epaneshnikov ae894fd41c Merge pull request #1356 from kirill-jjj/russian
add a bunch  of new russian rules,  and fix a broken ones
2022-09-11 17:15:49 +03:00
Alexander Epaneshnikov 3b110028d3 Merge pull request #1352 from kirill-jjj/russian_fix 2022-09-10 23:28:18 +03:00
Alexander Epaneshnikov 1bdd40b99a Merge pull request #1339 from alex19EP/android/dep-update
android: dependency update
2022-09-10 16:13:52 +03:00
Alexander Epaneshnikov 6020ebdc28 Merge pull request #1350 from kirill-jjj/master 2022-09-10 16:08:28 +03:00
Alexander Epaneshnikov abae06f6e6 Merge pull request #1348 from codeofdusk/willamette-only 2022-09-10 01:31:40 +03:00
Alexander Epaneshnikov f79b0661ad Merge pull request #1343 from codeofdusk/kusto
Fix pronunciation of Kusto
2022-09-09 21:32:02 +03:00
Alexander Epaneshnikov f20c89a8a4 Merge pull request #1345 from codeofdusk/willamette 2022-09-09 21:23:48 +03:00
Alexander Epaneshnikov c51399da65 Merge pull request #1344 from codeofdusk/kubernetes
Fix pronunciation of kubernetes
2022-09-09 21:20:16 +03:00
Alexander Epaneshnikov e65e597bf6 Android: explicitly set ndk version 2022-09-08 12:59:49 +03:00
Alexander Epaneshnikov 440fc08a0d Android: rase minimal supported sdk
newer ndk supports kitkat+ only
2022-09-08 12:54:33 +03:00
Alexander Epaneshnikov 7a33a70755 Android: update gradle and AGP 2022-09-08 12:54:32 +03:00
Alexander Epaneshnikov 875fdd57f3 Merge pull request #1283 from codeofdusk/mto-update-changes
Update changelog for mto
2022-08-17 09:31:45 +03:00