Skip to content

Turn to sound·

turn toward whoever is talking (ReSpeaker direction of arrival) when face tracking has no lock — the dashboard's DoA turnertools/turn_to_sound.py, 2 tools.

From the module docstring

turn_to_sound — let TINY turn its head toward whoever is talking (Direction of Arrival).

tool does
turn_to_sound Turn toward whoever is speaking when no face is being tracked (ReSpeaker direction of arrival).
turn_to_sound_status Is turn-to-sound on, where was the last sound (degrees, left/right), and why is TINY not turning right now?

turn_to_sound·

turn_to_sound(enabled: bool = True) -> dict

Turn toward whoever is speaking when no face is being tracked (ReSpeaker direction of arrival).

While ON, TINY turns its head (and body, for sounds far round) toward speech that holds still for ~half a second, at most once every 2 s, and only when face tracking has no lock and nothing else is moving the head. Face tracking takes over once the speaker is in view. Turn OFF for photo/demo moments where the head must stay put.

argument meaning
enabled True to turn toward speech, False to stop.

source: tools/turn_to_sound.py:33

turn_to_sound_status·

turn_to_sound_status() -> dict

Is turn-to-sound on, where was the last sound (degrees, left/right), and why is TINY not turning right now?

source: tools/turn_to_sound.py:54