You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
#!/bin/bash
|
|
i=0;
|
|
echo "Read every new sentence out loud!"
|
|
head -n 1 $1 > output/input0.txt
|
|
while [[ $i -le 10 ]]
|
|
do echo $i
|
|
cat output/input$i.txt
|
|
python3 src/ttssr_write_audio.py src/sound$i.wav 2> /dev/null
|
|
play src/sound$i.wav repeat 5 2> /dev/null & #in the background the sound, without it all the sounds play one by one//2 is stderr
|
|
python3 src/ttssr_transcribe.py sound$i.wav > output/input$((i+1)).txt 2> /dev/null
|
|
sleep 1
|
|
(( i++ ))
|
|
done
|
|
today=$(date +%Y%m%d.%H-%M);
|
|
mkdir -p "output/ttssr.$today"
|
|
mv -v output/input* output/ttssr.$today;
|
|
mv -v src/sound* output/ttssr.$today;
|
|
|
|
|
|
|
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
# Version 2, December 2004
|
|
|
|
# Copyright (C) 2018 Angeliki Diakrousi <diakaggel@gmail.com>
|
|
|
|
# Everyone is permitted to copy and distribute verbatim or modified
|
|
# copies of this license document, and changing it is allowed as long
|
|
# as the name is changed.
|
|
|
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
|
|
# 0. You just DO WHAT THE FUCK YOU WANT TO. |