Terminal control method and device, electronic equipment and storage medium

By acquiring the sound characteristics of the terminal environment and switching the noise reduction mode according to the noise frequency range, the problem of noise floor and noise impact in active noise reduction technology is solved, improving the user experience.

CN120065791APending Publication Date: 2025-05-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311618198.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When using active noise reduction technology for signal processing, the headset device may amplify the noise floor or introduce other noise, affecting the user experience.

Method used

By obtaining the sound characteristics of the environment in which the terminal is located, the target feature type of the noise frequency range is determined, and the noise reduction mode is switched according to this type to achieve self-adjustment of the noise reduction mode.

Benefits of technology

It reduces the impact of noise floor on users, improves user experience, and realizes self-adjustment of the noise reduction mode under different noise frequency ranges.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065791A_ABST
    Figure CN120065791A_ABST
Patent Text Reader

Abstract

The invention relates to a terminal control method and device, electronic equipment and a storage medium. A first sound feature of an environment where a terminal is located is acquired; according to the first sound feature, determining a target feature type representing an environmental noise frequency range; switching a noise reduction mode of the terminal according to the target feature type; by determining the feature type corresponding to the sound feature, the noise reduction mode of the terminal is adjusted according to different feature types, self-adjustment of the noise reduction mode in different noise frequency ranges is realized, the influence of bottom noise on a user is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of signal processing, and in particular, to a method, apparatus, electronic device, and storage medium for terminal control. Background Art

[0002] Active noise cancellation technology is one of the important functions of current headphone devices. With the continuous development of active noise cancellation technology, the effect of active noise cancellation is also constantly improving.

[0003] In related technologies, during the process of signal processing through active noise cancellation technology, the background noise of some devices in the headphone device will be amplified, or the noise of other devices will be introduced, affecting the user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, the present disclosure provides a method, apparatus, electronic device, and storage medium for terminal control.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a method for terminal control, the method including:

[0006] Obtain a first sound feature of the environment where the terminal is located;

[0007] Determine a target feature type representing the noise frequency range of the environment according to the first sound feature;

[0008] Switch the noise cancellation mode of the terminal according to the target feature type.

[0009] Optionally, the determining a target feature type representing the noise frequency range of the environment according to the first sound feature includes:

[0010] In a case where a target feature range corresponding to the first sound feature is determined from multiple preset feature ranges, determine the target feature type according to the target feature range.

[0011] Optionally, determining a target feature range corresponding to the first sound feature from multiple preset feature ranges includes:

[0012] Determine a candidate feature range corresponding to the first sound feature from multiple preset feature ranges;

[0013] Obtain multiple second sound features of the environment where the terminal is located within a preset time period;

[0014] In a case where it is determined that multiple second sound features are all within the candidate feature range, use the candidate feature range as the target feature range.

[0015] Optionally, determining the target feature type according to the target feature range includes:

[0016] Taking the feature type corresponding to the target feature range as the target feature type.

[0017] Optionally, determining the target feature type representing the ambient noise frequency range according to the first sound feature includes:

[0018] In the case where the target feature range corresponding to the first sound feature is not determined from multiple preset feature ranges, taking the feature type corresponding to the specified feature range as the target feature type; wherein, the specified feature range is a range specified by the user from multiple preset feature ranges; or, the specified feature range is the range among multiple preset feature ranges where the difference between the target boundary value and the feature value of the first sound feature is the smallest, and the target boundary value is the boundary value among the boundary values of the preset feature range with the smallest difference from the feature value.

[0019] Optionally, the method further includes:

[0020] Adjusting the specified feature range so that the first sound feature can be within the specified feature range.

[0021] Optionally, adjusting the specified feature range so that the first sound feature can be within the specified feature range includes:

[0022] Determining the difference between the feature value of the first sound feature and the target boundary value of the specified feature range;

[0023] Increasing the specified feature range according to the difference so that the first sound feature can be within the specified feature range.

[0024] Optionally, switching the noise reduction mode of the terminal according to the target feature type includes:

