All presentations

Speech recognition: Art of the possible

Slide 1: Speech recognition: Art of the possible

Speech recognition: Art of the possible

[email protected] @techczech

Original slide 1 (image)

Slide 2: Dominik’s journey

Dominik’s journey

1990–1995

  • Computational linguistics
  • Cognitive linguistics
  • Language teaching

1995–2008

  • Language teacher training
  • Translation
  • Metaphor / discourse studies

2009 – present

  • Readability
  • Learning / Assistive technology
  • Dyslexia teacher training

Original slide 2 (image)

Slide 3: Bill Gates in 2011

Bill Gates in 2011

“The next big thing is definitely speech and voice recognition.”

Photograph of Bill Gates speaking, beside a large quotation mark.

Original slide 3 (image)

Slide 4: What do we want to know?

What do we want to know?

  • What is the current state of the art?
  • How we got here?
  • Where are going?

Original slide 4 (image)

Slide 5: Are we asking the right questions?

Are we asking the right questions?

Original slide 5 (image)

Slide 6: Tasks for speech recognition by difficulty

Tasks for speech recognition by difficulty

  1. Select word from list
  2. Interpret command
  3. Type dictation
  4. Transcribe presentation
  5. Transcribe conversation

A rising curved arrow with five points from easiest to hardest: Select word from list, Interpret command, Type dictation, Transcribe presentation, Transcribe conversation, each with a small icon.

Original slide 6 (image)

Slide 7: How we think of it vs how it is

How we think of it vs how it is

  • Select word from list
  • Interpret command
  • Type dictation
  • Transcribe presentation
  • Transcribe conversation

Two diagrams of the same five tasks. On the left, “How we think of it”: nested circles, with Select word from list innermost, then Interpret command, Type dictation, Transcribe presentation and Transcribe conversation outermost. On the right, “how it is”: five separate, overlapping circles of different sizes with the same labels and a few small empty circles around them.

Original slide 7 (image)

Slide 8: Speech recognition approximate timeline

Speech recognition approximate timeline

  • 1950s: Select digit
  • 1970s: Select from 1000 words
  • 1980s: Select from large vocabulary
  • 1990s: Dictate word by word
  • 1997: Dictate whole sentences
  • 2012: Transcribe YouTube video
  • 2019: Transcribe conversation

Original slide 8 (image)

Slide 9: What is the actual job of speech recognition?

What is the actual job of speech recognition?

Original slide 9 (image)

Slide 10: What is this word?

What is this word?

A narrow phonetic transcription of the word, with aspiration, a devoiced and labialised r, a glottal stop and a syllabic dark l.

[pʰɹɛtsɫ̩]

[pɹɛtsl]

/pretsəl/

<pretzel>

Original slide 10 (image)

Slide 11: What’s the problem

What’s the problem

  • aspirated /p/ at start of a stressed syllable
  • devoiced /r/ following /p/
  • labialised /r/ following /p/
  • dark /l/
  • syllabic consonant
  • glottal stop

The narrow phonetic transcription of “pretzel” with six red arrows pointing at its parts, labelled aspirated /p/ at start of a stressed syllable, devoiced /r/ following /p/, labialised /r/ following /p/, dark /l/, syllabic consonant and glottal stop.

Original slide 11 (image)

Slide 12: It gets worse: find the missing sounds

It gets worse: find the missing sounds

A waveform above a spectrogram of a spoken phrase, with a red cursor line. Beside each is a small loudspeaker icon for an audio clip; the audio is not part of this package.

Original slide 12 (image)

Slide 13: Course on speech recognition 1993

Course on speech recognition 1993

Faster computers won’t help improve speech recognition. We need a new approach.

Original slide 13 (image)

Slide 14: Dragon Naturally Speaking released in 1997. Can recognise whole sentences. What happened?

Dragon Naturally Speaking released in 1997. Can recognise whole sentences. What happened?

Original slide 14 (image)

Slide 15: How speech recognition does not work?

How speech recognition does not work?

Finding individual sounds (phonemes) in the speech and matching them to letters.

Original slide 15 (image)

Slide 16: How speech recognition actually works?

How speech recognition actually works?

P(W|C)

What is the likelihood that the next word is X given what came before?

Original slide 16 (image)

Slide 17: Actually, it is quite a bit more complicated (Huang and Deng 2009)

