Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 10-30-2024, 04:31 AM   #1
msypkenssmit
Junior Member
msypkenssmit began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
Support for audio overlays with Read Aloud?

According to this article EPUB3 audio overlays should be supported in the latest Calibre:
https://www.omgubuntu.co.uk/2023/12/...dio-epub-notes
I cannot find it confirmed so clearly on Calibre's website though. Is it supported?

I could not get it to work yet, but everything suggests that it should work. The only thing not working is the audio coming through.

I have tried it with this Audio-ebook here:
https://www.readbeyond.it/ebooks/b7b497df.html
See attached picture: a bar appears, Calibre is highlighting the sentences, but I hear no sound.
With another Audio-ebook I get the same.

When I try Read Aloud with a regular ebook, without embedded audio, then I do hear audio. See the other attached screenshot. Now the bar appears at the right top instead of the bottom center. It has an extra icon to configure the voices.

So:
1) Are EPUB3 audio-ebooks supposed to work?
2) If yes, how do I get audio? What can I try to debug the issue?
I have already run with 'calibre-debug -w <bookname>.epub' but there are no prints related to audio:
Code:
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/matthijs/calibre-bin/calibre/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/matthijs/calibre-bin/calibre/libexec/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/matthijs/calibre-bin/calibre/libexec/qtwebengine_dictionaries'
[0.000] Load of book started
[0.002] prepared emitted
[0.040] webview loading requested
[0.186] bridge ready
[0.317] iframe ready
[0.417] loading finished
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/matthijs/calibre-bin/calibre/libexec/qtwebengine_dictionaries'
Attached Thumbnails
Click image for larger version

Name:	Calibre_highlights_audio_but_no_sound.png
Views:	43
Size:	30.2 KB
ID:	211742   Click image for larger version

Name:	Calibre_uses_TTS.png
Views:	38
Size:	37.9 KB
ID:	211743  
msypkenssmit is offline   Reply With Quote
Old 10-30-2024, 08:04 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
next release
kovidgoyal is online now   Reply With Quote
Old 10-30-2024, 08:37 AM   #3
msypkenssmit
Junior Member
msypkenssmit began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
♥️ looking forward to testing it!
msypkenssmit is offline   Reply With Quote
Old 10-31-2024, 01:31 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well actually, now that I think about it, the next release is basically adding support for the audio/mpeg format to the calibre viewer. MP3 should work already and does for me, which is what the audio ebook sfrom read beyond use. The symptom you describe of audio not playing is something else, probably related to some incompatibility on Linux or the other. Use the official calibre binaries and see if it works.
kovidgoyal is online now   Reply With Quote
Old 10-31-2024, 04:13 AM   #5
msypkenssmit
Junior Member
msypkenssmit began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
That's a pity!

I'm currently running the latest binaries from the website, installed for the local user with
Code:
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin install_dir=~/calibre-bin isolated=y
I'm running Debian bookworm, but I don't have Debian's build of Calibre installed, instead I only have the binaries from the website.

As I have mentioned before, I do hear audio for the TTS Read Aloud, so audio is partially working. Just not when it should be playing back the embedded audio files.

I'm willing to go to considerable lengths to investigate, when provided with some instructions.
msypkenssmit is offline   Reply With Quote
Old 10-31-2024, 04:28 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
TTS read aloud goes via QtMultimedia playing mp3 files in the viewer goes via QtWebEngine. As far as I know they both use ffmpeg under the hood so I have no idea why one would work for you and the other wouldnt. You should be able to workaround it by using the calibre content server and viewing the book in a browser instead, assuming audio is working in your browser.
kovidgoyal is online now   Reply With Quote
Old 11-09-2024, 02:37 AM   #7
msypkenssmit
Junior Member
msypkenssmit began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2024
Device: Kobo Libra Colour
I just tried yesterday's release 7.21.0, and now it works! So, whatever you did, it may have made the difference for me.
For good measure I tried to play audio from the browser first and simultaneously, but even that did not break the playback again. Hopefully it will stay that way.

One thing I did notice is that the highlight for Read Aloud when the audio is coming from the book itself is not following the highlight color from the book.

In the .opf there is a line like this
Code:
<meta property="media:active-class">-epub-media-overlay-active</meta>
Which indicates that in the .css the following attribute can be used to indicate the highlight color.
Code:
/* Media Overlay highlight color: yellow */
.-epub-media-overlay-active {
    background-color: #FFFF00;
}
Is this something that on Calibre's road map to support?

If not (soon), is there a way to configure the highlight color for Read Aloud through custom styling?
msypkenssmit is offline   Reply With Quote
Old 11-09-2024, 02:39 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Its a simple selection, you can style the selection color using standard CSS.
kovidgoyal is online now   Reply With Quote
Old 11-09-2024, 06:37 AM   #9
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,319
Karma: 6869022
Join Date: Sep 2020
Device: Calibre E-book viewer
I'm using this on Viewer custom CSS:

PHP Code:
::selection {backgroundyellowcolor:#000;} 
Comfy.n is offline   Reply With Quote
Old 11-10-2024, 01:34 PM   #10
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,098
Karma: 1261763
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by Comfy.n View Post
I'm using this on Viewer custom CSS:

PHP Code:
::selection {backgroundyellowcolor:#000;} 
Nice tip!
thiago.eec is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
32bit TTS Voice support - Read aloud musickid Viewer 7 10-08-2022 04:22 PM
Add Microsoft online TTS support for the "Read aloud" function, please. kyod Calibre 2 10-12-2021 09:39 AM
equivalents to ibooks fixed layout audio read-aloud buttons soparch ePub 4 06-25-2018 06:27 PM
Read Aloud support for Nook? ralphiedee Barnes & Noble NOOK 1 08-25-2012 03:21 AM
Read Aloud support for Kobo ralphiedee Kobo Reader 0 08-22-2012 11:23 AM


All times are GMT -4. The time now is 06:51 AM.


MobileRead.com is a privately owned, operated and funded community.