This commit is contained in:
Nishi 2026-05-23 14:08:06 +09:00
commit 83cc299add
13 changed files with 276 additions and 37 deletions

View file

@ -7,9 +7,9 @@ for i in *.wav; do
echo "$i"
while true; do
if ffmpeg -y -i $b$i -af silenceremove=1:0:-${n}dB:stop_periods=1:stop_duration=0:stop_threshold=-${n}dB -ar 11025 -ac 1 ../fishtalk/samples/$i 2>&1 | grep "empty"; then
if ( ffmpeg -y -i $b$i -af silenceremove=1:0:-${n}dB:stop_periods=1:stop_duration=0:stop_threshold=-${n}dB -ar 11025 -ac 1 ../fishtalk/samples/$i 2>&1 | grep "empty" ); then
n=`expr $n + 10`
b="../samples_older"
b="../samples_older/"
continue
fi
break