Mobile terminal sound setting processing method and device, terminal equipment and storage medium

文档序号:663994 发布日期:2021-04-27 浏览:24次 中文

阅读说明:本技术 一种移动终端声音设置处理方法、装置、终端设备及存储介质 (Mobile terminal sound setting processing method and device, terminal equipment and storage medium ) 是由 俞斌 于 2021-01-22 设计创作,主要内容包括:本发明公开了一种移动终端声音设置处理方法、装置、终端设备及存储介质,方法包括:通过移动终端检测是否有声音大小改变的操作,当检测到有声音大小改变的操作时,在第一预定时间段内计数声音大小改变的操作的次数是否达到预设定的次数最大阈值;当判断在第一预定时间段内计数声音大小改变的操作的次数达到预设定的最大阈值,则自动禁止声音大小改变;当禁止声音大小改变等待第二预定时间段后,没有发现新的声音大小改变的操作,则自动恢复声音大小改变。从而在当移动终端中采用自动调节声音时可以避免调节过度的问题,使得声音更加平顺,提升用户体验,给用户的使用提供了方便。(The invention discloses a mobile terminal sound setting processing method, a device, terminal equipment and a storage medium, wherein the method comprises the following steps: detecting whether a sound size changing operation exists through the mobile terminal, and counting whether the frequency of the sound size changing operation reaches a preset frequency maximum threshold value in a first preset time period when the sound size changing operation is detected; when the number of times of counting the sound size change operation within the first preset time period is judged to reach a preset maximum threshold value, automatically forbidding the sound size change; when no operation of a new sound level change is found after the sound level change is prohibited for the second predetermined period of time, the sound level change is automatically resumed. Therefore, the problem of excessive adjustment can be avoided when the sound is automatically adjusted in the mobile terminal, the sound is smoother, the user experience is improved, and convenience is provided for the user.)

1. A mobile terminal sound setting processing method is characterized by comprising the following steps:

acquiring a sound signal of the mobile terminal, and detecting whether a sound size change operation exists;

when the change operation of the sound size is detected, whether the number of times of the change operation of the sound size reaches a first preset value or not is counted in a first preset time period;

when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value, the change operation of the sound size is automatically forbidden;

when the change operation of the sound level is prohibited for the second predetermined time, the control automatically resumes the sound level change.

2. The method for processing sound setting of mobile terminal according to claim 1, wherein said step of obtaining sound signal of mobile terminal and detecting whether there is a sound size change operation comprises:

presetting a first preset time period value and a second preset time period value, and setting a first timer to record the first preset time period value and a second timer to record the second preset time period value;

a first preset value of an operation of changing the sound level within a first predetermined period of time is set in advance.

3. The mobile terminal sound setting processing method of claim 2,

the first preset value is a first preset time period value; the number of times the sound level is changed in the first predetermined period of time is counted by a counter, and the counter is initialized to 0.

4. The mobile terminal sound setting processing method of claim 2,

when detecting that the sound size is changed, the step of counting whether the number of times of the sound size change operation reaches a first preset value within a first preset time period comprises the following steps:

when the operation of changing the sound size is detected, starting a counter to count the number of times of changing the sound size in a first preset time period;

it is determined whether the number of times of the change operation of the sound size counted by the counter within the first predetermined period of time reaches a maximum threshold value of a first preset period of time.

5. The mobile terminal sound setting processing method according to claim 2, wherein the step of automatically prohibiting the sound size changing operation when it is determined that the number of times of the statistical sound size changing operation reaches the first preset value within a first predetermined time period comprises:

and when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the maximum threshold value of the first preset time period, the change operation of the sound size is automatically forbidden.

6. The mobile terminal sound setting processing method according to claim 2, wherein the step of automatically prohibiting the sound size changing operation when it is determined that the number of times of the statistical sound size changing operation reaches the first preset value within a first predetermined time period further comprises:

when the operation of changing the sound size is detected and the number of times of changing the sound size in the first preset time period does not reach the maximum threshold value of the first preset time period value, the counter value is initialized to 0 for recounting.

7. The mobile terminal sound setting processing method according to claim 1, wherein the operation of automatically prohibiting a change in the sound level includes: when a command for sound setting is received, the sound setting operation is not performed, and the sound change detection operation is not processed.

The controlling of the automatically restoring sound level change includes: when a command for sound setting is received, the sound setting operation is resumed.

8. A mobile terminal sound setting processing apparatus, characterized in that the apparatus comprises:

the acquisition detection module is used for acquiring the sound signal of the mobile terminal and detecting whether the sound size is changed;

the statistic judging module is used for counting whether the frequency of the change operation of the sound size reaches a first preset value in a first preset time period when the change operation of the sound size is detected;

the sound tone forbidding module is used for automatically forbidding the change operation of the sound size when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value;

and the sound restoring module is used for controlling to automatically restore the sound size change after the operation of forbidding the sound size change waits for a second preset time.

9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a mobile terminal sound setting processing program stored on the memory and operable on the processor, and the processor implements the steps of the mobile terminal sound setting processing method according to any one of claims 1 to 7 when executing the mobile terminal sound setting processing program.

10. A computer-readable storage medium, having stored thereon a mobile terminal sound setting processing program which, when executed by a processor, implements the steps of the mobile terminal sound setting processing method according to any one of claims 1 to 7.

Technical Field

The present invention relates to the field of mobile terminal technologies, and in particular, to a mobile terminal sound setting processing method and apparatus, a terminal device, and a storage medium.

Background

With the development of mobile terminals and the continuous improvement of living standards of people, various mobile terminals such as mobile phones are more and more popular in use, the mobile phones become indispensable communication tools in the life of people, the functions of the mobile terminals are more and more, and music playing is a very favorite function of people.

At present, the requirement of a mobile terminal for sound is higher and higher, even some mobile terminals use an audio technology with strong extra performance such as HIFI (high fidelity tone quality), different music is different in sound intensity of music files, so that the same volume is adjusted but the sound effect is completely different, even the same sound file is changed continuously, so that the volume can be automatically adjusted by the mobile terminal, if the volume is changed more in the adjusting process, the problem of excessive adjustment can occur, the operation is very complicated, and inconvenience is brought to the use of a user easily at times.

Thus, there is a need for improvements and enhancements in the art.

Disclosure of Invention

The technical problem to be solved by the present invention is to provide a method, an apparatus, a terminal device and a storage medium for processing a sound setting of a mobile terminal, which can solve the problem of over-adjustment when a mobile terminal automatically adjusts the sound, so that the sound is smoother and the convenience is brought to the user.

In order to solve the technical problems, the technical scheme adopted by the invention is as follows:

a mobile terminal sound setting processing method comprises the following steps:

acquiring a sound signal of the mobile terminal, and detecting whether a sound size change operation exists;

when the change operation of the sound size is detected, whether the number of times of the change operation of the sound size reaches a first preset value or not is counted in a first preset time period;

when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value, the change operation of the sound size is automatically forbidden;

when the change operation of the sound level is prohibited for the second predetermined time, the control automatically resumes the sound level change.

The method for processing the sound setting of the mobile terminal comprises the following steps of obtaining a sound signal of the mobile terminal and detecting whether a sound size change operation exists or not:

presetting a first preset time period value and a second preset time period value, and setting a first timer to record the first preset time period value and a second timer to record the second preset time period value;

a first preset value of an operation of changing the sound level within a first predetermined period of time is set in advance.

The sound setting processing method of the mobile terminal, wherein,

the first preset value is a first preset time period value; the number of times the sound level is changed in the first predetermined period of time is counted by a counter, and the counter is initialized to 0.

The sound setting processing method of the mobile terminal, wherein,

when detecting that the sound size is changed, the step of counting whether the number of times of the sound size change operation reaches a first preset value within a first preset time period comprises the following steps:

