FS#71495 - [chromium] chromium & google-chrome live caption never working

Attached to Project: Arch Linux
Opened by Jack Crick (wisecrick) - Tuesday, 13 July 2021, 17:08 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I use Linux & Windows to watch some video website, both turned on Live Caption.
But Google Chrome on Windows works, while google-chrome (from aur) & chromium (from package) never show the caption.
Could anyone please solve the problem? It's a very useful feature.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

https://bbs.archlinux.org/viewtopic.php?id=267905
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:16 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/chromium/issues/2
Comment by Jack Crick (wisecrick) - Thursday, 05 August 2021, 07:05 GMT
I've figure out a weird way to solve this problem:
I install debian 10 + gnome + google chrome in a lxc container, and the live caption works... But I still think it should works in a native archlinux environment.
Comment by Martin Sandsmark (sandsmark) - Saturday, 16 October 2021, 12:04 GMT
If you run chromium from a terminal, the live captioning code actually provides some useful logging. In particular there seems to be a permission problem:

W1016 14:01:51.121939 306447 language_pack_utils.cc:137] Error reading from /home/sandsmark/.config/chromium/SODALanguagePacks/en-US/1.0.2/SODAModels/configs: error 'Operation not permitted' while opening directory '/home/sandsmark/.config/chromium/SODALanguagePacks/en-US/1.0.2/SODAModels/configs': Operation not permitted


The files have -rw------- perms (owned by the user).

I'm not sure if it is some sandboxing config that's different in arch, or if the models are supposed to be shipped in the package, but it seems solvable.


edit: Changing the permissions so that the dir and contents are readable by other users doesn't help, but if you turn off the sandbox (run chromium with --no-sandbox) it manages to load and initialize. It unfortunately even then doesn't render anything, it seems to be continuously resetting the session (or it could be a red herring and it is supposed to loop like that).

Attached log excerpts with and without sandboxing.


edit2: Looking at the code, it seems like it tries to load some standalone library pre-sandbox (https://chromium.googlesource.com/chromium/src/+/refs/heads/main/components/soda/constants.cc#27 + https://chromium.googlesource.com/chromium/src/+/refs/heads/main/content/utility/speech/speech_recognition_sandbox_hook_linux.cc#53). Assuming it is instead built-in, I guess the problem is that the library initialization is not run pre-sandbox and therefore isn't able to run what it wants. Alternatively the problem is that libsoda.so is required, and it is supposed to be gotten from somewhere.
Comment by Martin Sandsmark (sandsmark) - Saturday, 16 October 2021, 12:50 GMT
Aaand a new comment, because I guess this is the final issue: It seems like it might require a separate API key: https://github.com/chromium/chromium/commit/90a2ac585e61be98d3dd3dd47f5566110df63700

libsoda.so is not open source nor part of chromium, so SODA/1.0.9/SODAFiles/libsoda.so is downloaded on demand and seems to have some DRM (e. g. the API key).
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...