Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix(linux): install the voiceprint model and library with the app, so speaker identification works after install

wquguru88bbaf9d15e4
diff --git a/linux/packaging/install.sh b/linux/packaging/install.sh
index 27713ed..9f74fbf 100755
--- a/linux/packaging/install.sh
+++ b/linux/packaging/install.sh
@@ -29,6 +29,8 @@ if [ -n "$missing" ]; then echo "Cicada needs:$missing (sudo apt install$missin
rm -rf "$lib" && mkdir -p "$lib" "$bin" "$share/applications" "$share/icons/hicolor/scalable/apps"
cp -R "$src/cicada" "$src/lproj" "$src/bin" "$lib/"
[ -f "$src/sample.wav" ] && cp "$src/sample.wav" "$lib/"
+# 说话人识别: the voiceprint weights and libcicada-voice-<arch>.so (speakers.py looks for them here).
+for d in models lib; do [ -d "$src/$d" ] && cp -R "$src/$d" "$lib/"; done
cp "$src/cicada.svg" "$lib/" # the tray and window icon, by path
cp "$src/VERSION" "$lib/" # read by cicada/__init__.py
ln -sf "$lib/bin/cicada" "$bin/cicada"