lucasjinreal/Kokoros

Add Known Issues section to readme (espeak not installed/linking error)

Open

#61 opened on Feb 21, 2025

View on GitHub
 (9 comments) (0 reactions) (0 assignees)Rust (105 forks)github user discovery
good first issue

Repository metrics

Stars
 (785 stars)
PR merge metrics
 (PR metrics pending)

Description

Operating System: Arch Linux KDE Plasma Version: 6.3.1 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.13.2-arch1-1 (64-bit) Graphics Platform: Wayland

Linking error:

Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(speech.c.o): in function dispatch_audio': speech.c:(.text.dispatch_audio+0xc2): undefined reference to audio_object_write' /usr/bin/ld: speech.c:(.text.dispatch_audio+0xd4): undefined reference to audio_object_strerror' /usr/bin/ld: speech.c:(.text.dispatch_audio+0x187): undefined reference to audio_object_open' /usr/bin/ld: speech.c:(.text.dispatch_audio+0x1d8): undefined reference to audio_object_open' /usr/bin/ld: speech.c:(.text.dispatch_audio+0x1f9): undefined reference to audio_object_close' /usr/bin/ld: speech.c:(.text.dispatch_audio+0x21c): undefined reference to audio_object_strerror' /usr/bin/ld: /home/f2/Documents/Shared/ProL/Rust/ai/Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(speech.c.o): in function cancel_audio': speech.c:(.text.cancel_audio+0x18): undefined reference to audio_object_flush' /usr/bin/ld: /home/f2/Documents/Shared/ProL/Rust/ai/Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(speech.c.o): in function espeak_ng_InitializeOutput': speech.c:(.text.espeak_ng_InitializeOutput+0x112): undefined reference to create_audio_device_object' /usr/bin/ld: /home/f2/Documents/Shared/ProL/Rust/ai/Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(speech.c.o): in function sync_espeak_Synth': speech.c:(.text.sync_espeak_Synth+0xe8): undefined reference to audio_object_drain' /usr/bin/ld: speech.c:(.text.sync_espeak_Synth+0x179): undefined reference to audio_object_flush' /usr/bin/ld: speech.c:(.text.sync_espeak_Synth+0x18f): undefined reference to audio_object_strerror' /usr/bin/ld: /home/f2/Documents/Shared/ProL/Rust/ai/Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(wavegen.c.o): in function WcmdqStop': wavegen.c:(.text.WcmdqStop+0x25): undefined reference to sonicDestroyStream' /usr/bin/ld: /home/f2/Documents/Shared/ProL/Rust/ai/Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(wavegen.c.o): in function WavegenFill': wavegen.c:(.text.WavegenFill+0xac4): undefined reference to sonicFlushStream' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0xaea): undefined reference to sonicReadShortFromStream' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0x2cac): undefined reference to sonicGetSpeed' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0x2cda): undefined reference to sonicWriteShortToStream' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0x2cf3): undefined reference to sonicFlushStream' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0x2d04): undefined reference to sonicReadShortFromStream' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0x2fd3): undefined reference to sonicSetSpeed' /usr/bin/ld: wavegen.c:(.text.WavegenFill+0x314a): undefined reference to sonicCreateStream' collect2: error: ld returned 1 exit status

OR

Kokoros/target/release/deps/libespeak_rs_sys-b6cd091903adedc5.rlib(speech.c.o): undefined reference to symbol 'create_audio_device_object' /usr/bin/ld: /usr/lib/libpcaudio.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status

Solution (fish shell):

set -x RUSTFLAGS "-L /usr/lib -l espeak-ng -l sonic -l pcaudio"

Possibly Related issues: https://github.com/bootphon/phonemizer/issues/163 https://github.com/bootphon/phonemizer/issues/44 https://github.com/hexgrad/kokoro/issues/101 https://github.com/espeak-ng/espeak-ng/issues/935 https://github.com/open-mmlab/Amphion/issues/297

Contributor guide