Actually, it is quite a bit more complicated (Huang and Deng 2009)

Equation: W-hat equals the arg max over W of P(W given A), which equals the arg max over W of P(W) times P(A given W), divided by P(A).

Block diagram of a speech recogniser: Voice feeds Signal processing, which feeds a Decoder; the Decoder connects to an Adaptation block, to Acoustic models and Language models, and to the Application.

Original slide 17 (image)

Slide 18: Probabilistic (stochastic) ASR enabled the change. Linguistics took the back seat.

Probabilistic (stochastic) ASR enabled the change. Linguistics took the back seat.

Original slide 18 (image)

Slide 19: Fred Jelinek (ASR Pioneer - 1988?)

Fred Jelinek (ASR Pioneer - 1988?)

"Every time I fire a linguist, the performance of the speech recognizer goes up"

Original slide 19 (image)

Slide 20: Consequence of probabilistic approach: Worse on words not predictable from context

Consequence of probabilistic approach: Worse on words not predictable from context

  • Names
  • Acronyms
  • Specialist Terms

Original slide 20 (image)

Slide 21: Question in 2011

Question in 2011

I recorded a lecture, can I use Dragon to transcribe it?

Original slide 21 (image)

Slide 22: “Caption fails” in 2014 provided source for comedy

“Caption fails” in 2014 provided source for comedy

Still frame from a comedy video of a man in a teal T-shirt, with a poorly recognised caption beneath him.

Second frame of the same video: the man holding a phone to his ear, with a caption that misrecognises his words.

Third frame of the same video with a mis-captioned line.

Fourth frame of the same video, partly overlapped, with another mis-captioned line.

Original slide 22 (image)

Slide 23: YouTube Captions today are usable and useful

YouTube Captions today are usable and useful

Original slide 23 as rendered: the poster frame of a screen recording of a YouTube video with automatic captions, in front of a news article headlined “Dua Lipa sued by reggae band claiming ‘Levitating’ ripped off their song”; the caption reads “alipa”. The video itself is not part of this package.

Original slide 23 (image)

Slide 24: So what happened between 2014 and 2022?

So what happened between 2014 and 2022?

Original slide 24 (image)

Slide 25: Ingredients of success

Ingredients of success

  • Larger data sets
  • More computing power
  • Neural networks

Original slide 25 (image)

Slide 26: Patrick Winston (2015) MIT Lecture 12a in AI course

Patrick Winston (2015) MIT Lecture 12a in AI course

It was in 2010, yes, that's right. It was in 2010. We were having our annual discussion about what we would dump from 6034 in order to make room for some other stuff. And we almost killed off neural nets. That might seem strange because our heads are stuffed with neurons. … But many of us felt that the neural models of the day weren't much in the way of faithful models of what actually goes on inside our heads. And besides that, nobody had ever made a neural net that was worth a darn for doing anything.

Original slide 26 (image)

Slide 27: 2012 – ImageNet showed that Neural Networks are much better at computing the probabilities for complex data.

2012 – ImageNet showed that Neural Networks are much better at computing the probabilities for complex data.

Original slide 27 (image)

Slide 28: Ok, we have neural nets, what does that mean?

Ok, we have neural nets, what does that mean?

Original slide 28 (image)

Slide 29: Things to know about Neural Nets

Things to know about Neural Nets

  • Everything has a probability
  • Same input does not produce same output
  • They have no ‘sanity check’ or ‘common sense’

Original slide 29 (image)

Slide 30: What do probabilities look like?

What do probabilities look like?

Diagram of an image classifier: a photograph of a white car feeds columns of convolution (CONV), RELU and POOL layers, then a fully connected layer (FC) with scores for car (highest), truck, airplane, ship and horse.

Original slide 30 (image)

Slide 31: BERT Examples

BERT Examples

A table of fill-in-the-blank contexts and the words BERT-large predicts: “A robin is a ” gives bird, robin, person, hunter, pigeon; “A daisy is a ” gives daisy, rose, flower, berry, tree; “A hammer is a ” gives hammer, tool, weapon, nail, device; “A hammer is an ” gives object, instrument, axe, implement, explosive. For the negated contexts, “A robin is not a ” gives robin, bird, penguin, man, fly; “A daisy is not a ” gives daisy, rose, flower, lily, cherry; “A hammer is not a ” gives hammer, tool, weapon, gun, rock; “A hammer is not an ” gives object, instrument, axe, animal, artifact.

What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language models

Allyson Ettinger 2019

Original slide 31 (image)

Slide 32: XKCD on prediction

XKCD on prediction

A comic strip: a sign reads “OH MY GOD, THE VOLCANO IS ERU_”, and three people look at it; one says “ERUDITE?”.

https://what-if.xkcd.com/34

Original slide 32 (image)

Slide 33: Output changes as more information is made available. (Not always for the better)

Output changes as more information is made available. (Not always for the better)

Original slide 33 (image)

Slide 34: Examples from today’s captions

Examples from today’s captions

  • Crystal > Chris is
  • Am > and

Caption screenshot in white on black: “conversation with some incredible experience galaxy brained individuals working at the forefront of SPeech”.

Caption screenshot with the word “experts” highlighted: “with some incredible experts galaxy brained individuals working at the forefront of speech recognition, research, and that will be very much a discussion again lots of opportunity for questions.”

  • experts > experience
  • AR > a our

Caption screenshot with the words “a our” highlighted: “On this slide is an image of the the holoLens so microsoft’s a our products that commercial device.”

Original slide 34 (image)

Slide 35: Different ways of transcribing Dua Lipa

Different ways of transcribing Dua Lipa

  • alipa
  • dualipa
  • dua lipa
  • lipa
  • duda lipa

Original slide 35 (image)

Slide 36: Rise and mostly fall of Google’s new spell Czech

Rise and mostly fall of Google’s new spell Czech

Screenshot of Czech text “Před nějakým … Merleau-Pontiho o tom, že pro” with the name Merleau-Pontiho underlined in red and a pop-up suggesting “Pontyho”.

Screenshot of an English sentence, “what you can do with the language for the meet your communicative goals.”, with a pop-up suggesting “to”.

Screenshot of the Czech text “-Pontyho doporučoval i” with “Pontyho” underlined in red.

Original slide 36 (image)

Slide 37: Tracking faces at the tips of the shoes

Tracking faces at the tips of the shoes

Photograph of a seated man seen from behind, looking at a wall of video-call participants, with a tracking camera in the foreground.

Close-up of a conference camera on a stand.

Original slide 37 (image)

Slide 38: Hallucination is a big problem

Hallucination is a big problem

A Wikipedia infobox for Constant Vanden Stock (birth date October 30, 1914; death date April 19, 2008, aged 93) beside the neural baseline output “Constant Vanden Stock (June 13, 1914 – April 19, 2008) was an American Figure Skater”, with “American Figure Skater” highlighted in red.

Original slide 38 (image)

Slide 39: Question asked by faculty member in 2021

Question asked by faculty member in 2021

We correct the transcripts, why doesn’t the system learn the correct spelling?

Original slide 39 (image)

Slide 40: Adding your own word list just tweaks the probabilities.

Adding your own word list just tweaks the probabilities.

Original slide 40 (image)

Slide 41: Setting a genre setting tweaks the probabilities.

Setting a genre setting tweaks the probabilities.

Original slide 41 (image)

Slide 42: Another thing to know about NN

Another thing to know about NN

Neural Nets use very large data sets and can take days or weeks to train.

Original slide 42 (image)

Slide 43: Consequences of NN size

Consequences of NN size

  • Speech recognition is often not done on device.
  • Individual input often cannot adjust the quality (except in pre-training)
  • Most applications use APIs from the big players
  • Few open source/free options

Original slide 43 (image)

Slide 44: Big players in the field

Big players in the field

Google logo.

Microsoft logo.

Amazon logo.

  • Google
  • Microsoft (now also Nuance)
  • Amazon

Original slide 44 (image)

Slide 45: Interesting smaller companies

Interesting smaller companies

Verbit logo.

Carescribe logo: a teal speech bubble with three dots beside a teal page of text lines.

Otter.ai logo: a blue circle and three blue bars above the word Otter.ai.

Rev.ai logo.

  • Verbit.ai
  • Carescribe.io (Caption.Ed)
  • Otter.ai
  • Rev.ai

Original slide 45 (image)

Slide 46: Interesting applications

Interesting applications

  • Descript
  • Microsoft Reading Progress
  • Microsoft Presentation Coach

Original slide 46 (image)

Slide 47: What can we expect in the future

What can we expect in the future

Original slide 47 (image)

Slide 48: Cautionary tale by SMBC

Cautionary tale by SMBC

A comic by SMBC, “How AI reporting works”: a man says a computer using scanned human literature can make a novel statement about life, a grey creature answers with a speech bubble full of scribbles, six repeated panels show it scribbling, and the last panel has a newspaper headline “MACHINE INTELLIGENCE COMPREHENDS HUMAN DESIRES!”

Original slide 48 (image)

Slide 49: Which Roomba is which? Video comparing 1st and latest.

Which Roomba is which? Video comparing 1st and latest.

Original slide 49 as rendered: a frame of a video from above of two robot vacuum cleaners working on a table scattered with crumbs. The video itself is not part of this package.

Original slide 49 (image)

Slide 50: The Original Roomba (2002) vs Roomba S9+ (2019) - Wow!

The Original Roomba (2002) vs Roomba S9+ (2019) - Wow!

A video thumbnail with the words “2002 VS 2019” above two robot vacuum cleaners, an old pale one marked Roomba and a newer dark one, with curved blue arrows pointing at each.

Original slide 50 (image)

Slide 51: What happens in speeches

What happens in speeches

Fillers

Repetition

Two transcript screenshots. On the left, headed Fillers, a transcript search for “you know” with matches highlighted and an enlarged line “Kind of like, yeah okay okay so”. On the right, headed Repetition, a transcript search for “to to” with matches highlighted.

Original slide 51 (image)

Slide 52: What does conversation actually look like?

What does conversation actually look like?

A conversation-analysis transcript headed “Excerpt 1.1, from Heritage, 1984a: 236, NB:VII:2”: turns marked E and M, with square brackets for overlapping speech, colons for stretched sounds, equals signs for latched speech, parentheses for pauses and unclear talk, and underlining for stress. The full text of the turns is given below.

EXCERPT 1.1, FROM HERITAGE, 1984A: 236 [NB:VII:2]

E: Oh honey that was a lovely luncheon I shoulda ca:lled you s:soo[:ner but I:]l:[lo:ved it.

M: [((f)) Oh:::] [( )

E: It w’s just deli:ghtfu[:l. ]

M: [Well]=

M: I w’s gla[d you] (came).]

E: [‘nd yer f:] friends] ’re so da:rli:ng,=

M: =Oh::: [: it w’z ]

E: [e-that P]a:t isn’she a do:[ :ll?,]

M: [iYe]h isn’t she pretty,

(.)

E: Oh: she’s a beautiful girl.=

M: =Yeh I think she’s a pretty gir[l.=

E: [En’ that Reinam’n::

(.)

E: She SCA:RES me.

The image prints the excerpt on 16 lines, and each turn starts on the left under its speaker label. The overlapping turns are indented so that the overlapping words stand under each other, and some letters are underlined to mark stress. The turns above keep every character and symbol as printed. The column positions and the underlining are recorded in the two tables below, which count the printed lines from the top: line 2 is the second printed line of the first E turn, and lines 11 and 15 hold only a pause.

Underlined letters. Only the letters named are underlined; the colons that follow them are not.

LineSpeakerWordUnderlined letters
1Ehoneyh, the first letter
1Eluncheonl, the first letter
1Eca:lledc, the first letter
2Ethe I before the colon in I:]I
7Efriends (the f of f:] is not underlined)f, the first letter
7Eda:rli:ngi, the letter after rl
8MOh, after the =O and h
9EPa:tP and a, as two separate underlines with the ] between them
10Misn’ti, the first letter
12EOh:O and h
13MI thinkI
16ESheS, h and e

Overlap brackets. Each position is the distance in pixels from the left edge of the image, which is 728 pixels wide; two brackets are described as lining up when they are within 6 pixels of each other.

