Speech to Text
Speech-to-Text
A unified interface with a swappable Adapter: (1) the Web Speech API in the browser, if available, (2) a hosted inference endpoint configured by the administrators; both…
Automatic Speech Recognition
Converting the spoken audio signal into written text through feature extraction and acoustic and language modeling, or through end-to-end audio-to-text models.
Educational content in the form of a scientific draft that needs expert review before being adopted as an academic reference. No experimental result that was not actually run is shown here.
Understand the stages of a speech recognition system, the difference between traditional and end-to-end models, and measuring their quality with standard metrics, while recognizing the challenges of Arabic and its dialects.
Automatic speech recognition (ASR) is the task of converting an audio sequence into a sequence of words. The difficulty is that the signal varies with the speaker, noise, and speaking rate, and that the boundaries between words are unclear in the audio. The problem is formulated probabilistically: finding the most probable text given the input audio. The system's success is measured by comparing its output with a manually written reference text.
In the traditional system, audio passes through stages: signal capture, framing, feature extraction, the acoustic model, the pronunciation lexicon, the language model, and then decoding to obtain the text. In end-to-end models, several stages are merged into a single neural network, with the features remaining as input. Understanding each stage separately makes it easier to locate the source of an error when analyzing performance.
The waveform is converted into a smaller and clearer representation before modeling, such as a spectrogram on the Mel scale or MFCC coefficients. Framing with short overlapping frames and a window is applied, followed by the short-time Fourier transform (STFT). The choice of features affects robustness to noise and the size of the input.
The phoneme is the smallest sound unit that distinguishes meaning. Traditional models rely on phonemes and a pronunciation lexicon, whereas end-to-end models use tokens such as characters or subwords (Subword). The choice of unit balances vocabulary size, sequence length, and the model's ability to handle new words. Different vocabulary sizes are tried to select the most suitable for the domain data.
CTC solves the problem of not knowing the alignment between audio and text by adding a blank symbol (blank) and summing the probabilities of all valid alignments with dynamic programming. It produces an output for each frame, then repeats are merged and blanks are removed. It assumes conditional independence between outputs, so it benefits from an external language model.
RNN-T adds to the acoustic encoder network a prediction network that depends on previous tokens, and a joint function that produces a distribution over tokens including a blank symbol. It thereby removes the independence assumption of CTC, and suits streaming recognition (Streaming) because it processes audio incrementally without waiting for the end of the sentence.
Transformer and Conformer models replace recurrent layers with a self-attention mechanism that captures long-range dependencies and allows parallel training. The cost of attention grows with input length, so chunking or local attention is used for long audio and streaming recognition. The choice between performance and latency remains an engineering decision that depends on the application.
End-to-end models train a single network that maps audio directly to text, either in an encoder-decoder style with attention, or with a CTC or RNN-T function. They simplify the pipeline but need a lot of labeled data, and may be weak on rare words and unseen domains. It is therefore advisable to verify performance on speech from the application's own domain before adopting the model.
The language model estimates the probability of a word sequence and so favors plausible sentences when the audio is ambiguous. It is integrated during search (Beam Search) with an adjustable weight, or used to rescore hypotheses. A language model from a different domain may harm the results, and it must be tuned on texts from the application's domain. Its effect is measured by comparing WER with and without the language model on the same test set.
Arabic requires special handling: the absence of diacritics in ordinary writing, the richness of morphology that increases the number of word forms, and the multiplicity of dialects relative to Modern Standard Arabic. Practical decisions arise in unifying hamzas and alif maqsura and in handling diacritics when computing WER. Performance quality depends on the data available under an appropriate license.
Arabic dialects differ in phonetics, vocabulary, and grammar, and often have no unified writing system. Dialect identification is a classification of the speaker or the sentence, and is separate from speech transcription. Support for a dialect must not be claimed without a model, documented data covering it, and a suitable evaluation metric. It is recommended to disclose the dialects actually covered in any report.
Speech-to-Text
A unified interface with a swappable Adapter: (1) the Web Speech API in the browser, if available, (2) a hosted inference endpoint configured by the administrators; both…
WER / CER Calculator
Computes the word and character error rates between a reference text and the output text of any system using Levenshtein alignment, and shows substitutions, deletions, i…
MFCC Explorer
Visualizes all the MFCC extraction steps: frames, windowing, FFT, Mel filterbank, logarithm, DCT, and then the coefficients.
Spectrogram Explorer
Computes a real STFT with control over window size, hop length, and window type (Hann/Hamming), and shows the Spectrogram and Mel Spectrogram side by side.
Model Benchmark
A table in which you enter the results of your actual experiments (WER, CER, Accuracy, F1, Latency, model size, and memory) for different models and compare them. They a…
ASR Model Comparison
Run several models (such as Whisper and Wav2Vec 2.0) on the same sample, then compute the WER of each with the WER calculator.
Arabic vs English ASR
Compare WER/CER between Arabic and English on balanced samples; requires an ASR system that supports both languages and documented reference data.
Noise Effect on ASR
Add noise at different SNR levels (using the noise reduction experiment), then measure the change in an ASR system's WER. The noise part works locally, while recognition…
No matching results.
Connectionist Temporal Classification
A loss function and decoding method that trains a network to convert a long feature sequence into a shorter token sequence without prior alignment, using a special blank…
RNN Transducer
A sequence model that comprises an acoustic encoder, a text prediction network, and a joint network, so it learns the distribution over tokens plus the blank for each po…
Transformer
An architecture based on self-attention instead of recurrence, so it processes all positions of the sequence in parallel and links any two positions directly. It has bec…
Conformer
An encoder that combines self-attention to capture global context with depthwise convolution to capture local patterns within a single block, and it was designed primari…
Attention
A mechanism that computes, for each output, a weighted average of a set of values, where the weights are computed from the degree of match between a query and the keys.…
Hidden Markov Model
A probabilistic model for sequences generated from hidden states that transition according to a Markov chain, where each state emits observations with a probability dist…
Gaussian Mixture Model
A probabilistic model that represents the feature distribution as a weighted sum of several Gaussian distributions. It is estimated with the expectation-maximization (EM…
SpecAugment
A data augmentation technique applied directly to the spectrogram during training, by masking random frequency bands and time bands (and optionally time warping). It red…
Word / Character Error Rate
Two metrics of speech recognition quality that compute the edit distance (Levenshtein) between the reference text and the predicted text, divided by the reference length…
Mel-Frequency Cepstral Coefficients
Compact audio features extracted from the log energies of mel filters by applying the discrete cosine transform (DCT) and keeping the first few coefficients (often 13).
Mel Spectrogram
A spectrogram in which frequency bins are grouped by triangular filters spaced on the perceptual mel scale. It reduces dimensionality and emphasizes detail at low freque…
No matching results.
Automatic Speech Recognition (ASR)
Feature Extraction
Mel-Frequency Cepstral Coefficients (MFCC)
Connectionist Temporal Classification (CTC)
Transformers
Attention Mechanism
Hidden Markov Models (HMM)
No matching results.
LibriSpeech
An English read-speech corpus from public-domain audiobooks, used as a common ASR benchmark.
Mozilla Common Voice
A multilingual crowd-sourced speech corpus contributed by volunteers reading written sentences; distributed in numbered releases.
FLEURS
A parallel speech corpus in 102 languages built on FLoRes-101 for evaluating speech recognition and language identification.
AISHELL-1
A Chinese (Mandarin) read-speech corpus for training ASR.
No matching results.
Whisper
An encoder-decoder Transformer model trained with weak supervision on a large amount of multilingual audio.
Wav2Vec 2.0
Self-supervised learning: a CNN encoder then a Transformer with a contrastive objective over discrete units.
HuBERT
Self-supervised learning by predicting k-means cluster labels for masked segments.
WavLM
Self-supervised model for full speech tasks, trained with noise and overlapped speech.
XLS-R
wav2vec 2.0 model trained on multilingual data at several model sizes.
Conformer
Combines self-attention with convolution to capture global and local context in audio.
No matching results.
| WER | Word error rate: (substitutions + deletions + insertions) divided by the number of reference words, after text normalization. |
|---|---|
| CER | Character error rate: the same metric at the character level, useful for morphologically rich languages and for non-standardized texts. |
| Accuracy | The ratio of correct predictions to the total; in ASR it is usually used for classification tasks such as short voice commands and not for sentence transcription. |
| Real-Time Factor | Processing time divided by audio duration; a value below one means processing faster than real time on the measured hardware. |
| Latency | The delay between uttering speech and the appearance of the text, measured in seconds or milliseconds, and especially important for streaming recognition. |
Audio processing in the experiments takes place inside your browser. Audio, texts, and conversations are not saved on the server. Privacy Policy
Sections
No section has this name. Press “Search” to search all site content.
Favourites
My results & certificates
My academy progressMy quiz resultsKids’ progressAcademy certificatesQuiz certificatesStart any lesson or quiz and it will show up here so you can get back to it quickly.
Settings
I am the lab's Audio Assistant. Ask me about an algorithm, model, dataset, or experiment, and I will answer from the lab's content with links.
It answers from the lab's database only, without sending your question to any external party. Conversations and audio are not saved.
The assistant can make mistakes, so check the attached sources.
Welcome! I am Dr. Alaa Taima, and this is my smart assistant on “Deep Learning in Arabic”. Ask it about any term or topic in artificial intelligence, and it will answer from the site's content with links to the sources.
Enter to send · Shift + Enter for a new line · The assistant can make mistakes, so check the sources.