Skip to content
elevatedevco

Natural Language Processing

Speech recognition and voice

Learn Speech recognition and voice: 34 practice questions and answers with an interactive quiz — from the offline AI Learning app.

Intermediate34 questions34 quiz questions

Questions & Answers

Tap a question to reveal its answer. Written for self-study and interview preparation.

What is speech recognition?

Speech recognition is the technology that lets a computer turn spoken words into text it can understand and act on. It listens to sound from a microphone, analyzes the patterns, and predicts which words were said. It powers tools like voice typing and smart assistants.

What does the abbreviation ASR stand for?

ASR stands for Automatic Speech Recognition. It is the field and the systems that automatically convert human speech into written text. The word automatic means a machine does it without a human typing.

What is the difference between speech recognition and text-to-speech?

Speech recognition (speech-to-text) listens to a person and writes down the words. Text-to-speech (TTS) does the opposite: it takes written text and produces a spoken voice. One turns voice into text, and the other turns text into voice.

Why does a speech recognition system need lots of example recordings to learn?

Machine learning systems learn patterns from data, so they need many recordings of people speaking to figure out how words sound. The more varied examples they hear, the better they handle different voices, accents, and speeds. With too few examples, the system makes more mistakes.

What is a microphone's job in a voice system?

A microphone converts the sound waves of your voice into an electrical signal the computer can record. That signal is then turned into digital numbers the software can analyze. Without a microphone, the computer would have no way to hear you.

What does it mean to 'sample' an audio signal when a computer records sound?

Sampling means measuring the sound wave's value many thousands of times per second and storing each measurement as a number. These numbers together form a digital version of the sound. A common sampling rate for speech is 16,000 samples per second.

Why do background noises like traffic or music make speech recognition harder?

Background noise mixes with your voice in the recording, so the computer has trouble separating the words from the extra sounds. This can cause it to mishear or miss words. That is why systems often work best in a quiet room or use noise-reduction techniques.

What is a 'wake word' in a voice assistant?

A wake word is a special phrase, like 'Hey Siri' or 'OK Google', that tells the assistant to start listening for a command. Until it hears the wake word, the device only checks for that phrase and ignores the rest. This helps save power and protect privacy.

What is an accent, and why can it affect speech recognition accuracy?

An accent is the particular way people from a region or background pronounce words. If a system was mostly trained on one accent, it may struggle to understand others. Training on diverse voices helps the system recognize many accents fairly.

What is a transcript in the context of speech recognition?

A transcript is the written text version of what was spoken in an audio recording. Speech recognition systems produce transcripts automatically. People use them for captions, notes, and searching through recordings.

How do live captions on videos use speech recognition?

Live captions use speech recognition to listen to the audio and instantly turn the spoken words into text shown on screen. This helps people who are deaf or hard of hearing, and anyone watching without sound. The system must work fast to keep up with the speaker.

What is a 'language model' in a speech recognition system?

A language model is the part that knows which word sequences are likely in a language, helping the system pick sensible words. For example, it knows 'ice cream' is more likely than 'I scream' in many sentences. It works together with the sound analysis to improve accuracy.

Why might a speech system confuse the words 'two', 'to', and 'too'?

These words are homophones, meaning they sound exactly the same but are spelled differently and have different meanings. The sound alone cannot tell them apart. The system uses the surrounding sentence and a language model to guess the correct one.

What is voice recognition (speaker identification), and how is it different from speech recognition?

Voice recognition, or speaker identification, figures out WHO is speaking by recognizing the unique qualities of their voice. Speech recognition figures out WHAT words were said. One identifies the person; the other identifies the words.

Give one helpful use of speech recognition for people with disabilities.

People who cannot use their hands easily can control a computer or write documents using only their voice. Live captions also help people who are deaf or hard of hearing follow conversations and videos. These tools make technology more accessible to everyone.

What is a 'word error rate' (WER) used to measure?

Word error rate measures how many mistakes a speech recognition system makes by comparing its transcript to the correct words. It counts words that are wrong, missing, or added extra. A lower WER means a more accurate system.

Why should voice assistants ask permission before recording your voice?

Your voice is personal data, and recording it without permission can invade your privacy. Asking for consent lets you decide what is collected and how it is used. Respecting privacy is an important part of building ethical technology.

What does 'real-time' mean for a speech recognition system?

