]> njoseph.me Git - babashka-scripts.git/blobdiff - ebook-to-audio-book.clj
Utility to install deb packages using gdebi
[babashka-scripts.git] / ebook-to-audio-book.clj
index c09b8d00aaf3bad531407d4e25d5d41649a9b4ae..0d178554e600bd2af2949d036641937f31a782b5 100755 (executable)
 
 ;; TODO Use festival-tts or say depending on OS
 
-(defn run-cmd
-  [command]
-  (->> command
-       p/process
-       :out
-       slurp))
-
 (let [book-file (first *command-line-args*)
       title (first (split book-file #"\."))
       txtz-file (str title ".txtz")
@@ -34,5 +27,5 @@
   (println "Creating mp3 file...")
   (run-cmd ["ffmpeg" "-i" aiff-file mp3-file])
   (println "Cleaning up...")
-  (run! #(io/delete-file %) [txtz-file txt-file aiff-file])
+  (run! io/delete-file [txtz-file txt-file aiff-file])
   (println (str "Done! Check out " mp3-file)))