Noise reduction mode adjustment method, device, equipment and storage medium

By receiving mode switching commands and reading external environment values, and automatically judging and switching headphone noise reduction mode, the problem of untimely switching of noise reduction mode in the existing technology is solved and the user experience is improved.

CN114268878BActive Publication Date: 2025-05-30GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111569486.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2025-05-30
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

The prior art cannot automatically switch the noise reduction mode of the headphones in time to adapt to environmental changes, resulting in a poor user experience.

Method used

By receiving the mode switching command, read the current external environment value, and judge whether to switch the noise reduction mode based on the comparison of the value with the previous value and the number of reads.

Benefits of technology

It achieves the compatibility of the headphone operating mode and the external environment, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114268878B_ABST
    Figure CN114268878B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of earphones, and discloses a noise reduction mode adjustment method, device, equipment and storage medium. The method includes: after receiving a mode switching instruction sent by a target terminal; when the current external environment value is the same as the previous external environment value, and it is determined that the current external environment value is the target value according to the current value reading times and a preset times threshold, and the current operating mode of the target earphone is not the first noise reduction mode, adjusting the current operating mode to the first noise reduction mode according to the first noise reduction depth; since the present invention adjusts the current operating mode to the first noise reduction mode according to the first noise reduction depth when it is determined that the external environment value is the same as the previous external environment value, the current value reading times reaches the preset times threshold, and the current operating mode is not the first noise reduction mode, the current operating mode of the earphone fits the external environment, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of earphones, and particularly to a method, device, equipment and storage medium for adjusting a noise reduction mode. Background Art

[0002] With the popularization of intelligent products and the improvement of people's living standards, intelligent products have been widely used in people's daily lives, such as in places like subways, trains, airports, etc. However, the environment in these places is relatively noisy, and people hope to have a comfortable environment in such places. Generally, they wear earphones with noise reduction functions, which include TWS earphones, neckline earphones, and headband earphones. Since the noise in different environments is different, the noise reduction mode of the earphones needs to be switched in real time. However, the switching of the noise reduction mode of these earphones needs to be done manually. If the corresponding noise reduction mode fails to be switched in time when the environment changes, it will result in a poor user experience.

[0003] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of the present invention is to provide a method, device, equipment and storage medium for adjusting a noise reduction mode, aiming to solve the technical problem that the prior art cannot automatically switch the current operating mode of the earphone to a noise reduction mode that fits the environment in time, thereby resulting in a poor user experience.

[0005] To achieve the above purpose, the present invention provides a method for adjusting a noise reduction mode, and the method for adjusting the noise reduction mode includes the following steps:

[0006] After receiving a mode switching instruction sent by a target terminal, read the current external environment value of a first storage device according to the mode switching instruction;

[0007] When the current external environment value is the same as the previous external environment value, judge whether the current external environment value is a target value according to the current value reading times and a preset times threshold;

[0008] When the current external environment value is the target value, obtain the current operating mode of a target earphone;

[0009] When the current operating mode is not the first noise reduction mode, adjust the current operating mode to the first noise reduction mode according to the first noise reduction depth.

[0010] Optionally, the step of, when the current external environment value is the same as the previous external environment value, judging whether the current external environment value is a target value according to the current value reading times and a preset times threshold includes:

[0011] When the current external environment value is the same as the previous external environment value, count the current number of times the current external environment value is read;

[0012] When the current number of times of reading reaches a preset number threshold, determine whether the current external environment value is the target value.

[0013] Optionally, after counting the current number of times of reading the current external environment value when the current external environment value is the same as the previous external environment value, it further includes:

[0014] When the current number of times of reading does not reach the preset number threshold, add the current number of times of reading to the current number of times of reading;

[0015] When the environmental value corresponding to the accumulated current number of times of reading is the same as the current external environment value and the accumulated current number of times of reading reaches the preset number threshold, determine whether the current external environment value is the target value.

[0016] Optionally, after determining whether the current external environment value is the target value when the current number of times of reading reaches the preset number threshold, it further includes:

[0017] When the current environmental value is not the target value, obtain the current environmental value set of the second storage device;

[0018] Accumulate each environmental value in the current environmental value set to obtain the total target environmental value;

[0019] When the total target environmental value is less than the preset environmental threshold, determine whether the current operating mode of the target earphone is the second noise reduction mode;

