banterbot.types package

banterbot.types.wordjson module

class banterbot.types.wordjson.WordJSON[source]

Bases: TypedDict

A type definition class defining the format of the individually recognized words from a SpeechRecognitionEventArgs event’s json attribute.

Word

The recognized word from speech.

Type:

str

Offset

The start time of the recognized word in microseconds.

Type:

int

Duration

The length of time the recognized word took in microseconds.

Type:

int

Confidence

Confidence score of the recognition for the word.

Type:

float

Confidence: float
Duration: int
Offset: int
Word: str