Api reference
components.acuity.public.admin_blueprint ¶
components.acuity.public.commands ¶
DEFAULT_TEST_S3_KEY
module-attribute
¶
get_acuity_attempts_to_transcribe ¶
Command to get random set of acuity attempts for human transcription.
Source code in components/acuity/public/commands.py
validate_acuity_test ¶
Source code in components/acuity/public/commands.py
components.acuity.public.services ¶
speech_recognizer ¶
CONFIRM_DISTANCE
module-attribute
¶
CONFIRM_DISTANCE = SpeechRecognizerConfig(
default_model=None,
interaction_type=VOICE_COMMAND,
speech_contexts=[],
)
SpeechRecognizer ¶
Source code in components/acuity/public/services/speech_recognizer.py
recognize ¶
Source code in components/acuity/public/services/speech_recognizer.py
SpeechRecognizerConfig
dataclass
¶
SpeechRecognizerConfig(
interaction_type,
speech_contexts,
default_language_code="fr-FR",
device_type=RecognitionMetadata.RecordingDeviceType.SMARTPHONE,
distance=RecognitionMetadata.MicrophoneDistance.FARFIELD,
max_alternatives=0,
enable_word_level_confidence=True,
default_model="command_and_search",
regional_endpoint="eu-speech.googleapis.com",
)
SpeechRecognizerResponseData
dataclass
¶
V1_CONFIGURATION
module-attribute
¶
V1_CONFIGURATION = SpeechRecognizerConfig(
default_model="latest_short",
interaction_type=DICTATION,
speech_contexts=[
SpeechContext(phrases=["$OOV_CLASS_ALPHA_SEQUENCE"])
],
)
V2_CONFIGURATION_DOWN
module-attribute
¶
V2_CONFIGURATION_DOWN = SpeechRecognizerConfig(
default_model="command_and_search",
interaction_type=VOICE_COMMAND,
speech_contexts=[
SpeechContext(phrases=["bas"], boost=20)
],
)
V2_CONFIGURATION_LEFT
module-attribute
¶
V2_CONFIGURATION_LEFT = SpeechRecognizerConfig(
default_model="latest_short",
interaction_type=VOICE_COMMAND,
speech_contexts=[],
)
V2_CONFIGURATION_RIGHT
module-attribute
¶
V2_CONFIGURATION_RIGHT = SpeechRecognizerConfig(
default_model=None,
interaction_type=VOICE_COMMAND,
speech_contexts=[
SpeechContext(
phrases=[
"droite",
"droites",
"droit",
"boite",
"toi",
"what",
"3",
],
boost=20,
)
],
)
V2_CONFIGURATION_UP
module-attribute
¶
V2_CONFIGURATION_UP = SpeechRecognizerConfig(
default_model=None,
interaction_type=VOICE_COMMAND,
speech_contexts=[
SpeechContext(
phrases=[
"haut",
"oh",
"o-h",
"au",
"ou",
"ont",
"on",
],
boost=20,
)
],
)