Skip to content

Commit

Permalink
Add podcast.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Sep 28, 2024
1 parent 25507a0 commit 71b1b26
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/podcast.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
#
# Launch r2ai and use this prompt to generate the conversation from data.txt
# Copypaste the output into podcast.txt
#
# -f /tmp/data.txt Create a script for a podcast between two technical people named Sam and Max, about the changelog on radare2 5.9.4, focus on important features and stuff that impacts positively to users. The length must be as long as possible. Do not show any "**" section, output must contain only the conversation, be emotional and make the two people ask questions to learn more about the details of each feature

if [ ! -f podcast.txt ]; then
echo "Missing podcast.txt. Please read the script before running it."
exit 1
fi

cat podcast.txt | sed -e 's/Sam:/[[pbas 40]]/g' -e 's/Max:/[[pbas 60]]/g' > podcast.say.txt
say -f podcast.say.txt -o podcast.aiff
ffmpeg -i podcast.aiff podcast.mp3

0 comments on commit 71b1b26

Please sign in to comment.