[0020] When the current operating mode is not the second noise reduction mode, adjust the current operating mode to the second noise reduction mode according to the second noise reduction depth.

[0021] Optionally, after accumulating each environmental value in the current environmental value set to obtain the total target environmental value, it further includes:

[0022] When the total target environmental value is greater than or equal to the preset environmental threshold, determine whether the current operating mode of the target earphone is the third noise reduction mode;

[0023] When the current operating mode is not the third noise reduction mode, adjust the current operating mode to the third noise reduction mode according to the third noise reduction depth.

[0024] Optionally, after receiving the mode switching instruction sent by the target terminal and reading the current external environment value of the first storage device according to the mode switching instruction, the method further includes:

[0025] When the current external environment value is different from the previous external environment value, count the current number of times of reading the current external environment value;

[0026] Set the current number of times of reading to the target number of times, and continue to read the external environment value of the first storage device until the read external environment value is the same as the previous external environment value.

[0027] Optionally, after adjusting the current operating mode to the first noise reduction mode according to the first noise reduction depth when the current operating mode is not the first noise reduction mode, the method further includes:

[0028] Obtain a preset number of times reset instruction;

[0029] Reset the current number of times of reading according to the preset number of times reset instruction.

[0030] In addition, to achieve the above object, the present invention also provides a noise reduction mode adjustment device, the noise reduction mode adjustment device includes:

[0031] A reading module, configured to read the current external environment value according to the mode switching instruction after receiving the mode switching instruction sent by the target terminal;

[0032] A judgment module, configured to judge whether the current external environment value is the target value according to the current number of times of reading and the preset number of times threshold when the current external environment value is the same as the previous external environment value;

[0033] An obtaining module, configured to obtain the current operating mode of the target earphone when the current external environment value is the target value;

[0034] An adjustment module, configured to adjust the current operating mode to the first noise reduction mode according to the first noise reduction depth when the current operating mode is not the first noise reduction mode.

[0035] In addition, to achieve the above object, the present invention also provides a noise reduction mode adjustment device, the noise reduction mode adjustment device includes: a memory, a processor, and a noise reduction mode adjustment program stored on the memory and executable on the processor, the noise reduction mode adjustment program is configured to implement the noise reduction mode adjustment method as described above.

[0036] In addition, to achieve the above object, the present invention further provides a storage medium, on which a noise reduction mode adjustment program is stored. When the noise reduction mode adjustment program is executed by a processor, the noise reduction mode adjustment method as described above is implemented.

[0037] The noise reduction mode adjustment method proposed by the present invention, after receiving a mode switching instruction sent by a target terminal, reads the current external environment value of a first storage device according to the mode switching instruction; when the current external environment value is the same as the previous external environment value, it judges whether the current external environment value is a target value according to the current number of readings and a preset number threshold; when the current external environment value is the target value, it obtains the current operating mode of the target earphone; when the current operating mode is not the first noise reduction mode, it adjusts the current operating mode to the first noise reduction mode according to the first noise reduction depth; since the present invention adjusts the current operating mode to the first noise reduction mode according to the first noise reduction depth when it is determined that the external environment value is the same as the previous external environment value, the current number of readings reaches the preset number threshold, and the current operating mode is not the first noise reduction mode, the current operating mode of the earphone fits the external environment, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a schematic structural diagram of a noise reduction mode switching device in a hardware operating environment related to an embodiment of the present invention;

[0039] Figure 2 is a flowchart of a first embodiment of the noise reduction mode switching method of the present invention;

[0040] Figure 3 is a flowchart of a second embodiment of the noise reduction mode switching method of the present invention;

[0041] Figure 4 is an overall flowchart of an embodiment of the noise reduction mode switching method of the present invention;

[0042] Figure 5 is a flowchart of a third embodiment of the noise reduction mode switching method of the present invention;

[0043] Figure 6 is a schematic diagram of functional modules of a first embodiment of the noise reduction mode switching device of the present invention.

[0044] The implementation, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] Reference Figure 1 , Figure 1 is a schematic structural diagram of a noise reduction mode adjustment device for the hardware operating environment involved in the solution of the embodiment of the present invention.

[0047] As shown in Figure 1 , the noise reduction mode adjustment device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless-fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Those skilled in the art can understand that Figure 1 the structure shown in

[0049] does not constitute a limitation on the noise reduction mode adjustment device, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Figure 1 As shown in

