Overview | API
Namespace : AL
#include <alproxies/alsounddetectionproxy.h>
Deprecated since version 1.12: use the ALMemory key “SoundDetected” instead to collect the result of the detection.
param type: | Name of detector |
---|---|
param nameDesc: | Name of the description |
return: | Description |
Deprecated since version 1.12: use the ALMemory key “SoundDetected” instead to collect the result of the detection.
param type: | Name of detector |
---|---|
return: | Event |
The sensitivity of the detection can be set by calling this function as follows:
Parameters: |
|
---|
import sys
from naoqi import ALProxy
if (len(sys.argv) < 2):
print "Usage: 'python sounddetection_setparameter.py IP [PORT]'"
sys.exit(1)
IP = sys.argv[1]
PORT = 9559
if (len(sys.argv) > 2):
PORT = sys.argv[2]
try:
sd = ALProxy("ALSoundDetection", IP, PORT)
except Exception,e:
print "Could not create proxy to ALMotion"
print "Error was: ",e
sys.exit(1)
# Sets the sensibility of the detection to 0.3 (less sensitive than default).
# The default value is 0.9.
sd.setParameter("Sensibility", 0.3)
print "Sensibility set to 0.9"
Deprecated since version 1.12: use ALSoundDetection::setParameter instead.
Parameters: |
|
---|
Subscribes to ALSoundDetection. This causes the module to start writing information to ALMemory in “SoundDetected”. This can be accessed in ALMemory using ALMemoryProxy::getData.
Parameters: |
|
---|
Unsubscribes to ALSoundDetection. This causes the module to stop writing information to ALMemory in “SoundDetected”.
Parameters: |
|
---|