Speech Recognition

  • p5 is a variable everytime & everywhere!
  • p5 is a global variable that stores the reference for the “p5js”’ constructor function (a.K.a. class).
  • SpeechRec is a property of class p5, which the library “p5.speech” had appended to it.
  • Like variable p5, property SpeechRec also refers to a class (constructor function).
  • We can say that SpeechRec is a nested static class of class p5.
  • BtW, setup() is a p5 callback function.