[0050] In the noise reduction mode adjustment device shown in Figure 1 , the network interface 1004 is mainly used for data communication with a network integrated platform workstation; the user interface 1003 is mainly used for data interaction with users; the processor 1001 and the memory 1005 in the noise reduction mode adjustment device of the present invention may be provided in the noise reduction mode adjustment device. The noise reduction mode adjustment device calls the noise reduction mode adjustment program stored in the memory 1005 through the processor 1001 and executes the noise reduction mode adjustment method provided by the embodiment of the present invention.

[0051] Based on the above hardware structure, an embodiment of the noise reduction mode adjustment method of the present invention is proposed.

[0052] Reference Figure 2 ,Figure 2 Schematic flowchart of the first embodiment of the noise reduction mode adjustment method of the present invention.

[0053] In the first embodiment, the noise reduction mode adjustment method includes the following steps:

[0054] Step S10, after receiving the mode switching instruction sent by the target terminal, read the current external environment value of the first storage device according to the mode switching instruction.

[0055] It should be noted that the execution subject of this embodiment is a noise reduction mode adjustment device, and it can also be other devices that can achieve the same or similar functions, such as a headphone processor, etc. This embodiment does not limit this. In this embodiment, a headphone processor is used as an example for illustration.

[0056] It should be understood that the mode switching instruction refers to an instruction for switching the noise reduction mode of the headphone. This mode switching instruction is sent by the target terminal through wireless transmission. The target terminal can be a mobile terminal device, such as a mobile phone, a tablet computer, and other electronic devices. The wireless transmission can be Bluetooth transmission or other wireless transmissions. This embodiment does not limit this. Taking a mobile phone and Bluetooth transmission as an example for illustration, specifically: after the target terminal is connected to the target headphone, the mode switching instruction is sent to the target headphone through Bluetooth transmission.

[0057] It can be understood that the current external environment value refers to the value of the external environment where the target headphone is located. Whether the current noise reduction mode of the target headphone meets the user's needs is judged through this current external environment value. The first storage device refers to a storage device that stores the external environment value in real time. This first storage device is Flag1.

[0058] Step S20, when the current external environment value is the same as the previous external environment value, judge whether the current external environment value is the target value according to the current value reading times and the preset times threshold.

[0059] It can be understood that the previous external environment value refers to the environmental value read last time of the current external environment value. For example, if the current external environment value is the second time, then the previous external environment value is read for the first time. After obtaining the current external environment value and the previous external environment value, judge whether the current external environment value and the previous external environment value are the same. If so, it indicates that the current external environment is relatively stable.

[0060] It should be understood that the preset environmental count threshold refers to the maximum number of times to read the current external environment, and the current value reading count refers to the current number of times to read the external environment. After determining the current external environment value and the previous external environment value, it is also necessary to determine whether the current value reading count reaches the preset environmental count threshold. If so, it indicates that it is the last time to read the external environment value from the first storage device, and then continue to determine whether the current environment value is the target value. If not, increment the current value reading count by one and then return to determine whether the read value is consistent with the current external environment value again.

[0061] Step S30, when the current external environment value is the target value, obtain the current operating mode of the target earphone.

[0062] It should be understood that the target value refers to a set specific value. When it is determined that the current external environment value is the target value, it is necessary to obtain the current operating mode of the target earphone, and this current operating mode refers to the current noise reduction mode when the target earphone is operating.

[0063] Step S40, when the current operating mode is not the first noise reduction mode, adjust the current operating mode to the first noise reduction mode according to the first noise reduction depth.

[0064] It can be understood that the first noise reduction mode refers to the noise reduction mode in which the target earphone is most suitable for the current external environment. After obtaining the current operating mode of the target earphone, determine whether the current operating mode is the first noise reduction mode. If not, switch the noise reduction mode of the target earphone from the current operating mode to the first noise reduction mode according to the first noise reduction depth.

[0065] It should be understood that the depths of the first noise reduction mode, the second noise reduction depth, and the third noise reduction depth are different when adjusting the current operating mode of the target earphone. That is, when the adjustment depth is the first noise reduction depth, adjust the current operating mode to the first noise reduction mode; when the adjustment depth is the second noise reduction depth, adjust the current operating mode to the second noise reduction mode; and when the adjustment depth is the third noise reduction mode, adjust the current operating mode to the third noise reduction mode.

[0066] Further, after step S40, it further includes: obtaining a preset count reset instruction; resetting the current value reading count according to the preset count reset instruction.

[0067] It should be understood that the preset count reset instruction refers to an instruction to reset the current value reading count. After switching the current operating mode of the target earphone to the noise reduction mode most suitable for the current external environment, it is necessary to reset the current value reading count to 0.

[0068] In this embodiment, after receiving a mode switching instruction sent by a target terminal, the current external environment value of a first storage device is read according to the mode switching instruction; when the current external environment value is the same as the previous external environment value, it is determined whether the current external environment value is a target value according to the current value reading count and a preset count threshold; when the current external environment value is the target value, the current operating mode of a target earphone is obtained; when the current operating mode is not the first noise reduction mode, the current operating mode is adjusted to the first noise reduction mode according to a first noise reduction depth; since in this embodiment, when it is determined that the external environment value is the same as the previous external environment value, the current value reading count reaches the preset count threshold, and the current operating mode is not the first noise reduction mode, the current operating mode is adjusted to the first noise reduction mode according to the first noise reduction depth, so that the current operating mode of the earphone fits the external environment, thereby improving the user experience.

[0069] In one embodiment, as Figure 3 described, based on the first embodiment, a second embodiment of the noise reduction mode adjustment method of the present invention is proposed. After the step S10, it further includes:

[0070] Step S101, when the current external environment value is different from the previous external environment value, count the current value reading count of reading the current external environment value.

[0071] It should be understood that the current value reading count refers to the number of times of the current external environment value. The current value reading count is not less than two. When it is determined that the current external environment value is different from the previous external environment value, it is necessary to count the number of times of reading the current external environment value to obtain the current value reading count.

[0072] Step S102, set the current value reading count as the target count, and continue to read the external environment value of the first storage device until the read external environment value is the same as the previous external environment value.

[0073] It can be understood that the target count refers to the number of times of setting the current value reading count. The target count is one time. After setting the current value reading count as the target count, continue to read the external environment value stored in the first storage device, and then continue to determine whether the external environment value is the same as the previous external environment value. If not, continue to set the current value reading count as the target count until the read external environment value is the same as the previous external environment value.

[0074] Refer to Figure 4 , Figure 4Schematic diagram of the overall process for noise reduction switching of the target earphone. Specifically: after receiving the mode switching instruction sent by the target terminal, read the current external environment value of the first storage device, and determine whether it is the first time to read the value. If so, increment the current value reading count by one. If not, determine whether the current external environment value is the same as the previous external environment value. If not, set the current value reading count to one. If so, determine whether the current value reading count is the preset count threshold. If so, continue to determine whether the current external environment value is the target value. If so, obtain the current operating mode of the target earphone, and determine whether the current operating mode is the first noise reduction mode. If not, switch the current operating mode to the first noise reduction mode. If the current external environment value is not the target value, accumulate the environmental values in the current environmental value set to obtain the total target environmental value, and then determine whether the total target environmental value is less than the preset environmental threshold. If so, determine whether the current operating mode of the target earphone is the second noise reduction mode. If not, switch the current operating mode to the second noise reduction mode. If the total target environmental value is greater than or equal to the preset environmental threshold, determine whether the current operating mode of the target earphone is the third noise reduction mode. If not, switch the current operating mode to the third noise reduction mode.

[0075] In this embodiment, when the current external environment value is different from the previous external environment value, the current value reading count of reading the current external environment value is statistically counted; the current value reading count is set as the target count, and the external environment value of the first storage device is continuously read until the read external environment value is the same as the previous external environment value; since in this embodiment, when the current external environment value is different from the previous external environment value, the number of times of reading the current external environment value is statistically counted, and then the statistically counted current value reading count is set as the target count, and the external environment value of the first storage device is continuously read until the read external environment value is the same as the previous external environment value, thereby effectively improving the accuracy of obtaining the noise reduction mode suitable for the external environment.

[0076] In one embodiment, as Figure 5 described, based on the first embodiment, the third embodiment of the noise reduction mode adjustment method of the present invention is proposed. The step S20 includes:

[0077] Step S201, when the current external environment value is the same as the previous external environment value, statistically count the current value reading count of reading the current external environment value.

[0078] It should be understood that after obtaining the current external environment value, it is determined whether the current environmental value is the same as the previous external environment value. If so, the number of times of reading the current external environment value is statistically counted to obtain the current value reading count.

[0079] Further, after step S201, the following steps are also included: when the current number of times of reading the value has not reached the preset number threshold, adding the current number of readings to the current number of times of reading the value; when the environmental value corresponding to the accumulated current number of times of reading the value is consistent with the current external environmental value and the accumulated current number of times of reading the value reaches the preset number threshold, determining whether the current external environmental value is the target value.

[0080] It can be understood that when it is determined that the current number of times of reading the value has not reached the preset number threshold, it indicates that this is not the last time to read the external environmental value from the first storage device. At this time, the current number of times of reading the value is incremented by one. For example, if the current number of times of reading the value is two, the current number of times of reading the value after incrementing is three. After obtaining the accumulated current number of times of reading the value, the previous external environmental value at this time becomes the current external environmental value, and then it is continued to determine whether the external environmental value corresponding to the accumulated current number of times of reading the value is consistent with the current external environmental value. If they are consistent, it is continued to determine whether the accumulated current number of times of reading the value reaches the preset number threshold. If so, it is continued to determine whether the current external environmental value is the target value.

[0081] It can be understood that after obtaining the current number of times of reading the value, it is determined whether the current number of times of reading the value reaches the preset number threshold, that is, whether it is the last time to read the external environmental value from the first storage device. If so, it is necessary to continue to determine whether the current external environmental value is the target value.

[0082] Further, after step S202, the following steps are also included: when the current environmental value is not the target value, obtaining the current environmental value set of the second storage device; adding up the environmental values in the current environmental value set to obtain the total target environmental value; when the total target environmental value is less than the preset environmental threshold, determining whether the current operating mode of the target earphone is the second noise reduction mode; when the current operating mode is not the second noise reduction mode, switching the current operating mode to the second noise reduction mode according to the second noise reduction depth.

[0083] It should be understood that the second storage device refers to a storage device that stores the values of the external environment in real time. The second storage device is Flag2, and the second noise reduction mode refers to the noise reduction mode in which the target earphone is most suitable for the current external environment. When it is determined that the current environmental value is not the target value, the current environmental value set of the second storage device is obtained. The target total environmental value refers to the sum of the environmental values in the current environmental value set. For example, if the current environmental value set includes environmental values A, B, and C, the target total environmental value is A + B + C at this time. After obtaining the target total environmental value, it is necessary to determine whether the target total environmental value is less than the preset environmental threshold. If so, it is necessary to further determine whether the current operating mode of the target earphone is the second noise reduction mode. If not, the noise reduction mode of the target earphone is adjusted from the current operating mode to the second noise reduction mode according to the second noise reduction depth. If so, the target earphone continues to operate according to the current operating mode, and the current value reading count is reset to 0.

[0084] Further, after accumulating the environmental values in the current environmental value set to obtain the target total environmental value, it further includes: when the target total environmental value is greater than or equal to the preset environmental threshold, determining whether the current operating mode of the target earphone is the third noise reduction mode; when the current operating mode is not the third noise reduction mode, adjusting the current operating mode to the third noise reduction mode according to the third noise reduction depth.

[0085] It can be understood that when it is determined that the target total environmental value is greater than or equal to the preset environmental threshold, it is necessary to further determine whether the current operating mode of the target earphone is the third noise reduction mode. At this time, the third noise reduction mode is the noise reduction mode most suitable for the current external environment. If so, the target earphone continues to operate according to the current operating mode, and the current value reading count is reset to 0. If not, the noise reduction mode of the target earphone is adjusted from the current operating mode to the third noise reduction mode according to the third noise reduction depth.

[0086] In this embodiment, when the current external environmental value is the same as the previous external environmental value, the current value reading count of reading the current external environmental value is statistically counted; when the current value reading count reaches the preset count threshold, it is determined whether the current external environmental value is the target value; since in this embodiment, when the current external environmental value is the same as the previous external environmental value, the number of times of reading the current external environmental value is statistically counted, and then it is further determined whether the current value reading count reaches the preset count threshold. If so, it is further determined whether the current external environmental value is the target value, thereby effectively improving the accuracy of determining the noise reduction mode that fits the external environment.

[0087] In addition, an embodiment of the present invention further provides a storage medium, on which a noise reduction mode adjustment program is stored. When the noise reduction mode adjustment program is executed by a processor, the steps of the noise reduction mode adjustment method described above are implemented.

