Braille LabEXPLORE · LISTEN · LEARN

Braille sound lab help

To understand the concept: braille, color and sound (in French)

All the pages are in English, except the concept page. In English, the Sound lab, the Player and the Explorer use English braille (UEB).

The Sound lab, the Player, the Explorer and the exercises all use the same sound engine. The Lab settings are reused automatically in this browser: variant, instrument, notes, tempo, volumes and spatialisation. The listening test can still compare another variant explicitly. The spoken instructions stay independent.

The lab is used to compare and tune ways of making a braille cell audible, so that one day braille can be learned by ear (and by color for the sighted people who help), and to create games accessible to blind people.

Getting started

  1. In the Sound lab, type a few letters and start playback.
  2. Choose a variant and an instrument, then adjust the sound in the Settings tab.
  3. Find this sound again in the Player, the Explorer and the exercises. Use Learn to practice, or the Listening test to compare sounds.

1. Starting the lab

You can use the online version directly, or run it on your computer. Locally, the pages read JSON files, so they must be opened through a small local server (double-clicking the file, as file://, is blocked by the browser).

Example on Windows, with Python installed (adapt the path if the folder has moved):

cd "path\to\brailleLab"
py -m http.server 8000 --bind 127.0.0.1

Then open http://127.0.0.1:8000/apprendre.html?lang=en. Ctrl+C in the terminal stops the server. After changing the files, reload with Ctrl+Shift+R (no need to restart the server).

Headphones are recommended to compare the stereo and 3D effects: left, right and position in space can only be heard properly with headphones.

2. The braille cell as sound

A braille cell has 6 dots, in two columns of three:

1 4 2 5 3 6

The notes of the main variant are taken from the pentatonic scale of C (C, D, E, G, A): these notes are chosen to sound good together. You can change them in Settings.

LeftRight
Topdot 1 = Edot 4 = high A
Middledot 2 = Cdot 5 = G
Bottomdot 3 = Adot 6 = D

3. The variants

Variant menu of the Listen tab. Each variant is a set of settings, defined in braille_lab_config.json.

VariantPrinciple
* lignes-spatial-musicalThe chosen variant: 3 steps, each dot at its own place in space (left/right and top/bottom), pentatonic notes, resonance and reverb. Works with the recorded instruments.
lignes-stereo3 steps, simple left/right separation, synthesised sound.
spatial-3dFirst 3D audio attempt, synthesised sound.
lignes-stereo-timbresLike lignes-stereo, with a different sound per column.
accord-ancienThe old system (all dots together, no stereo), for comparison.

4. The instruments

Instrument menu (active for variants that name their notes): Synth, Piano, Marimba, Vibraphone, Harp, Music box, Kalimba, Nylon guitar, Celesta.

Sample source: FluidR3_GM sound bank (Frank Wen), via midi-js-soundfonts, under the Creative Commons Attribution 3.0 licence.

5. The Settings tab

All the parameters of the chosen variant, applied at the next playback (the text, the Play button and the cells stay visible so you can listen while adjusting). Here is what each one does.

SettingEffect
Cell layout3 steps (rows 1|4, 2|5, 3|6) or Chord (the dots played together).
Step durationThe overall speed (like the Tempo slider of the Listen tab).
Note spacingBrings the 3 notes of a letter closer without changing the speed: the time saved goes into the silence before the next letter. At 0%, the three rows sound together (chord).
Silence between lettersIn steps.
Silence for a spaceIn steps.
ResonanceExtends the resonance of the note without changing the tempo.
Note lengthPart of a step that sets the basic duration of the note.
StrumSmall offset between notes played at the same time, to tell them apart better.
VolumeOverall volume of the variant.
Attack (synth)How fast the synthesised note starts.
ReverbFrom 0 (dry) to 100% (very reverberant).
Synth timbreSoft, Bell, Kalimba or a simple waveform; used when the instrument is “Synth”.
Instrument volumeCorrection for the chosen instrument, valid for all variants.
3D spatial audioTurns the place of each dot in space on or off.
Dot tableThe note of each dot (C4 to C6) and its position: left ↔ right and bottom ↕ top, in degrees. Changing a value plays the dot.

6. Six-key input

Like on a braille typewriter (Perkins): you press the keys of the cell's dots together, and the cell is entered when all the keys are released. You hear it straight away. The keys are recognized by their position, so this works with any keyboard layout (QWERTY, AZERTY…).

KeysEffect
F D SDots 1, 2, 3 (left hand)
J K LDots 4, 5, 6 (right hand)
SpaceSpace between two words
⌫ (backspace)Deletes the last cell
EnterPlays the whole input again

Examples: F = a · F+D = b · F+J = c · F+K = e. In the lab, Copy to the text sends the input to the text field at the top. Each letter typed is announced to screen readers.

7. Sound lab shortcuts

These shortcuts are for the Sound lab page; the exercises have their own keys, described below. They work when you are not typing in a field (text, slider, menu, input area). Esc leaves a field and gives control back to the shortcuts. Each change is announced to screen readers.

KeyEffect
PPlay / stop
← →Slower / faster tempo
↓ ↑Tighter / wider note spacing
V (Shift+V)Next (previous) variant
I (Shift+I)Next (previous) instrument
TGo to the text field
SGo to the six-key input
E / RListen / Settings tab
H or ?Open the help
EscStop playback, leave a field

With Tab, you can also move to each cell: Enter or Space plays it alone. On the tabs, ← → moves from one to the other.

8. Saving and exporting

9. The colors

The colors are for the sighted people who help: each family of signs has its own hue (letters around the color wheel, accented letters as variants of their letter, punctuation in gray, delimiters in blue, modifiers in purple). During playback, the dot that sounds grows on the screen.

These colors are the same on every page (file braille_couleurs.js), exercises included: the right answer, the revealed sequence and what you type, as soon as you press the keys appear on the color of their sign, so that a color always goes with a sound. Right or wrong is shown by the outline (green ✓ or red ✗), without changing the color. In Ear only mode, and in the memory exercise before the answer, the cell to find stays neutral.

10. The other pages and files

FileRole
braille_lab.htmlThe sound lab.
braille_player.htmlThe player: a text played in colors and sound.
braille_visual_renderer.htmlThe explorer: click the dots to build a cell.
braille_lab_config.jsonThe variants and the instrument volumes.
braille_visual_metadata.jsonThe 63 French braille signs (dots, family, color); the English signs are in langues/en/signes.json.
langues/en/The English version of the exercises: texts, English braille signs (UEB), series, recorded voice.
apprendre.htmlBraille recognition and typing exercises.
ecoute.htmlComparing two sounds: same or different.
memoire.htmlSound memory: remember and retype sequences of 1 to 5 letters.
couleurs.htmlColors and sounds: recognize letters by their color, with their sound.
statistiques.htmlResults of the exercises and tests.
braille_son.jsSound engine shared by the pages.
samples/The recorded notes of the instruments.

11. Learn braille by ear

The apprendre.html page is an exercise: you hear a letter and type it with the 6 keys. It uses the sound tuned in the lab (variant, instrument, volumes saved in this browser), including the chosen layout: 3 steps or chord.

The English version teaches Unified English Braille (UEB), grade 1: the letters a to z are the same as in French braille, and so are most punctuation marks; the question mark is different (dots 2 3 6). In the Sound lab and the Player, a capital letter is preceded by the capital indicator: dot 6 in UEB (in French braille it is dots 4 6). Signs that take two cells in UEB (brackets, numbers) will come later.

In the menu

KeyEffect
1 to 6Series: a to j · k to t · u to z · all letters · punctuation · everything
MMode: Discovery (you hear the name of the letter and its sound, the letter and its dots are shown) or Ear only (you only hear the sound and must recognize the letter)
VVoice: natural (recorded Piper voice) or browser
↑ / ↓ (or + / −)Voice speed (60 to 140%), with a test sentence
EnterStart (10 letters per series)

During the exercise

KeyEffect
F D S / J K LType the letter (dots 1 2 3 / 4 5 6), keys together, then released
SpaceHear the letter again
EnterSkip (the answer is given)
EscBack to the menu
About the voices

Natural voice: pieces of sentences recorded with Piper in langues/en/voix/ (list in langues/en/voix/segments.json). Voice en_US-ljspeech-medium, trained on the LJ Speech Dataset (public domain). To change the voice or its slowness, run python outils/generer_voix.py --langue en --model voice.onnx --lenteur 1.15 (requires pip install piper-tts soundfile numpy). Browser voices depend on the browser and on the voices installed on your computer. With no voice at all, the sentences are shown and sent to the screen reader. Sound and voice only start after a first key press or click on the page.

12. Listening test and statistics

These pages help to evaluate how well the sounds are recognized, with no prior musical knowledge.

“Same or different?” listening test (ecoute.html)

Two letters are played one after the other; answer 1 (same) or 2 (different), Space to listen again. 20 trials, whose duration depends on the chosen tempo; no knowledge of braille is needed. Half of the pairs are the same; the different pairs are most often neighboring letters (only one dot apart), the easiest to confuse.

Before starting, choose the variant (V) and the instrument (I). The table compares the average success of each combination: a higher score means better recognition during these trials. Repeat the test and have several people take it for a better comparison. The results are grouped by variant name and instrument: if you change the notes or the tempo for a new comparison, save a variant under another name to keep the results apart.

Statistics (statistiques.html)

Everything is saved in the browser (on this computer only).

13. Sound memory

The memoire.html page trains your auditory memory: you hear a sequence of letters, then type it in the same order with the 6 keys. It uses the lab sound, like the other exercises.

KeyEffect
1 to 6 (menu)Series of letters used
F D S / J K LType a letter (dots 1 2 3 / 4 5 6), keys together, then released
SpaceListen to the sequence again (typing starts over)
⌫Erase the last letter typed
EnterSkip (counted as wrong, the answer is given)
EscBack to the menu

The voice and its speed are chosen in “Learn”; the memory exercise uses the same choice.

14. Colors and sounds

The couleurs.html page trains you to recognize letters by their color, together with their sound. It works like sound memory: 5 levels of 1 to 5 letters, 5 trials per level, same keys.

← Back to the lab

Free software under the GPL-3.0-or-later licence · source code on Codeberg · credits for the sounds and voices