
# shellcheck shell=dash

# TODO: considering using the default model ...
___x_cmd_whisper___dictate___decidemodel_(){
    ___x_cmd_whisper_model_default get_
    if [ -n "$x_" ]; then
        local id
        ___x_cmd ui select id "Model is not specified, so"   \
            "Using default [model=$x_]"           \
            "List all whisper model and select one of them"    \
            EXIT

        case "$id" in
            1)      return 0 ;;
            2)      ___x_cmd_whisper_model_ls___app_ ;;
            *)      return 1 ;;
        esac
    else
        ___x_cmd_whisper_model_ls___app_ || return 1
    fi
}