[0088] Since this storage medium adopts all the technical solutions of the above-mentioned all embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be elaborated here one by one.

[0089] In addition, referring to Figure 6 , an embodiment of the present invention further provides a noise reduction mode adjustment device, which includes:

[0090] A reading module 10, configured to read the current external environment value according to the mode switching instruction after receiving the mode switching instruction sent by the target terminal.

[0091] A judgment module 20, configured to judge whether the current external environment value is a target value according to the current value reading times and a preset number threshold when the current external environment value is the same as the previous external environment value.

[0092] An obtaining module 30, configured to obtain the current operating mode of the target earphone when the current external environment value is the target value.

[0093] An adjustment module 40, configured to adjust the current operating mode to the first noise reduction mode according to the first noise reduction depth when the current operating mode is not the first noise reduction mode.

[0094] In this embodiment, after receiving the mode switching instruction sent by the target terminal, the current external environment value of the first storage device is read according to the mode switching instruction; when the current external environment value is the same as the previous external environment value, it is judged whether the current external environment value is the target value according to the current value reading times and a preset number threshold; when the current external environment value is the target value, the current operating mode of the target earphone is obtained; when the current operating mode is not the first noise reduction mode, the current operating mode is adjusted to the first noise reduction mode according to the first noise reduction depth; since in this embodiment, when it is determined that the external environment value is the same as the previous external environment value, and the current value reading times reaches the preset number threshold, and the current operating mode is not the first noise reduction mode, the current operating mode is adjusted to the first noise reduction mode according to the first noise reduction depth, so that the current operating mode of the earphone fits the external environment, thereby improving the user experience.

[0095] It should be noted that the above-described work process is only illustrative and does not limit the protection scope of the present invention. In actual applications, those skilled in the art can select some or all of them according to actual needs to achieve the purpose of the solution of this embodiment, and no limitation is made here.

[0096] In addition, for the technical details not described in detail in this embodiment, reference can be made to the noise reduction mode adjustment method provided in any embodiment of the present invention, and details will not be repeated here.

[0097] In one embodiment, the reading module 10 is further configured to, when the current external environment value is different from the previous external environment value, count the current number of times of reading the current external environment value; set the current number of times of reading as the target number of times, and continue to read the external environment value of the first storage device until the read external environment value is the same as the previous external environment value.

[0098] In one embodiment, the judgment module 20 is further configured to, when the current external environment value is the same as the previous external environment value, count the current number of times of reading the current external environment value; when the current number of times of reading reaches a preset number of times threshold, judge whether the current external environment value is the target value.

[0099] In one embodiment, the judgment module 20 is further configured to, when the current number of times of reading does not reach the preset number of times threshold, add the current number of times of reading to the current number of times of reading; when the environmental value corresponding to the accumulated current number of times of reading is the same as the current external environment value and the accumulated current number of times of reading reaches the preset number of times threshold, judge whether the current external environment value is the target value.

[0100] In one embodiment, the judgment module 20 is further configured to, when the current environmental value is not the target value, obtain the current environmental value set of the second storage device; accumulate each environmental value in the current environmental value set to obtain the total target environmental value; when the total target environmental value is less than the preset environmental threshold, judge whether the current operating mode of the target earphone is the second noise reduction mode; when the current operating mode is not the second noise reduction mode, adjust the current operating mode to the second noise reduction mode according to the second noise reduction depth.

[0101] In one embodiment, the judgment module 20 is further configured to, when the total target environmental value is greater than or equal to the preset environmental threshold, judge whether the current operating mode of the target earphone is the third noise reduction mode; when the current operating mode is not the third noise reduction mode, adjust the current operating mode to the third noise reduction mode according to the third noise reduction depth.

[0102] In one embodiment, the adjustment module 40 is further configured to obtain a preset number of reset instructions; and reset the current number of value reading times according to the preset number of reset instructions.

[0103] For other embodiments of the noise reduction mode adjustment device of the present invention or implementation methods, reference may be made to the above method embodiments, and details are not repeated here.

[0104] In addition, it should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or system including the element.