[0025] Determining a target noise reduction mode corresponding to the target feature type from multiple preset noise reduction modes; different target feature types correspond to different preset noise reduction modes;

[0026] Switching the noise reduction mode of the terminal to the target noise reduction mode.

[0027] According to a second aspect of the embodiments of the present disclosure, there is provided a device for controlling a terminal, the device includes:

[0028] An acquisition module, configured to acquire a first sound feature of the environment where the terminal is located;

[0029] A determination module, configured to determine a target feature type characterizing the ambient noise frequency range according to the first sound feature;

[0030] A switching module, configured to switch the noise reduction mode of the terminal according to the target feature type.

[0031] Optionally, the determination module is configured to, in a case where a target feature range corresponding to the first sound feature is determined from a plurality of preset feature ranges, determine the target feature type according to the target feature range.

[0032] Optionally, the determination module is configured to determine a candidate feature range corresponding to the first sound feature from a plurality of the preset feature ranges; obtain a plurality of second sound features of the environment where the terminal is located within a preset time period; and in a case where it is determined that the plurality of second sound features are all within the candidate feature range, use the candidate feature range as the target feature range.

[0033] Optionally, the determination module is configured to use the feature type corresponding to the target feature range as the target feature type.

[0034] Optionally, the determination module is configured to, in a case where the target feature range corresponding to the first sound feature is not determined from a plurality of the preset feature ranges, use the feature type corresponding to a specified feature range as the target feature type; wherein the specified feature range is a range specified by a user from a plurality of the preset feature ranges; or the specified feature range is a range among a plurality of the preset feature ranges where the difference between the target boundary value and the feature value of the first sound feature is the smallest, and the target boundary value is the boundary value among the boundary values of the preset feature range with the smallest difference from the feature value.

[0035] Optionally, the determination module is configured to adjust the specified feature range so that the first sound feature can be within the specified feature range.

[0036] Optionally, the determination module is configured to determine the difference between the feature value of the first sound feature and the target boundary value of the specified feature range; and increase the specified feature range according to the difference so that the first sound feature can be within the specified feature range.

[0037] Optionally, the switching module is configured to determine a target noise reduction mode corresponding to the target feature type from a plurality of preset noise reduction modes; different target feature types correspond to different preset noise reduction modes; and switch the noise reduction mode of the terminal to the target noise reduction mode.

[0038] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0039] a processor;

[0040] a memory for storing instructions executable by the processor;

[0041] wherein the processor is configured to perform the steps of the method for terminal control provided in the first aspect of the present disclosure when executed.

[0042] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method for terminal control provided in the first aspect of the present disclosure are implemented.

[0043] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0044] By determining the feature type corresponding to the sound feature, the noise reduction mode of the terminal is adjusted according to different feature types, realizing the self-adjustment of the noise reduction mode in different noise frequency ranges, reducing the influence of background noise on users, and improving the user experience.

[0045] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0047] Figure 1 is a scenario diagram of a method for terminal control shown according to an exemplary embodiment.

[0048] Figure 2 is a flowchart of a method for terminal control shown according to an exemplary embodiment.

[0049] Figure 3 is according to Figure 2 an exemplary embodiment of a flowchart of a method for terminal control shown.

[0050] Figure 4 is a flowchart of another method for terminal control shown according to an exemplary embodiment.

[0051] Figure 5 is a block diagram of a device for terminal control shown according to an exemplary embodiment.

[0052] Figure 6 is a block diagram of an electronic device shown according to an exemplary embodiment.

[0053] Figure 7 It is a block diagram of another electronic device shown according to an exemplary embodiment. Detailed implementation manners

