Speech Wiki

Last modified by Thomas Mortagne on 2026/02/26 15:34

cogAdds voice commands to XWiki
TypeXAR
Category
Developed by

Ludovic Dubost

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Success

Installable with the Extension Manager

Description

This extension uses the Web Speech API to enhance XWiki with some voice commands. This demo requires a browsers with the Speech API Support. Currently only Google Chrome version 25 and more have support for the speech API.

The current commands are:

  • "reset" resets the current recognition
  • "home" leading to the home page
  • "index" leading to the index
  • "preferences" leading to the preferences screen
  • "users" leading to the user directory screen
  • "back" goes back to the previous screen
  • "abort" stops voice recognition (for the current page)
  • "search" followed by a search string followed by "go" leading to the search screen

And for editing mode

  • "edit" leading to the edit screen of the current page
  • "dictate .... finish" adding text at the current position of your wysiwyg editor
  • "quick" save and continue
  • "save" save and view
  • "cancel" cancels the editing
Warning

This demo only works with Google Chrome 25+. Also you need to authorize access to voice recognition. If your wiki is installed on http (and not https) you will need to give the authorization for every web page

authorize.png

When the authorization has been given you will see the following message at the bottom of the page:

started.png

You can then start saying commands. For instance if you say "home" you will be redirected to the home page of the wiki:

home.png

Whenever you talk to your wiki you will see the text show up at the bottom of the page as you speak:

text.png

But the most interesting part is editing using voice. Start by saying "edit" and you will get to edit mode. Then say "dictate" and start talking

edit1.png

Say "finish" and the content will be inserted

edit2.png

Finally say "save" to see your content save in your wiki page

edit3.png

You can use "reset" at any time to restart recognition. You will need to reauthorize recognition unless you are using HTTPS.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v0.2

Version 0.2 of speech API support. Now editing is possible using only voice.

v0.1

Version 0.1 of speech API support. Only simple commands are available.

Get Connected