[0105] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0106] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory (ROM) / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which may be a mobile phone, a computer, an integrated platform workstation, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0107] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A noise reduction mode adjustment method, characterized in that, the noise reduction mode adjustment method includes the following steps: After receiving a mode switching instruction sent by a target terminal, read the current external environment value of a first storage device according to the mode switching instruction; When the current external environment value is the same as the previous external environment value, determine whether the current external environment value is a target value according to the current value reading times and a preset number threshold; When the current external environment value is the target value, obtain the current operating mode of the target earphone; When the current operating mode is not the first noise reduction mode, adjust the current operating mode to the first noise reduction mode according to the first noise reduction depth; After determining whether the current external environment value is a target value according to the current value reading times and a preset number threshold when the current external environment value is the same as the previous external environment value, further includes: When the current external environment value is not the target value, obtain the current environment value set of a second storage device; Accumulate each environment value in the current environment value set to obtain a target total environment value; When the target total environment value is less than a preset environment threshold, determine whether the current operating mode of the target earphone is the second noise reduction mode; When the current operating mode is not the second noise reduction mode, adjust the current operating mode to the second noise reduction mode according to the second noise reduction depth.

2. The noise reduction mode adjustment method according to claim 1, characterized in that, determining whether the current external environment value is a target value according to the current value reading times and a preset number threshold when the current external environment value is the same as the previous external environment value includes: When the current external environment value is the same as the previous external environment value, count the current value reading times of reading the current external environment value; When the current value reading times reach the preset number threshold, determine whether the current external environment value is a target value.

3. The noise reduction mode adjustment method according to claim 2, characterized in that, after counting the current value reading times of reading the current external environment value when the current external environment value is the same as the previous external environment value, further includes: When the current value reading times do not reach the preset number threshold, add the current reading times to the current value reading times; When the environment value corresponding to the accumulated current value reading times is the same as the current external environment value and the accumulated current value reading times reach the preset number threshold, determine whether the current external environment value is a target value.

4. The noise reduction mode adjustment method according to claim 1, characterized in that, after accumulating each environment value in the current environment value set to obtain a target total environment value, further includes: When the target total environment value is greater than or equal to the preset environment threshold, determine whether the current operating mode of the target earphone is the third noise reduction mode; When the current operating mode is not the third noise reduction mode, adjust the current operating mode to the third noise reduction mode according to the third noise reduction depth.

5. The noise reduction mode adjustment method according to claim 1, wherein, after receiving the mode switching instruction sent by the target terminal and reading the current external environment value of the first storage device according to the mode switching instruction, it further includes: when the current external environment value is different from the previous external environment value, counting the current number of times of reading the current external environment value; setting the current number of times of reading to the target number of times, and continuing to read the external environment value of the first storage device until the read external environment value is the same as the previous external environment value.

6. The noise reduction mode adjustment method according to any one of claims 1 to 5, wherein, after adjusting the current operating mode to the first noise reduction mode according to the first noise reduction depth when the current operating mode is not the first noise reduction mode, it further includes: obtaining a preset number of times reset instruction; resetting the current number of times of reading according to the preset number of times reset instruction.

7. A noise reduction mode adjustment device, wherein, the noise reduction mode adjustment device includes: a reading module, configured to read the current external environment value according to the mode switching instruction after receiving the mode switching instruction sent by the target terminal; a judgment module, configured to judge whether the current external environment value is the target value according to the current number of times of reading and the preset number of times threshold when the current external environment value is the same as the previous external environment value; an obtaining module, configured to obtain the current operating mode of the target earphone when the current external environment value is the target value; an adjustment module, configured to adjust the current operating mode to the first noise reduction mode according to the first noise reduction depth when the current operating mode is not the first noise reduction mode; the judgment module is further configured to, when the current external environment value is not the target value, obtain the current environment value set of the second storage device; accumulate each environment value in the current environment value set to obtain the total target environment value; when the total target environment value is less than the preset environment threshold, judge whether the current operating mode of the target earphone is the second noise reduction mode; when the current operating mode is not the second noise reduction mode, adjust the current operating mode to the second noise reduction mode according to the second noise reduction depth.

8. A noise reduction mode adjustment device, wherein, the noise reduction mode adjustment device includes: a memory, a processor, and a noise reduction mode adjustment program stored on the memory and executable on the processor, and the noise reduction mode adjustment program is configured to implement the noise reduction mode adjustment method according to any one of claims 1 to 6.

9. A storage medium, wherein, a noise reduction mode adjustment program is stored on the storage medium, and when the noise reduction mode adjustment program is executed by a processor, it implements the noise reduction mode adjustment method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Earphone noise reduction method and device, earphone and medium

    CN112055279A