Exporting PDF as MP3?

Dotan Cohen dotancohen at gmail.com
Sat Mar 22 23:45:48 UTC 2008


On 23/03/2008, Jonas Norlander <jonorland at gmail.com> wrote:
> 2008/3/22, Dotan Cohen <dotancohen at gmail.com>:
>
> > In KPDF one can have the text spoken out loud. Is it possible to make
>  >  an MP3 recording of that? I'm thinking along the lines of a command to
>  >  run in Konsole that would take a PDF file as an argument and output a
>  >  MP3, but I don't know where to start.
>  >
>  >  Dotan Cohen
>  >
>
>
> I don't know a way to do it from pdf to sound but you could pipe through
>  pdftotext and use text2wave from Festival to record it with lame like this:
>  pdftotext somefile.pdf - | text2wave | lame - somefile.mp3
>  Looks like it works ok.
>

Thank you. The text2wave and lame functions were what I was missing. I
was trying to use festival, but the only relevant part of it's manpage
was this sentance:
"BUGS
       More than you can imagine."

Thank you very much.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the kubuntu-users mailing list