Thursday, February 4, 2010

How to Prepare Content - Part 2

This is Part 2 in a series. You may want to first read: Part 1.

The DingLabs Reader is intended to be open to anyone to post and share their own content.

The process isn't fully documented yet, but it is usable right now, and the steps are pretty simple:
  1. The first step is to use Transcriber to create a .trs file for each chapter (or audio file) you would like to share.
  2. Upload the .trs and .mp3 files somewhere on the Internet. If you don't have a website, you might just try Google Sites to host your files.
  3. Finally, create and upload an XML file which will describe your book and the locations for each .trs and .mp3 file.  As an example, here is a link to the actual XML file that is used for Alice in Wonderland:
        http://content.dinglabs.com/book/alice
    (you might have to "View Source" or "Save Link as..." to see the XML).
Now you can run the DingLabs Reader, and tell it to load your book. You do this by including a link to your XML file in the Reader URL. Here's an example, using Alice in Wonderland again. Just use your URL in the highlighted section (although it may appear as two lines, it is one long URL):
   http://reader.dinglabs.com/Book.html#b:=http://content.dinglabs.com/book/alice

That's it! When the program loads, it will fetch your XML file, and find the .trs and .mp3 file for each chapter, so it can create the interactive display for playback.

Feel free to reply with your questions or feedback.

Tuesday, February 2, 2010

How to Prepare Content - Part 1

To prepare content to be played back with the DingLabs Reader, you can use the free, open-source tool, Transcriber.




You can use Transcriber to manually synchronize an audio file and it's transcript. The result will be a .trs file, containing the transcript text and timestamps. The DingLabs Reader simply parses this .trs file to directly produce the interactive display of the transcript.

How to Align A Book Chapter

You will need:
  • Audio file for the chapter (WAV highly recommended)
  • Full text of the chapter
  • Transcriber (downloaded and installed)
I highly recommend only using WAV files with Transcriber, to guarantee accurate alignments. Transcriber doesn't seem to generate accurate timestamps with longer MP3 files.  So, first convert your MP3 files to WAV.  You can Google for such a tool, or maybe try an online converter.

When running Transcriber for the first time, make UTF-8 the default encoding:
  1. Click 'Options' > 'General...'
  2. Select 'Unicode UTF-8' for the Encoding, and click OK
  3. Click 'Options' > 'Save configuration'
Now you can bring in the audio and text to align. Click 'File' > 'New trans' and select the audio file for your chapter. Next, in the text area, you can paste in the full text of your chapter. If you need to change the font (to display Chinese, etc.), click 'Options' > 'Fonts' > 'Text' and choose a new font Family and size.

Now with your audio loaded, and your text pasted in, you can begin the work of synchronizing the text with the audio. As the audio plays back, you hit "ENTER" to synchronize the text at that position with that point of the audio.

Some keyboard shortcuts to use:
  • TAB key to play or pause the audio playback
  • ENTER to split the text, creating a sync point with the audio.
  • ALT-LEFT or ALT-RIGHT to take a small jump forward or backward in the audio
Tips:
  • If you hit ENTER by mistake, creating an unwanted split, just hit CTRL-BACKSPACE to remove the split.
  • If you didn't get the timing quite right on your sync point, you can easily adjust it with your mouse. Look at the lower-most green bar -- you can drag the section divider into the correct position with your mouse. Just hold down the CTRL key while clicking and dragging with your mouse.
  • To denote paragraphs, hit CTRL-T at the beginning of a paragraph, and create a speaker named "<p>".  To mark future paragraphs, you should be able to just hit CTRL-T then ENTER.
After using the program for a little bit, you'll get faster and faster at doing the alignments.

At any time you can hit CTRL-S to save your .trs file. You may want to give it a name similar to the audio file, to help keep things organized.

OK, have fun aligning, it can become addicting! :-)

Continue on to Part 2, and learn how you can share your work with the world by making it playable in the DingLabs Reader!

Edited 3/28/10 to recommend only using WAV files with Transcriber.