View Single Post
Old 02-16-2011, 04:40 PM   #33
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
listening to audiobook and and reading the book simultanously

EDIT:
This has been superceded by a new code fixing some bugs and introducing new features here:
https://www.mobileread.com/forums/sho...46#post1449846
I removed the zip originally attached to this contribution from this reason.


I have played a bit with the scripts from Smarter in order to achieve a reasonable setup for listening to an audiobook while reading (usually the same ) book.
I have added the following functionality for this purpose:
Quote:
Shift+Z = back (~10 seconds)
Shift+Z+Z = rewind (~100 seconds)
Shift+X = forward (~10 seconds)
Shift+X+X = fast forward (~100 seconds)
Shift+M+Q = go to the beginning of the currently played file
Shift+M+C = continue listening from the place where previously stopped (by Shift+M+S)
Due to the bug in the original mplayer seeking functionality that I mentioned previously, I had to workaround the seeking by stopping the current playback and starting a new one from the requested position. I deliberately broke the Shift+M+key convention for seeking in order to enable a more convenient and quicker seeking.

The 'continue' feature works in the same way - the currently played file and the position in it are remembered when stopping the playback so that we can continue from the same position the next time (the info is saved in a file, so a sleep or restart is not a problem). It may be preferable to use Shift+M+S / Shift+M+C for "pausing" (instead of Shift+M+P) as the former does not drain the battery and survives sleep/reboot. However, it would not solve the problem Kenneth_irl had - the playback still needs to be stopped before going to sleep/reboot.

Another change: the files are played in alphabetical order now.

The way I use it is uploading 1-2 audiobooks for the books I want to listen+read, with the name of the files belonging to the same audiobook starting by 00_name, 01_name, etc (usually chapters but not necessary). I find it pretty usable, perhaps it will be useful for somebody else too.

Last edited by janvanmaar; 03-17-2011 at 05:36 PM.
janvanmaar is offline   Reply With Quote