Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

536 B
Raw Blame
#!/bin/sh
set -eu

input_dir="${FLUID_ASR_BASELINE_INPUTS:-${SRCROOT}/Tests/FluidASRBaselineHost/Inputs}"
output_dir="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ASRBaselineInputs"

case "$input_dir" in
    /*) ;;
    *)
        echo "error: FLUID_ASR_BASELINE_INPUTS must be an absolute path, got: $input_dir" >&2
        exit 1
        ;;
esac

if [ ! -d "$input_dir" ]; then
    echo "error: ASR baseline inputs directory not found: $input_dir" >&2
    exit 1
fi

mkdir -p "$output_dir"
ditto "$input_dir" "$output_dir"