Intel Realsense D435i icon Intel Realsense D435i Connect Intel RealSense depth cameras to ARC NMS for depth-based distance detection, point-cloud mapping, video streaming, and navigation telemetry. Try it →
 

Waitforspeech

Audio.waitForSpeech(timeout, s1, [s2], [s3], [s4], [s5], [s6])

Parameters

timeout Time to wait in seconds before stopping waiting for speech.
s1 String to wait for.
s2 (optional) String to wait for.
s3 (optional) String to wait for.
s4 (optional) String to wait for.
s5 (optional) String to wait for.
s6 (optional) String to wait for.

Returns

The phrase heard if the timeout did not occur in a lowercase string.

Description

Suspends execution of the script until one of the strings specified by s1, s2, s3, s4, s5, or s6 is heard, or a timeout occurs after timeout seconds. If a timeout occurs, the method will return "timeout".

*Note: the returned string is in lowercase