Skip to content
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

Default FeaturePolicy does not allow microphone access preventing the transcribe recording feature to work on Chromium based browsers #187

Open
dhx opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dhx
Copy link

dhx commented Jan 28, 2025

Which version of assistant are you using?

2.3.0

Which version of Nextcloud are you using?

Nextcloud Hub 9 (30.0.5)

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Chrome 132.0.6834.110-1

Describe the Bug

While it works on Firefox, trying to start a recording with the "Transcribe audio" on a Chrome based browser leads to the following error message in the console:

[Violation] Permissions policy violation: microphone is not allowed in this document.
start @ ScheduledEmptyContent-Cj1Q5z8E.chunk.mjs:35
Qe @ index-BB8-ZDBS.chunk.mjs:3
a @ index-BB8-ZDBS.chunk.mjs:3
Qe @ index-BB8-ZDBS.chunk.mjs:3
e.$emit @ index-BB8-ZDBS.chunk.mjs:3
click @ index-BB8-ZDBS.chunk.mjs:13
Qe @ index-BB8-ZDBS.chunk.mjs:3
a @ index-BB8-ZDBS.chunk.mjs:3
Md.n._wrapper @ index-BB8-ZDBS.chunk.mjs:3

This seems to be caused by the default Nextcloud Feature-Policy disallowing microphone access which affects all supporting browsers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy#browser_compatibility

Guess something like this commit from the spreed repo should suffice:
nextcloud/spreed@ff71631

Expected Behavior

-> Microphone access should be requested in browsers supporting the feature-policy / permissions-policy header when trying to start a recording.

To Reproduce

-> Try to start a recording on an affected browser

@dhx dhx added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant