pepper.framework.component.speech_recognition module¶
-
class
pepper.framework.component.speech_recognition.
SpeechRecognitionComponent
(backend)[source]¶ Bases:
pepper.framework.abstract.component.AbstractComponent
Speech Recognition Component. Exposes on_transcript Event to Applications.
Parameters: backend (AbstractBackend) – Application Backend -
asr
¶ Automatic Speech Recognition Object
Returns: asr Return type: pepper.sensor.asr.SynchronousGoogleASR
-
on_transcript
(hypotheses, audio)[source]¶ On Transcript Event. Called every time an utterance was understood by Automatic Speech Recognition.
Parameters: - hypotheses (List[UtteranceHypothesis]) – Hypotheses about the corresponding utterance
- audio (numpy.ndarray) – Utterance audio
-
vad
¶ Voice Activity Detection Object
Returns: vad Return type: pepper.sensor.vad.VAD
-