when the operation of changing the sound size is detected, starting a counter to count the number of times of changing the sound size in a first preset time period;

it is determined whether the number of times of the change operation of the sound size counted by the counter within the first predetermined period of time reaches a maximum threshold value of a first preset period of time.

The sound setting processing method of the mobile terminal, wherein when it is determined that the number of times of the change operation of the statistical sound magnitude reaches the first preset value within the first predetermined time period, the step of automatically prohibiting the change operation of the sound magnitude includes:

and when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the maximum threshold value of the first preset time period, the change operation of the sound size is automatically forbidden.

The sound setting processing method for the mobile terminal, wherein when it is determined that the number of times of the statistical sound size change operation reaches the first preset value within the first predetermined time period, the step of automatically prohibiting the sound size change operation further includes:

when the operation of changing the sound size is detected and the number of times of changing the sound size in the first preset time period does not reach the maximum threshold value of the first preset time period value, the counter value is initialized to 0 for recounting.

The mobile terminal sound setting processing method, wherein the operation of automatically prohibiting the change of the sound level includes: when a command for sound setting is received, the sound setting operation is not performed, and the sound change detection operation is not processed.

The controlling of the automatically restoring sound level change includes: when a command for sound setting is received, the sound setting operation is resumed.

A mobile terminal sound setting processing apparatus, wherein the apparatus comprises:

the acquisition detection module is used for acquiring the sound signal of the mobile terminal and detecting whether the sound size is changed;

the statistic judging module is used for counting whether the frequency of the change operation of the sound size reaches a first preset value in a first preset time period when the change operation of the sound size is detected;

the sound tone forbidding module is used for automatically forbidding the change operation of the sound size when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value;

and the sound restoring module is used for controlling to automatically restore the sound size change after the operation of forbidding the sound size change waits for a second preset time.

A terminal device, wherein the terminal device comprises a memory, a processor and a mobile terminal sound setting processing program which is stored on the memory and can be run on the processor, and the processor realizes the steps of any one of the mobile terminal sound setting processing methods when executing the mobile terminal sound setting processing program.

A computer-readable storage medium, wherein a mobile terminal sound setting processing program is stored thereon, which when executed by a processor, implements the steps of any of the mobile terminal sound setting processing methods.

Has the advantages that: compared with the prior art, the invention provides a mobile terminal sound setting processing method, which detects whether the operation of sound size change exists through a mobile terminal, and when the operation of sound size change is detected, counts whether the frequency of the operation of sound size change reaches the preset maximum frequency threshold value in a first preset time period; when the number of times of counting the sound size change operation within the first preset time period is judged to reach a preset maximum threshold value, automatically forbidding the sound size change; when no operation of a new sound level change is found after the sound level change is prohibited for the second predetermined period of time, the sound level change is automatically resumed. Therefore, the problem of excessive adjustment can be avoided when the sound is automatically adjusted in the mobile terminal, the sound is smoother, the user experience is improved, and convenience is provided for the user.

Drawings

Fig. 1 is a flowchart of a specific implementation of a mobile terminal sound setting processing method according to embodiment 1 of the present invention.

Fig. 2 is a flowchart illustrating a first predetermined time determination in a sound setting processing method of a mobile terminal according to embodiment 1 of the present invention.

Fig. 3 is a flowchart of determining a distribution network permission in the mobile terminal sound setting processing method provided in embodiment 2 of the present invention.

Fig. 4 is a schematic block diagram of a mobile terminal sound setting processing apparatus according to an embodiment of the present invention.

Fig. 5 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.

In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.

Today, people and various terminal devices such as mobile phones, tablets, computers and televisions are surrounded by people and various terminal devices such as videos and videos in life. Terminal devices have slowly penetrated into the corners of people's lives.

With the development of mobile terminals and the continuous improvement of living standards of people, various mobile terminals such as mobile phones are more and more popular in use, the mobile phones become indispensable communication tools in the life of people, the functions of the mobile terminals are more and more, and music playing is a very favorite function of people.

At present, the requirement of a mobile terminal for sound is higher and higher, even some mobile terminals use an audio technology with strong extra performance such as HIFI (high fidelity tone quality), different music is different in sound intensity of music files, so that the same volume is adjusted but the sound effect is completely different, even the same sound file is changed continuously, so that the volume can be automatically adjusted by the mobile terminal, if the volume is changed more in the adjusting process, the problem of excessive adjustment can occur, the operation is very complicated, and inconvenience is brought to the use of a user easily at times.

In order to solve the problems in the prior art, the embodiment provides a mobile terminal sound setting processing method, and according to the method of the embodiment, the method includes: detecting whether a sound size changing operation exists through the mobile terminal, and counting whether the frequency of the sound size changing operation reaches a preset frequency maximum threshold value in a first preset time period when the sound size changing operation is detected; when the number of times of counting the sound size change operation within the first preset time period is judged to reach a preset maximum threshold value, automatically forbidding the sound size change; when no operation of a new sound level change is found after the sound level change is prohibited for the second predetermined period of time, the sound level change is automatically resumed. Therefore, the problem of excessive adjustment can be avoided when the sound is automatically adjusted in the mobile terminal, the sound is smoother, the user experience is improved, and convenience is provided for the user.

For example, when a user walks on the road and listens to music with a mobile phone, and an intelligent mobile phone walking to a noisy place can automatically and continuously adjust the music volume according to the surrounding environment, in the embodiment of the invention, when an operation of changing the sound size is detected, the number of times of counting the operation of changing the sound size within a first predetermined time period (for example, 5 seconds) is a preset maximum threshold of times; the sound size change can be automatically forbidden, so that the problem of excessive adjustment can be avoided when the sound is automatically adjusted in the mobile terminal, the sound is smoother, the user experience is improved, and convenience is provided for the user.

Exemplary method

The mobile terminal sound setting processing method of the embodiment may be applied to a terminal device, and as shown in fig. 1 in particular, the mobile terminal sound setting processing method includes the following steps:

step S100, acquiring a sound signal of the mobile terminal, and detecting whether a sound size change operation exists;

in the embodiment of the invention, a mobile terminal mobile phone is taken as an example for explanation, when the mobile phone has sound playing such as music playing, the mobile phone can automatically acquire a sound signal in the mobile phone and detect whether a sound size changing operation exists; that is, it is detected whether there is an operation of performing a sound setting adjustment operation to perform a sound size changing operation when a command for sound setting is received. When a change operation of the sound level is detected, the process proceeds to step S200.

Step S200, when the change operation of the sound size is detected, whether the frequency of the change operation of the sound size reaches a first preset value or not is counted in a first preset time period;

in the embodiment of the present invention, when the mobile terminal mobile phone detects that there is a sound size change operation, it is counted whether the number of sound size change operations reaches a first preset value within a first predetermined time period, for example, it is detected whether the number of sound size change operations exceeds the first preset value, for example, 5 times within 5 seconds of a first predetermined time.

In a preferred embodiment, the present invention may further comprise: presetting a first preset time period value (for example, a continuous 5-second time period) and a second preset time period value (for example, a continuous 5-second time period), and setting that the first preset time period value is recorded by a first timer and the second preset time period value is recorded by a second timer;

and presetting a first preset value of the operation of changing the sound size in a first preset time period. In the embodiment of the present invention, preferably, the first preset value is a first preset time period value (for example, 5 to 8 times); the number of times the sound level is changed in the first predetermined period of time is counted by a counter, and the counter is initialized to 0.

In one embodiment, as shown in fig. 2, the step S200 of counting whether the number of times of the sound size changing operation reaches the first preset value within the first predetermined time period when the sound size changing operation is detected includes:

s201, when the operation of changing the sound size is detected, starting a counter to count the number of times of changing the sound size in a first preset time period;

s202, judging whether the number of times of the change operation of the sound size counted by the counter in the first preset time period reaches the maximum threshold value of the first preset time period value.

