Created
January 29, 2025 13:21
-
-
Save ErikBjare/1bd7ac619f8f7992d3e4d37e6a6465b8 to your computer and use it in GitHub Desktop.
Raycast script for running gptme with TTS/voice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title gptme with voice | |
# @raycast.mode silent | |
# // @raycast.mode inline | |
# // @raycast.mode fullOutput | |
# Optional parameters: | |
# @raycast.icon 🤖 | |
# @raycast.argument1 { "type": "text", "placeholder": "query" } | |
# Documentation: | |
# @raycast.author erik_bjareholt | |
# @raycast.authorURL https://raycast.com/erik_bjareholt | |
echo "Taking screenshot" | |
SCREENSHOT=/tmp/screenshot-raycast.jpg | |
screencapture -x -t jpg $SCREENSHOT | |
echo "Starting gptme" | |
GPTME_BREAK_ON_TOOLUSE=true GPTME_VOICE_FINISH=true /Users/erb/.local/bin/gptme -t ipython,computer,tts --non-interactive "$1" "$SCREENSHOT" --model anthropic | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment