Text To Wav-Mp3-Rtf-Speech v2.00
Latest Update (7-24-2010)
Must have Version 2.00 installed!!
by Warren S. Goff, DO
This is an OPEN SOURCE, FREEWARE program I've written and which I use extensively. I use this to create audiobooks which I load into my MP3 player and listen to when I work out. I've seen applications with similar functionality for sale so if it works for you, then enjoy.
My daughter also uses this to read along with a variety of Children's Books (public domain).
The program will accept text documents either as plain text (.txt). rich text (.rtf) or Acrobat PDF (.pdf). They may be loaded from a directory structure, dragged to the reading window or pasted from the clipboard. I've found that Acrobat multicolumn pdf files do not copy or convert properly and mix the text out of order. This may be circumvented if the pdf is converted to a rtf within Acrobat.
Any text in the reading window can be saved as a Rich Text File (.rtf), a Microsoft Wav File (.wav) and an MP3 (.mp3) file. These will be saved to the Windows Desktop. In addition, any text in the reading window can be read by Text to Speech using Microsoft SAPI Library. The mp3 conversion is done using the L.A.M.E library and is included.
The program has only been used by me and it has not been beta-tested or evaluated by others. The source code is available here: (http://3mtg.sl.pt/ http://3g6z.sl.pt). The source code can also be downloaded here. If there are problems with the installation or function, please contact me and I will attempt to rectify matters. I have tested it on a new installation of Windows XP and it seems to work fine. It has been tested extensively under Windows 7.
The following is the only documentation.
Use the program at your own risk.
This is the main reading window and all Options.
When a document is loaded, all options appear.
This Help File is included for Off-line and On-line Viewing
One may load a file from the standard Windows Dialog.
The program only loads pdf, rtf and txt files.
Clearing the text re-initializes the program
One may switch files by Loading, Pasting or Drag-Drop to the reading window.
Drag and Drop
Drag and drop an accepted file type from the Desktop or a folder and it will Load.
Graphics and Formatting are visualized but are not read or recorded. They can be resaved as RTF.
They are preserved if pasted from the Clipboard only if copied from another RTF or a Word DOC File.
This character: "<" for no apparent reason crashes the Speech Engine.
If it is present in the document, prior to processing one will be prompted:
If one clicks Yes, the character will be found and one will be asked for a Replace Term:
If no term is entered, every instance of "<" will be deleted.
Otherwise, all will be replaced.
All extraneous symbols and punctuation are NOT pronounced anyway.
On some unforseen occasion, formatting in the text might interfere with TTS or Audiobook creation.
In these instances, an error will occur stating that the Speech Engine has crashed.
A menu option is provided to Completely Strip all Graphics and Formatting in these instances as well.
Cut and Paste
One may also copy plain or rich text to the clipboard and paste into the reading window.
The Title changes to the Default File Name for the saved formats which is the first few words of the document.
One may change the file name by Selecting Text in the Reading Window
and Renaming the File from the File or the Right Click Menu
Disallowed file naming characters (: / \ * ^) are stripped out!
The Title will be used to save all files (rtf, wav, mp3).
If no text is selected at this point, the default title will change to a numeric time stamp.
When text exists in or has been copied to the Clipboard this button appears.
Recording Wav Files
If the disallowed character, "<" is present, one will be prompted as above.
One can record the reading window and the default file will be
saved to the desktop
Once this process is started, one cannot interrupt it or the program will crash!!
Recording MP3 Files
Once a wav file has been created, the >>mp3 button appears, blinks and
one may encode an mp3
to the Desktop with the default file name.
One may re-encode the default wav file if it still exists on the Desktop.
One is then prompted to delete the original wav file.
The wav files are saved in 16 bit 44 kHz Stereo in order
to convert them to mp3s.
Thus the wav files can be pretty big depending on the
amount of text converted.
In addition if one drags and drops a supported wav file to the reading window, it will be
converted to an MP3.
Audiobooks and Bookmarking
The ability to read and create multiple Bookmarks for saved Audiobooks
has been added. This is entirely based upon the filename.
one may Browse for a folder and Save it as the
Default Audiobook Folder, if desired.
This is borrowed from (Monoton Sound Library) amd modified.
Reading Text (TTS)
The text will be highlighted as it is read.
Certain characters in the text window are not readable and are
stripped from the document (above).
One may pause and resume reading
If text has been copied to the Clipboard this button will appear.
One may read the Clipboard Contents separately, copied from the program
or any other source.
You must paste the clipboard contents into the reading window to create a wav or mp3.
Adjusting the rate of speech will return to the beginning of the document.
This adjusted rate will also be applied in the recorded wav and mp3 files.
One may reset the rate to the default.
If the reading window contains text, one may perform Text To Speech using the available
voices on your computer.
I find that the Microsoft ones aren't very good and
I prefer the commercial ATT ones.
A default voice can be Saved.
Changing the voice resumes at the same place if reading.
One may select an Audio Device also
One may Bookmark text to resume reading by Selecting the word in the document and
Clicking the top button .
Only one bookmark per document is supported.
One may recall the Bookmark by Loading the prior document and
clicking the bottom button .
Search for Text
I find the search function to be of value for editing out repetitive data in the texts and
finding figures and tables that I want to remove.
One may replace all instances of a single line of Selected Text.
One may Completely Undo and Redo the Replace and Clear Functions.
The Selected Text can be looked up on Webster.com.
Just the first word in the selection will be defined.
The Selected Text can be Translated into Chinese using Google Translate and NCIKU.
Entire phrases will be translated into Chinese and Pinyin.
Adjust Text Size and Font
The text size of the entire document can be changed at once.
The font may be changed and resized for readability options in Selected Text.
The program can be kept top-most and remain in the foreground of the Desktop.
Variable opacity can be adjusted if one wants to read through the program.
User Friendly Standard Windows Menu Structure added.
All buttons are reproduced on the Right Click on the Reading Window
Various bugs may still be crawling around.
That is all for now...