In this embodiment, if the mobile terminal handset detects an operation of changing the sound level, the counter is started to count how many times (for example, 5 times) the sound level changes within a first predetermined time period (for example, a continuous 5-second range); if it is judged whether the number of times the change operation of the sound size is counted by the counter within a first predetermined period of time (e.g., continuous 5-second range) reaches a maximum threshold value (e.g., 8 times) of a first preset period value (e.g., 5-8 times).

Step S300, when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value, the change operation of the sound size is automatically forbidden;

in the embodiment of the present invention, when it is determined that the number of times of the change operation of the statistical sound level within the first predetermined period of time (for example, consecutive 5 seconds) reaches the first preset value, for example, 5 times, the change operation of the sound level is automatically prohibited.

Of course, in a preferred embodiment of the present invention, when it is determined that the number of times of the change operation of the statistical sound level within the first predetermined period of time (e.g., 5 consecutive seconds) reaches the maximum threshold value (e.g., 8 times) of the first preset period of time value (e.g., 5-8 times), the change operation of the sound level is automatically prohibited. In an embodiment of the present invention, the operation of automatically prohibiting a change of a sound level includes: when a command for sound setting is received, the sound setting operation is not performed, and the sound change detection operation is not processed. Therefore, the problem of excessive sound adjustment can be avoided, the sound is smoother, convenience is brought to a user, and the user experience is improved.

In specific implementation, the first preset value in the embodiment of the present invention may be a fixed value, for example, 5 times, or a range value, for example, 5 to 8 times; whether the operation of prohibiting the adjustment of the sound is performed or not can be immediately performed when a fixed value is reached, when a range value is reached, for example, 5-8 times, when the range is entered 5 times, the preparation for prohibiting the tuning can be performed by pre-starting, and when a maximum threshold value is reached 8 times, the operation for prohibiting the tuning can be immediately performed, because the execution efficiency can be accelerated by the pre-starting step.

Further preferably, the step of automatically prohibiting the operation of changing the sound level when it is determined that the number of times of the operation of changing the sound level counted within the first predetermined time period reaches the first preset value further includes:

in the embodiment of the present invention, when the mobile terminal, for example, a mobile phone, detects an operation of changing the sound level, and waits for the number of times of changing the sound level within a first predetermined time period (for example, 5 consecutive seconds) to not reach the maximum threshold of the first predetermined time period value, the counter value is initialized to 0 to perform recounting, so as to avoid a counting error after the first predetermined time period elapses.

Step S400, after the change operation of the sound level is prohibited for the second predetermined time, controlling to automatically resume the sound level change.

In the embodiment of the present invention, after the change operation of the sound level is prohibited for the second predetermined time (for example, a continuous 5-second period), the control automatically resumes the sound level change. The step of controlling the automatic recovery sound size change in the embodiment of the present invention includes: when a command for sound setting is received, the sound setting operation is resumed.

For example, when a user walks on the road and listens to music with a mobile phone, and an intelligent mobile phone walking to a noisy place can automatically and continuously adjust the music volume according to the surrounding environment, in the embodiment of the invention, when an operation of changing the sound size is detected, the number of times of counting the operation of changing the sound size within a first predetermined time period (for example, 5 seconds) is a preset maximum threshold of times; the sound size change can be automatically forbidden, so that the problem of excessive adjustment can be avoided when the sound is automatically adjusted in the mobile terminal, the sound is smoother, the user experience is improved, and convenience is provided for the user. In the present invention, when the operation of prohibiting the change of the sound level waits for a second predetermined time (for example, a continuous 5-second period), the control automatically resumes the sound level change.

The invention is further illustrated in detail by the following specific application examples:

as shown in fig. 4, the mobile terminal sound setting process according to this embodiment includes the following steps:

and S10, starting.

And S11, initializing and starting the sound setting of the mobile terminal.

S12, setting the first timer T1 and the second timer T2, and the sound level change maximum threshold CTH.

S13, the initial value of the count block C is set equal to 0.

In the embodiment of the present invention, the counting module 101, which is represented by a variable C, is used for recording the number of times of sound changes, and the value C of the number of times is increased by 1 when the sound changes.

S14, waiting for the sound level to change.

S15, when a sound level change is detected, the process proceeds to step S16.

S16, whether the count module C is equal to 0, and if not, the flow proceeds to step S17, and if yes, the flow proceeds to step S18.

S17, did the first timer T1 time out? If yes, the process returns to step S13, and if no, the process proceeds to step S18;

s18, adding 1 to the counting module C, and entering the step S19;

s19, whether the counting module C is larger than the maximum threshold value CTH, if not, the step is S20, and if yes, the step is S21;

in this embodiment, the maximum threshold of the number of sound changes that the system can accept is preset; in this embodiment, the maximum threshold is defined as CTH, the maximum threshold is used to set the number of consecutive voice size changes that the system can accept, and when the number of consecutive voice changes exceeds the maximum threshold CTH, the system will disable the voice change detection function, and the value of CTH needs to be set in advance, preferably 8 times.

S20, continuing to start the first timer T1 for timing; and returns to step S14;

in this embodiment, the first timer is started after each sound level changing operation is detected by the system, and if a sound level changing operation is detected before the first timer is not timed out, the two operations are considered to be continuous, i.e. the counting module is added twice after the process, the timeout time of T1, i.e. the first predetermined time period value, needs to be set in advance, and preferably the timeout time of T1 is 5 seconds. Of course in other embodiments the T1 may be set shorter, for example 2 seconds.

S21, starting a second timer T2, and going to the step S22;

s22, prohibiting the sound level from changing, and proceeding to S23;

s23, if the second timer T2 is overtime, the step proceeds to S24, and if not, the step returns to S22;

s24, re-enabling sound level change. And ending the process until the current audio playing is finished.

Wherein, the prohibiting of the sound setting means that when a command for the sound setting is received, the sound setting operation is not performed, and the sound change detection operation is not processed instead.

Wherein, the resuming of the sound setting refers to resuming the sound setting operation when a command for sound setting is received.

In the embodiment of the present invention, the second predetermined time period value is also preset, and the second predetermined time period value is recorded by a second timer. And a second timer, when the number of times C of the voice size changing operation is greater than CTH, the system prohibits the voice size changing and simultaneously starts the second timer, when a second preset time period value preset by the second timer is overtime, the system enables the voice detection function again, the overtime time of the second preset time period value preset by the second timer needs to be set in advance, and the preferred overtime time of T2 is 2 seconds. Of course, in another embodiment, the T2 may also be set to 5 seconds, and may be specifically set as needed.

In view of the above, the present invention provides a mobile terminal sound setting processing method, which detects whether there is a sound size change operation through a mobile terminal, and when the sound size change operation is detected, counts whether the number of sound size change operations reaches a preset maximum number threshold within a first predetermined time period; when the number of times of counting the sound size change operation within the first preset time period is judged to reach a preset maximum threshold value, automatically forbidding the sound size change; when no operation of a new sound level change is found after the sound level change is prohibited for the second predetermined period of time, the sound level change is automatically resumed. Therefore, the problem of excessive adjustment can be avoided when the automatic sound adjustment is adopted in the mobile terminal, the sound is smoother, convenience is brought to users, and the user experience is improved.

Exemplary device

As shown in fig. 4, an embodiment of the present invention provides a mobile terminal sound setting processing apparatus, including:

an obtaining detection module 10, configured to obtain a sound signal of the mobile terminal, and detect whether there is a sound size change operation;

the statistic judging module 20 is configured to, when a change operation of the sound size is detected, count whether the number of times of the change operation of the sound size reaches a first preset value within a first preset time period;

the sound forbidding module 30 is used for automatically forbidding the change operation of the sound size when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value;

