diff --git a/.gitignore b/.gitignore index 18506b8..97a3407 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ -project/podcasts/ +project/podcasts/* thesis/*.pdf +thesis/drafts/ project/audio/ project/images/ diff --git a/.index.php.swp b/.index.php.swp new file mode 100644 index 0000000..5ddad21 Binary files /dev/null and b/.index.php.swp differ diff --git a/project/README.md b/project/README.md index 75882d7..c6f7c2f 100644 --- a/project/README.md +++ b/project/README.md @@ -4,5 +4,11 @@ Here is where me and others meet in the text. Here is others people proof readin https://pad.xpub.nl/p/thesis-angeliki -# Srttojs +# Scripts +## Podcast +The command line "podcast" allows recording of microphone input and soundcard at the same time. +`mv podcast .local/bin/podcast` +run in terminal: +`podcast` +## Srttojs python3 srttojs.py description-alex1-A.srt diff --git a/project/scripts/podcast b/project/scripts/podcast new file mode 100755 index 0000000..74f6677 --- /dev/null +++ b/project/scripts/podcast @@ -0,0 +1,12 @@ +#!/bin/bash +output=${1:-podcast} +arecord -Dpulse_monitor -f cd ${output}_sc.wav & +arecord -Dpulse -f cd ${output}_mic.wav +ffmpeg -i ${output}_mic.wav -i ${output}_sc.wav -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 ${output}.mp3 + +today=$(date +%Y%m%d-%H%M); +mkdir -p "podcast.$today" +mv podcast.$today podcasts/; +mv -v ${output}_sc.wav podcasts/podcast.$today/${output}_sc.$today.wav; +mv -v ${output}_mic.wav podcasts/podcast.$today/podcast_mic.$today.wav; +mv -v ${output}.mp3 podcasts/${output}.$today.mp3; diff --git a/project/srttojs.py b/project/scripts/srttojs.py similarity index 100% rename from project/srttojs.py rename to project/scripts/srttojs.py