Skip to content

Add voice search button to searchbox#5258

Open
xmorave2 wants to merge 3 commits into
vufind-org:devfrom
xmorave2:speech
Open

Add voice search button to searchbox#5258
xmorave2 wants to merge 3 commits into
vufind-org:devfrom
xmorave2:speech

Conversation

@xmorave2
Copy link
Copy Markdown
Contributor

@xmorave2 xmorave2 commented May 5, 2026

This PR adds an voice search button to search form

Does work in Chrome

For Firefox, the use has to set media.webspeech.recognition.enable to true at about:config

This is proof of concept, we probably want it to make it optional for production

Comment thread themes/bootstrap5/theme.config.php Outdated
Comment on lines 273 to 275
'microphone' => 'FontAwesome:microphone',
'lightbox-close' => 'FontAwesome:times',
'link' => 'FontAwesome:link',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(preserve alphabetic sorting)

@stweil
Copy link
Copy Markdown
Contributor

stweil commented May 6, 2026

we probably want it to make it optional for production

Yes, I think an option which enables it would be desired (with default setting = disabled).

@xmorave2
Copy link
Copy Markdown
Contributor Author

xmorave2 commented May 6, 2026

I made it configurable with disabled by default.

@stweil
Copy link
Copy Markdown
Contributor

stweil commented May 6, 2026

@xmorave2, could you please rebase your commits and fix the merge conflicts?

@xmorave2
Copy link
Copy Markdown
Contributor Author

xmorave2 commented May 6, 2026

@stweil I have rebased it on current dev branch

@ThoWagen
Copy link
Copy Markdown
Contributor

ThoWagen commented May 6, 2026

This works pretty well!

I wonder if it would be a better user experience if the search directly triggers instead of users having to press the search button afterwards.

@stweil
Copy link
Copy Markdown
Contributor

stweil commented May 6, 2026

I wonder if it would be a better user experience if the search directly triggers instead of users having to press the search button afterwards.

Currently I have to press the microphone button, then speak, then press the search button. For a few short search terms the speech input does not help a lot. This would be different as soon as the search input can be a longer free text which is handled by an AI search.

@stweil
Copy link
Copy Markdown
Contributor

stweil commented May 6, 2026

I still struggle with the configuration. Setting enableVoiceSearch = true had no effect, so I had to manipulate searchbox.phtml to see the feature in Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants