FOLDER="alnik" SEGMENTS=$(ls $FOLDER/*.ogg) #echo $SEGMENTS for SEGMENT in $SEGMENTS; do echo "transcribing >>> $SEGMENT" SEGMENT_NAME=$(basename $SEGMENT .ogg) python3 vosk-vtt.py $SEGMENT $FOLDER/$SEGMENT_NAME.vtt done