[0054] Here, the exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0055] First, the application scenario of the present disclosure is introduced. The present disclosure is applied to the scenario of adjusting the noise reduction mode of a terminal. Exemplarily, the terminal may be a wireless earphone, a true wireless stereo (TWS) earphone, etc., which is not limited herein. Figure 1 It is a scenario diagram of a method for controlling a terminal shown according to an exemplary embodiment. The scenario includes a first terminal 110, a second terminal 120, a cellular base station 130, a WIFI access point 140, and a network 150. As Figure 1 shown, the first terminal 110 may be connected to the second terminal 120; the second terminal 120 may access the network 150 through the cellular base station 130 or the WIFI access point 140; the second terminal 120 may implement the function of audio playback through the first terminal 110. Among them, the first terminal 110 may be an earphone, and the second terminal 120 may be a mobile phone, a computer, etc., which is not limited herein.

[0056] Active noise reduction technology is one of the important functions of current earphone devices. With the continuous development of active noise reduction technology, the effect of active noise reduction is also continuously improved. In related technologies, during the process of signal processing through active noise reduction technology, the noise of the environment where the current earphone device is located can be obtained, the optimal noise reduction curve can be determined, and the noise reduction function of the earphone device can be realized by matching a corresponding filter to the noise. However, the above solution is mainly used to reduce environmental noise, and some background noise of devices in the earphone device will be amplified during the noise reduction process, or the noise of other devices will be introduced. The side effects of background noise on the user experience are not considered, which reduces the user experience.

[0057] Therefore, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for terminal control; by obtaining a first sound feature of the environment where the terminal is located; according to the first sound feature, determining a target feature type representing the frequency range of the ambient noise; according to the target feature type, switching the noise reduction mode of the terminal; by determining the feature type corresponding to the sound feature, thereby adjusting the noise reduction mode of the terminal according to different feature types, realizing the self - adjustment of the noise reduction mode in different noise frequency ranges, reducing the impact of background noise on users, and improving the user experience.

[0058] Figure 2 is a flowchart of a method for terminal control shown according to an exemplary embodiment, as Figure 2 shown, the method is used in a terminal and may include the following steps.

[0059] S201. Obtain a first sound feature of the environment where the terminal is located.

[0060] In some embodiments, the sound information of the environment where the terminal is located may be obtained; based on the spectrum of the sound information, the first sound feature is determined. Exemplarily, the terminal may be an earphone; the sound feature of the environment where it is located may be obtained through the microphone of the earphone. The first sound feature may include the duration of the sound, the loudness of the sound, and the frequency distribution of the sound.

[0061] S202. According to the first sound feature, determine a target feature type representing the frequency range of the ambient noise.

[0062] Exemplarily, the frequency range of the ambient noise may refer to the high and low of the noise frequency, such as high - frequency noise, medium - frequency noise, or low - frequency noise. The target feature type may include a high - frequency noise type, a medium - frequency noise type, or a low - frequency noise type.

[0063] In some embodiments, the above - mentioned determining a target feature type representing the frequency range of the ambient environment according to the first sound feature may include: in the case of determining a target feature range corresponding to the first sound feature from a plurality of preset feature ranges, determining the target feature type according to the target feature range. Exemplarily, the preset feature range may be determined according to the amplitude and frequency range of the sound.

[0064] In some embodiments, the amplitude range and frequency range of the sound can be divided into multiple intervals respectively; and multiple preset feature ranges can be determined according to the multiple intervals. For example, the amplitude range and frequency range of the sound can be divided into 5 intervals respectively, and the specific division results can be shown in Table 1 below. According to the multiple intervals, 25 preset feature ranges can be obtained, such as {(20 - 500Hz), (40 - 50dB)}, {(20 - 500Hz), (50 - 60dB)}, {(1200 - 2000Hz), (40 - 50dB)}, etc., which will not be elaborated here.

[0065] Table 1:

[0066]

[0067] The division of the above interval ranges can be set by the user according to actual needs. Here is just an example and no specific limitation is made.

[0068] In some other embodiments, determining the target feature range corresponding to the first sound feature from multiple preset feature ranges may include: determining a candidate feature range corresponding to the first sound feature from the multiple preset feature ranges; obtaining multiple second sound features of the environment where the terminal is located within a preset time period; and when it is determined that all the multiple second sound features are within the candidate feature range, taking the candidate feature range as the target feature range.

[0069] Exemplarily, the preset time period may be within the range of 1 - 3s, such as 1s, 1.5s, 2s, or 3s, etc., and no limitation is made here.

[0070] In some embodiments, determining the target feature type according to the target feature range may include: taking the feature type corresponding to the target feature range as the target feature type.

[0071] Exemplarily, the feature type corresponding to the target feature range can be determined from multiple preset feature types, and this feature type can be taken as the target feature type.

[0072] Among them, each preset feature range corresponds to a preset feature type. Exemplarily, the corresponding relationship between each preset feature range and each preset feature type can be determined through a first preset correspondence. The first preset correspondence can include the corresponding relationship between multiple preset feature ranges and one preset feature type; or, it can include the corresponding relationship between one preset feature range and one preset feature type. For example, as shown in Table 2 below, the preset feature range can include 6, namely A, B, C, D, E, and F; the preset feature type can include 3, namely Type One, Type Two, and Type Three; A, B, and C correspond to Type One; D and E correspond to Type Two; F corresponds to Type Three.

[0073] Table 2:

[0074] Preset feature type Preset feature range Type 1 A, B, C Type 2 D, E Type 3 F

[0075] In some other embodiments, determining the target feature type representing the environmental noise frequency range according to the first sound feature may include: in the case where the target feature range corresponding to the first sound feature is not determined from multiple preset feature ranges, taking the feature type corresponding to the specified feature range as the target feature type.

[0076] Among them, the specified feature range is the range specified by the user from multiple preset feature ranges; or, the specified feature range is the feature range among multiple preset feature ranges where the difference between the target boundary value and the feature value of the first sound feature is the smallest, and the target boundary value is the boundary value among the boundary values of the preset feature range with the smallest difference from the feature value.

[0077] Exemplarily, the preset feature range may include a first preset boundary value and a second preset boundary value; the first target difference between the feature value of the first sound feature and the first preset boundary value, and the second target difference between the feature value of the first sound feature and the second preset boundary value can be determined; determine the minimum value of the first target difference and the second target difference; take the boundary value corresponding to the minimum value as the target boundary value.

[0078] In some embodiments, the above method may further include: adjusting the specified feature range so that the first sound feature can be within the specified feature range.

[0079] In some other embodiments, the above adjusting the specified feature range so that the first sound feature can be within the specified feature range may include the following two methods:

[0080] Method One: Increase the specified feature range according to a preset value so that the first sound feature can be within the specified feature range.

[0081] Exemplarily, the preset value can be set by the user and is not limited herein. The boundary value of the specified feature range can be increased by the preset value so that the first sound feature can be within the second specified feature range.

[0082] In some embodiments, the specified feature range can be increased multiple times according to the preset value until the first sound feature can be within the second specified feature range. In this way, when the sound feature still cannot fall within the specified feature range after increasing the preset value once, the sound feature can be made to be within the specified feature range by increasing the boundary value of the specified feature range multiple times, thereby improving work efficiency.

[0083] In some other embodiments, when it is determined that the number of times of increasing the specified feature range is greater than or equal to the first preset number threshold, increasing the specified feature range can be stopped. Since increasing the boundary value of the feature range multiple times will affect the division of the overall range, setting the number threshold can reduce the impact on other feature ranges.

[0084] Method 2: Determine the difference between the feature value of the first sound feature and the target boundary value of the specified feature range; increase the specified feature range according to the difference so that the first sound feature can be within the specified feature range.

[0085] Exemplarily, the specified feature range can include a first boundary value and a second boundary value; the first difference between the feature value of the first sound feature and the first boundary value, and the second difference between the feature value of the first sound feature and the second boundary value can be determined; determine the minimum value of the first difference and the second difference; use the boundary value corresponding to the minimum value as the target boundary value. In this way, the specified feature range can be adjusted more accurately, improving work efficiency.

[0086] It should be noted that in the process of increasing the specified feature range according to the target boundary value, the specified feature range can be increased multiple times according to the target boundary value. The specific increasing method can be the same as that of increasing the specified feature range multiple times according to the preset value above and will not be elaborated herein.

