-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTS: Preference to force override the language set in the HTML resources #279
Comments
The Readium TTS allows to override the publication language, except if it's explicitly set in the HTML document. Unfortunately this book is badly authored as the HTML documents have <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE html>
<html xml:lang="en">
<p>Di là andarono alla festa dello Spirito Santo. Il cieco sapeva bene il tempo d’ogni festa e l’itinerario da seguirsi ed era lui che guidava il compagno. We plan to improve the TTS navigator by adding a preference to force override the content language, but I have no ETA for this change. In the meantime, I think that if you switch the swift-toolkit/Sources/Navigator/TTS/PublicationSpeechSynthesizer.swift Lines 265 to 269 in e173501
Note that this means that multilingual books won't behave correctly if you set |
Ok, it's works... but how can I preselect the right Language in TTSSettings? It seems that it doesn't work anycase also in Epub with the right lang. |
I don't understand what you mean? |
Bug Report
It looks like the system only gives the possibility to listen to the ebook in the language set in the file's LANG metatag: if I try to change the language, the ebook is still read in the language set by the LANG meta tag.
Unfortunately, we don't know which and how many ebooks in our catalog could have this problem, so we need to know how to work around the problem and provide an acceptable quality text-to-speech to our iOS readers.
What happened?
The text-to-speech allows me to listen to it only in English: if I set Italian, this change is not accepted.
Expected behavior
I'd like to set Italian.
How to reproduce?
I attach an epub, a classic of Italian literature in which the metatag is set on EN.
Canne_al_vento test lingua.zip
Environment
I can't test with the TestApp ('main' or 'develop' branch), because the TestApp fails with the error:
Missing file: "/META-INF/container.xml"
Development environment
macOS: 13.2.1
platform: x86_64
carthage: 0.38.0
Xcode 14.2
Build version 14C18
Testing device
Additional context
The text was updated successfully, but these errors were encountered: