Speak to Lichess Chrome Extension

Speak to Lichess chrome extension

Speak to Lichess for Chrome Download

Speak to Lichess chrome extension is Use voice control to play Lichess games!.

use voice control to play Lichess games!.
# Speak to Lichess 2.1

Speak to Lichess is an open source chrome extension that allows you to dictate moves on Lichess.org. It uses the web speech api to interpret voice data and the lichess board api to read the board state and submit moves.

full voice control- where your spoken moves are automatically played without further keyboard or mouse input- is available in Rapid, Classical, and correspondence time formats. Blitz or faster time formats require some keyboard input and must be in san format (https://www.chessprogramming.org/Algebraic_Chess_Notation).

supports standard games; alternative modes (such as crazyhouse, 'from position', etc.) should support uci format moves, but are likely to incorrectly process san format moves (when submitting with the API).

Check out the 'Using this Extension' section to learn how to effectively dictate moves.

**The extension requires english piece names to properly recognize san format moves. However, you can use the word correction feature to add piece names in other languages. For example, a Spanish-speaking player could tell the extension that any time it hears 'torre' to instead interpret it as 'rook'. better foreign language support could come in the future if there's enough interest.**

This extension is great for slower time formats and not-so-great for faster formats. It can be a great tool for blindfolded chess. lichess provides move playback (in most browsers) so that you can hear each move played: enter a game and click on your name in the top right -> sound -> Speech.

Add from the chrome web store here: https://chrome.google.com/webstore/detail/speak-to-lichess/ldiiocggpmgljihlkgpngjlhnggpapig

If you like the extension, give it a nice review!

### ---Learn more about the APIs used---

The Web Speech API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API

The Lichess Board API: https://lichess.org/blog/XlRW5REAAB8AUJJ-/welcome-lichess-boards

### ---Support Lichess.org---

https://lichess.org/help/contribute

### ---Source/Demos/Resources---

Github: https://github.com/ChrisAntley1/Speak-to-Lichess

2.1 board state tracking demo: https://www.youtube.com/watch?v=V3aak7WYozs

2.0 demo showing most features (NOTE: information regarding san vs uci move submission out of date as of 2.1): https://www.youtube.com/watch?v=FB0uJwfo87k

Commands, SAN and uci examples, and well-recognized words: https://docs.google.com/spreadsheets/d/1g6cGDRYvjGPj2gqeEMUVYwbZG3xjz_SrX_2q9z0Tsxo/edit?usp=sharing

Speak to Lichess is open source. Feedback welcome here on Github or at [email protected]. If you'd like to contribute feel free to contact!

## Adding Your API Token

You will need to create a lichess api token for hands-free voice control (https://lichess.org/account/oauth/token). The options page will have a link directly to the lichess token creation page with the correct parameters already set. Do NOT add any additional permissions when creating your token, and do NOT share your token with others. Simply press the blue 'submit' button and copy the generated token. Return to the options page and paste in your token; press 'enter' or the 'submit' button. The red icon will turn green if a valid token is provided, and you should see your username displayed.

IMPORTANT: The 'delete stored token' button will remove your token from this extension. HOWEVER, the token is still valid for your Lichess account. Make sure to delete it from Lichess as well, especially if you believe it has been compromised: https://lichess.org/account/oauth/token

**--WARNING: Do not add additional permissions to your token! Token is stored in plain text!--**

Read more about the Lichess Board API here: https://lichess.org/blog/XlRW5REAAB8AUJJ-/welcome-lichess-boards

## Using this Extension

Start by playing a rapid, classical, or correspondence game against the computer to get a feel for speech recognition and properly dictating moves. Be sure to read the 'successful dictation' section below.

The 'ctrl' key is used for either 'toggle' or 'push-to-talk' recording. You should see the message to the right of the board change to 'listening...'. Clearly state your move. When you are finished speaking, the extension will attempt to create a valid chess move. You should see a 'success' or 'failure' message below the board. You can also view the console (f12) for more info.

Correctly interprets 'capture', 'take', 'short', 'long', 'castle', 'promote', and 'equals' into proper chess notation. Note that supplemental words such as 'capture' and 'promote' are not necessary.

**The word 'to' will always be interpreted as '2'; for example, 'knight to delta four' will ALWAYS be interpreted as 'N2d4'.**

## Successful Dictation

**To specify a column, you will have much more success saying a word that begins with that letter than the actual letter, such as 'delta' for the d column. The speech processing service has a very difficult time discerning individual letters.**

Examples:

'knight charlie 3' -> Nc3

'Delta four' -> d4

'queen edge 7' -> Qe7

'fetch eight queen' -> f8=Q

**You CAN attempt to use the letters themselves, but in my experience it's not worth the headache.**

## Word Correction

You may come across a word that is frequently mistaken for another word by the recognition service. For example, 'rook' is almost always interpreted as 'Brooke'. The extension tracks a word-correction list to help provide a more consistent experience. ('Brooke' is already corrected by default.)

Pin the extension to your Chrome toolbar, and click the icon to open the popup menu. Here you can specify which word is a mistake ('Brooke') and which word or phrase should be heard instead ('rook'). In the options page, you may view your corrected-words list, search for words being replaced/ being substituted in, and delete word entries.

Users that wish to use a language other than English should be able to replace english piece names with the names in their preferred language using word-correction. For example, a Spanish-speaking player could tell the extension that any time it hears 'torre', to instead interpret it as 'rook'.

NOTE: You can use any word you want to identify a piece (e.g. 'noon' for knight, 'rail' for rook, etc.) with ONE exception: bishops. Any word that starts with 'b' other than 'bishop' will be interpreted as a pawn move; for example, 'bagel alpha four' will be interpreted as 'ba4' and is ALWAYS considered a pawn move- even if this is a legal move for your bishop. This arises because of the coordinate set and Bishop sharing the letter 'b' in notation.

You can get around this by replacing your preferred word with 'bishop' in word correction; to use 'bagel', for example, you would tell the extension to interpret 'bagel' as 'bishop'.

*The extension comes preloaded with some problematic words already replaced (including 'Brooke').

Why word correction is necessary: The web speech api currently uses the SpeechGrammar interface (https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar). This interface contains a set of words or patterns of words that the recognition service should look for specifically. If working as expected, this would allow us to set a list of well known words to represent columns and receive consistent recognition results. Unfortunately, the recognition service provided by Chrome/Google ignores this list. See the 'Handling errors and unrecognized speech' section of this page: https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API.

More command examples, and words that are generally interpreted consistently, can be found here: https://docs.google.com/spreadsheets/d/1g6cGDRYvjGPj2gqeEMUVYwbZG3xjz_SrX_2q9z0Tsxo/edit?usp=sharing

## Text input box submission

For Blitz or faster formats, or if you cannot/prefer not to use an API token, you can use the lichess text input box to submit moves. This requires that you press 'enter' to submit moves, and that your moves be in SAN format.

1. On Lichess, enable text input by going to https://lichess.org/account/preferences/game-behavior and enabling 'input moves with the keyboard'

2. Make sure the extension is listening for your input using the 'ctrl' key. You should see the message to the right of the board change to 'Listening...'.

3. Dictate your move in SAN format. When you are finished, you should see the message near the input box display your move. Press enter to submit the displayed move to the input box, or dictate another move if the displayed move is incorrect.

## additional commands:

Other commands are support by this extension including:

resign

offer draw

take back

accept

decline

abort

rematch

flip board

analyze game

new game

rage quit

## Install Guide:

--Add to chrome here from the webstore is definitely the easiest

--From Github:

1. Download the latest release zip file from GitHub (usually somewhere on the right of the page), or clone the repository.

2. Unzip the package; take note of where the resulting folder is located.

3. Go to chrome://extensions

4. Toggle on developer mode in the top right, then click 'load unpacked' on the top left; select the 'Speech-to-Text-Lichess' folder that you extracted in step 2.

5. Done! You should see Speak to Lichess on your extension page. Make sure it is enabled. You will still need to add an API token in the options page.

6. At the top right of chrome, click the puzzle piece icon, and pin Speak to Lichess. This will let you use the pop up menu to specify words that the speech recognition software is mishearing and manage your list of replaced words.

## Notes:

The Web Speech API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API

The Lichess Board API: https://lichess.org/blog/XlRW5REAAB8AUJJ-/welcome-lichess-boards, https://lichess.org/api#tag/Board

Speak to Lichess is open source. Feedback welcome here on Github, or sent to [email protected]. If you would like to contribute feel free to reach out!

If you like the app, give it a nice review!

### known issues/Other:

Some users have reported very poor recognition results. This all depends on how well the speech recognition service interprets your voice. To get the best results, make sure to articulate each component of your move clearly and distinctly. keep trying different words until you find a set that the software recognizes consistently. And make use of the word correction feature.

The speech recognition service does offer alternative results, which will hopefully be used in the future to help more accurately interpret moves.

I had plans to port this extension to Firefox, where I somehow got the impression that the speechgrammar interface would be correctly referenced as a vocabulary list. It turns out that Firefox does not support the Web Speech API's speech recognition service at the moment.

How to install Speak to Lichess chrome extension in chrome Browser

You can Follow the below Step By Step procedure to install the Speak to Lichess Chrome Extension to your Chrome Web browser.

  • Step 1: Go to the Chrome webstore https://chrome.google.com/webstore or download the extension Speak to Lichess Chrome Extension Download from https://pluginsaddonsextensions.com
  • Step 2: Now search for the Speak to Lichess in Chrome Webstore Search and click on the search button.
  • Step 3: click on the Speak to Lichess Chrome Extension Link
  • Step 4: in the next page click on the Add to Chrome button to Download and Install the Speak to Lichess extension for your Chrome Web browser .

Speak to Lichess Chrome extension Download

Looking for a method to Speak to Lichess Download for Chrome then this download link is for you.

It is the Speak to Lichess Chrome extension download link you can download and install Chrome Browser.

Download Speak to Lichess chrome extension (CRX)

Tags: Speech Api Speech Recognition Service , Speech Recognition Service Interprets , Lichess Text Input Box , Lichess Api Token , Speech Api , Recognition Service , Input Box Display , Speech Recognition Service , Words List , Enable Text Input , Api Token , Lichess Board Api , Lichess Token , Receive Consistent Recognition Results , Speech Recognition , Release Zip File , Text Input Box Submission , Input Moves , Extension Page , Process San Format Moves , Set List ,

Speak to Lichess Related Chrome Extensions