[0087] Similarly, when it is determined that the number of times of increasing the specified feature range is greater than or equal to the second preset number threshold, increasing the specified feature range can be stopped. The specific method will not be elaborated herein.

[0088] S203. Switch the noise reduction mode of the terminal according to the target feature type.

[0089] By determining the feature type corresponding to the sound feature, the noise reduction mode of the terminal is adjusted according to different feature types, realizing the self-adjustment of the noise reduction mode in different noise frequency ranges, reducing the impact of background noise on the user, and improving the user experience.

[0090] Figure 3 is a flowchart of a method for terminal control shown according to an exemplary embodiment of Figure 2 . As shown in Figure 3 , the above step S203 may include:

[0091] S2031. Determine a target noise reduction mode corresponding to the target feature type from multiple preset noise reduction modes.

[0092] Among them, different target feature types correspond to different preset noise reduction modes. Exemplarily, the target feature type may include a high-frequency noise type, a medium-frequency noise type, or a low-frequency noise type; the noise reduction mode may include a mild noise reduction mode, an equalized noise reduction mode, or a deep noise reduction mode. The high-frequency noise type may correspond to the deep noise reduction mode, the medium-frequency noise type may correspond to the equalized noise reduction mode, and the low-frequency noise type may correspond to the mild noise reduction mode.

[0093] Exemplarily, the correspondence between each preset feature type and each preset noise reduction mode may be determined through a second preset correspondence relationship. Among them, multiple preset feature types may correspond to one preset noise reduction mode. For example, as shown in Table 3 below, the preset feature type may include Type One, Type Two, Type Three, Type Four, Type Five, and Type Six, and the preset noise reduction mode may include a mild noise reduction mode, an equalized noise reduction mode, and a deep noise reduction mode; Type One and Type Two may correspond to the mild noise reduction mode; Type Three, Type Four, and Type Five may correspond to the equalized noise reduction mode; Type Six may correspond to the deep noise reduction mode.

[0094] Table 3:

[0095] Preset noise reduction mode Preset feature type Light noise reduction mode Type 1, Type 2 Balanced noise reduction mode Type 3, Type 4, Type 5 Deep noise reduction mode Type 6

[0096] S2032. Switch the noise reduction mode of the terminal to the target noise reduction mode.

[0097] In this way, automatic switching of the terminal noise reduction mode can be achieved without manual switching of the noise mode; moreover, the matching of the noise reduction mode with the current scene where the terminal is located is realized, reducing the influence of background noise and other noises on the user perception and improving the user experience.

[0098] In some embodiments, the method may further include: when the target feature type representing the environmental noise frequency range cannot be determined according to the first sound feature, switching the noise reduction mode of the terminal to a specified noise reduction mode.

[0099] Exemplarily, the specified noise reduction mode may include a mild noise reduction mode, an equalized noise reduction mode, or a deep noise reduction mode. By the above method, the mode can be directly switched, so as to quickly adjust the noise reduction mode of the terminal and improve the user experience.

[0100] Figure 4 is a flowchart of another method for controlling a terminal shown according to an exemplary embodiment. Referring to Figure 4 , the method may include the following steps:

[0101] S401. Obtain a first sound feature of the environment where the terminal is located.

[0102] S402. Determine whether there is a target feature range corresponding to the first sound feature from multiple preset feature ranges.

[0103] If it is determined that the target feature range exists, execute steps S403 - S404; if the target feature range is not determined, execute step S405.

[0104] S403. Use the feature type corresponding to the target feature range as the target feature type.

[0105] S404. Use the feature type corresponding to the specified feature range as the target feature type.

[0106] Wherein, the specified feature range is a range specified by the user from multiple preset feature ranges; or, the specified feature range is the range in multiple preset feature ranges with the smallest difference between the target boundary value and the feature value of the first sound feature, and the target boundary value is the boundary value with the smallest difference from the feature value among the boundary values of the preset feature range.

