Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
# Test the server
uv run python AACSpeakHelperServer.py
# Test the client (in another terminal)
uv run python client.py
# Test CLI configuration tool
uv run python cli_config_creator.py# Use the automated build script
.\build_executable.bat
# Or build manually:
# Build server
uv run python -m PyInstaller AACSpeakHelperServer.py --noupx --onedir --noconsole --name "AACSpeakHelperServer" -i .\assets\translate.ico --clean
# Build client
uv run python -m PyInstaller client.py --noupx --console --onedir --clean -i .\assets\translate.ico
# Build CLI configuration tool
uv run python -m PyInstaller cli_config_creator.py --noupx --console --name "Configure AACSpeakHelper CLI" --onedir --clean -i .\assets\configure.ico
# Note: GUI configuration tool is excluded from builds due to reliability issues
# Build installer (requires Inno Setup 6)
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" .\buildscript.iss
# Define the path to the text file and executable
$textFilePath = "C:\path\to\textfile.txt"
$executablePath = "C:\Program Files (x86)\Ace Centre\TranslateAndTTS\translatepb.exe"
$outputFolder = "C:\path\to\output\folder"
# Check if text file exists
if (Test-Path $textFilePath) {
# Read each line of the text file
$lines = Get-Content $textFilePath
# Iterate through each line
foreach ($line in $lines) {
# Copy the line to the clipboard
$line | Set-Clipboard
# Run the executable
Start-Process $executablePath
# Wait for the executable to complete and the file to be created (adjust time as needed)
Start-Sleep -Seconds 5
# Identify the latest created file in the output folder (assuming it's sorted by date)
$latestFile = Get-ChildItem $outputFolder | Sort-Object LastWriteTime -Descending | Select-Object -First 1
# Generate a unique truncated name based on the line from textFilePath
$truncatedName = $line.Substring(0, [Math]::Min(10, $line.Length)) # Taking first 10 characters, adjust as needed
# Rename the file
Rename-Item -Path "$outputFolder\$($latestFile.Name)" -NewName "$truncatedName.txt" # Adjust extension if needed
}
} else {
Write-Host "Text file not found at $textFilePath"
}


client.exe [options]uv run python cli_config_creator.py [--config path/to/settings.cfg]"Configure AACSpeakHelper CLI.exe" [--config path/to/settings.cfg][App]
collectstats = True
[processing]
pipeline = translate,transliterate,tts
[translate]
enabled = true
source_language = en
target_language = ps
replace_clipboard = true
provider = GoogleTranslator
[transliterate]
enabled = false
language = hi
from_script = Latn
to_script = Deva
replace_clipboard = true
[tts]
enabled = true
engine = azureTTS
save_audio = true
rate = 0
volume = 100
[azureTTS]
key = your-azure-key-here
location = uksouth
voice_id = en-US-JennyNeuralclient.exe --config path/to/your/custom-settings.cfg