Provide an api interface to support the switch of beep. It can disable or enable whether the sound of beep will be made.