From 71b1b26c728c0d3e5325cae7744d0ecfa6fefc4b Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 28 Sep 2024 22:58:30 +0200 Subject: [PATCH] Add podcast.sh script --- examples/podcast.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/podcast.sh diff --git a/examples/podcast.sh b/examples/podcast.sh new file mode 100644 index 0000000..00c075c --- /dev/null +++ b/examples/podcast.sh @@ -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