From f4457e882fa3bfa7731d2b401cf13ca1ba945ea8 Mon Sep 17 00:00:00 2001 From: linhong <1219772706@qq.com> Date: Sat, 11 Oct 2025 12:11:22 +0800 Subject: [PATCH] feat: start.sh --- convert.sh | 15 --------------- start.sh | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 15 deletions(-) delete mode 100755 convert.sh create mode 100755 start.sh diff --git a/convert.sh b/convert.sh deleted file mode 100755 index 71f12d0..0000000 --- a/convert.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -# 创建输出文件夹 - -input_dir="$1" -output_dir="$input_dir/output_wav" -mkdir -p "$output_dir" - -# 遍历MP3文件并转换 -find "$input_dir" -maxdepth 1 -type f -name "*.mp3" | while read -r file; do - filename=$(basename "$file" .mp3) - ffmpeg -i "$input_dir/$filename.mp3" -ar 44100 -ac 2 -b:a 1411k "$output_dir/$filename.wav" -# ffmpeg -i "$file" -ar 44100 -ac 2 -b:a 1411k "$output_dir/$filename.wav" -done - -echo "转换完成!文件保存在 output_wav 文件夹" \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..d693dfb --- /dev/null +++ b/start.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# 创建输出文件夹 + +#wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh + +#chmod +x Miniconda3-latest-Linux-x86_64.sh -y + +#./Miniconda3-latest-Linux-x86_64.sh -y + +#source ~/.bashrc -y + +#conda config --set show_channel_urls yes + +#conda env create -f environment.yml + +#conda create -n petshy python=3.9 -y +conda init + +source ~/.bashrc + +conda activate petshy +echo "当前激活的环境:$(conda info --envs | grep '*' | awk '{print $1}')" +python --version +conda env update --file environment.yml - y \ No newline at end of file