LinesBrackets and what lines up
2 and 3E [:ner but I:] and M [((f)) Oh:::] open at the same place (positions 122 and 119). M closes at 234, just after E’s underlined I and before E’s colon; E closes at 247, after that colon.
2 and 3E [lo:ved it. and M [( ) open at the same place (266 and 265). Neither has a closing bracket in the image, so this overlap is left open.
4 and 5E [:l. ] and M [Well]= open at the same place (288 and 289). E closes at 330 and M closes at 348, about one and a half characters to the right of E.
4 and 6M you] on line 6 closes at 331, level with E’s closing bracket on line 4 (330); M’s closing bracket on line 5 (348) falls between them.
6 to 10Five opening brackets stand in one column (154 to 157): M [d on line 6, E [‘nd on line 7, M [: on line 8, E [e-that on line 9 and M [iYe] on line 10.
7 to 10The closing brackets on these lines are at 268 and 364 (E f:] and friends] on line 7), 252 (M w’z ] on line 8), 254 (E P] on line 9) and 198 (M [iYe] on line 10). Only the closers on lines 8 and 9 line up; line 7’s first closer is 14 pixels to their right and line 10’s is 54 pixels to their left.
6M (came).] closes at 434; no bracket on the lines next to it lines up with it.
9E do:[ :ll?,] opens at 451 and closes at 513; no bracket on lines 8 or 10 lines up with either.
13 and 14M gir[l.= and E [En’ that Reinam’n:: open at the same place (402 and 407). Neither has a closing bracket in the image, so this last overlap is also left open.

Original slide 52 (image)

Slide 53: Possible futures?

Possible futures?

Incremental improvement, similar to Roomba in 17 years

  • Accurate lecture transcripts
  • Fluent dictation with pauses
  • Better meeting transcription

Revolutionary change, similar to change in speech recognition in 6 years

  • Informal conversation transcription
  • Interactive dictation
  • Multilingual speech transcription

Two large arrows pointing outwards from the middle: on the left Incremental improvement, with Fluent dictation with pauses, Accurate lecture transcripts and Better meeting transcription; on the right Revolutionary change, with Interactive dictation, Multilingual speech transcription and Informal conversation transcription.

Original slide 53 (image)

Slide 54: How should we think about accuracy?

How should we think about accuracy?

  • We speak 120-180 words per minute
  • 99% accurate = 2 errors per minute

Original slide 54 (image)

Slide 55: From Sept 2014 xkcd.com/1425

From Sept 2014 xkcd.com/1425

Sometimes it is hard to judge how much effort will be needed to solve a seemingly easy problem.

An xkcd comic: “When a user takes a photo, the app should check whether they’re in a national park…” “Sure, easy GIS lookup. Gimme a few hours.” “… and check whether the photo is of a bird.” “I’ll need a research team and five years.” Caption: “In CS, it can be hard to explain the difference between the easy and the virtually impossible.”

Original slide 55 (image)

Slide 56: Wishlist (a few hours of coding)

Wishlist (a few hours of coding)

  • Transcripts indicate level of confidence
  • Benchmarks for lecture transcripts
  • Better manual control of transcripts (like Descript)

Original slide 56 (image)

Slide 57: Dreamlist (5 years and a research team)

Dreamlist (5 years and a research team)

  • Multilingual transcription (identify change in language)
  • Multimodal transcription (use information from video)
  • Raw to readable transcript

Original slide 57 (image)

Slide 58: Welcome to the panel

Welcome to the panel

Original slide 58 (image)

Slide 59: Panel

Panel

  • Kate Knill, Machine Intelligence Lab, University of Cambridge
  • Richard Cave, MND Association (and formerly Google project Euphonia)
  • Richard Purcell, Caption.Ed
  • Irit Opher, Head of Research at Verbit.ai

Four portrait photographs in a row, each above a panellist’s name and affiliation: Kate Knill, Richard Cave, Richard Purcell and Irit Opher.

Original slide 59 (image)

Slide 60: Questions

Questions

  • What is the current state of the art of speech recognition in general and in the transcription of recorded speech in particular?
  • What are the current quality metrics and how much do they tell us about suitability of models? Do we need better ones?
  • After the big recent jump in performance, are we seeing a plateau with incremental growth or can we expect another step change in quality?
  • Where can we see the most innovation? What are the research and development blind spots where more effort is needed?
  • What are the currently unsolved problems for which we do not have a solution?
  • What is the space for smaller players to innovate in this space? How much do they have to rely on pre-trained models from big providers? Is there space for open source?

Original slide 60 (image)

Slide 61: Creative Commons License – CC BY

Creative Commons License – CC BY

This presentation is licensed under Creative Commons By Attribution license except where otherwise noted.

Icons and stock images from Microsoft Office 365 creative premium. They cannot be distributed separately from this document.

Original slide 61 (image)