Leo Moll
5993693504
Fixed missing function declaration
Without this function declaration, the build fails on modern C compilers (ISO C99). This affects e.g. builds on Apple Silicon. This fix is also needed in order to compile rasspy/piper on Apple silicon
1 year ago
Samuel Thibault
f881512cd1
LookupDictList: Fix out-of-bound access
When looking for dotted abbreviations we must limit ourself to the size of
the buffer used for translating the abbreviation.
2 years ago
Dimitry Andric
497c6217d6
speechPlayer: fix sample type qualification to avoid ambiguity
As reported in <https://bugs.freebsd.org/271486 >, when the C++ standard
library provides std::sample, it causes a compile error when compiling
speechWaveGenerator.cpp:
src/speechPlayer/src/speechWaveGenerator.cpp:197:56: error: reference to 'sample' is ambiguous
unsigned int generate(const unsigned int sampleCount, sample* sampleBuf) {
^
src/speechPlayer/src/sample.h:23:3: note: candidate found by name lookup is 'sample'
} sample;
^
/usr/include/c++/v1/__algorithm/sample.h:95:17: note: candidate found by name lookup is 'std::sample'
_SampleIterator sample(_PopulationIterator __first,
^
Since speechWaveGenerator.cpp puts "using namespace std;" at the top,
fix the error by qualifying "sample" with an explicit "::".
2 years ago
Yury Popov
9f2ada4574
translate: fix uppercase word split during alphabet change
2 years ago
Yury Popov
fef5ee60c1
cmake: add default data path from CMAKE_INSTALL_PREFIX
2 years ago
Yury Popov
76a7e2cf68
cmake: fix rpath for macos dynamic linkage
2 years ago
Yury Popov
91178133d1
code cleanup: more consts, less statics
2 years ago
Yury Popov
d46d332563
code cleanup: fix variables initialization
2 years ago
Yury Popov
c09b887529
code cleanup: unused variables
2 years ago
Yury Popov
5161577a6d
cmake: install compat binaries
2 years ago
Yury Popov
631a8f3fa1
cmake: versioned library install
2 years ago
Yury Popov
524412f52e
cmake: do not install internal libs
2 years ago
Yury Popov
ead35b181b
wavegen: support higher speech rate in embedded commands
2 years ago
Yury Popov
8e163d5072
ssml: support break time multiplier
2 years ago
Yury Popov
31461c0e44
cmake: force project includes before libraries
2 years ago
Juho Hiltunen
7f0b0f70f7
Revert "cleanup: fix code smell knownConditionTrueFalse for strlen() >= 0"
Fixes #1660 .
2 years ago
Yury Popov
1fd604a942
code cleanup: setlength: reduce statics count
2 years ago
Yury Popov
d2f3be9f36
code cleanup: dead global in spect
2 years ago
Yury Popov
7485828984
code cleanup: next bunch of globals
2 years ago
Yury Popov
aaae4e8daa
code cleanup: fix -Wmisleading-indentation
2 years ago
Yury Popov
7b46c81b2f
code cleanup: fix code-in-asserts for NDEBUG
2 years ago
Yury Popov
8f19c66b9c
code cleanup: fix -Wunused-variable
2 years ago
Yury Popov
25eeddff9a
code cleanup: fix -Wstrict-prototypes
2 years ago
Yury Popov
41f5703fde
code cleanup: fix -Wnewline-eof
2 years ago
Yury Popov
04ce972800
ssml: handle invalid break strength
2 years ago
Yury Popov
6bb25fbb07
windows: fix mingw build
2 years ago
Yury Popov
91b3959170
windows: fix DLL build
2 years ago
Yury Popov
9725cedc8e
windows: fix definitions
2 years ago
Yury Popov
3a68f0f74d
code cleanup: compiledict: do not use temp file
2 years ago
Yury Popov
2f068b15a5
build, ci: windows build
2 years ago
Yury Popov
c60a49d711
build: support building with cmake
2 years ago
Yury Popov
820b85ed21
fifo, event: fix thread management
2 years ago
Yury Popov
78ac6c4a88
code cleanup: do not compile mbrola if not enabled
2 years ago
Yury Popov
92beee2b4c
code cleanup: remove dead code
2 years ago
Yury Popov
ca1f590101
code cleanup: standartize definitions
2 years ago
Yury Popov
c8a21a5463
code cleanup: header detection with has_include
2 years ago
Yury Popov
b996d39d40
splayer: fix memory leak on espeak terminate
2 years ago
Samuel Thibault
b5b3231e52
espeak-ng: Add -P option to configure pitch range
2 years ago
Juho Hiltunen
6362245b24
code cleanup: combine two identical if-clauses
2 years ago
Juho Hiltunen
e5f95289ad
code cleanup: remove setting unread variable.
2 years ago
Juho Hiltunen
745ae078fb
code cleanup: reduce variable scopes in compiledata.c
2 years ago
Juho Hiltunen
c496da5bf6
code cleanup: reduce duplication with new function CalculateSample()
2 years ago
Juho Hiltunen
bbfef6a269
code cleanup: reduce duplication with new function DollarRule()
2 years ago
Yury Popov
100df4c067
code cleanup: reduce return of static buffers
2 years ago
Yury Popov
29f7afc688
code cleanup: const vowels_be in SelectTranslator
2 years ago
Yury Popov
25c4dc150a
code cleanup: static phoneme_callback
2 years ago
Yury Popov
fdc2984386
code cleanup: static uri_callback
2 years ago
Yury Popov
f5ead44481
code cleanup: static current_phoneme_table
2 years ago
Yury Popov
504ab4937d
code cleanup: static current_voice_selected
2 years ago
Yury Popov
2ddb8ce2db
code cleanup: const embedded_default
2 years ago