-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·47 lines (38 loc) · 1.37 KB
/
uninstall.sh
File metadata and controls
executable file
·47 lines (38 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# StreamSpeak TTS - Uninstaller
# Author: ramo-dev (https://github.com/ramo-dev)
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${YELLOW}This script will remove StreamSpeak and all its related files."
echo -e "This includes:"
echo " - The ~/.streamspeak directory"
echo " - The ~/.local/bin/streamspeak command"
echo " - The ~/.local/share/piper/voices directory (optional)"
echo " - Temporary daemon files"
echo ""
read -p "Are you sure you want to continue? (y/N): " -r
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Uninstallation cancelled."
exit 0
fi
echo ""
echo "Stopping any running daemons..."
streamspeak --stop 2>/dev/null || true
echo "Removing command..."
rm -f "$HOME/.local/bin/streamspeak"
echo "Removing configuration directory..."
rm -rf "$HOME/.streamspeak"
echo "Removing temporary files..."
rm -f /tmp/streamspeak_daemon.pid /tmp/streamspeak_daemon.fifo /tmp/streamspeak_daemon.voice /tmp/streamspeak_last_voice
read -p "Do you want to remove the downloaded voice models in ~/.local/share/piper/voices? (y/N): " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Removing voice models..."
rm -rf "$HOME/.local/share/piper/voices"
fi
echo ""
echo -e "${GREEN}StreamSpeak has been successfully uninstalled.${NC}"
echo "You may want to remove the 'export PATH' line from your ~/.bashrc or ~/.zshrc file."