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.

369 B
Raw Blame
#!/bin/bash
set -euo pipefail
here="$(cd "$(dirname "$0")" && pwd)"
out="${1:-$here/out}"
mkdir -p "$out"
if [ "$(uname)" = Darwin ]; then
  /usr/bin/clang -O3 -Wall -Wextra -shared -fPIC -o "$out/libcicada-voice.dylib" "$here/voiceprint.c"
else
  ${CC:-gcc} -O3 -Wall -Wextra -shared -fPIC -pthread -o "$out/libcicada-voice-$(uname -m).so" "$here/voiceprint.c" -lm
fi