shoushen 最近的时间轴更新
shoushen

shoushen

V2EX 第 364154 号会员,加入于 2018-11-19 14:04:32 +08:00
ai 挑战赛
程序员  •  shoushen  •  15 天前  •  最后回复来自 kekxv
12
MLL 没那么强!
问与答  •  shoushen  •  16 天前  •  最后回复来自 shoushen
5
为什么我感觉有些人在炫耀自己很会用 AI?
  •  1   
    然而并没有  •  shoushen  •  13 天前  •  最后回复来自 zzzain46
    38
    AI 会颠覆现有的互联网电商模式吗?
    商业模式  •  shoushen  •  5 天前  •  最后回复来自 CoderUndefined
    23
    大模型会创造吗?
    问与答  •  shoushen  •  29 天前  •  最后回复来自 Planarians
    26
    我们来一起做个实验吧
    问与答  •  shoushen  •  96 天前  •  最后回复来自 Charon2050
    4
    ai 技术对人类语言表达和思维方式的影响
    随想  •  shoushen  •  97 天前  •  最后回复来自 card123
    4
    每个人都应该投身到 AI 变革中去
    无要点  •  shoushen  •  97 天前  •  最后回复来自 cmdOptionKana
    19
    大语言模型技术对人类社会产生的影响和改变
    随想  •  shoushen  •  97 天前  •  最后回复来自 Ljxtt
    10
    shoushen 最近回复了
    16 天前
    回复了 shoushen 创建的主题 程序员 ai 挑战赛
    16 天前
    回复了 shoushen 创建的主题 程序员 ai 挑战赛
    你把你的提示词发上来啊,别用我的啊。
    16 天前
    回复了 shoushen 创建的主题 程序员 ai 挑战赛
    @kekxv 你把提示词和模型名称发上来
    16 天前
    回复了 shoushen 创建的主题 问与答 MLL 没那么强!
    #!/bin/bash
    set -euo pipefail

    SUPPORTED_FMS=(
    "清晨音乐台,https://lhttp.qingting.fm/live/4915/64k.mp3"
    "AsiaFM 亚洲音乐台,https://lhttp.qingting.fm/live/4581/64k.mp3"
    )


    CURRENT_PID=""
    SELECTED_NUM=""
    CURRENT_PLAY_NAME=""
    MAX_NUM=${#SUPPORTED_FMS[@]}

    print_radio_info() {
    echo "节目列表:"
    for idx in "${!SUPPORTED_FMS[@]}"; do
    IFS=',' read -r name url <<< "${SUPPORTED_FMS[$idx]}"
    local num=$((idx + 1))
    if [[ "$SELECTED_NUM" =~ ^[0-9]+$ && "$num" -eq "$SELECTED_NUM" ]]; then
    printf " \033[31m[%2d] %s\033[0m\n" "$num" "$name"
    else
    printf " %2d %s\n" "$num" "$name"
    fi
    done
    }


    play_radio() {
    local radio_num="$1"
    local index=$((radio_num - 1))

    IFS=',' read -r radio_name radio_url <<< "${SUPPORTED_FMS[$index]}"

    if ps -p "$CURRENT_PID" >/dev/null 2>&1; then
    kill "$CURRENT_PID" >/dev/null 2>&1
    wait "$CURRENT_PID" 2>/dev/null
    fi

    SELECTED_NUM="$radio_num"
    CURRENT_PLAY_NAME="$radio_name"

    mpg123 -q "$radio_url" >/dev/null 2>&1 < /dev/null &
    CURRENT_PID=$!



    if ! ps -p "$CURRENT_PID" >/dev/null; then
    echo -e "播放失败!"
    CURRENT_PID=""
    CURRENT_PLAY_NAME=""
    SELECTED_NUM=""
    fi
    }

    main_loop() {

    while true; do
    clear
    print_radio_info
    read -r -p "请输入节目编号( 1-$MAX_NUM )或 q 退出: " user_input
    if [[ "$user_input" =~ ^[qQ]$ ]]; then
    echo "正在退出播放器..."
    if ps -p "$CURRENT_PID" >/dev/null 2>&1; then
    kill "$CURRENT_PID" >/dev/null 2>&1
    wait "$CURRENT_PID" 2>/dev/null
    fi
    clear
    exit 0
    fi

    if ! [[ "$user_input" =~ ^[0-9]+$ ]]; then
    echo -n "错误:请输入有效的数字或 q 退出!"
    sleep 1
    continue
    fi

    if [[ "$user_input" -lt 1 || "$user_input" -gt "$MAX_NUM" ]]; then
    echo -n "错误:无效的节目编号!请输入 1-$MAX_NUM 之间的数字"
    sleep 1
    continue
    fi

    play_radio "$user_input"
    done
    }

    play_radio 1
    main_loop
    16 天前
    回复了 shoushen 创建的主题 问与答 MLL 没那么强!
    我最近用 ai 写个听广播的小工具,真个连个小工具都写不好。代码如下。看看谁能用大模型复现,请把使用的大模型和提示词发上来。
    16 天前
    回复了 Kelly00 创建的主题 Google gemini3 真有那么神吗
    @Kelly00 “非程序员敲出月入万刀产品的比比皆是”
    怎么可能,你以为全球这么多程序员都是 sb 吗?什么不懂的人,用 ai 随便搞搞能个产品,还能赚钱?怎么可能啊。
    29 天前
    回复了 shoushen 创建的主题 问与答 大模型会创造吗?
    补充一下。比如,提示词“画一只小猫”,生成的小猫图片,是一种创造吗?
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   948 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 23:14 · PVG 07:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.