Skip to content

Commit

Permalink
tesseract fix
Browse files Browse the repository at this point in the history
Signed-off-by: David Anyatonwu <[email protected]>
  • Loading branch information
onyedikachi-david committed Sep 9, 2024
1 parent 50c20af commit 43a7c54
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,18 +340,31 @@ jobs:
Write-Warning "Scream audio device not found. TEST_AUDIO_DEVICE will not be set."
}
# Additional debugging information
Write-Output "Audio endpoints:"
Get-AudioDevice -List | Format-Table Name, Type, Default, ID
Write-Output "MMDevice audio endpoints:"
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$devices = [System.Windows.Forms.SystemInformation]::SoundDevices
$devices | ForEach-Object { Write-Output $_ }
- name: Install Tesseract OCR
shell: pwsh
run: |
choco install tesseract
choco install tesseract -y
$env:Path += ";C:\Program Files\Tesseract-OCR"
refreshenv
tesseract --version
Write-Output "Tesseract version:"
& "C:\Program Files\Tesseract-OCR\tesseract.exe" --version
- name: Setup and run CLI (Windows)
shell: pwsh
run: |
# Add Tesseract to PATH
# Ensure Tesseract is in PATH
$env:Path += ";C:\Program Files\Tesseract-OCR"
tesseract --version
Write-Output "Tesseract version:"
& "C:\Program Files\Tesseract-OCR\tesseract.exe" --version
$env:RUST_LOG = "trace,screenpipe=trace,screenpipe_audio=trace"
$env:RUST_BACKTRACE = "full"
Expand Down

0 comments on commit 43a7c54

Please sign in to comment.