[0107] S405. Determine a target noise reduction mode corresponding to the target feature type from multiple preset noise reduction modes.

[0108] Wherein, different target feature types correspond to different preset noise reduction modes.

[0109] S406. Switch the noise reduction mode of the terminal to the target noise reduction mode.

[0110] By determining the feature range where the sound feature is located, the scene classification of the sound feature is realized, so as to adjust the noise reduction mode of the terminal according to different scenes, realize the self - adjustment of the noise reduction mode in different scenes, reduce the influence of background noise on the user, and improve the user experience.

[0111] Figure 5 is a block diagram of a device for controlling a terminal shown according to an exemplary embodiment. Referring to Figure 5 , the device may include an acquisition module 510, a determination module 520, and a switching module 530;

[0112] The obtaining module 510 is configured to obtain a first sound feature of the environment where the terminal is located;

[0113] The determining module 520 is configured to determine a target feature type representing the noise frequency range of the environment where it is located according to the first sound feature;

[0114] The switching module 530 is configured to switch the noise reduction mode of the terminal according to the target feature type.

[0115] By determining the feature type corresponding to the sound feature, and thus adjusting the noise reduction mode of the terminal according to different feature types, the self-adjustment of the noise reduction mode in different noise frequency ranges is realized, the influence of the background noise on the user is reduced, and the user experience is improved.

[0116] Optionally, the determining module 520 is configured to determine the target feature type according to the target feature range in the case of determining the target feature range corresponding to the first sound feature from multiple preset feature ranges.

[0117] Optionally, the determining module 520 is configured to determine a candidate feature range corresponding to the first sound feature from multiple preset feature ranges; obtain multiple second sound features of the environment where the terminal is located within a preset time period; and in the case of determining that all the multiple second sound features are within the candidate feature range, use the candidate feature range as the target feature range.

[0118] Optionally, the determining module 520 is configured to use the feature type corresponding to the target feature range as the target feature type.

[0119] Optionally, the determining module 520 is further configured to, in the case of not determining the target feature range corresponding to the first sound feature from multiple preset feature ranges, use the feature type corresponding to the specified feature range as the target feature type; where the specified feature range is a range specified by the user from multiple preset feature ranges; or the specified feature range is the range in multiple preset feature ranges where the difference between the target boundary value and the feature value of the first sound feature is the smallest, and the target boundary value is the boundary value with the smallest difference from the feature value among the boundary values of the preset feature range.

[0120] Optionally, the determining module 520 is configured to adjust the specified feature range so that the first sound feature can be within the specified feature range.

[0121] Optionally, the determining module 520 is configured to determine the difference between the feature value of the first sound feature and the target boundary value of the specified feature range; and increase the specified feature range according to the difference so that the first sound feature can be within the specified feature range.

[0122] Optionally, the switching module 530 is configured to determine, from multiple preset noise reduction modes, a target noise reduction mode corresponding to the target feature type; different target feature types correspond to different preset noise reduction modes; and switch the noise reduction mode of the terminal to the target noise reduction mode.

[0123] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0124] In summary, the present disclosure provides a method, a device, an electronic device, and a storage medium for terminal control; by obtaining a first sound feature of the environment where the terminal is located; determining, according to the first sound feature, a target feature type representing the noise frequency range of the environment where the terminal is located; switching the noise reduction mode of the terminal according to the target feature type; by determining the feature type corresponding to the sound feature, thereby adjusting the noise reduction mode of the terminal according to different feature types, realizing the self-adjustment of the noise reduction mode in different noise frequency ranges, reducing the influence of background noise on the user, and improving the user experience.

[0125] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method for terminal control provided by the present disclosure are implemented.

[0126] Figure 6 FIG. is a block diagram of an electronic device 600 shown according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0127] Referring to Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input / output interface 612, a sensor component 614, and a communication component 616.

[0128] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above method for terminal control. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0129] The memory 604 is configured to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, and the like. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0130] The power supply component 606 provides power to various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.

[0131] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0132] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 further includes a speaker for outputting audio signals.

