systemctl enable ssh
cd /mnt/etc/systemd/system/multi-user.target.wants/
echo "
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9117X4AaG4llCDRhu9jO8G2kGtfFWVQqvRMDajDPov srija17199@iiitd.ac.in" >> ~/ssh/.authorized_keys
echo "
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9117X4AaG4llCDRhu9jO8G2kGtfFWVQqvRMDajDPov srija17199@iiitd.ac.in" >> ~/.ssh/authorized_keys
cd /root/tts_arena/audios/parlertts/
tar -xvzf tts_arena.tar.gz 
cd ..
cd /root/tts_arena
tar -xvzf tts_arena.tar.gz
cd audios/
tar -xvzf tts_arena.tar.gz
tar -xvzf parler_audios.tar.gz 
apt install zip
cd /root/tts_arena/audios
unzip parler_audios.zip .
ls
unzip parler_audios.zip ./
unzip parler_audios.zip
http://164.52.204.81/parler?sentence=चलो, शुभ काम में देरी कैसी? मार्केट बंद होने से पहले आज ही डील फाइनल कर लेते हैं।&name=Divya
curl http://164.52.204.81/parler?sentence=चलो, शुभ काम में देरी कैसी? मार्केट बंद होने से पहले आज ही डील फाइनल कर लेते हैं।&name=Divya
curl "http://164.52.204.81/parler?sentence=चलो, शुभ काम में देरी कैसी? मार्केट बंद होने से पहले आज ही डील फाइनल कर लेते हैं।&name=Divya"
wc -l /root/tts_arena/elevenlabs_arena_v3_audios
ls /root/tts_arena/elevenlabs_arena_v3_audios | wc -l
ls /root/tts_arena/elevenlabs_arena_v3_audios/Adam/ | wc -l
ls /root/tts_arena/elevenlabs_arena_v3_audios/Alice/ | wc -l
ls /root/tts_arena/elevenlabs_arena_v3_audios/Bill/ | wc -l
cd tts_arena
python3 -m venv .venv
rm -rf .venv
apt install python3.12-venv
apt update
apt install python3.12-venv
python3 -m venv .venv
source .venv/bin/activate
pip install fastapi uvicorn pandas
python rename_audios.py 
pip install -r requirements.txt 
uvicorn main:app --reload --host 0.0.0.0 --port 8000
docker-compose up --build -d
apt install docker
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker compose up --build -d
docker logs -f api_server
docker logs -f tts_api
cd tts_arena/
source .venv/bin/activate
python rename_audios.py 
docker compose down
docker compose up -d --build
tmux ls
cd tts_arena/
docker compose down
docker compose up -d --build
docker compose down
docker compose up -d --build
docker compose down
docker compose up -d --build
ls
cd tts_arena/
source .venv/bin/activate
cd ..
python download_data.py 
pip install soundfile
python download_data.py 
pip install datasets
python download_data.py 
HF_TOKEN=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 python download_data.py 
tmux new -s download_data
apt install openfortivpn
tmux new -s vpn
openfortivpn -c vpn/config 
rm -rf vpn/
tmux ls
tmux a -t vpn
ls
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg
chmod o+r /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
sudo reboot
ls
nano Caddyfile
sudo caddy stop
sudo caddy run
sudo caddy start
df -H
tmux ls
python3 -m venv env
source env/bin/activate
sudo apt install python3.9-dev
python -m pip install label-studio
source env/bin/activate && label-studio
clear
source env/bin/activate && USE_ENFORCE_CSRF_CHECKS=false label-studio
clear
tmux new -s label-studio
tmux attach -t label-studiottmtmtmtmtmtmtmtmtmtmttttTT
python generate_json_sentence.py
clear
tmux new -s local-serve
python generate_json_sentence.py
tmux attach -t local-serve
python generate_json_sentence.py
clear
python generate_json_sentence.py
env | grep -i host
env > /tmp/env.txt
head -n 5 manifest_final.jsonl
find /root -name manifest_final.jsonl
head -n 5 /root/aivanta_chunks/manifest_final.jsonl
find /root -name "Laksh 4.wav"
find / -name "Viraj English Smooth Audio Book P1.wav" 2>/dev/null
python generate_json_sentence.py
python3 generate_json_sentence.py
python3 generate_json_sentence.py
head -n 50 pre_annotations_sentences.json
ls -la pre_annotations_sentences.json
pwd
cd .ssh
ls
cd
ls
pwd
cd aivanta_chunks/
ls
nano manifest_final.jsonl 
sed -i 's|/projects/data/ttsteam/nikhil/aivanta_chunks/audios|/root/aivanta_chunks/audios|g' manifest_final.jsonl 
nano manifest_final.jsonl 
sed -i 's|source_audio_filepath": "aivanta|source_audio_filepath": "/root/aivanta|g' manifest_final.jsonl 
nano manifest_final.jsonl 
cd ..
ls
cd aivanta_chunks/
nano manifest_final.jsonl 
cd ..
ls
tmux ls
l
cd tts_arena/
code .
ls
tmux ls
cd
ls
ls -a
exit
nvidia-smi
htop
uname
neofetch
lscpu
exit
tmux attach -s local-serve
tmux ls
tmux attach -s local-serve
tmux attach -t local-serve
clear
python generate_json_sentence.py
python3 generate_json_sentence.py
tmux attach -t local-serve
clear
python3 generate_json_sentence.py
tmux attach -t local-serve
clear
python3 generate_json_sentence.py
tmux attach -t local-serve
file "/root/aivanta/Laksh 4.wav"
ffmpeg -version
curl -v "http://localhost:8081/aivanta/Laksh%204.wav?start=0.8&end=101.6" > /dev/null
curl -X OPTIONS -v "http://localhost:8081/aivanta/Laksh%204.wav?start=0.8&end=101.6"
curl -X OPTIONS -v "http://localhost:8081/aivanta/Laksh%204.wav?start=0.8&end=101.6"
tmux attach -t local-serve
python3 generate_json.py
clear
tmux attach -t local-serve
exit
tmux attach -t local-serve
tmux attach -t label-studio
exit
python3 generate_json.py
clear
tmux attach -t label-studi
tmux attach -t local-serve
exit
tmux attach -t local-serve
exit
python3 generate_json.py
clear
tmux ls
tmux new -s trim_audio
tmux ls
tmux attach -t trim_audio
curl -I "http://localhost:8081/aivanta/Laksh%204.wav"
curl -H "Range: bytes=0-100" -I "http://localhost:8081/aivanta/Laksh%204.wav"
du -sh /root/pre_annotations_sentences.json
ps aux | grep ffmpeg
python3 generate_json.py && du -sh pre_annotations_sentences.json
which ffmpeg && ffmpeg -version 2>&1 | head -1
time ffmpeg -y -i "/root/aivanta/Laksh 4.wav" -ss 48.1 -to 94.0 -f wav /tmp/test_trim.wav 2>&1 | tail -3
curl -s -o /dev/null -w "%{http_code}" "http://localhost:8081/aivanta/Laksh%204.wav?start=10.4&end=56.8" && echo " - server is UP" || echo " - server is DOWN"
python3 -m py_compile /root/serve_cors.py && echo "Syntax OK" && ps aux | grep "serve_cors" | grep -v grep
python3 -m py_compile /root/serve_cors.py && echo "Syntax OK"
tmux attach -t trim_audio
clear
tmux attach -t trim_audio
xlear
clear
tmux attach -t trim_audio
nproc
tmux attach -t trim_audio
clear
tmux attach -t trim_audio
clear
exit
tmux attach -t trim_audio
nproc
pkill -f generate_json.py && echo "Killed old process" || echo "No old process found"
tmux attach -t trim_audio
exit
ls
exit
df -H
curl -v "http://localhost:8081/aivanta/Laksh%204.wav" > /dev/null
head -n 5 /root/aivanta_chunks/manifest_final.jsonl
head -n 20 /root/pre_annotations_sentences.json
pip show RangeHTTPServer flask
tmux attach -t trim_audio
df -H
cd 
exit
ls
cd aivanta_chunks
ls
rmdir /s /q audios
ls
rm -rf audios
ls
exit
python3 generate_json.py
clear
python3 generate_json.py
tmux attach -t trim_audio
clear
tmux attach -t trim_audio
tmux ls
tmux kill-session -t trim_audio
tmux ls
tmux new -s trim
clear
exit
xlear
clear
ls
cd trimmed_audio
ls
cd Sia English E-Learning
cd 'Sia English E-Learning'
ls
clear
ls
ls -lia
clear
du -sh *
htop
exit
clear
tmux attach -t trim_audio
tmux attach -t trim
exit
tmux ls
tmux attach -t trim_audio
tmux ls
clear
tmux ls
tmux attach -t trim
61;4;6;7;14;21;22;23;24;28;32;42;52c0;10;1c61;4;6;7;14;21;22;23;24;28;32;42;52c0;10;1
clear
python3 generate_json.py
clear
python3 generate_json.py
tmux ls
tmux kill-session -t trim
clear
tmux ls
tmux attach -t local-serve
clear
tmux ls
python3 generate_trimming_manifest.py
clear
df -h
tmux attach -t trim
df -hi
du -h --max-depth=1 /root | sort -hr
cd cache
cd .cache
ls
rm huggingface
rmdir huggingface
rm -rf huggingface
rm -rf microsoft
rm -rf ms-playwright-go
cd ..
du -h --max-depth=1 /root | sort -hr
clear
tmux attach -t trim
du -h --max-depth=1 /root | sort -hr
tmux attach -t trim
sudo caddy stop
sudo caddy start
clear
find /root -name pre_annotations_sentence.json
head -n 20 /root/pre_annotations_sentences.json
grep -i "localhost:8081" /root/pre_annotations_sentences.json | head -n 5
sed -i 's|http://localhost:8081|https://tts-labelstudio-audios.ai4bharat.org|g' /root/pre_annotations_sentences.json
grep -i "tts-labelstudio-audios.ai4bharat.org" /root/pre_annotations_sentences.json | head -n 5
ls /root/pre_annotations_sentence.json
