1. A controller for a voice-controlled device, comprising: a setting module, configured to generate a threshold according to an environmental parameter associated with an environment that the voice-controlled device disposed in; and a recognition module, configured to receive a speech, to perform speech recognition on the speech to generate a confidence score of speech recognition, and to compare the confidence score of speech recognition with the threshold to generate a control signal.