Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a first flowchart of a noise reduction parameter debugging method for a noise reduction headphone according to an embodiment of the present application. As shown in fig. 1, a noise reduction parameter debugging method for a noise reduction headphone is applied to a noise reduction parameter debugging device for a noise reduction headphone, and the method includes the following steps:
step 101, receiving noise reduction parameter adjustment input of an earphone.
The headphone noise reduction parameter adjustment input is used to adjust headphone noise reduction parameters.
Optionally, the receiving of the headphone noise reduction parameter adjustment input includes: a key input is received. Wherein different key inputs correspond to different earphone noise reduction parameter adjustment instructions.
The noise reduction parameter debugging device of the noise reduction earphone comprises an entity key board or a virtual key board. The tester realizes different parameter adjustment instruction input through a keyboard. The key input is a key input from a local machine (i.e. the local machine of the noise reduction parameter debugging device).
In the case where receiving the headphone noise reduction parameter adjustment input includes receiving a key input, in a specific implementation, the different key inputs include different operation inputs on one key or the same operation input on different keys.
The different operation inputs and the same operation input respectively include: single click input, double click input, multi-click input, long press input, etc.
Alternatively, the receiving a headphone noise reduction parameter adjustment input comprises:
receiving a serial port input; wherein different serial port inputs correspond to different earphone noise reduction parameter adjustment instructions. The serial port is connected with an external terminal; the serial port input is input from an external terminal, so that debugging control of the noise reduction parameter debugging device local machine by other terminals connected with the noise reduction parameter debugging device is realized.
Further, as an optional implementation manner, the foregoing earphone noise reduction parameter adjustment input is used to adjust parameters capable of achieving noise reduction in the earphone, for example: adjusting a noise reduction mode of the earphone, adjusting a gain value of a microphone in the earphone, and adjusting a frequency point of a filter.
Correspondingly, the headphone noise reduction parameter adjustment input comprises at least one of:
an adjustment input for a gain value of the microphone;
adjusting and inputting the frequency point of the filter;
switching inputs of different headphone noise reduction modes, wherein the headphone noise reduction modes include: a feedforward noise reduction mode, a feedback noise reduction mode, or a mixed feedforward and feedback mode.
And 102, responding to the noise reduction parameter adjustment input of the earphones, and adjusting the current noise reduction parameters of the inserted earphones into target noise reduction parameters.
Wherein the headset is selectable as a noise reducing headset with analog input.
And after receiving the noise reduction parameter adjustment input of the earphone, adjusting the noise reduction parameter of the plugged earphone in response to the noise reduction parameter adjustment input of the earphone.
Specifically, the earphone includes an analog access interface, specifically a female socket of a jack, the female socket of the jack may be a four-section interface or a five-section interface, and the jack (analog access interface) in the earphone includes: the device comprises a grounding interface, a left sound channel interface, a right sound channel interface and a debugging interface; the debugging interface is used for debugging noise reduction parameters.
The debug interface may be an ADC (analog to digital converter) interface. Different earphone noise reduction parameter adjustment inputs can correspond to different voltage inputs, and different voltage inputs can be carried out through an ADC interface, so that corresponding different noise reduction parameter adjustment instructions can be input. The microprocessor in the earphone recognizes the input of different noise reduction parameter adjusting instructions by detecting the input different voltages, and then changes the noise reduction parameters.
Specifically, the earphone is connected to a plug-in interface in the earphone through an analog input line, and the adjustment control of the noise reduction parameters of the earphone is realized through a debugging interface in the earphone.
Wherein the adjustment of the current noise reduction parameters of the headphone may be an increasing adjustment or a decreasing adjustment over a reference value.
And 103, acquiring noise reduction result data of the earphone after the noise reduction parameters are adjusted.
The noise reduction result data is specifically noise reduction result data obtained by collecting and analyzing the audio output by the earphone after the noise reduction parameters are adjusted.
As a preferred embodiment, the step 103 of obtaining noise reduction result data of the earphone after adjusting the noise reduction parameters includes:
acquiring audio data and environmental noise data output by the earphone after noise reduction parameter adjustment;
and generating noise reduction result data of the earphone based on the audio data and the environmental noise data.
Based on the collected audio data and the environmental noise data, the simulated human ear obtains sounds which can be heard after the audio data and the environmental noise data are superposed and offset, the sounds are analyzed, a noise reduction curve is generated, and noise reduction result data are obtained.
And 104, if the noise reduction result data is in accordance with the set noise reduction index, determining the target noise reduction parameter as the optimal noise reduction parameter.
And under the condition that the noise reduction result data are judged to accord with the set values, the target noise reduction parameters obtained by the previous adjustment are considered to be ideal noise reduction parameters, and the debugging test of the noise reduction parameters of the earphone and the determination of the optimal parameters are realized.
Further, optionally, after determining that the target noise reduction parameter is the optimal noise reduction parameter in step 104, the method further includes: and displaying the optimal noise reduction parameters.
The real-time feedback of the noise reduction effect in the noise reduction parameter debugging process is realized, and debugging personnel can conveniently check and monitor the debugging result.
Further, after acquiring the noise reduction result data of the earphone after the noise reduction parameter adjustment in step 103, the method further includes: and if the noise reduction result data is not in accordance with the set noise reduction index, returning to the step of executing the noise reduction parameter adjustment input of the receiving earphone, namely step 101. The repeated and cyclic execution process of the whole debugging process is realized, and the determination of the optimal noise reduction parameter is conveniently realized through continuous parameter debugging.
In the embodiment of the application, the current noise reduction parameter of the inserted earphone is adjusted to be the target noise reduction parameter through the received earphone noise reduction parameter adjustment input, based on the obtained noise reduction result data of the noise reduction earphone, when the noise reduction result data conforms to the set noise reduction index, the target noise reduction parameter is determined to be the optimal noise reduction parameter, the noise reduction parameter of each finished product noise reduction earphone is tested, the stability and the consistency of the noise reduction effect of the finished product noise reduction earphone are ensured, and the noise reduction quality of the earphone is ensured.
The embodiment of the application also provides different implementation modes of the noise reduction parameter debugging method of the noise reduction earphone.
Referring to fig. 2, fig. 2 is a second flowchart of a noise reduction parameter debugging method for a noise reduction headphone according to an embodiment of the present application. As shown in fig. 2, a noise reduction parameter debugging method for a noise reduction headphone includes the following steps:
step 201, receiving the noise reduction parameter adjustment input of the earphone.
This step is the same as the implementation process of step 101 in the foregoing embodiment, and is not described here again.
And 202, responding to the noise reduction parameter adjustment input of the earphones, and adjusting the current noise reduction parameters of the inserted earphones into target noise reduction parameters.
This step is the same as the implementation process of step 102 in the foregoing embodiment, and is not described here again.
And 203, acquiring noise reduction result data of the earphone after noise reduction parameter adjustment.
This step is the same as the implementation process of step 103 in the foregoing embodiment, and is not described here again.
And 204, if the noise reduction result data is in accordance with the set noise reduction index, determining the target noise reduction parameter as an optimal noise reduction parameter.
This step is the same as the implementation process of step 104 in the foregoing embodiment, and is not described here again.
Further, optionally, after determining that the target noise reduction parameter is the optimal noise reduction parameter in step 204, the method further includes:
and 205, writing the optimal noise reduction parameters into a noise reduction chip of the earphone.
Specifically, the noise reduction chip may specifically be a DSP (digital signal processing) chip.
When the noise reduction effect meets the design requirement, the optimal result can be displayed, a storage instruction input by a user based on display content is obtained, and a specific user can input the storage instruction through a storage key, so that the noise reduction parameter debugging device of the noise reduction earphone stores the currently set parameters and finally writes the parameters into the noise reduction chip of the earphone, and the purpose of adjusting the noise elimination of each machine is achieved.
In the embodiment of the application, the current noise reduction parameter of the inserted earphone is adjusted to be the target noise reduction parameter through the received earphone noise reduction parameter adjustment input, based on the obtained noise reduction result data of the noise reduction earphone, when the noise reduction result data conforms to the set noise reduction index, the target noise reduction parameter is determined to be the optimal noise reduction parameter, the noise reduction parameter of each finished product noise reduction earphone is tested, the stability and the consistency of the noise reduction effect of the finished product noise reduction earphone are ensured, and the noise reduction quality of the earphone is ensured.
Fig. 3 is a structural diagram of a noise reduction parameter adjusting apparatus of a noise reduction headphone according to an embodiment of the present application, and only a part related to the embodiment of the present application is shown for convenience of description.
The noise reduction parameter debugging apparatus 300 of the noise reduction headphone includes:
a receiving module 301, configured to receive an earphone noise reduction parameter adjustment input;
a parameter adjusting module 302, configured to adjust a current noise reduction parameter of the plugged earphone to a target noise reduction parameter in response to the earphone noise reduction parameter adjusting input;
an obtaining module 303, configured to obtain noise reduction result data of the earphone after adjusting the noise reduction parameter;
a determining module 304, configured to determine the target noise reduction parameter as an optimal noise reduction parameter if the noise reduction result data matches the set noise reduction index.
Optionally, the obtaining module 303 is specifically configured to:
acquiring audio data and environmental noise data output by the earphone after noise reduction parameter adjustment;
and generating noise reduction result data of the earphone based on the audio data and the environmental noise data.
Optionally, wherein the headphone noise reduction parameter adjustment input comprises at least one of:
an adjustment input for a gain value of the microphone;
adjusting and inputting the frequency point of the filter;
switching inputs of different headphone noise reduction modes, wherein the headphone noise reduction modes include: a feedforward noise reduction mode, a feedback noise reduction mode, or a mixed feedforward and feedback mode.
Optionally, the apparatus further comprises:
and the step execution module is used for returning to the step of receiving the noise reduction parameter adjustment input of the earphone if the noise reduction result data is not in accordance with the set noise reduction index.
Optionally, the apparatus further comprises:
and the parameter writing module is used for writing the optimal noise reduction parameters into a noise reduction chip of the earphone.
Optionally, the receiving module 301 is specifically configured to: receiving key input; wherein different key inputs correspond to different earphone noise reduction parameter adjustment instructions; or, receiving serial port input; wherein different serial port inputs correspond to different earphone noise reduction parameter adjustment instructions.
Wherein, if the receiving of the noise reduction parameter adjustment input of the earphone comprises: receiving key input; wherein the different key inputs comprise different operation inputs on one key or comprise the same operation input on different keys.
Optionally, the apparatus further comprises:
and the display module is used for displaying the optimal noise reduction parameters.
In the embodiment of the application, the current noise reduction parameter of the inserted earphone is adjusted to be the target noise reduction parameter through the received earphone noise reduction parameter adjustment input, based on the obtained noise reduction result data of the noise reduction earphone, when the noise reduction result data conforms to the set noise reduction index, the target noise reduction parameter is determined to be the optimal noise reduction parameter, the noise reduction parameter of each finished product noise reduction earphone is tested, the stability and the consistency of the noise reduction effect of the finished product noise reduction earphone are ensured, and the noise reduction quality of the earphone is ensured.
The noise reduction parameter debugging device for the noise reduction earphone provided by the embodiment of the application can realize each process of the noise reduction parameter debugging method for the noise reduction earphone, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
Fig. 4 is a structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 4, the terminal 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the terminal 4. For example, the computer program 42 may be divided into a receiving module, a parameter adjusting module, an obtaining module, a determining module, a step executing module, a parameter writing module and a displaying module, and the specific functions of each module are as follows:
the receiving module is used for receiving the noise reduction parameter adjustment input of the earphone;
the parameter adjusting module is used for responding to the noise reduction parameter adjusting input of the earphones, and adjusting the current noise reduction parameters of the inserted earphones into target noise reduction parameters;
the acquisition module is used for acquiring the noise reduction result data of the earphone after the noise reduction parameters are adjusted;
and the determining module is used for determining the target noise reduction parameter as the optimal noise reduction parameter if the noise reduction result data is in accordance with the set noise reduction index.
Optionally, the obtaining module is specifically configured to:
acquiring audio data and environmental noise data output by the earphone after noise reduction parameter adjustment;
and generating noise reduction result data of the earphone based on the audio data and the environmental noise data.
Optionally, wherein the headphone noise reduction parameter adjustment input comprises at least one of:
an adjustment input for a gain value of the microphone;
adjusting and inputting the frequency point of the filter;
switching inputs of different headphone noise reduction modes, wherein the headphone noise reduction modes include: a feedforward noise reduction mode, a feedback noise reduction mode, or a mixed feedforward and feedback mode.
Optionally, the apparatus further comprises:
and the step execution module is used for returning to the step of receiving the noise reduction parameter adjustment input of the earphone if the noise reduction result data is not in accordance with the set noise reduction index.
Optionally, the apparatus further comprises:
and the parameter writing module is used for writing the optimal noise reduction parameters into a noise reduction chip of the earphone.
Optionally, the receiving module is specifically configured to: receiving key input; wherein different key inputs correspond to different earphone noise reduction parameter adjustment instructions; or, receiving serial port input; wherein different serial port inputs correspond to different earphone noise reduction parameter adjustment instructions.
Wherein, if the receiving of the noise reduction parameter adjustment input of the earphone comprises: receiving key input; wherein the different key inputs comprise different operation inputs on one key or comprise the same operation input on different keys.
Optionally, the apparatus further comprises:
and the display module is used for displaying the optimal noise reduction parameters.
The terminal 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of a terminal 4 and does not constitute a limitation of terminal 4 and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.