CN109698989A - A kind of loudspeaker water discharge method and device - Google Patents

A kind of loudspeaker water discharge method and device Download PDF

Info

Publication number
CN109698989A
CN109698989A CN201811618394.1A CN201811618394A CN109698989A CN 109698989 A CN109698989 A CN 109698989A CN 201811618394 A CN201811618394 A CN 201811618394A CN 109698989 A CN109698989 A CN 109698989A
Authority
CN
China
Prior art keywords
frequency
signal
loudspeaker
mass
diaphragm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811618394.1A
Other languages
Chinese (zh)
Other versions
CN109698989B (en
Inventor
原晓旭
王玉哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chumen Wenwen Information Technology Co Ltd
Original Assignee
Chumen Wenwen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chumen Wenwen Information Technology Co Ltd filed Critical Chumen Wenwen Information Technology Co Ltd
Priority to CN201811618394.1A priority Critical patent/CN109698989B/en
Publication of CN109698989A publication Critical patent/CN109698989A/en
Application granted granted Critical
Publication of CN109698989B publication Critical patent/CN109698989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/44Special adaptations for subaqueous use, e.g. for hydrophone

Abstract

The embodiment of the invention discloses a kind of loudspeaker water discharge method and devices, are related to control technology field, and the method for the embodiment of the present invention includes: reception drain command;Determine the frequency for the frequency and second signal that drive the first signal of the loudspeaker vibration draining;Successively intermittent exports first signal and the second signal in first time period and in second time period.It realizes and the draining of two-frequency signal drive the speaker vibrating speaker is exported by intermittent, improve loudspeaker drainage performance.

Description

A kind of loudspeaker water discharge method and device
Technical field
The present embodiments relate to control technology field more particularly to a kind of loudspeaker water discharge methods and device.
Background technique
As electronic functionalities are continued to optimize, the waterproofing grade of equipment is also higher and higher, in order to which user can swim Electronic equipment is carried in the projects such as swimming, surfing.Under normal conditions, the loudspeaker of electronic equipment needs to reserve in structure design Acoustic aperture and ante-chamber, so that sound realizes the effect for expanding sound by preceding cavity reflection after propagating out from acoustic aperture out.Therefore work as electronics After equipment enters water, the ponding at exhaust apparatus loudspeaker first is needed before the use, just can guarantee the normal work of loudspeaker.
Amplitude is maximum at the resonant frequency fx for loudspeaker, and the resonance frequency of loudspeaker is related to diaphragm of loudspeaker weight, And with the reduction of attached water on vibrating diaphragm, vibrating diaphragm weight is reduced therewith.Inventor is during realizing the embodiment of the present invention It was found that following technical problem exists in the prior art, since loudspeaker ante-chamber inflow is every time different, and with the row of dampening The quality of water outlet constantly reduces, so the audio files under the resonance frequencies of needs can not be accurately controlled, to be arrived using 620Hz The frequency sweep file of 1400Hz, although such frequency sweep file can cover the resonance frequency of whole diaphragm mass, frequency sweep file Frequency span it is larger, and the frequency sweep file of such large span frequency is not necessarily in practical applications, so that each frequency file Utilization rate is poor and when playing frequency sweep file, user's use feeling is very poor, the problem for causing loudspeaker drainage performance poor.
Summary of the invention
In view of the above problems, the embodiment of the present invention provides a kind of loudspeaker water discharge method and device, main purpose are benefit With the vibration draining of two-frequency signal drive the speaker to improve loudspeaker drainage performance.
In order to solve the above technical problems, in a first aspect, the embodiment of the invention provides a kind of loudspeaker water discharge method, the party Method includes:
Drain command is received, the drain command is drained for triggering operation preset signal drive the speaker vibration;
Determine the frequency for the frequency and second signal that drive the first signal of loudspeaker vibration draining, described the The frequency of one signal is lower than the frequency of the second signal, and the frequency of first signal and the frequency of the second signal are It is determined by the sole mass and attachment water quality of the diaphragm of loudspeaker;
Successively intermittent exports first signal and the second signal in first time period and in second time period.
Optionally, the frequency of first signal of the determination for driving the loudspeaker vibration draining includes:
The first mass of the diaphragm of loudspeaker is obtained using preset sensor, first mass is the diaphragm of loudspeaker The summation of sole mass and the attachment water quality;
The first resonance frequency is calculated using preset function according to first mass and determines first resonance frequency For the frequency of first signal.
Optionally, the frequency of second signal of the determination for driving the loudspeaker vibration draining includes:
It obtains mobile device model information and determines the second mass of the diaphragm of loudspeaker according to the type information, described the Two mass are the sole mass of the diaphragm of loudspeaker;
According to second Mass Calculation the second resonance frequency corresponding with the diaphragm of loudspeaker;
The frequency of the second signal is determined according to second resonance frequency.
Optionally, the frequency that the second signal is determined according to second resonance frequency includes:
Whether within the preset frequency range to detect second resonance frequency;
If so, second resonance frequency to be determined as to the frequency of the second signal;
If it is not, the maximum frequency values of the predeterminated frequency range to be then determined as to the frequency of the second signal.
It is optionally, described that successively intermittent exports first signal and institute in first time period and in second time period Stating second signal includes:
First signal is exported/stopped respectively in each time cycle of the first time period;With
The second signal is exported/stopped respectively in each time cycle of the second time period.
Second aspect, the embodiment of the invention also provides a kind of loudspeaker drainage arrangement, which includes:
Receiving unit, for receiving drain command, the drain command is for triggering operation preset signal drive the speaker Vibration is drained;
Determination unit, for determining frequency and second signal for driving the first signal of the loudspeaker vibration draining Frequency, the frequency of first signal is lower than the frequency of the second signal, and the frequency of first signal and described the The frequency of binary signal is determined by the sole mass and attachment water quality of the diaphragm of loudspeaker;
Output unit, in first time period and in second time period successively intermittent export first signal and The second signal.
Optionally, the determination unit includes:
First obtains module, for obtaining the first mass of the diaphragm of loudspeaker, first mass using preset sensor For the sole mass of the diaphragm of loudspeaker and the summation of the attachment water quality;
First computing module, for calculating the first resonance frequency using preset function according to first mass;
First determining module, for first resonance frequency to be determined as to the frequency of first signal.
Optionally, the determination unit further include:
Second obtains module, for obtaining mobile device model information and determining the diaphragm of loudspeaker according to the type information The second mass, second mass be the diaphragm of loudspeaker sole mass;
Second computing module, for being extracted from initialized data base and the diaphragm of loudspeaker pair according to second mass The second resonance frequency answered;
Second determining module, for determining the frequency of the second signal according to second resonance frequency.
Optionally, second determining module includes:
Detection module, for whether within the preset frequency range to detect second resonance frequency;
First determines submodule, if within the preset frequency range for second resonance frequency, it is humorous by described second Vibration frequency is determined as the frequency of the second signal;
Second determines submodule, if not within the preset frequency range for second resonance frequency, described will preset The maximum frequency values of frequency range are determined as the frequency of the second signal.
Optionally, the output unit includes:
First output module exports respectively/stops described first for each time cycle in the first time period Signal;
Second output module exports respectively/stops described second for each time cycle in the second time period Signal.
To achieve the goals above, according to a third aspect of the embodiments of the present invention, a kind of storage medium is provided, it is described to deposit Storage media includes the program of storage, wherein equipment where controlling the storage medium in described program operation executes above-mentioned institute The loudspeaker water discharge method stated.
To achieve the goals above, according to a fourth aspect of the embodiments of the present invention, a kind of processor, the processing are provided Device is for running program, wherein described program executes loudspeaker water discharge method described above when running.
By above-mentioned technical proposal, loudspeaker water discharge method and device provided in an embodiment of the present invention, for the prior art When being drained by playing the sufficiently large frequency sweep file driving loudspeaker vibration of covering frequence range, each frequency file is using not enough User's use feeling is poor when sufficiently and playing, and the embodiment of the present invention determines after receiving drain command for driving loudspeaking Device vibration draining the first signal frequency and second signal frequency, and within two periods successively intermittent export this two A signal, therefore compared with the prior art, the embodiment of the present invention can only be vibrated by two-frequency signal drive the speaker can be real Existing loudspeaker draining is avoided and is swept caused by playing the sufficiently large frequency sweep file driving loudspeaker vibration draining of covering frequence range Frequency file utilization rate is lower and user's use feeling is poor, so that the problem that loudspeaker drainage performance is poor, to be promoted The performance of loudspeaker draining.
Above description is only the general introduction of technical solution of the embodiment of the present invention, in order to better understand the embodiment of the present invention Technological means, and can be implemented in accordance with the contents of the specification, and in order to allow above and other mesh of the embodiment of the present invention , feature and advantage can be more clearly understood, the special specific embodiment for lifting the embodiment of the present invention below.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention The limitation of embodiment.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of loudspeaker water discharge method flow chart provided in an embodiment of the present invention;
Fig. 2 shows another loudspeaker water discharge method flow charts provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition block diagram of loudspeaker drainage arrangement provided in an embodiment of the present invention;
Fig. 4 shows the composition block diagram of another loudspeaker drainage arrangement provided in an embodiment of the present invention;
Fig. 5 shows a kind of composition block diagram of the electronic equipment of loudspeaker draining provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to promote loudspeaker drainage performance, the embodiment of the invention provides a kind of loudspeaker water discharge methods, such as Fig. 1 institute Show, this method comprises:
101, drain command is received.
Wherein, the drain command is drained for triggering operation preset signal drive the speaker vibration.And it described raises Sound device can be the loudspeaker of smartwatch, the loudspeaker of household appliance, loudspeaker of mobile terminal etc..
It should be noted that specific implementation of the embodiment of the present invention can be to install application program in terminal device APP, and configured with draining option in the APP, when user clicks drain function in application program, it can triggering hair Drain command is sent, so that server, which receives the drain command and triggers the corresponding signal of operation, vibrates progress with drive the speaker Draining.
102, the frequency for the frequency and second signal that drive the first signal of the loudspeaker vibration draining is determined.
Wherein, the frequency of first signal be lower than the second signal frequency, and the frequency of first signal and The frequency of the second signal is determined by the sole mass and attachment water quality of the diaphragm of loudspeaker.It needs to illustrate It is that when loudspeaker vibrates at the resonant frequency fx, amplitude is maximum, therefore in order to which loudspeaker internal water accumulation is discharged as early as possible, it should benefit It is vibrated with signal drive the speaker similar in harmonic frequency of loudspeakers.However harmonic frequency of loudspeakers and diaphragm of loudspeaker quality It is related, and as the discharge diaphragm of loudspeaker quality of ponding is gradually reduced, it is therefore desirable to the suitably replacement driving in drainage procedure Signal.
For the embodiment of the present invention, the signal of multiple frequencies can be stored up in databases in advance, so that in this step In can be according to the model of loudspeaker (diaphragm mass of different model loudspeaker is different), the water that is attached on the diaphragm of loudspeaker The various dimensions factor such as quality extracts corresponding driving signal.
103, successively intermittent exports first signal and described second in first time period and in second time period Signal.
It should be noted that the loudspeaker as described in step vibrate at the resonant frequency fx can it is the fastest will be in loudspeaker Ponding discharge, and the resonance frequency of loudspeaker and diaphragm of loudspeaker quality are inversely proportional, therefore in the initial stage due to loudspeaker Ponding is attached on vibrating diaphragm, quality is larger, and resonance frequency is smaller, so the lesser signal of output frequency in first time period, And as the discharge of attached water, loudspeaker quality reduce, resonance frequency becomes larger, so output frequency is larger in second time period Signal.
Specifically, the output of intermittent described in this step can be the circulating way of output of " output-stopping ", such as the One period was 1 minute, then exporting the first signal in the period intermittent can stop with for output the first signal 0.15 second Then output 0.15 second is further continued for output 0.15 second, stop output 0.15, with this way of output circulation until terminating after 1 minute, But specific embodiment is without being limited thereto.
Loudspeaker water discharge method provided in an embodiment of the present invention, it is enough by playing covering frequence range for the prior art When big frequency sweep file driving loudspeaker vibration drains, each frequency file utilizes user's use feeling when being not enough and playing Poor, the embodiment of the present invention determines the frequency of the first signal for drive the speaker vibration draining after receiving drain command The frequency of rate and second signal, and successively intermittent exports the two signals within two periods, therefore compared to existing skill Art, the embodiment of the present invention only can be realized loudspeaker draining by the vibration of two-frequency signal drive the speaker, avoid broadcasting Frequency sweep file utilization is lower and user caused by the sufficiently large frequency sweep file driving loudspeaker vibration draining of covering frequence range Use feeling is poor, so that the problem that loudspeaker drainage performance is poor, to improve the performance of loudspeaker draining.
Further, as the refinement and extension to embodiment illustrated in fig. 1, the embodiment of the invention also provides another kinds to raise Sound device water discharge method, as shown in Figure 2.
201, drain command is received.
Wherein, the drain command is drained for triggering operation preset signal drive the speaker vibration.And it described raises The concept explanation of sound device and the specific embodiment of this step can be referred to and accordingly be described in the step 101, herein no longer It repeats.
It should be noted that specific implementation of the embodiment of the present invention can be to install application program in terminal device APP, and configured with draining option in the APP, when user clicks drain function in application program, it can triggering hair Drain command is sent, so that server, which receives the drain command and triggers the corresponding signal of operation, vibrates progress with drive the speaker Draining.
202, the first mass of the diaphragm of loudspeaker is obtained using preset sensor.
Wherein, first mass is the sole mass of the diaphragm of loudspeaker and the summation of attachment water quality.Specifically, The sensor of measurement quality can be configured in terminal device, when receiving drain command, preset sensing is called in triggering Device acquires and uploads the current all-mass of sensor vibrating diaphragm.
For the embodiment of the present invention, by obtaining the current diaphragm mass of loudspeaker first in initial bleeding stage, in order to It determines required minimum resonance frequency in loudspeaker drainage procedure, and then determines the driving signal of draining according to the frequency, it can It is driven to avoid the signal for directly extracting preset minimum frequency, so that the resonance frequency phase that driving frequency is current with loudspeaker The poor problem of drainage performance caused by poor larger and user's use feeling is poor, to improve the property of loudspeaker draining Energy.
203, the first resonance frequency using preset function calculated according to first mass and by first resonance frequency It is determined as the frequency of first signal.
Wherein, the preset function can beWherein, KmFor loudspeaker resonance coefficient, MmTo raise Sound device diaphragm mass, and KmTo be known, thus can be directly sharp after getting diaphragm of loudspeaker quality in above-mentioned steps The first resonance frequency is calculated with formula.Due to adhering to dampening on the initial stage diaphragm of loudspeaker, so that the diaphragm of loudspeaker Quality is larger and resonance frequency is smaller, and user will not be made to have ear-piercing feeling, so at this time can be directly by the resonance frequency It is determined as the frequency of the first signal, in order to according to first signal of frequency abstraction.
204, it obtains mobile device model information and determines the second mass of the diaphragm of loudspeaker according to the type information.
Wherein, second mass is the sole mass of the diaphragm of loudspeaker.Specifically, the mobile device in this step Model signal acquisition behavior can be configured in application APP for user, or preset interface acquisition is called to set Standby type information, the embodiment of the present invention are not specifically limited in this embodiment.
It, can be pre- since for different types of loudspeaker, diaphragm mass is different, therefore in embodiments of the present invention First creation includes the mapping table of armamentarium model and its diaphragm of loudspeaker quality, and is saved in the database, thus Diaphragm of loudspeaker quality can directly be extracted later according to type information by getting device model information in this step, really The efficiency of loudspeaker draining is protected.
205, according to second Mass Calculation the second resonance frequency corresponding with the diaphragm of loudspeaker.
Likewise, the calculation as described in above-mentioned steps 203, when diaphragm of loudspeaker quality has been determined, Ke Yizhi Connect the resonance frequency that loudspeaker is calculated.It should be noted that with the Mass lost of water in loudspeaker vibration drainage procedure, Diaphragm of loudspeaker quality becomes closer to vibrating diaphragm sole mass, therefore this step calculates second according to diaphragm of loudspeaker sole mass Maximum resonance frequency in resonance frequency, that is, loudspeaker drainage procedure, in order to be further determined that according to the resonance frequency The frequency of second signal.
206, the frequency of the second signal is determined according to second resonance frequency.
For the embodiment of the present invention, the step 206 be can specifically include: whether detection second resonance frequency is pre- If in frequency range;If so, second resonance frequency to be determined as to the frequency of the second signal;If it is not, then will be described The maximum frequency values of predeterminated frequency range are determined as the frequency of the second signal.Wherein, the predeterminated frequency range can root It is preset according to different application scenarios, such as is set as 600 hertz~1000 hertz, can also be user according to own situation It is set in APP, the embodiment of the present invention is not specifically limited in this embodiment.
It should be noted that will use family when signal frequency is higher than certain frequency value and generate ear-piercing feeling, sound Like a hen on a hot girdle, therefore in this step whether within a preset range resulting second resonance frequency is calculated by comparing, if if Second resonance frequency can be directly determined as to the frequency of second signal, that is to say, that the signal for exporting the frequency will not influence User's use feeling, and if the second resonance frequency has been more than predeterminated frequency range, by the maximum frequency in predeterminated frequency range Value is determined as the frequency of second signal, it is ensured that user's use feeling.
207, successively intermittent exports first signal and described second in first time period and in second time period Signal.
The frequency of the first signal and the frequency of second signal are had determined that in above-mentioned steps, therefore straight in this step It connects according to the corresponding driving signal of rate-adaptive pacemaker.
For the embodiment of the present invention, this step be can specifically include: in each time cycle point of the first time period First signal is not exported/stopped;With export/stop described respectively in each time cycle of the second time period Binary signal.And the duration of first time period and second time period can be set according to different situations, such as two times Duan Jun is set as 1.5 seconds, and the duration of each time cycle can be identical in first time period and second time period, can also not Together, the embodiment of the present invention is not specifically limited in this embodiment.In addition, the time for exporting and stopping within each time cycle can basis Actual conditions are configured, such as when each time cycle of first time period is 0.3 second, can be set to export for 0.15 second First signal, the output of stopping in 0.15 second.
It is corresponding with the output of " output-stopping " periodic cycle respectively within two periods for the embodiment of the present invention Signal can make the presence of the time point interrupted during signal exports, so that while ensuring rapidly and efficiently to drain, so that The sound that user receives is of short duration and is interrupted, it is ensured that user's use feeling, and then improve loudspeaker drainage performance.
But it should be recognized that specific embodiment described in above-mentioned application scenarios is only exemplary, not this hair Unique specific embodiment of bright embodiment, herein be only meet method described in the embodiment of the present invention optimal enforcement mode it One.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the invention also provides a kind of loudspeaker rows Water installations, for being realized to above-mentioned method shown in FIG. 1.The Installation practice is corresponding with preceding method embodiment, for just In reading, present apparatus embodiment no longer repeats the detail content in preceding method embodiment one by one, it should be understood that this Device in embodiment can correspond to the full content realized in preceding method embodiment.As shown in figure 3, the device includes: to connect It receives unit 31, propose determination unit 32, output unit 33, wherein
Receiving unit 31, for receiving drain command, the drain command drives loudspeaking for triggering operation preset signal Device vibration carries out draining
Determination unit 32, for determining for the frequency for driving the first signal of the loudspeaker vibration draining and the second letter Number frequency, the frequency of first signal is lower than the frequency of the second signal, and the frequency of first signal and described The frequency of second signal is determined by the sole mass and attachment water quality of the diaphragm of loudspeaker.
Output unit 33, for successively intermittent to export the determination unit in first time period and in second time period 32 the first signals determined and the second signal.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the invention also provides another loudspeakers Drainage arrangement, for being realized to above-mentioned method shown in Fig. 2.The Installation practice is corresponding with preceding method embodiment, is Easy to read, present apparatus embodiment no longer repeats the detail content in preceding method embodiment one by one, it should be understood that Device in the present embodiment can correspond to the full content realized in preceding method embodiment.As shown in figure 4, the device includes: Receiving unit 41, determination unit 42, output unit 43, wherein
Receiving unit 41, for receiving drain command, the drain command drives loudspeaking for triggering operation preset signal Device vibration carries out draining
Determination unit 42, for determining for the frequency for driving the first signal of the loudspeaker vibration draining and the second letter Number frequency, the frequency of first signal is lower than the frequency of the second signal, and the frequency of first signal and described The frequency of second signal is determined by the sole mass and attachment water quality of the diaphragm of loudspeaker.
Output unit 43, for successively intermittent to export the determination unit in first time period and in second time period 42 the first signals determined and the second signal.
Further, described device further include: acquiring unit 44, computing unit 45.
The acquiring unit 44 can be used for obtaining the first mass of the diaphragm of loudspeaker using preset sensor.
The computing unit 45 can be used for calculating the first resonance frequency using preset function according to first mass.
The determination unit 42 can be also used for the frequency that first resonance frequency is determined as to first signal.
Further,
The acquiring unit 44 can be also used for obtaining mobile device model information;
The determination unit 42 can be also used for the second mass that the diaphragm of loudspeaker is determined according to the type information.
Further,
The computing unit 45 can be also used for according to second Mass Calculation corresponding with the diaphragm of loudspeaker Two resonance frequencies.
The determination unit 42 can be also used for the frequency that the second signal is determined according to second resonance frequency.
Further, the determination unit 42 includes:
Detection module 4201, for whether within the preset frequency range to detect second resonance frequency.
First determining module 4202, if within the preset frequency range for second resonance frequency, by described second Resonance frequency is determined as the frequency of the second signal.
Second determining module 4203, if not within the preset frequency range for second resonance frequency, it will be described pre- If the maximum frequency values of frequency range are determined as the frequency of the second signal.
Further, the output unit 43 includes:
First output module 4301 can be used for output/stopping respectively of each time cycle in the first time period First signal.
Second output module 4302 can be used for output/stopping respectively of each time cycle in the second time period The second signal.
Another kind loudspeaker drainage arrangement provided in an embodiment of the present invention.Described device includes: receiving unit, determination unit And output unit.For the prior art by playing the sufficiently large frequency sweep file driving loudspeaker vibration draining of covering frequence range When, each frequency file is poor using user's use feeling when being not enough and playing, and the embodiment of the present invention is receiving draining After instruction, the frequency of the first signal for drive the speaker vibration draining and the frequency of second signal are determined, and at two Between successively intermittent exports the two signals in section, therefore compared with the prior art, the embodiment of the present invention can only pass through double frequency Loudspeaker draining can be realized in the vibration of signal drive the speaker, avoids and plays the sufficiently large frequency sweep file drive of covering frequence range Frequency sweep file utilization caused by dynamic loudspeaker vibration draining is lower and user's use feeling is poor, so that loudspeaker drains The poor problem of performance, to improve the performance of loudspeaker draining.
The adjustment device for the volume introduced by the present embodiment is the loudspeaker row that can be executed in the embodiment of the present invention The device of water method, so based on loudspeaker water discharge method, those skilled in the art described in the embodiment of the present invention The specific embodiment and its various change form of the loudspeaker drainage arrangement of the present embodiment can be understood, thus herein for How the loudspeaker drainage arrangement realizes that the loudspeaker water discharge method in the embodiment of the present invention is no longer discussed in detail.As long as this field Those of skill in the art implement device used by loudspeaker water discharge method in the embodiment of the present invention, belong to the application and are intended to protect Range.
The embodiment of the invention provides a kind of electronic equipment, as shown in Figure 5, comprising: at least one processor (processor)51;And at least one processor (memory) 52, the bus 53 being connect with the processor 51;Wherein,
The processor 51, memory 52 complete mutual communication by the bus 53;
The processor 51 is used to call the program instruction in the memory 52, to execute in above method embodiment Step.
Include kernel in processor 51, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one It is a or more, loudspeaker drainage performance is promoted by adjusting kernel parameter.
Memory 52 may include the non-volatile memory in computer-readable medium, random access memory (RAM) And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one Storage chip.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment.
The embodiment of the invention also provides a kind of computer program products, when executing on data processing equipment, are suitable for It executes the program of initialization there are as below methods step: receiving drain command, the drain command is for triggering operation preset signal Drive the speaker vibration is drained;It determines for the frequency for driving the first signal of the loudspeaker vibration draining and the second letter Number frequency, the frequency of first signal is lower than the frequency of the second signal, and the frequency of first signal and described The frequency of second signal is determined by the sole mass and attachment water quality of the diaphragm of loudspeaker;In first time period and Successively intermittent exports first signal and the second signal in second time period.
Further, the frequency of first signal of the determination for driving the loudspeaker vibration draining includes:
The first mass of the diaphragm of loudspeaker is obtained using preset sensor, first mass is the diaphragm of loudspeaker The summation of sole mass and attachment water quality;
The first resonance frequency is calculated using preset function according to first mass and determines first resonance frequency For the frequency of first signal.
Further, the frequency of second signal of the determination for driving the loudspeaker vibration draining includes:
It obtains mobile device model information and determines the second mass of the diaphragm of loudspeaker according to the type information, described the Two mass are the sole mass of the diaphragm of loudspeaker;
According to second Mass Calculation the second resonance frequency corresponding with the diaphragm of loudspeaker;
The frequency of the second signal is determined according to second resonance frequency.
Further, the frequency that the second signal is determined according to second resonance frequency includes:
Whether within the preset frequency range to detect second resonance frequency;
If so, second resonance frequency to be determined as to the frequency of the second signal;
If it is not, the maximum frequency values of the predeterminated frequency range to be then determined as to the frequency of the second signal.
Further, it is described in first time period and in second time period successively intermittent export first signal and The second signal includes:
First signal is exported/stopped respectively in each time cycle of the first time period;With
The second signal is exported/stopped respectively in each time cycle of the second time period.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of loudspeaker water discharge method, which is characterized in that the described method includes:
Drain command is received, the drain command is drained for triggering operation preset signal drive the speaker vibration;
Determine the frequency for the frequency and second signal that drive the first signal of the loudspeaker vibration draining, first letter Number frequency be lower than the frequency of the second signal, and the frequency of first signal and the frequency of the second signal are by institute What the sole mass and attachment water quality for stating the diaphragm of loudspeaker determined;
Successively intermittent exports first signal and the second signal in first time period and in second time period.
2. the method according to claim 1, wherein the determination is used to drive the loudspeaker vibration draining The frequency of first signal includes:
The first mass of the diaphragm of loudspeaker is obtained using preset sensor, first mass is itself of the diaphragm of loudspeaker The summation of quality and the attachment water quality;
The first resonance frequency is calculated using preset function according to first mass and first resonance frequency is determined as institute State the frequency of the first signal.
3. the method according to claim 1, wherein the determination is used to drive the loudspeaker vibration draining The frequency of second signal includes:
It obtains mobile device model information and determines the second mass of the diaphragm of loudspeaker, second matter according to the type information Amount is the sole mass of the diaphragm of loudspeaker;
According to second Mass Calculation the second resonance frequency corresponding with the diaphragm of loudspeaker;
The frequency of the second signal is determined according to second resonance frequency.
4. according to the method described in claim 3, it is characterized in that, described determine described second according to second resonance frequency The frequency of signal includes:
Whether within the preset frequency range to detect second resonance frequency;
If so, second resonance frequency to be determined as to the frequency of the second signal;
If it is not, the maximum frequency values of the predeterminated frequency range to be then determined as to the frequency of the second signal.
5. method according to claim 1 to 4, which is characterized in that described in first time period and second Successively intermittent exports first signal in period and the second signal includes:
First signal is exported/stopped respectively in each time cycle of the first time period;With
The second signal is exported/stopped respectively in each time cycle of the second time period.
6. a kind of loudspeaker drainage arrangement, which is characterized in that described device includes:
Receiving unit, for receiving drain command, the drain command is for triggering operation preset signal drive the speaker vibration It is drained;
Determination unit, for determining the frequency for the frequency and second signal that drive the first signal of the loudspeaker vibration draining Rate, the frequency of first signal are lower than the frequency of the second signal, and the frequency of first signal and second letter Number frequency be by the diaphragm of loudspeaker sole mass and attachment water quality determine;
Output unit, for successively intermittent to export first signal and described in first time period and in second time period Second signal.
7. device according to claim 6, which is characterized in that the determination unit includes:
First obtains module, and for obtaining the first mass of the diaphragm of loudspeaker using preset sensor, first mass is institute State the sole mass of the diaphragm of loudspeaker and the summation of the attachment water quality;
First computing module, for calculating the first resonance frequency using preset function according to first mass;
First determining module, for first resonance frequency to be determined as to the frequency of first signal.
8. device according to claim 6, which is characterized in that the determination unit further include:
Second obtains module, for obtaining mobile device model information and determining the of the diaphragm of loudspeaker according to the type information Two mass, second mass are the sole mass of the diaphragm of loudspeaker;
Second computing module, it is corresponding with the diaphragm of loudspeaker for being extracted from initialized data base according to second mass Second resonance frequency;
Second determining module, for determining the frequency of the second signal according to second resonance frequency.
9. a kind of electronic equipment characterized by comprising
At least one processor;
And at least one processor, the bus being connected to the processor;Wherein,
The processor, memory complete mutual communication by the bus;
The processor is used to call the program instruction in the memory, any into claim 5 with perform claim requirement 1 Loudspeaker water discharge method described in.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Store up computer instruction, the computer instruction requires the computer perform claim 1 to described in any one of claim 5 Loudspeaker water discharge method.
CN201811618394.1A 2018-12-28 2018-12-28 A kind of loudspeaker water discharge method and device Active CN109698989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811618394.1A CN109698989B (en) 2018-12-28 2018-12-28 A kind of loudspeaker water discharge method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811618394.1A CN109698989B (en) 2018-12-28 2018-12-28 A kind of loudspeaker water discharge method and device

Publications (2)

Publication Number Publication Date
CN109698989A true CN109698989A (en) 2019-04-30
CN109698989B CN109698989B (en) 2019-11-12

Family

ID=66232332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811618394.1A Active CN109698989B (en) 2018-12-28 2018-12-28 A kind of loudspeaker water discharge method and device

Country Status (1)

Country Link
CN (1) CN109698989B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110415670A (en) * 2019-06-05 2019-11-05 新沂市承翔电子有限公司 A kind of buzzer that multi-angle sluices
CN113810805A (en) * 2021-10-22 2021-12-17 歌尔科技有限公司 Acoustic drainage structure and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792423A (en) * 2017-02-28 2017-05-31 维沃移动通信有限公司 The method and mobile terminal of the foreign matter in a kind of removing loudspeaker
JP2017175284A (en) * 2016-03-22 2017-09-28 京セラ株式会社 Electronic apparatus
CN108471575A (en) * 2018-05-14 2018-08-31 广东小天才科技有限公司 A kind of the loud speaker fluid-discharge method and mobile terminal of mobile terminal
CN108471574A (en) * 2018-05-14 2018-08-31 广东小天才科技有限公司 A kind of method and electronic equipment of discharge loud speaker residual liquid
CN108668199A (en) * 2018-05-14 2018-10-16 广东小天才科技有限公司 A kind of loud speaker fluid-discharge method and electronic equipment based on Gain tuning
CN108731388A (en) * 2017-04-25 2018-11-02 北京小米移动软件有限公司 Dehumanization method and device, the electronic equipment of electronic equipment sounding module

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017175284A (en) * 2016-03-22 2017-09-28 京セラ株式会社 Electronic apparatus
CN106792423A (en) * 2017-02-28 2017-05-31 维沃移动通信有限公司 The method and mobile terminal of the foreign matter in a kind of removing loudspeaker
CN108731388A (en) * 2017-04-25 2018-11-02 北京小米移动软件有限公司 Dehumanization method and device, the electronic equipment of electronic equipment sounding module
CN108471575A (en) * 2018-05-14 2018-08-31 广东小天才科技有限公司 A kind of the loud speaker fluid-discharge method and mobile terminal of mobile terminal
CN108471574A (en) * 2018-05-14 2018-08-31 广东小天才科技有限公司 A kind of method and electronic equipment of discharge loud speaker residual liquid
CN108668199A (en) * 2018-05-14 2018-10-16 广东小天才科技有限公司 A kind of loud speaker fluid-discharge method and electronic equipment based on Gain tuning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110415670A (en) * 2019-06-05 2019-11-05 新沂市承翔电子有限公司 A kind of buzzer that multi-angle sluices
CN113810805A (en) * 2021-10-22 2021-12-17 歌尔科技有限公司 Acoustic drainage structure and electronic device

Also Published As

Publication number Publication date
CN109698989B (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN109698989B (en) A kind of loudspeaker water discharge method and device
US10932073B2 (en) Method and system for measuring total sound pressure level of noise, and computer readable storage medium
CN109102822A (en) A kind of filtering method and device formed based on fixed beam
TWI654601B (en) Voice signal detection method and device
CN106470284B (en) Method, device, system, server and communication device for eliminating acoustic echo
JP6749455B2 (en) Motor driving method, terminal device, and computer-readable recording medium
JP2006314008A5 (en)
EP3343949A2 (en) De-reverberation control method and apparatus for device equipped with microphone
CN104299622A (en) Audio processing method
CN107481727B (en) Audio signal processing method and system based on electric tone pitch control
CN109471608A (en) A kind of method of adjustment and device of volume
US20170322306A1 (en) Method and apparatus for obtaining vibration information and user equipment
CN111314821A (en) Intelligent sound box playing method and device and intelligent sound box
CN115166632A (en) Method and apparatus for determining sound source orientation, storage medium, and electronic apparatus
CN109508846A (en) A kind of detection method and device of unit data exception fluctuation
US20170307436A1 (en) Method and apparatus for obtaining vibration information and user equipment
WO2017077534A1 (en) Method and system for measurement of ambience parameters using audio signals
JP5774191B2 (en) Method and apparatus for attenuating dominant frequencies in an audio signal
CN105115592B (en) Cranial cavity method for detecting vibration and device
CN109521990A (en) Audio play control method, device, electronic equipment and readable storage medium storing program for executing
CN109754825A (en) A kind of audio-frequency processing method, device and equipment
CN113223561B (en) Voice activity detection method, electronic equipment and device
CN112562714B (en) Noise evaluation method and device
CN111367179B (en) Acoustic transfer function modeling method and active noise reduction system adopting same
CN106101925A (en) A kind of control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant