Commit Graph

831 Commits

Author SHA1 Message Date
Tainan Felipe
1865799d12 Change: set a speechlocale to an user if no when enable captions 2024-04-23 10:35:26 -03:00
Tainan Felipe
f7da15d2db Merge branch 'refactor-captions' of github.com:Tainan404/bigbluebutton into refactor-captions 2024-04-23 10:22:17 -03:00
Tainan Felipe
f2c4e7348f Change: remove on/off button 2024-04-23 10:21:23 -03:00
Ramón Souza
97ebed9b96 remove unused var 2024-04-22 21:43:24 -03:00
Ramón Souza
7dd82790b8 fix condition 2024-04-22 21:38:05 -03:00
Tainan Felipe
0945ebcaf6 Fix: TS errors 2024-04-22 20:48:19 -03:00
Tainan Felipe
af5d8d1a15 Fix: selected speechlocale 2024-04-22 20:19:03 -03:00
Ramón Souza
6fea058cb0 add new away button 2024-04-22 17:34:40 -03:00
Ramón Souza
5e45346934 disable away mode when microphone is unmuted 2024-04-22 14:50:51 -03:00
Ramón Souza
ac6753bff6 fix error when setting away if user is not connected to audio 2024-04-22 12:39:31 -03:00
Ramón Souza
bd2d56f1a2 mute/unmute audio and camera on away mode 2024-04-22 12:24:59 -03:00
Ramón Souza
ad8edc57e1 add locale selector to typed captions 2024-04-19 16:35:39 -03:00
Tainan Felipe
b40930cc4a Refactor: move captions to graphql 2024-04-16 19:39:29 -03:00
João Victor
d18cc6b8e3 Fix import 2024-04-04 10:22:26 -03:00
João Victor
7aa4a40c61 improvement: use React context to store current user data 2024-04-04 10:13:27 -03:00
Ramón Souza
45a2a29b9b
Merge pull request #19908 from JoVictorNunes/issue-19428
fix(audio modal): show loading state while autoplay not checked
2024-03-28 15:58:34 -03:00
João Victor
c0bb739e36 fix(audio modal): show loading state while autoplay not checked 2024-03-26 16:43:05 -03:00
Tainan Felipe
f3465827dd
Migrate meeting collection to graphql (#19853) 2024-03-26 08:57:28 -03:00
Ramón Souza
788cf799f7
refactor: make bbb client work without meteor service (partial) (#19869) 2024-03-21 16:41:32 -03:00
Anton Georgiev
ef300cf28e
chore: Fix typo (found by typos) (port) #19834
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2024-03-18 09:58:53 -04:00
Tainan Felipe
3826a49968 Refactor: move adapter to new main and make it non blocking 2024-03-07 14:20:11 -03:00
Tainan Felipe
a5f26da361 Merge remote-tracking branch 'upstream/v3.0.x-release' into refactor-voice-user 2024-03-07 14:16:05 -03:00
André Castro
58a0efe708
Migrate auth and settings to graphQL (#19507) 2024-03-06 14:28:18 -03:00
Tainan Felipe
00e055ff6e Refactor: move voice users to graphql 2024-03-06 13:08:32 -03:00
João Victor
0fa7c5da69 fix: Captions controls duplicated 2024-03-04 10:19:17 -03:00
João Victor
3c460bb758 fix: prop types, invalid hook call, styled-components prop 2024-02-16 17:32:14 -03:00
João Victor Nunes
1234f2aa7a
Merge branch 'v3.0.x-release' into migrate-user-actions 2024-01-31 08:38:31 -03:00
João Victor
fe0d46d607 remove unused import 2024-01-30 10:51:02 -03:00
Ramón Souza
e28408bca2 remove unused audio captions code 2024-01-29 13:27:30 -03:00
João Victor
431511b8da migrate toggleVoice 2024-01-29 11:05:39 -03:00
Guilherme Pereira Leme
c8bea83de8
feat(plugin): refactor name of general exensible areas interface (#19467)
* [plugin-sdk-issue-62] - refactor general extensible area interface

* [plugin-sdk-issue-62] - refactor last components and bump SDK version
2024-01-23 17:34:50 -03:00
Anton Barboza de Sá
d30b806b47
test: Fix no-flaky tests and properly set the execution mode (#19436)
* test: fix shortcuts, add flaky flag for test requiring graphql data, fix slide change for tldraw v2

* test: properly set the execution mode

* test: use isMultiUser parameter inside options obj

* test: fix banner color test

* test: increase breakout test timeouts for user joining room

* test: redo the change in the hide presentation on join test

* test: change hide presentation steps and add flaky flag on it
2024-01-19 13:42:01 -03:00
Tainan Felipe
3eac34f563 Fix: TS errors 2024-01-15 11:53:18 -03:00
Tainan Felipe
47951f421c Fix: meeting query not working after metadata update 2024-01-15 09:28:45 -03:00
Tainan Felipe
e343eac51d Fix: meeting query missing fields 2024-01-12 18:07:00 -03:00
Tainan Felipe
57fabde52e Merge remote-tracking branch 'upstream/v3.0.x-release' into audio-migration 2024-01-12 17:59:22 -03:00
Tainan Felipe
b424f67af1 Fix: Remove unecessary imports 2024-01-11 14:47:27 -03:00
Ramón Souza
ec3b61b1e7 migrate updateTranscript action 2024-01-11 14:46:39 -03:00
Tainan Felipe
d97ed9c1e0 Merge remote-tracking branch 'upstream/v3.0.x-release' into audio-migration 2024-01-11 14:31:32 -03:00
Ramón Souza
801f2693b9
Merge pull request #19296 from ramonlsouza/migrate-user-actions
refactor: migrate user actions
2023-12-13 16:21:48 -03:00
Tainan Felipe
aa9760ba01 Refactor: use componentsFlags to show captions 2023-12-13 11:31:05 -03:00
Tainan Felipe
0c20ba2d64 Merge remote-tracking branch 'upstream/v3.0.x-release' into audio-migration 2023-12-13 11:03:21 -03:00
Guilherme Pereira Leme
a6045656ce
feat(plugins): Ui Events (#19308)
* [plugin-sdk-ui-events] - useUiEvent hook

* [plugin-sdk-ui-events] - update dependency

* [plugin-sdk-ui-events] - update ts
2023-12-11 13:56:04 -03:00
Ramón Souza
1dbea49730 migrate setSpeechLocale meteor call 2023-12-07 16:23:36 -03:00
Guilherme Pereira Leme
eb7adfb994
feat(plugins): code refactor for readability (#19222)
* [plugin-sdk-refactor-organization] - rearrange of files and folders (WIP)

* [plugin-sdk-refactor-organization ] - final touches

* [plugin-sdk-refactor-organization ] - fix

* [plugin-sdk-refactor-organization ] - update SDK
2023-11-28 15:31:28 -03:00
Ramón Souza
c3bd9ac74a remove unused audio controls component 2023-11-16 10:45:59 -03:00
Tainan Felipe
86c1823b25 Fix: ts errors 2023-11-15 12:00:12 -03:00
Tainan Felipe
683e540c19 Merge remote-tracking branch 'upstream/v3.0.x-release' into audio-migration 2023-11-15 11:48:13 -03:00
Guilherme Pereira Leme
93b8705af2
feature(html5): Change return type of the graphql data hook (#19103) 2023-11-13 15:10:41 -03:00
Tainan Felipe
b0cc1d7c24 Refactor: make components use new data fields 2023-11-13 12:54:43 -03:00
Tainan Felipe
7dfd95cfb2 Merge remote-tracking branch 'upstream/v3.0.x-release' into audio-migration 2023-11-13 10:17:05 -03:00
André
96d9f71030 v27 changes ported to v30 part 2. 2023-11-10 15:09:45 -03:00
Tainan Felipe
d9cafb8bab Change: Make use the new query that control the results in client side 2023-09-27 09:41:06 -03:00
Gustavo Trott
fff883b2b2 Merge 2.7 into 3.0 2023-09-27 08:44:37 -03:00
Tainan Felipe
a43b65e2b7 Merge remote-tracking branch 'upstream/v3.0.x-release' into audio-migration 2023-09-26 10:06:02 -03:00
GuiLeme
1bb2713101 [plugin-sdk-microphone-dropdown] - changes in review 2023-09-25 18:22:02 -03:00
GuiLeme
a3842055d8 [plugin-sdk-microphone-dropdown] - change name to audioSettingsDropdown 2023-09-25 16:48:30 -03:00
GuiLeme
265304ba97 [plugin-sdk-microphone-dropdown] - merge upstream 2023-09-25 16:18:48 -03:00
imdt
5b0db5424a Fix: Mute button moving right 2023-09-22 10:56:01 -03:00
Tainan Felipe
09e3fb3f83 Merge remote-tracking branch 'upstream/develop' into audio-migration 2023-09-21 10:50:19 -03:00
Tainan Felipe
aa27e8be68 Refactor: migrate audio captions to TS + Graphql 2023-09-21 10:48:00 -03:00
GuiLeme
79e9221ab8 [plugin-sdk-microphone-dropdown] - implemented the extensible area 2023-09-19 12:29:14 -03:00
imdt
01d08e5727 More changes 2023-09-13 14:57:43 -03:00
imdt
865e9c6767 More changes 2023-09-13 13:37:40 -03:00
imdt
376d1fc79d Fix: All lint errors 2023-09-13 11:31:20 -03:00
GuiLeme
6652c00c79 [issue-18736] - fix videoPreview not working 2023-09-11 17:15:21 -03:00
Tainan Felipe
a256759284 Fix: Remove all TS compiler errors 2023-09-11 10:22:45 -03:00
GuiLeme
97df4f6eed [refactor-bbb-menu] - changes in review (Created interfaces to define the types) 2023-08-25 16:58:11 -03:00
GuiLeme
67679702bd [refactor-bbb-menu] - changes in review 2023-08-25 08:25:56 -03:00
GuiLeme
f65471b131 [refactor-bbb-menu] - add isSeparator to enhance readability 2023-08-24 11:59:04 -03:00
Gustavo Trott
d018fd6490 Resolve conflicts 2023-08-16 16:24:34 -03:00
Tiago Jacobs
5cf2293c38
refactor (typescript): fix typescript build errors (#18454) 2023-08-14 17:52:35 -03:00
Ramón Souza
7fee4d5f95 replace mute debounce 2023-08-09 13:06:57 -03:00
Gustavo Trott
3758dd89e2 Merge 2.7 into Develop 2023-07-31 11:24:25 -03:00
Tainan Felipe
7ad726f415 Fix: audio lock being applied to moderators 2023-07-27 16:09:38 -03:00
Tainan Felipe
9869ee7f2b Refactor: actions bar audio button 2023-07-24 15:56:40 -03:00
Anton Georgiev
6b76d9aa66 Merge remote-tracking branch 'bbb/v2.6.x-release' into merge-july-21 2023-07-21 16:24:45 -04:00
GuiLeme
6fb701045a [issue-18259] - fix join audio in breakout room 2023-07-17 09:14:23 -03:00
Anton Georgiev
cd9f93be44 Merge remote-tracking branch 'bbb/v2.6.x-release' into merge-july12 2023-07-12 15:59:46 -04:00
Gabriel Porfirio
8f52121d5c changes on the speech-recognition test 2023-06-30 17:16:22 -03:00
Anton Georgiev
43b96b47c4
Merge pull request #17724 from lfzawacki/v2.7.x-release
feat: Implement automatic closed captions using an open transcription server
2023-06-22 05:25:14 -04:00
Ramón Souza
56d1fe46fb fix audio button position when modal is open 2023-06-15 09:49:05 -03:00
Paulo Lanzarin
171c7a6587
Merge branch 'v2.7.x-release' into v2.7.x-release 2023-05-26 09:27:14 -03:00
KDSBrowne
1b51377147 fix getContentAnchorEl console error 2023-05-10 01:31:48 +00:00
Arthurk12
3b871e5ca2 fix(captions): "not supported" in chrome
Fixes a case where the locale selector don't show up in Chrome when using
'webspeech' provider.
And adds missing fields to the webspeech transcription messages, after the
addition of some new parameters to those messages with the open
transcription server.
2023-04-25 10:25:20 -03:00
Arthurk12
eafa0f200e feat(captions): no longer writes in the pad
This feature was too coupled to the old closed captions' pads.
(e.g. the old closed captions feature should be enabled for this
 to work properly)
Some things were hardcoded and others didn't make sense from the
user experience perspective.
Reverts #876d8aa.
Partially reverts #802964f, removes changes to make closed captions'
pads compatible with live-transcription but keeps provider settings.
2023-04-25 10:24:48 -03:00
prlanzarin
54b6578b03 fix(audio): forcefully disable stereo when using Vosk transcription
The current Vosk CC provider does not support stereo mic streams
(pending investigation as to why).

This commits makes sure stereo is forcefully disabled via SDP munging
only when transcription is active and using Vosk. Having it disabled
in the server side (FreeSWITCH) is not enough because the stereo parameter
is client mandated and replicated by FS on its answer. So we need to
make sure it's always disabled for the time being.
SFU audio does munging server side (and stereo is always off), so no changes
needed there.

The rest of the providers (except WebSpeech) need to be validated against
stereo audio as well.
This is also intended to be temporary - ideally this needs to be fixed in
mod_audio_fork/Vosk/wherever this is breaking.
2023-04-25 10:10:39 -03:00
Lucas Fialho Zawacki
fee6ff026a feat(captions): Use setUserSpeechLocale as an akka event and catch it in the transcription manager 2023-04-25 09:54:34 -03:00
Lucas Fialho Zawacki
6979432c36 feat(transcription): Server side open source transcriptions 2023-04-24 18:23:34 -03:00
Ramón Souza
af8556e026 Merge remote-tracking branch 'upstream/v2.6.x-release' into 26-27-apr24 2023-04-24 17:15:47 -03:00
GuiLeme
d1025fcbe5 [issue-16954] - Changes in review and fix of minor bugs 2023-04-12 12:51:23 -03:00
prlanzarin
a47ef9c244 fix(audio): add default device placeholder in input-stream-live-selector
Handles scenarios where setSinkId is not supported and use a placeholder Default device label
2023-04-11 15:48:02 -03:00
GuiLeme
5eb29e0ab5 [issue-16954] - merge upstream/v2.7.x-release 2023-04-11 11:02:00 -03:00
Paulo Lanzarin
67e4a9ebf3
Merge pull request #17394 from schrd/fix-issue-16057
Fix: Workaround firefox' missing audio output selection
2023-04-11 09:04:23 -03:00
Daniel Schreiber
68c583f53e Fix: Workaround firefox' missing audio output selection
Firefox does not support selecting an audio output device in its default
configuration. This works around this flaw by just displaying default
output instead of no device found.

Fixes #16057
2023-04-11 10:41:32 +02:00
Anton Georgiev
72c575b911 Merge branch 'v2.6.x-release' of github.com:bigbluebutton/bigbluebutton into merge-apr-6 2023-04-06 11:50:26 -04:00
Ramón Souza
bcd504b749 Merge remote-tracking branch 'upstream/v2.7.x-release' into lodash-radash 2023-04-05 09:42:05 -03:00
GuiLeme
81ae4e9ca6 [issue-16954] - Adjusting modal priorities 2023-03-29 11:08:56 -03:00
GuiLeme
5f3296fdb1 [issue-16954] - last migrations - VideoPreview and drag and drop of background 2023-03-27 12:36:25 -03:00
GuiLeme
c1676004d4 [issue-16954] - migration of audio modal 2023-03-24 12:29:09 -03:00
prlanzarin
1ada7dc57e fix(audio): output device changes not effective in local echo test
Output device changes aren't working in 2.6's echo test when artifical delay
is on due to the fact that the feedback audio is being played via the WebAudio
context rather the the HTMLMediaElement. Since output device change works
via HTMLMediaElement's setSinkId, it's basically a no-op.

This commit fixes the issue by piping the AudioContext destination
through the main audio element rather than using WebAudio directly for
playback. An additional stub media element (muted) is added to circumvent one
of Chrome's WebAudio issue.
The alternative would be to use AudioContext's setSinkId, but it isn't
supported by Firefox (setSinkId enabled) and Chrome < 110.

This should work with FF (setSinkId enabled) and a wide array of Chromium
versions.
2023-03-20 17:38:06 -03:00
GuiLeme
f943cbf732 [issue-16954] - renaming referencing of Modals 2023-03-20 10:08:35 -03:00
Ramón Souza
c3d89ee4fc
Merge pull request #17044 from antobinary/fix-undefined-user
fix: Fix undefined user in rare end-breakout scenario
2023-03-17 14:06:15 -03:00
Ramón Souza
8dbff37a43
Merge pull request #16868 from Arthurk12/bbb/2.6/15716
fix(breakout rooms): video and audio modal appearing for all mods when rejoining
2023-03-16 10:42:16 -03:00
Anton Georgiev
372e17ca08 fix: check if defined before checking .role 2023-03-14 16:39:06 -04:00
GuiLeme
4f3931c0ff [issue-16872] - Changes in review 2023-03-13 12:44:35 -03:00
GuiLeme
e68997e673 [issue-16872] - Changes in review 2023-03-13 12:27:11 -03:00
GuiLeme
f7649cdd19 [issue-16872] - Change session logic to event logic 2023-03-13 11:13:56 -03:00
GuiLeme
f711a4ca32 [issue-16872] - Fixed flashing of breakout modal invitation 2023-03-10 16:28:05 -03:00
Ramón Souza
d181eba1c2 replace lodash.throttle with native function 2023-03-02 10:25:08 -03:00
Ramón Souza
41c187d93e Merge remote-tracking branch 'upstream/v2.6.x-release' into lodash-radash 2023-03-01 15:19:12 -03:00
Arthurk12
774dc136eb fix(breakout rooms): video and audio modal appearing for all mods when rejoining
There was an observer being linked to all breakout rooms that the user has
access to. This logic works for attendees, but not for moderators.
Moderators have access to the list of all breakout rooms, so they were set
with an observer to breakout rooms that they didn't participate, which caused
the audio and video modals to appear everytime the breakout rooms were closed.
So, this commit:
- hangs an breakout rooms' observer only on those mods that have joined any
breakout room. This way, mods that didn't participate in any breakout
room won't be disturbed by the audio and video modal.
- adds an extra check to ensure that the observer will only be run in
non-breakout meetings.
2023-03-01 15:18:12 -03:00
Ramón Souza
0a622eff32 replace lodash throttle with standalone package 2023-03-01 15:13:29 -03:00
Ramón Souza
a60d817041 replace lodash debounce 2023-03-01 10:39:04 -03:00
Ramón Souza
4ed09c89cf replace lodash uniqueId 2023-02-23 11:23:51 -03:00
Ramón Souza
dd710aa96f replace lodash uniq and uniqBy 2023-02-23 10:44:29 -03:00
Ramón Souza
5c5433296b replace lodash range, partition and upperFirst 2023-02-22 13:52:18 -03:00
Gabriel Porfirio
907589cef1 disabled features test 2023-02-21 15:28:53 -03:00
Daniel Schreiber
cc21f1598b Copy in fixups from review
thanks @prlanzarin for reviewing:
https://github.com/bigbluebutton/bigbluebutton/pull/16107#pullrequestreview-1241137609
2023-01-23 20:31:53 +01:00
Daniel Schreiber
10c04f4843 audio: add delay for loopback test
If BBB 2.6 is used without headphones, the audio test works differently
than in 2.5. In 2.5 audio traffic is routed to freeswitch and then
returned to the browser. This adds usually some latency which makes it
easy to hear you audio quality. In 2.6 there is a local loopback. As
there is almost no latency, it is either difficult or even impossible to
check your own audio quality as echo cancellation of the browser will
filter out your own signal.

This patch adds a delay node to the audio loopback test, which makes is
easier to check your quality.
2023-01-23 19:54:44 +01:00
GuiLeme
d566d1fd1a [patch-issue-16375] - add semicolon 2023-01-17 15:27:04 -03:00
GuiLeme
065e7f17e7 [patch-issue-16375] - Patch for SonarCloud warning 2023-01-17 14:50:10 -03:00
GuiLeme
bdc5a71967 [issue-16375] - not showing anything when liveTranscription is disabled 2023-01-16 18:10:21 -03:00
GuiLeme
b212a17c55 [issue-16375] - Change message for live transcription not being activated 2023-01-12 15:33:56 -03:00
GuiLeme
f67f530b32 [disabled-transcription] - Renamed audioCaptions to liveTranscription (for disabledFeatures) 2023-01-09 10:47:22 -03:00
GuiLeme
b4afec689e [disabled-transcription] - Created new disabledFeature audioCaptions 2022-12-16 17:04:14 -03:00
Ramón Souza
55ae884f5f
Merge branch 'v2.6.x-release' into ask-before-leave 2022-12-06 09:04:28 -03:00
Ramón Souza
9b0cff367a fix conditional hooks - captions select 2022-11-22 09:20:14 -03:00
Ramón Souza
f2a6fc7694 fix conditional hooks - captions button 2022-11-22 09:16:26 -03:00
Joao Victor
777eebfc37 Centralize header styles in a new component 2022-11-10 15:09:21 -03:00
Ramón Souza
b66b52ad88
Merge pull request #15923 from owi92/unify-modals
Unify some dialog windows
2022-11-07 09:16:12 -03:00
Ramón Souza
60ab448cff
Merge pull request #15588 from Arthurk12/bbb/15447
feat(captions): change transcription language on the fly
2022-10-31 16:55:29 -03:00
Ole Wieners
c9a612ee8a Unify some dialog windows 2022-10-27 19:54:34 +02:00
Ramón Souza
60efe4794a
Merge pull request #15790 from JoVictorNunes/issue-15760
fix: mute external video when in echo test
2022-10-26 13:32:18 -03:00
Ramón Souza
43cf7cfc69 adjust audio/video dropdown position 2022-10-24 14:44:33 -03:00
Lucas Fialho Zawacki
a2bc96fe35 Ask for confirmation before closing meeting window 2022-10-13 16:41:43 -03:00
Joao Victor
caa8667526 fix: mute external video when in echo test 2022-10-06 11:45:52 -03:00
KDSBrowne
9c6a6298e2 update menu ids to be unique 2022-10-05 21:54:59 +00:00
prlanzarin
b3eebbb926 fix(audio): retry gUM without pre-set deviceIds on OverconstrainedError(s)
There are some situations where previously set deviceIds (
local/session storage) may become stale. This causes an unexpected
behavior where audio is temporarily borked until the user clears their
local storage.
This issue has been seen more recently on Safari endpoints when switching
back-and-forth breakout rooms in environments running under iframes.
Also seen randomly on endpoints with virtual input devices.

This centralizes audio gUM calling into a single method that retries the
gUM procedure without pre-set deviceIds only if the initial call fails
due with an OverconstrainedError - hopefully circumventing the issue.
2022-09-15 19:25:30 +00:00
Arthurk12
0ede0fa0e9 feat(captions): change transcription language on the fly
Adds a chevron button that allows enabling/disabling and changing the
language of the automatic transcription.
2022-08-24 15:40:03 +00:00
prlanzarin
ec1879f96b fix(audio): add inputDeviceId enforcement for post-join/gUM
Extract the deviceId again from the stream to guarantee consistency
between stream DID vs chosen DID. That's necessary in scenarios where,
eg, there's no default/pre-set deviceId ('') and the browser's
default device has been altered by the user (browser default != system's
default).
2022-08-24 14:39:09 +00:00
prlanzarin
89e814d570 fix(audio): centralize device change code, add rollbacks, surface errors
There's no rollback procedure in case a device switch fails right now,
nor does the code entrypoints that call the switching procedures wait
for resolution or failure before marking the new device as chosen. That
may cause inconsistent states in a couple of ways:
  - No rollback: switch fails, audio is still on but no actual
    microphone input is being transmitted
  - Not waiting for resolutions: inconsistent chosen devices on failures
Device switching errors are also not surfaced to the end user

This commit:
  - Adds device rollback and proper resolution/failure response
    awaits to try and make the state a bit more consistent.
  - Centralizes the input device switching code to be reused between
    different bridges
  - Centralizes device ID state management in audio-manager to try and
    mantain them a bit more consistent across the board
  - Surface device switching failures to the end user
  - Guarantee device IDs are set to the session storage on all
    appropriate scenarios
2022-08-24 13:28:27 +00:00
Ramón Souza
c48e942a62
Merge pull request #15488 from ramonlsouza/fix-dialin-button-styles
fix(styles): adjust dial-in button styles
2022-08-08 10:49:19 -03:00
Ramón Souza
eb19199235 adjust dial-in button styles 2022-08-04 14:17:45 -03:00
Ramón Souza
9e219d9cb3 adjust cc icon position 2022-08-02 17:33:53 -03:00
Anton Georgiev
ca0195585f
Merge pull request #15441 from antonbsa/audio-tests
test: Add new audio tests
2022-08-02 11:07:04 -04:00
prlanzarin
6c8b097eba fix: add option to disable transcription in mobile, extend support check
Mobile endpoints are flaky with the WebSpeechAPI:
  - iOS versions that support it are borking our outbound audio when it's
    enabled
  - Android speech recognition has flaky locale detection and speech
    transcription
Additionally: the support check is not checking the WebSpeechAPI
availability properly, so older devices (eg iOS 12) are flagged as
supported even though they aren't.

This commit adds a configuration flag (public.audioCaptions.mobile) to
control transcription availability on mobile. False by default.
Also extends the setSpeechVoices support check and
hasSpeechRecognitionSupport method to prevent false positives.
2022-07-20 17:20:54 +00:00
Arthurk12
e93b9739de style(captions): adds border to toggle button 2022-07-20 17:20:53 +00:00
Arthurk12
c96b53093c feat(captions): adds locale settings
Adds two new flags to the settings file which change the way the locale
flag is used:

- forceLocale: (true/false) => If true, enforces the transcription
  language to be the locale content field and jumps the language
selector
  in audio modal.
- defaultSelectLocale: (true/false) => If true, the default selected
  value in the dropdown language selector in audio modal will be defined
  by the locale content field.

In any case, if the locale flag holds an invalid value, it defaults to
disabled.
2022-07-20 17:20:53 +00:00
Arthurk12
da9adca229 fix(captions): talking indicator icon
Prevents the speech recognition from being initialized when the closed
captions feature is disabled.
2022-07-20 17:20:52 +00:00