1. A method for realizing a voice recognition function, comprising: setting a corresponding relationship between an attitude parameter of a mobile terminal body and a voice recognition mode; when a change of the attitude parameter of the mobile terminal body detected by a gravity sensor in a mobile terminal satisfies a condition of switching the voice recognition mode, then switching the voice recognition mode, and performing voice recognition under the switched voice recognition mode.