Real-time means the system converts speech to text almost instantly, keeping up as the person speaks. This is needed for live captions and voice assistants. Systems that are not real-time process a recording after it is finished.

What is a phoneme?

A phoneme is one of the small basic sound units that make up spoken words, like the 'k' sound in 'cat'. Speech recognition systems often break words into phonemes to understand them. Combining phonemes in different orders makes different words.

How can a neural network help with speech recognition?

A neural network is a machine learning model that learns patterns from many examples, including the patterns of sounds in speech. By training on thousands of recordings and their transcripts, it learns to predict words from audio. Modern speech systems rely heavily on neural networks for high accuracy.

Why do speech systems sometimes struggle with children's voices?

Children's voices are higher-pitched and they pronounce words differently from adults, so a system trained mostly on adult voices may make more errors. Including children's recordings in training data helps fix this. This shows why diverse data matters for fairness.

What is a spectrogram and why is it useful for speech recognition?

A spectrogram is a picture that shows how the different frequencies (pitches) in a sound change over time. It turns audio into a visual pattern that machine learning models can analyze like an image. This helps the system spot the patterns that make up different sounds.

What is the risk of a 'deepfake voice'?

A deepfake voice uses AI to imitate a real person's voice so it can say things they never actually said. This can be used to trick people, spread lies, or commit fraud. It is important to be cautious and verify suspicious voice messages.

Why can speaking too fast or mumbling reduce recognition accuracy?

When words are rushed or unclear, the sounds blur together and the system has fewer clear clues to work with. This makes it harder to tell where one word ends and another begins. Speaking clearly at a normal pace usually gives better results.

What does it mean for a speech model to work 'offline' versus 'online'?

An offline model runs entirely on your own device without needing the internet, which can be more private and works anywhere. An online model sends your audio to a powerful server to process it, which may be more accurate but needs a connection. Each approach has trade-offs in speed, privacy, and accuracy.

How do voice assistants understand a command like 'set a timer for 5 minutes'?

First, speech recognition turns your spoken words into text. Then a part called natural language understanding figures out the intent (set a timer) and the details (5 minutes). Finally the assistant carries out the action. Several AI steps work together.

Why is having diverse training data important for fair speech recognition?

If training data only includes certain accents, languages, or genders, the system works poorly for everyone else. Including a wide variety of voices helps the system treat all users fairly. This reduces bias and makes the technology useful to more people.

In simple terms, what are 'features' that a speech model uses from audio?

Features are useful measurements pulled from the raw sound, such as which frequencies are strong at each moment. Instead of using every raw number, the model uses these summarized clues to recognize words. Good features make learning easier and more accurate.

What is one limitation of speech recognition you should keep in mind?

Speech recognition is not perfect; it can mishear words, especially with noise, accents, or unusual names. So important results should be checked by a person, like proofreading a voice-typed message. Knowing its limits helps you use it wisely.

How does speech recognition help when translating spoken languages?

In a speech-translation app, recognition first turns the spoken words into text in the original language. That text is then translated and can be spoken aloud using text-to-speech. Speech recognition is the important first step that captures what was said.

Why is it useful to have a confidence score with a recognized word?

A confidence score tells how sure the system is that it got a word right. Low confidence can warn the app or user to double-check or ask the person to repeat. This helps catch mistakes before they cause problems.

Look at this tiny Python idea. What does the variable 'transcript' likely hold after speech recognition?

After the recognizer processes the audio, 'transcript' holds the text string of the spoken words, such as 'turn on the lights'. The program can then read, display, or act on that text. The audio has been converted into words a program can use.

audio = record_from_microphone()
transcript = recognizer.recognize(audio)
print(transcript)  # e.g. 'turn on the lights'
What is 'voice biometrics' and one safety concern with it?

Voice biometrics uses the unique features of a person's voice to verify their identity, like a voice password. A concern is that recordings or deepfake voices might be used to fool the system. So it is often combined with other security checks.

Why do many voice assistants only send audio to the cloud after the wake word?

Constantly streaming everything you say would waste data and seriously harm privacy. By only sending audio after the wake word, the device records far less and keeps most sound private. This is both a power-saving and a privacy-protecting design choice.

Put it into practice with AI Learning

This topic — and hundreds more — comes from our free, offline AI Learning app. Practice Q&A, quizzes and cheat sheets anywhere, no account needed.

  • Free
  • No account
  • Works offline
Coming soon toGoogle Play