TTS: Preference to force override the language set in the HTML resources

Open
#279 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
mobile

Research direction

Start by tracing how text-to-speech chooses a language from the EPUB's LANG metadata and how a reader's language preference is applied. Reproduce the report with the attached Italian EPUB, whose metadata is set to English. Done means selecting Italian is honored for speech despite that metadata; the issue does not identify specific files or tests.

Written by the indexing model from the issue text.

Description

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
  • Readium version: 2.4.0

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
  • iOS version:
  • Model (e.g. iPhone 11 Pro Max):
  • Is it an emulator? Yes or No
Additional context
Dominant language
Swift
Stars
557
Forks
249
Avg merge
3h 52m
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from readium/swift-toolkit

All issues in readium/swift-toolkit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.