[0133] The input / output interface 612 provides an interface between the processing component 602 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a start button, and a lock button.

[0134] The sensor assembly 614 includes one or more sensors for providing status assessments of various aspects for the electronic device 600. For example, the sensor assembly 614 can detect the on / off state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600. The sensor assembly 614 can also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0135] The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0136] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method for terminal control.

[0137] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 604 including instructions, and the above instructions can be executed by the processor 620 of the electronic device 600 to complete the above-described method for terminal control. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0138] Figure 7is a block diagram of another electronic device 700 shown in accordance with an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Referring to Figure 7 , the electronic device 900 includes a processing component 722, which further includes one or more processors, and memory resources represented by a memory 732 for storing instructions executable by the processing component 722, such as application programs. The application programs stored in the memory 732 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the method of terminal control described above. The electronic device 900 may also include a power component 726 configured to perform power management of the electronic device 900, a wired or wireless network interface 750 configured to connect the electronic device 900 to a network, and an input / output interface 758. The electronic device 900 may operate based on an operating system stored in the memory 732, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or the like.

[0139] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0140] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A method for terminal control, characterized in that, applied to a terminal, the method includes: Obtain the first sound feature of the environment where the terminal is located; According to the first sound feature, determine the target feature type representing the noise frequency range of the environment; According to the target feature type, switch the noise reduction mode of the terminal.

2. The method according to claim 1, characterized in that, The determining the target feature type representing the noise frequency range of the environment according to the first sound feature includes: In the case of determining the target feature range corresponding to the first sound feature from multiple preset feature ranges, determine the target feature type according to the target feature range.

3. The method according to claim 2, characterized in that, Determining the target feature range corresponding to the first sound feature from multiple preset feature ranges includes: Determine the candidate feature range corresponding to the first sound feature from multiple preset feature ranges; Obtain multiple second sound features of the environment where the terminal is located within a preset time period; In the case of determining that all the multiple second sound features are within the candidate feature range, use the candidate feature range as the target feature range.

4. The method according to claim 2, characterized in that, The determining the target feature type according to the target feature range includes: Use the feature type corresponding to the target feature range as the target feature type.

5. The method according to claim 1, characterized in that, The determining the target feature type representing the noise frequency range of the environment according to the first sound feature includes: In the case of not determining the target feature range corresponding to the first sound feature from multiple preset feature ranges, use the feature type corresponding to the specified feature range as the target feature type; wherein, the specified feature range is the range specified by the user from multiple preset feature ranges; or, the specified feature range is the range among multiple preset feature ranges where the difference between the target boundary value and the feature value of the first sound feature is the smallest, and the target boundary value is the boundary value among the boundary values of the preset feature range with the smallest difference from the feature value.

6. The method according to claim 5, characterized in that, The method further includes: Adjust the specified feature range so that the first sound feature can be within the specified feature range.

7. The method according to claim 6, characterized in that, The adjusting the specified feature range so that the first sound feature can be within the specified feature range includes: Determine the difference between the feature value of the first sound feature and the target boundary value of the specified feature range; Increase the specified feature range according to the difference so that the first sound feature can be within the specified feature range.

8. The method according to any one of claims 1-7, characterized in that, The switching the noise reduction mode of the terminal according to the target feature type includes: Determine a target noise reduction mode corresponding to the target feature type from multiple preset noise reduction modes; different target feature types correspond to different preset noise reduction modes; Switch the noise reduction mode of the terminal to the target noise reduction mode.

9. A device for controlling a terminal, characterized in that, the device includes: an acquisition module configured to acquire a first sound feature of the environment where the terminal is located; a determination module configured to determine a target feature type representing the noise frequency range of the environment where it is located according to the first sound feature; a switching module configured to switch the noise reduction mode of the terminal according to the target feature type.

10. An electronic device, characterized in that, it includes: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to execute the steps of the method according to any one of claims 1-8 when executed.

11. A computer-readable storage medium, on which computer program instructions are stored, characterized in that, the program instructions implement the steps of the method according to any one of claims 1-8 when executed by a processor.