add demo monosound wav file
This commit is contained in:
parent
73c5e413f5
commit
9e09805f6d
@ -5,17 +5,17 @@
|
|||||||
echo "########### conversion de fichier audio .WAV mono piste uniquement,
|
echo "########### conversion de fichier audio .WAV mono piste uniquement,
|
||||||
avec Vosk installé par pip3, et un modèle de textes en français."
|
avec Vosk installé par pip3, et un modèle de textes en français."
|
||||||
echo " "
|
echo " "
|
||||||
if [-f $1]
|
# if [-f $1]
|
||||||
echo " fichier non trouvé: $1"
|
# echo " fichier non trouvé: $1"
|
||||||
ls -larth input
|
# ls -larth input
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
python3 ./test_simple.py $1 > output/converted_output.txt
|
python3 ./conversion_simple_fr.py $1 > output/converted_output.txt
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
echo "########### nettoyer la sortie "
|
echo "########### nettoyer la sortie "
|
||||||
echo " "
|
echo " "
|
||||||
jq .text output/converted_output.txt > output/converted_cleaned_with_null.txt
|
jq .text output/converted_output.txt > output/converted_cleaned_with_null.txt
|
||||||
|
|
||||||
sed 's/null//g' output/converted_cleaned_with_null.txt > output/converted_out_without_nulls.txt
|
sed 's/null//g' output/converted_cleaned_with_null.txt > output/converted_out_without_nulls.txt
|
||||||
sed 's/^ *//; s/ *$//; /^$/d' output/converted_out_without_nulls.txt > output/converted_out_without_nulls2.txt
|
sed 's/^ *//; s/ *$//; /^$/d' output/converted_out_without_nulls.txt > output/converted_out_without_nulls2.txt
|
||||||
@ -24,7 +24,8 @@ sed 's/\"//g' output/converted_out_without_nulls2.txt > output/converted_out_wit
|
|||||||
echo " "
|
echo " "
|
||||||
echo "########### OK "
|
echo "########### OK "
|
||||||
echo " "
|
echo " "
|
||||||
cat converted_out_without_nulls3.txt
|
COUNT_LINES=$(cat output/converted_out_without_nulls3.txt |wc -l)
|
||||||
|
|
||||||
echo "########### conversion faite dans converted_out_without_nulls.txt"
|
echo "########### lignes transcriptes $COUNT_LINES "
|
||||||
|
echo "########### conversion faite dans output/converted_out_without_nulls.txt"
|
||||||
exit 0
|
exit 0
|
||||||
|
BIN
input/demo.wav
Normal file
BIN
input/demo.wav
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user