Emerging UX: voice, gesture and conversational interfaces
Overview of voice, gesture and conversational interfaces: definitions, core components (ASR, NLU, DM, NLG, TTS), design principles (Gricean maxims, turn-taking, slot-filling, FSM dialogue models), metrics (WER, precision/recall), worked examples and exam preparation notes.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Two or three sentences: where an engineer uses this. Voice, gesture and conversational interfaces let people interact without keyboards or mice. Engineers build them for phones, cars, kiosks and IoT devices to improve accessibility, hands-free operation and natural interaction.
Key ideas
Explain concepts from first principles. Bold each term when defined.
- Interface: a boundary where two systems meet and exchange information. In UX this is the place between user and system.
- Voice interface (VUI): a user interface where spoken language is the primary input and/or output channel. Assumes users can speak clearly to the device and device has microphone and speaker.
- Gesture interface: an interface where physical movements (hand, head, face, body) are interpreted as commands. Assumes sensors (camera, IMU) capture motion with sufficient accuracy and environment lighting/privacy allow capture.
- Conversational interface: an interface that uses structured back-and-forth (turn-taking) between user and system, often using natural language. This includes voice and text chatbots.
Core technical pipeline (draw a horizontal block diagram left-to-right with arrows): label blocks as ASR, NLU, Dialogue/Domain Manager (DM), NLG, TTS. Above arrows show data types: audio -> text -> semantic representation -> response plan -> surface text -> audio. Optional front-end: Wake Word Detection (WWD) and Voice Activity Detection (VAD) gate ASR in always-listening systems.
- Automatic Speech Recognition (ASR): converts audio waveform to a best-guess transcript (sequence of words). Assumptions: reasonable signal-to-noise ratio, speaker language in acoustic model.
- Natural Language Understanding (NLU): maps text to machine-readable meaning (intent classification, entity/slot extraction). Formal outputs: intent label and slot-value pairs.
- Dialogue Manager (DM): decides next system action based on dialogue state, business rules and context. Common models: Finite State Machines (FSM), frame-based (slot filling), Partially Observable Markov Decision Processes (POMDP).
- Natural Language Generation (NLG): produces surface text from a planned action (templates or neural generation).
- Text-to-Speech (TTS): synthesizes audible speech from text.
Design principles and rules:
Grice's Maxims (exact statements used in conversational UX):
- Maxim of Quantity: be as informative as required, no more or less. (Assumption: interlocutors share goal to communicate efficiently.)
- Maxim of Quality: do not say what you believe false; support claims with evidence when needed.
- Maxim of Relation (Relevance): be relevant to the current topic.
- Maxim of Manner: be clear, brief and orderly; avoid ambiguity. Use: design system prompts and error messages that follow these maxims.
Turn-taking rules: A conversational system must manage who speaks when. Exact rule used in many systems: the system should avoid interrupting the user unless safety-critical, and should use brief silence detection (e.g., 600–1000 ms) to decide turn end (parameter varies). Assumption: average user pause lengths; show this as a tunable threshold. Also support barge-in: allow the user to interrupt TTS playback to speak; disable only for safety/critical confirmations. Endpointing typically uses Voice Activity Detection (VAD) before ASR.
Slot-filling model (exact definition): a dialogue model where the system maintains a frame of named slots (fields) required to complete a task. The DM asks for missing slots and confirms critical values. Assumes task can be expressed as a finite set of slots.
Finite-State Dialogue Model (FSM): define states S, start state s0, transitions triggered by user intents. Exact definition universities ask: an FSM is a tuple (S, Σ, δ, s0, F) where S is the set of states, Σ is the input alphabet (e.g., user intents), δ: S × Σ → S is the transition function (equivalently, T ⊆ S × Σ × S), s0 is the start state, and F is the set of final states. Draw: circles for states, arrows for transitions labelled by user intent; associate system actions with states or transition outputs.
Ambiguity and error handling:
- Confirmations: explicit confirm (user-repeat-confirm) vs implicit confirm (restating in reply). Trade-offs: explicit increases turns; implicit may fail if error is critical.
- Graceful degradation: design to fall back to constrained input (numeric menu) when ASR/NLU confidence low.
Evaluation metrics (concepts; exact formulas in Formulas section): Word Error Rate (WER) for ASR; Intent classification accuracy, Precision / Recall / F1 for NLU; Task Completion Rate and Mean Dialogue Turns for end-to-end UX.
Assumptions stated where needed: models assume stationary noise conditions, user language within training data, sensors with required precision. Refer to other topics for usability and testing methods (Usability testing and UX metrics; User research and personas).
Formulas
Each formula on its own line, then explain symbols, units and when it applies.
WER = (S + D + I) / N
- S = number of substitutions, D = deletions, I = insertions, N = number of words in reference (correct) transcript. Unitless ratio. Applies to ASR evaluation.
Precision = TP / (TP + FP)
- TP = true positives, FP = false positives. Unitless fraction. Applies to NLU entity/intent detection.
Recall = TP / (TP + FN)
- FN = false negatives. Unitless fraction.
F1 = 2 · (Precision · Recall) / (Precision + Recall)
- Harmonic mean of Precision and Recall. Unitless.
TaskCompletionRate = (# successful dialogues) / (total dialogues)
- Unitless fraction. Success defined per task (e.g., booking complete).
AverageTurns = (sum of turns across dialogues) / (number of dialogues)
- Units: turns (count). Lower is often better but depends on task complexity.
ResponseLatency = t_response - t_user_end
- t_response = time system starts speaking (s); t_user_end = time user finished speaking (s). Unit: seconds (s). Applies to responsiveness measurement.
Worked examples
Two or three university-exam standard examples.
Example 1 — ASR evaluation (numerical) Problem: Reference transcript has N = 100 words. ASR output compared to reference gives S = 8 substitutions, D = 4 deletions, I = 2 insertions. Compute WER. Steps:
- Write formula:
WER = (S + D + I) / N. - Substitute numbers:
WER = (8 + 4 + 2) / 100. - Compute numerator: 8 + 4 + 2 = 14.
WER = 14 / 100 = 0.14.- Express as percent: 0.14 × 100% = 14%. Answer: WER = 0.14 (14%).
Example 2 — Dialogue state trace (slot-filling) Task: Book a taxi with slots: pickup, dropoff, time, payment_method. Show FSM-style trace with user and system turns. Initial state: s0 with empty slots.
- User: "Book a taxi from MG Road to Airport." System NLU: intent=BookTaxi; slots: pickup=MG Road, dropoff=Airport. DM moves to state s1 (slots {pickup, dropoff} filled)
- System (NLG): "When should I pick you up?" (asks for time)
- User: "Now." NLU: time=ASAP. DM sets time slot, state s2.
- System: "Do you want to pay with card or cash?" (asks for payment_method)
- User: silence for 3s. DM detects timeout > threshold (assume 2s), prompts again: "Card or cash?"
- User: "Card." NLU: payment_method=card. DM moves to final state sF and invokes backend.
- System: "Your taxi is confirmed for pickup now. Driver is Ravi, car number KA-01-1234." Show on paper: draw states s0 -> s1 -> s2 -> sF with transitions labelled by user intents and actions.
Example 3 — Intent classification metric (numerical) Problem: For an intent classifier on 200 test utterances of intent A, TP=90, FP=30, FN=10. Compute precision, recall, F1.
- Precision = TP / (TP + FP) = 90 / (90 + 30) = 90 / 120 = 0.75.
- Recall = TP / (TP + FN) = 90 / (90 + 10) = 90 / 100 = 0.90.
- F1 = 2 · (0.75 · 0.90) / (0.75 + 0.90) = 2 · 0.675 / 1.65 = 1.35 / 1.65 = 0.81818... Answer: Precision = 0.75, Recall = 0.90, F1 ≈ 0.818.
Common mistakes
- Using long, complex prompts that violate Grice's Maxim of Manner (students write long prompts in exams).
- Forgetting to handle silence and barge-in correctly (not tuning turn-taking thresholds).
- Designing gestures without considering discoverability and accidental activation — forgetting to include an "undo" or cancel gesture.
- Treating conversational systems as text UIs: ignoring speech-specific timing and confirmation needs.
For your exam
Kinds of questions and what full-marks answers include:
- Definitions: define terms (ASR, NLU, DM, TTS, WER, slot-filling). Include assumptions and typical use.
- Short notes: explain Grice's maxims, turn-taking rules, or comparison between voice vs gesture interfaces. Include examples and trade-offs.
- Derivations: show FSM formal definition (tuple) and draw a state diagram for a small task. Label states, transitions, start and final states.
- Numericals: compute WER and classification metrics; show formula, substitution and units.
- Design question / case study: given a task (e.g., bank balance enquiry by voice in noisy environment), propose pipeline, list fallbacks, show prompts following Grice's maxims, and sketch error-handling. Full marks: clear pipeline diagram, explicit prompts, error-handling strategy with thresholds, evaluation metrics.
- Diagrams: draw ASR->NLU->DM->NLG->TTS pipeline and a sample FSM for dialogue. Label all components.
In answers, be explicit about assumptions (noise level, language, device), list metrics to measure success, and mention fallback strategies.
Quick check
- What does ASR do?
- Write the WER formula.
- Name two trade-offs between explicit and implicit confirmation in voice UIs.
Answers: 1. Converts audio to text (speech-to-text). 2. WER = (S + D + I) / N. 3. Explicit confirmation increases number of turns (slower) but reduces critical errors; implicit confirmation is faster but risks uncorrected misunderstandings.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?