~retropikzel/ebook2audio

49ef34f82adb178ced57181b8b34a1ad4542ffdf — retropikzel 1 year, 3 months ago
Made this
3 files changed, 14 insertions(+), 0 deletions(-)

A .gitignore
A Makefile
A ebook2audio
A  => .gitignore +2 -0
@@ 1,2 @@
*.swp
*.log

A  => Makefile +6 -0
@@ 1,6 @@
PREFIX=${HOME}/.local

install:
	mkdir -p ${PREFIX}/bin
	cp ebook2audio ${PREFIX}/bin/ebook2audio


A  => ebook2audio +6 -0
@@ 1,6 @@
#!/usr/bin/env bash

TMPFILE="/tmp/ebook2audio-txt-$1.txt"
pandoc -f epub -t plain -o ${TMPFILE} $1
espeak ${TMPFILE} -w "$1.wav"