forked from tykayn/transcription
fix file name for outputs
This commit is contained in:
parent
2bc3b295b8
commit
29c19f6906
@ -34,7 +34,7 @@ FILE_NAME=$(basename $file .wav)
|
|||||||
OUT_DIR=$( echo "output/$FILE_NAME")
|
OUT_DIR=$( echo "output/$FILE_NAME")
|
||||||
mkdir output/$FILE_NAME
|
mkdir output/$FILE_NAME
|
||||||
|
|
||||||
python3 ./conversion_simple_fr.py "$file" > $OUT_DIR/0_output.json
|
python3 ./conversion_simple_fr.py "$file" > $OUT_DIR/0_output_$FILE_NAME.json
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
32
wav_to_wav_mono.sh
Normal file
32
wav_to_wav_mono.sh
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# utilisation: bash wav_to_wav.sh
|
||||||
|
# auteur du script: tykayn contact@cipherbliss.com
|
||||||
|
|
||||||
|
echo "########### conversion des fichiers audio .wav placés dans le dossier input, vers du wav mono-piste uniquement dans le dossier input/converted_to_wav"
|
||||||
|
echo " "
|
||||||
|
cd input
|
||||||
|
mkdir already_converted
|
||||||
|
|
||||||
|
for i in *.wav; do
|
||||||
|
|
||||||
|
echo "fichier à traiter: $i"
|
||||||
|
ffmpeg -i "$i" -ac 1 "converted_to_wav/${i%wav}wav"
|
||||||
|
|
||||||
|
echo " converti en WAv, déplacement dans le dossier input/already_converted"
|
||||||
|
mv "$i" already_converted/
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
echo " "
|
||||||
|
echo "########### OK "
|
||||||
|
echo "########### fichiers wav restant dans le dossier input "
|
||||||
|
ls -l *.wav
|
||||||
|
cd ..
|
||||||
|
echo " "
|
||||||
|
COUNT_LINES_ORIGIN=$(ls -l input/*.wav |wc -l)
|
||||||
|
COUNT_LINES=$(ls -l input/converted_to_wav |wc -l)
|
||||||
|
|
||||||
|
echo "########### fichiers wav dans le dossier input: $COUNT_LINES_ORIGIN "
|
||||||
|
echo "########### fichiers wav dans le dossier input/converted_to_wav: $COUNT_LINES "
|
||||||
|
echo "########### conversion faite dans output/converted_out_without_nulls.txt"
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user