TECHNICAL FIELD

Embodiments of this disclosure relate to the field of speaker technologies, and in particular, to a speaker control method and a mobile terminal.

BACKGROUND

In the related art, as users have increasingly high demands for audio and video experience, screens of mobile terminals such as mobile phones are bigger, which can improve visual experience. In addition, a larger screen area allows for more speakers to improve a sound effect of the mobile terminal.

However, setting up more speakers in a mobile terminal brings some risks. Specifically, if the speakers do not cooperate but interfere with each other, the sound effect of the mobile terminal cannot be guaranteed, but will be seriously affected.

SUMMARY

Embodiments of this disclosure provide a speaker control method and a mobile terminal, to resolve a problem that a play sound effect of a mobile terminal is affected when speakers in the mobile terminal do not cooperate but interfere with each other.

According to a first aspect, an embodiment of this disclosure provides a speaker control method, applied to a mobile terminal, where the mobile terminal includes at least two speakers, and the method includes obtaining a use state of the mobile terminal, and determining corresponding audio mode information based on the use state of the mobile terminal, where the audio mode information includes audio modes of the at least two speakers. The method further includes controlling each speaker to work in a corresponding audio mode in the audio mode information.

According to a second aspect, an embodiment of this disclosure provides a mobile terminal, where the mobile terminal includes at least two speakers, and the mobile terminal includes an obtaining module configured to obtain a use state of the mobile terminal. The mobile terminal also includes a determining module configured to determine corresponding audio mode information based on the use state of the mobile terminal, where the audio mode information includes a corresponding audio mode of each speaker. The mobile terminal further includes a control module configured to control each speaker to work in the corresponding audio mode in the audio mode information.

According to a third aspect, an embodiment of this disclosure provides a mobile terminal, including a processor, a memory, and a computer program that is stored in the memory and capable of running on the processor, where when the computer program is executed by the processor, the steps of the foregoing speaker control method are implemented.

In the embodiments of this disclosure, the mobile terminal obtains the use state of the mobile terminal, and determines the corresponding audio mode information based on the obtained use state, where the audio mode information is audio mode information that matches the obtained use state. The mobile terminal then controls each speaker to work in the corresponding audio mode. In this way, the mobile terminal can provide a good sound effect. It can be learned that in the embodiments of this disclosure, audio modes of the speakers in the mobile terminal are not fixed, and the mobile terminal can control each speaker to work in the corresponding audio mode based on the use state of the mobile terminal. To be specific, the mobile terminal can flexibly adjust the audio modes of the speakers based on the use state of the mobile terminal. In this way, the speakers can always cooperate with each other without mutual interference. Therefore, compared with the related art, the embodiments of this disclosure can effectively ensure the sound effect of the mobile terminal.

