slight restructuring, added major section to contain individual
scripts as well as a major section to contain a master script. also added file extensions to each of the tangles.
This commit is contained in:
parent
8c9f13e439
commit
d28fdcb9f2
1 changed files with 20 additions and 6 deletions
|
@ -14,18 +14,19 @@
|
|||
/_/
|
||||
|
||||
#+end_example
|
||||
* mimic3
|
||||
* Independent application snippets
|
||||
** mimic3
|
||||
this uses one of my favorite mimic3 voices and generates an mp3 in /tmp/output.mp3
|
||||
#+begin_src shell :tangle tts-to-file
|
||||
#+begin_src shell :tangle tts-to-file.sh
|
||||
#!/bin/bash
|
||||
mimic3 --voice en_US/hifi-tts_low#92 --length-scale .95 "$1" > /tmp/stage.wav
|
||||
ffmpeg -y -i /tmp/stage.wav -f s16le -acodec pcm_s16le -ar 22050 -c:a libmp3lame /tmp/output.mp3
|
||||
#+end_src
|
||||
* feed2exec
|
||||
** feed2exec
|
||||
this application will take any rss feed and run an arbitrary command against it. it does have a default config file, so we should probably specify it when we call it.
|
||||
|
||||
these lines are taken straight out of the man page and made a bit more readable
|
||||
#+begin_src shell :tangle feed-reader
|
||||
#+begin_src shell :tangle feed-reader.sh
|
||||
#!/bin/bash
|
||||
feed2exec \
|
||||
parse \
|
||||
|
@ -33,12 +34,12 @@ these lines are taken straight out of the man page and made a bit more readable
|
|||
--output echo \
|
||||
--args '{item.title}'
|
||||
#+end_src
|
||||
* ffmpeg
|
||||
** ffmpeg
|
||||
this is the hardest bit, honestly. once i figure out how to build the video file from the pieces, gathering the pieces and upping them to youtube etc will be cake.
|
||||
|
||||
i already know that to build the spectrometer is out of the scope of what i can build in one evening, but i am sure i can put together the ffmpeg command to build from a single image file and a single audio file
|
||||
|
||||
#+begin_src shell :tangle video-builder
|
||||
#+begin_src shell :tangle video-builder.sh
|
||||
#!/bin/bash
|
||||
ffmpeg -loop 1 -i ../media-assets/sample_pic.png \
|
||||
-i /tmp/output.mp3 \
|
||||
|
@ -47,3 +48,16 @@ i already know that to build the spectrometer is out of the scope of what i can
|
|||
-c:a copy \
|
||||
output.mp4
|
||||
#+end_src
|
||||
* one big ole rube goldberg spaghetti mess
|
||||
surely this can actually be written as one script.
|
||||
|
||||
#+begin_src shell :tangle storytime.sh
|
||||
#!/bin/bash
|
||||
figlet "Fetching feed items."
|
||||
figlet "Reading into an audio file."
|
||||
figlet "Mixing video."
|
||||
figlet "Uploading."
|
||||
figlet "DONE!"
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
|
|
Loading…
Reference in a new issue