rhasspy / piper-phonemize

C++ library for converting text to phonemes for Piper
MIT License
90 stars 77 forks source link

[Linux] error: ‘espeak_TextToPhonemesWithTerminator’ was not declared in this scope #5

Closed kevinsmia1939 closed 1 year ago

kevinsmia1939 commented 1 year ago

Hi,

I want to build from source locally on my machine. But I got an error below.

Operating System: openSUSE Tumbleweed 20230731
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.6-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics
Memory: 7.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 82B5
System Version: Lenovo Legion 5 15ARH05
gcc (GCC) 12.2.0
cmake version 3.26.4
espeak-ng 1.51

Command: cmake . && make -j6

Test with latest commit 41cfb05eba5f53960752e66c5b668304da488683

-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.5") 
-- Checking for module 'espeak-ng<2'
--   Found espeak-ng, version 1.51
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /run/build/piper-phonemize
[ 50%] Building CXX object CMakeFiles/piper_phonemize.dir/src/phonemize.cpp.o
[ 50%] Building CXX object CMakeFiles/piper_phonemize.dir/src/phoneme_ids.cpp.o
[ 50%] Building CXX object CMakeFiles/piper_phonemize.dir/src/tashkeel.cpp.o
/run/build/piper-phonemize/src/phonemize.cpp: In function ‘void piper::phonemize_eSpeak(std::string, eSpeakPhonemeConfig&, std::vector<std::vector<char32_t> >&)’:
/run/build/piper-phonemize/src/phonemize.cpp:42:32: error: ‘espeak_TextToPhonemesWithTerminator’ was not declared in this scope
   42 |     std::string clausePhonemes(espeak_TextToPhonemesWithTerminator(
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/piper_phonemize.dir/build.make:76: CMakeFiles/piper_phonemize.dir/src/phonemize.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/piper_phonemize.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Laope94 commented 1 year ago

Check this espeak fork https://github.com/rhasspy/espeak-ng

kevinsmia1939 commented 1 year ago

Check this espeak fork https://github.com/rhasspy/espeak-ng

That fix it, thanks.