the sound restoring module 40 is configured to control to automatically restore the sound level change after the prohibiting sound level changing operation waits for the second predetermined time, as described above.

In one implementation, the statistical determination module 20 includes:

a first counting unit for starting a counter to count the number of times of sound size change within a first predetermined period of time when an operation of sound size change is detected;

a judging unit, configured to judge whether the number of times of the change operation of the sound size counted by the counter within the first predetermined period reaches a maximum threshold value of a first preset period value, as described above.

Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 5. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a loudspeaker which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a mobile terminal sound setting processing method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the loudspeaker of the terminal equipment is arranged in the terminal equipment in advance.

It will be understood by those skilled in the art that the block diagram shown in fig. 5 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.

In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a mobile terminal sound setting processing program stored in the memory and executable on the processor, and when the processor executes the mobile terminal sound setting processing program, the following operation instructions are implemented:

acquiring a sound signal of the mobile terminal, and detecting whether a sound size change operation exists;

when the change operation of the sound size is detected, whether the number of times of the change operation of the sound size reaches a first preset value or not is counted in a first preset time period;

when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the first preset value, the change operation of the sound size is automatically forbidden;

when the change operation of the sound level is prohibited for the second predetermined time, the control automatically resumes the sound level change.

The step of acquiring the sound signal of the mobile terminal and detecting whether a sound size change operation exists comprises the following steps:

presetting a first preset time period value and a second preset time period value, and setting a first timer to record the first preset time period value and a second timer to record the second preset time period value;

a first preset value of an operation of changing the sound level within a first predetermined period of time is set in advance.

Wherein the first preset value is a first preset time period value; the number of times the sound level is changed in the first predetermined period of time is counted by a counter, and the counter is initialized to 0.

The sound setting processing method of the mobile terminal, wherein,

when detecting that the sound size is changed, the step of counting whether the number of times of the sound size change operation reaches a first preset value within a first preset time period comprises the following steps:

when the operation of changing the sound size is detected, starting a counter to count the number of times of changing the sound size in a first preset time period;

it is determined whether the number of times of the change operation of the sound size counted by the counter within the first predetermined period of time reaches a maximum threshold value of a first preset period of time.

Wherein, when it is determined that the number of times of the change operation of the statistical sound level within the first predetermined period of time reaches the first preset value, the step of automatically prohibiting the change operation of the sound level includes:

and when the frequency of the change operation of the statistical sound size in the first preset time period is judged to reach the maximum threshold value of the first preset time period, the change operation of the sound size is automatically forbidden.

Wherein, when it is determined that the number of times of the change operation of the statistical sound level within the first predetermined period of time reaches the first preset value, the step of automatically prohibiting the change operation of the sound level further includes:

when the operation of changing the sound size is detected and the number of times of changing the sound size in the first preset time period does not reach the maximum threshold value of the first preset time period value, the counter value is initialized to 0 for recounting.

Wherein the operation of automatically prohibiting the change of the sound level includes: when a command for sound setting is received, the sound setting operation is not performed, and the sound change detection operation is not processed.

The controlling of the automatically restoring sound level change includes: when a command for sound setting is received, the sound setting operation is resumed.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

In summary, the present invention discloses a method, an apparatus, a terminal device and a storage medium for processing a sound setting of a mobile terminal, wherein the method comprises: detecting whether a sound size changing operation exists through the mobile terminal, and counting whether the frequency of the sound size changing operation reaches a preset frequency maximum threshold value in a first preset time period when the sound size changing operation is detected; when the number of times of counting the sound size change operation within the first preset time period is judged to reach a preset maximum threshold value, automatically forbidding the sound size change; when no operation of a new sound level change is found after the sound level change is prohibited for the second predetermined period of time, the sound level change is automatically resumed. Therefore, the problem of excessive adjustment can be avoided when the sound is automatically adjusted in the mobile terminal, the sound is smoother, the user experience is improved, and convenience is provided for the user.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:亮度调节方法、装置、存储介质及终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类