Restructure the repository since simlinking didn't work. Added license and README.

This commit is contained in:
Storm Dragon
2025-12-07 02:52:47 -05:00
parent c25c717971
commit 3501d73871
5 changed files with 89 additions and 0 deletions

35
install.sh Normal file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# Install RHVoice English pronunciation fixes
set -e
# Check if running as root
if [[ $EUID -ne 0 ]]; then
echo "Error: This script must be run as root (use sudo)" >&2
exit 1
fi
# Define paths
dictDir="/etc/RHVoice/dicts"
sourceDir="English"
# Verify source directory exists
if [[ ! -d "$sourceDir" ]]; then
echo "Error: Source directory '$sourceDir' not found" >&2
exit 1
fi
# Create dictionary directory if it doesn't exist
mkdir -p "$dictDir"
# Copy English pronunciation fixes
echo "Installing English pronunciation fixes to $dictDir..."
cp -rv "$sourceDir" "$dictDir/"
echo "Installation complete!"
echo "You may need to restart applications using RHVoice for changes to take effect."
echo "For example:"
echo "sudo killall speech-dispatcher"
exit 0