CN116847252A - Volume control method and device for double-diaphragm loudspeaker - Google Patents
Volume control method and device for double-diaphragm loudspeaker Download PDFInfo
- Publication number
- CN116847252A CN116847252A CN202310591218.8A CN202310591218A CN116847252A CN 116847252 A CN116847252 A CN 116847252A CN 202310591218 A CN202310591218 A CN 202310591218A CN 116847252 A CN116847252 A CN 116847252A
- Authority
- CN
- China
- Prior art keywords
- diaphragm
- vibrating diaphragm
- vibrating
- state
- loudspeaker
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000009977 dual effect Effects 0.000 claims 5
- 230000008569 process Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 210000005069 ears Anatomy 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/06—Loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/02—Details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2400/00—Loudspeakers
- H04R2400/11—Aspects regarding the frame of loudspeaker transducers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The application discloses a volume control method of a double-diaphragm loudspeaker, and belongs to the field of loudspeakers. The method comprises the following steps: acquiring state parameter values of a first vibrating diaphragm and a second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment; determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively; and under the condition that the working state of the first vibrating diaphragm or the second vibrating diaphragm is a fault state, adjusting the sounding volume of the second vibrating diaphragm or the first vibrating diaphragm.
Description
Technical Field
The present application relates to the field of speakers, and in particular, to a method and apparatus for controlling volume of a dual-diaphragm speaker, an electronic device, and a readable storage medium.
Background
The double-diaphragm loudspeaker is a loudspeaker with two diaphragms, the two diaphragms can independently emit sound, and when the double-diaphragm loudspeaker emits sound, a user hears the sound synthesized when the two diaphragms emit sound together.
If one of the diaphragms in the dual-diaphragm loudspeaker is broken, the sound actually heard by the user is changed from the original synthesized sound to the sound emitted by the only remaining normal diaphragm, so that the sound heard by the user is changed, and the use experience of the user is affected.
Disclosure of Invention
The embodiment of the application aims to provide a volume control method and device for a double-diaphragm loudspeaker, electronic equipment and a readable storage medium, which can solve the problem of sound change of the double-diaphragm loudspeaker caused by the fact that one diaphragm in the double-diaphragm loudspeaker is broken.
In a first aspect, an embodiment of the present application provides a method for controlling volume of a dual-diaphragm speaker, where the method includes:
acquiring state parameter values of a first vibrating diaphragm and a second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment;
determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively;
and under the condition that the working state of the first vibrating diaphragm or the second vibrating diaphragm is a fault state, adjusting the sounding volume of the second vibrating diaphragm or the first vibrating diaphragm.
In a second aspect, an embodiment of the present application provides a volume control device for a dual-diaphragm speaker, where the device includes:
the acquisition module is used for acquiring state parameter values of the first diaphragm and the second diaphragm in the double-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment;
The judging module is used for determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively;
the adjusting module is used for adjusting the sounding volume of the second vibrating diaphragm or the first vibrating diaphragm under the condition that the working state of the first vibrating diaphragm or the second vibrating diaphragm is a fault state.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the state parameter values of the first vibrating diaphragm and the second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker are obtained, the working states corresponding to the two vibrating diaphragms in the double-vibrating-diaphragm loudspeaker are determined according to the state parameter values, and when one vibrating diaphragm is judged to be broken, the volume of the other vibrating diaphragm is adjusted to realize the volume adjustment of the double-vibrating-diaphragm loudspeaker, so that a user can hear normal sound when one vibrating diaphragm in the double-vibrating-diaphragm loudspeaker is broken, discomfort caused by human ears is avoided, and user experience is improved.
Drawings
Fig. 1 is a flow chart of steps of a method for controlling volume of a dual-diaphragm speaker according to an embodiment of the present application;
fig. 2 is a schematic diagram of connection between a dual-diaphragm speaker and a power amplifier according to an embodiment of the present application;
fig. 3 is a signal transmission cycle chart in the same frequency point coding mode according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a scene structure according to an embodiment of the present application;
Fig. 5 is a block diagram of a volume control device of a dual-diaphragm speaker according to an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following describes in detail the volume control method of the dual-diaphragm speaker provided by the embodiment of the application through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application provides a method for controlling volume of a dual-diaphragm speaker, where the method includes:
step 101, obtaining state parameter values of a first diaphragm and a second diaphragm in a dual-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively produce sound at different positions of the electronic equipment.
In the embodiment of the application, the double-diaphragm loudspeaker can comprise a first diaphragm and a second diaphragm, wherein the double-diaphragm loudspeaker can simultaneously work for the first diaphragm and the second diaphragm to emit two paths of different sound waves, or only the first diaphragm or only the second diaphragm works to emit one path of sound waves. For example, a first diaphragm of a dual-diaphragm speaker may be a speaker that sounds on the front of an electronic device, and a second diaphragm of the dual-diaphragm speaker may be a speaker that sounds on the back or top of the electronic device.
Under different use scenes, the mode of sound production of two vibrating diaphragm speakers is different, for example, in the earphone mode, in order to avoid leaking sound, two vibrating diaphragm speakers can sound production simultaneously for first vibrating diaphragm and second vibrating diaphragm, first vibrating diaphragm is the front sound production of electronic equipment, sound orientation user's ear direction, the second vibrating diaphragm is the back or top sound production at electronic equipment for offset the sound that first vibrating diaphragm sent, avoid being in around the electronic equipment to hear the sound that the speaker sent, that is to say, the user actually heard is the sound after two vibrating diaphragm synthesis, if one of them vibrating diaphragm is bad, the sound that the user heard is that single one vibrating diaphragm sent, the sound that leads to the user actually to hear is different from the sound that two vibrating diaphragms of two vibrating diaphragm speakers were all normal time synthesis. Therefore, the application firstly judges the working states of the first vibrating diaphragm and the second vibrating diaphragm by acquiring the state parameter values of the first vibrating diaphragm and the second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker so as to correspondingly adjust how the other vibrating diaphragm which works normally adjusts the volume under the condition that the first vibrating diaphragm or the second vibrating diaphragm is broken, thereby balancing the sound emitted by the double-vibrating-diaphragm loudspeaker.
Optionally, the state parameter value includes an impedance value, and step 101 specifically includes:
a substep 1011, obtaining a first impedance value of the coil corresponding to the first diaphragm and a second impedance value of the coil corresponding to the second diaphragm; the first impedance value is detected by a first power amplifier connected with the first vibrating diaphragm, and the second impedance value is detected by a second power amplifier connected with the second vibrating diaphragm.
In the embodiment of the application, the intelligent power amplifier can be used for detecting the working state of the vibrating diaphragms in the double-vibrating-diaphragm loudspeaker, and each vibrating diaphragm in the double-vibrating-diaphragm loudspeaker is provided with the independent intelligent power amplifier connected with the vibrating diaphragm, so that the impedance value of the coil of each vibrating diaphragm in the double-vibrating-diaphragm loudspeaker can be detected through the intelligent power amplifier, and the working state of the vibrating diaphragm can be judged through the impedance value. The impedance of the dual-diaphragm speaker may include a direct current impedance, which refers to an impedance that is not affected by a current frequency, i.e., an impedance of a coil of each diaphragm. The impedance value of the coil may characterize the magnitude of the resistance and resistance of the coil to current flow. The larger the impedance value is, the more difficult the current passes, the lower the output power of the intelligent power amplifier connected with the diaphragm is, the smaller the impedance value is, the larger the current output by the voice coil is, and the larger the output power of the intelligent power amplifier connected with the diaphragm is. Therefore, when the first diaphragm and the second diaphragm are input with current with preset frequency, the magnitudes of the first impedance value and the second impedance value corresponding to the first diaphragm and the second diaphragm can be detected through the magnitudes of the output power of the power amplifier connected with the first diaphragm and the second diaphragm. According to the judgment of whether the detected impedance value is in the preset normal range, whether the first vibrating diaphragm and the second vibrating diaphragm have faults or not can be determined.
Referring to fig. 2, fig. 2 shows a schematic diagram of a connection between a dual-diaphragm speaker and a power amplifier. In the figure, an intelligent power amplifier 1 is connected with a first vibrating diaphragm, an intelligent power amplifier 2 is connected with a second vibrating diaphragm, and impedance values corresponding to the two vibrating diaphragms are detected through the intelligent power amplifier connected with each vibrating diaphragm independently.
Optionally, the state parameter value includes encoded information, and step 101 specifically includes:
in step 1012, the first diaphragm and the second diaphragm are encoded.
In the embodiment of the application, the microphone at the top of the electronic equipment can receive the sound emitted by the first vibrating diaphragm and the second vibrating diaphragm, so that the sound received by the microphone at the top can be used for detecting whether the two vibrating diaphragms have sound. In order to distinguish whether the sound received by the top microphone is coming from the first vibrating diaphragm or the second vibrating diaphragm, the two vibrating diaphragms can be respectively encoded, the vibrating diaphragms can be encoded, the voice signals sent by the vibrating diaphragms can be numbered, and when the voice signals are received, whether the two vibrating diaphragms work normally is determined through the encoding information of the voice signals.
Further, the voice signal sent by the dual-diaphragm loudspeaker is a signal with the frequency within 20KHz, so that ultrasonic waves can be used for encoding during encoding, for example: the codes may be 21.5KHz or 23KHz, and embodiments of the present application are not limited in this regard.
Optionally, the substep 1012 specifically includes:
and a substep 10121, respectively encoding the first diaphragm and the second diaphragm by using different frequency points to obtain first encoding information corresponding to the first diaphragm and second encoding information corresponding to the second diaphragm.
In the embodiment of the present application, the mode of detecting whether the working state of the diaphragm is normal may also be: the diaphragms are encoded in different frequency points, because the voice signal is a signal within 20KHz, ultrasonic waves are used for encoding, and 21.5K encoding can be adopted for the first diaphragm, namely, the first encoding information corresponding to the first diaphragm is 21.5KHz; the second vibrating diaphragm is encoded by 23KHz, namely the second encoding information corresponding to the second vibrating diaphragm is 23KHz; therefore, through different frequency points, after the received voice signals, the vibration film from which the voice signals come is determined according to whether the coding information corresponding to the voice signals is 21.5KHz or 23KHz, and then the working states of the two vibration films are determined.
Optionally, the substep 1012 specifically includes:
step 10122, encoding the first diaphragm and the second diaphragm with the same frequency point to obtain third encoded information corresponding to the first diaphragm and the second diaphragm, setting the sounding duration of the first diaphragm as a first time period, setting the sounding duration of the second diaphragm as a second time period, and sounding the first diaphragm and the second diaphragm at different time points.
In the embodiment of the application, the diaphragm can also be encoded in the same frequency point mode: for example, 22KHz is used to encode the diaphragms, so that the third encoded information corresponding to the first diaphragm and the second diaphragm is 22KHz. The frequency of the voice signals sent by the first vibrating diaphragm and the frequency of the voice signals sent by the second vibrating diaphragm are the same, so that the received voice signals are the signals sent by the first vibrating diaphragm or the signals sent by the second vibrating diaphragm, the duration of the voice signals sent by the first vibrating diaphragm and the second vibrating diaphragm can be set, and the voice signals sent by the first vibrating diaphragm and the second vibrating diaphragm are distinguished by setting different durations. And further determining the working states of the first vibrating diaphragm and the second vibrating diaphragm.
Referring to fig. 3, fig. 3 shows a signal transmission cycle chart in the same frequency point coding mode, wherein the abscissa indicates the duration of the voice signal, and 0.1s to 0.2s may be the duration of the voice signal of the first diaphragm, that is, the first time period may be 0.1s,0.2s to 0.4s may be the sounding duration of the voice signal of the second diaphragm, that is, the second time period may be 0.2s, and the two diaphragms alternately transmit the voice signal, and the alternating period is 0.5s. Thus, when analyzing the duration of the voice signal received by the top microphone, it is possible to determine whether the received voice signal is a signal from the first diaphragm or the second diaphragm.
Sub-step 1013, in the case of sounding the dual-diaphragm speaker, obtaining the encoded information of the voice signal emitted by the dual-diaphragm speaker.
In the embodiment of the application, under the condition that the double-diaphragm loudspeaker produces sound, the coding information of the voice signal sent by the double-diaphragm loudspeaker is obtained, and the received voice signal is judged from which diaphragm according to the coding information. For example, in the manner of encoding the first diaphragm and the second diaphragm by using different frequency points, it may be determined according to the encoding information of the received voice signal, from which diaphragm the voice signal comes, and in the manner of encoding the first diaphragm and the second diaphragm by using the same frequency points, it may be determined according to the duration of the received voice signal, from which diaphragm the received voice signal comes.
Step 102, determining respective working states of the first diaphragm and the second diaphragm according to respective state parameter values of the first diaphragm and the second diaphragm.
In the embodiment of the application, after the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm are obtained, whether the first vibrating diaphragm and the second vibrating diaphragm work normally or not can be determined by comparing the state parameter values with the preset standard range. That is, if the state parameter value accords with the preset standard range, the working state of the diaphragm is indicated to be normal, and if the state parameter value does not accord with the preset standard range, the working state of the diaphragm is indicated to be fault.
Optionally, step 102 specifically includes:
substep 1021, determining whether the first impedance value and the second impedance value are within a predetermined range.
In the embodiment of the application, when the impedance value is judged, the preset range can be 8Ω±4Ω, and if the first impedance value and the second impedance value are within the preset range, the two diaphragms are indicated to normally sound. The size of the preset range can be set according to different speakers, and the embodiment of the present application is not limited herein.
Sub-step 1022, if the first impedance value is not within the preset range, the working state of the first diaphragm is a fault state.
And step 1023, if the second impedance value is not within the preset range, the working state of the second diaphragm is a fault state.
In the embodiment of the application, the first impedance value of the first vibrating diaphragm detected by the first power amplifier is compared with a preset range, if the first impedance value is within the preset range, the working state of the first vibrating diaphragm is indicated to be normal, and if the first impedance value is not within the preset range, the working state of the first vibrating diaphragm is indicated to be fault. And similarly, comparing the second impedance value of the second vibrating diaphragm detected by the second power amplifier with a preset range, if the second impedance value is within the preset range, indicating that the working state of the second vibrating diaphragm is normal, and if the second impedance value is not within the preset range, indicating that the working state of the second vibrating diaphragm is fault.
Optionally, step 102 specifically includes:
and step 1024, determining the working states of the first diaphragm and the second diaphragm according to the coding information corresponding to the first diaphragm and the second diaphragm.
In the embodiment of the application, besides using the impedance values corresponding to the first vibrating diaphragm and the second vibrating diaphragm to judge the working states of the first vibrating diaphragm and the second vibrating diaphragm, the working states of the first vibrating diaphragm and the second vibrating diaphragm can also be judged by adopting the coding information of the first vibrating diaphragm and the second vibrating diaphragm respectively. Reference is made to the descriptions of sub-step 10121 and sub-step 10122, which are not repeated here.
Optionally, the substep 1024 specifically includes:
sub-step 10241, if the voice signal sent by the dual-diaphragm speaker does not include the first coding information, the working state of the first diaphragm is a fault state;
in sub-step 10242, if the voice signal sent by the dual-diaphragm speaker does not include the second encoded information, the working state of the second diaphragm is a fault state.
In the embodiment of the application, if two diaphragms in the dual-diaphragm loudspeaker are encoded by adopting encoding modes of different frequency points, then voice signals respectively sent by the two diaphragms have different frequencies, if the first diaphragm and the second diaphragm produce sound at the same time, when the top microphone receives the voice signals, the encoding information of the voice signals is obtained through analysis of the voice signals, if the encoding information corresponding to the voice signals is first encoding information, the received voice signals are the voice signals sent by the first diaphragm, the working state of the first diaphragm is a normal state, and because the encoding information corresponding to the voice signals does not comprise second encoding information, the second diaphragm cannot normally send sound, and the state of the second diaphragm is a fault state. It should be noted that the first diaphragm and the second diaphragm may also be configured to sound separately at different time points, so that the working state of each diaphragm may also be determined by separately detecting the voice signal sent by each diaphragm.
Optionally, the substep 1024 specifically includes:
in sub-step 10243, in the case of sounding by the dual-diaphragm speaker, the respective working states of the first diaphragm or the second diaphragm are determined according to the duration of the voice signal in which the encoded information received in the preset period is the third encoded information.
In the embodiment of the application, if the coding modes of the two diaphragms of the dual-diaphragm loudspeaker are the coding modes of the same frequency point, the working states of the two diaphragms can be determined by collecting the voice signals in a preset time period and analyzing the duration time of the voice signals in the preset period.
Specifically, during detection, the voice signal can be subjected to filtering processing firstly, so that the voice signal only comprises the voice signal of the third coding information, namely, the voice signal of 22KHz is reserved through the filtering processing, and the interference of other frequency point signals on the result is avoided; specifically, the duration of the voice signal may be determined by dBFS (Decibels Full Scale, full decibel scale) of the voice signal. For example, the judgment condition may be set to be greater than-40 dBus, the duration of which is recorded if the voice signal is greater than-40 dBus, and not recorded if the voice signal is less than-40 dBus. Specific judgment conditions can be designed according to the actual electronic structure of the loudspeaker, and the embodiment of the application is not limited herein.
Optionally, the substep 10243 specifically includes:
a substep A1, if the duration of the received voice signal is a first time period within a preset period, determining that the working state of the second diaphragm is a fault state;
a substep A2, determining that the working state of the first diaphragm is a fault state if the duration of the received voice signal is a second time period;
and a substep A3, wherein if the duration of the received voice signal is the sum of the first time period and the second time period, the working states of the first diaphragm and the second diaphragm are normal states.
In the embodiment of the application, the working states corresponding to the two diaphragms can be judged by counting the duration of the voice signal in the preset time period. Statistics of the duration of the signal may be recorded by a timer.
Referring to fig. 3, voice signals within 500ms may be collected for analysis. If the duration of the received voice signal is within 10mS of 100mS, the voice signal received within 500mS is the voice signal sent by the first diaphragm, which indicates that the second diaphragm fails to normally sound and the second diaphragm fails because the sound-producing time points of the first diaphragm and the second diaphragm are different. If the duration of the received voice signal is within 200mS plus or minus 10mS within the period, the received voice signal is the voice signal sent by the second diaphragm within 500mS, which indicates that the first diaphragm fails to normally sound and the first diaphragm fails. If the duration of the received voice signal is within 300mS plus or minus 10mS within the period, the received voice signal is the voice signal commonly emitted by the first vibrating diaphragm and the second vibrating diaphragm within 500mS, which means that the first vibrating diaphragm and the second vibrating diaphragm normally emit sounds, that is, the working states of the first vibrating diaphragm and the second vibrating diaphragm are normal.
Step 103, adjusting the sound volume of the second diaphragm or the first diaphragm when the working state of the first diaphragm or the second diaphragm is a fault state. Optionally, the speaker or the receiver frequency response can be optimized to meet the user requirement according to the audio effect when both the receiver and the speaker work normally.
In the embodiment of the application, when the working state of the first diaphragm or the second diaphragm is a fault state, the volume of the other diaphragm can be properly adjusted according to the sounding mode of the current double-diaphragm loudspeaker so as to balance the volume of the sounding sound. For example, if two diaphragms are both sounding normally, the sound of the two diaphragms is higher than that of a single diaphragm, then the sound volume of the normal diaphragm can be properly adjusted to compensate for the sound of the fault diaphragm, if the two diaphragms are both sounding normally, the sound of the two diaphragms is lower than that of a single diaphragm, then the sound volume of the normal diaphragm can be properly reduced to avoid the sound volume of a single diaphragm being too high, which causes discomfort to the user.
Optionally, the first diaphragm is a diaphragm of a receiver, the second diaphragm is a diaphragm of a speaker, and step 103 specifically includes:
Sub-step 1031, when the first diaphragm and the second diaphragm are in the same phase, increasing the sound volume of the second diaphragm if the working state of the first diaphragm is a fault state, and increasing the sound volume of the first diaphragm if the working state of the second diaphragm is a fault state. And according to the audio frequency effect when the receiver and the loudspeaker work normally, the loudspeaker or the receiver frequency response is optimized to meet the user requirement.
In the embodiment of the application, the first vibrating diaphragm can be a vibrating diaphragm of a receiver, and the receiver is commonly used in a receiver mode, so that the first vibrating diaphragm is used for serving application scenes with high requirements for privacy such as small sound and the like, the sound-producing position of the first vibrating diaphragm can be the front face of the electronic equipment or the included angle between the front face and the top side face of the electronic equipment, the second vibrating diaphragm can be a vibrating diaphragm of a loudspeaker and is used for producing sound under different application scenes of the electronic equipment in cooperation with the first vibrating diaphragm, and the sound-producing position of the second vibrating diaphragm can be the top side face of the electronic equipment. In the privacy scene, the sound of the second vibrating diaphragm and the sound of the first vibrating diaphragm are matched to generate sound with the same vibration amplitude and opposite phases, so that a dipole sound source is formed, an anti-phase sound field superposition is generated at the far field of the electronic equipment, the loudness and definition of the sound are reduced, and therefore other people at the far field of the electronic equipment cannot hear the conversation sound, and the privacy of conversation is realized. In an application scene of the external power amplifier, the sound of the second vibrating diaphragm and the sound of the first vibrating diaphragm generate sounds with the same phase, so that the same-phase sound field superposition is formed, the sound loudness is enhanced, and the improvement of the external amplification effect of the electronic equipment is realized.
The first vibrating diaphragm and the second vibrating diaphragm send out the same-phase sound, namely indicate when two vibrating diaphragms work together, the volume of the sound that obtains after two way sound wave stack can be bigger. Therefore, in the case that the first diaphragm and the second diaphragm are in the same phase, the sound generated by the combination of the two diaphragms should be higher than the sound generated by one of the diaphragms alone, so when one of the diaphragms is broken, the sound generated by only one of the diaphragms cannot reach the sound generated by the combination of the two diaphragms, and at this time, the sound heard by the user is smaller than the sound when both of the two diaphragms are in normal operation, so when one of the diaphragms is broken, the sound of the other diaphragm needs to be properly improved, so that the user can hear the sound normally.
Sub-step 1032, in the case that the first diaphragm and the second diaphragm are emitting sounds with opposite phases, reducing the sound volume of the second diaphragm if the working state of the first diaphragm is a fault state, and reducing the sound volume of the first diaphragm if the working state of the second diaphragm is a fault state. And according to the audio frequency effect when the receiver and the loudspeaker work normally, the loudspeaker or the receiver frequency response is optimized to meet the user requirement.
In the embodiment of the application, under the condition that the first diaphragm and the second diaphragm emit sounds with opposite phases, if the two diaphragms work simultaneously, the sounds emitted by the first diaphragm and the sounds emitted by the second diaphragm can cancel each other, and the sound emitted by the combination of the two diaphragms should be lower than the sound emitted by one of the diaphragms alone, so when one of the diaphragms is broken, the sound emitted by only one of the diaphragms is larger than the sound emitted by the combination of the two diaphragms, and at the moment, the sound heard by a user is larger than the sound polarized when the two diaphragms work normally, therefore, when one of the diaphragms is broken, the sound of the other diaphragm needs to be reduced appropriately, so as to avoid the discomfort of ears of the user caused by the larger sound. According to the application, through judging the working states of the two diaphragms in the double-diaphragm loudspeaker, the volume of the other normal working loudspeaker is correspondingly adjusted, so that the effect that the use experience of a user is not influenced even if one diaphragm of the double-diaphragm loudspeaker is damaged is achieved.
Referring to fig. 4, fig. 4 is a view of a scene structure, where the single sounding module may be a dual-diaphragm speaker sounding module, the single detection module is configured to detect respective working states of two diaphragms of the dual-diaphragm speaker based on an external acoustic path, and the processing module is configured to adjust sounding volumes of the two diaphragms based on the detected working states of the two diaphragms.
In summary, in the embodiment of the application, the state parameter values of the first diaphragm and the second diaphragm in the dual-diaphragm loudspeaker are obtained, the working states corresponding to the two diaphragms in the dual-diaphragm loudspeaker are determined according to the state parameter values, and when one diaphragm is judged to be bad, the volume of the other diaphragm is adjusted to realize the volume adjustment of the dual-diaphragm loudspeaker, so that a user can hear normal sound when one diaphragm in the dual-diaphragm loudspeaker is bad, discomfort caused by human ears is avoided, and user experience is improved.
According to the display method provided by the embodiment of the application, the execution main body can be a double-diaphragm loudspeaker volume control device. In the embodiment of the application, a method for executing the volume control of the dual-diaphragm loudspeaker by using the volume control device of the dual-diaphragm loudspeaker is taken as an example, and the volume control device of the dual-diaphragm loudspeaker provided by the embodiment of the application is described.
Referring to fig. 5, an embodiment of the present application provides a volume control device 20 for a dual-diaphragm speaker, where the device 20 includes:
an obtaining module 201, configured to obtain state parameter values of a first diaphragm and a second diaphragm in a dual-diaphragm speaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment;
The judging module 202 is configured to determine respective working states of the first diaphragm and the second diaphragm according to respective state parameter values corresponding to the first diaphragm and the second diaphragm;
and the adjusting module 203 is configured to adjust the sound volume of the second diaphragm or the first diaphragm when the working state of the first diaphragm or the second diaphragm is a fault state.
Optionally, the state parameter value includes an impedance value, and the acquiring module includes:
the first acquisition submodule is used for acquiring a first impedance value of the coil corresponding to the first vibrating diaphragm and a second impedance value of the coil corresponding to the second vibrating diaphragm; the first impedance value is detected by a first power amplifier connected with the first vibrating diaphragm, and the second impedance value is detected by a second power amplifier connected with the second vibrating diaphragm;
the judging module comprises:
the first judging submodule is used for judging whether the first impedance value and the second impedance value are in a preset range or not;
the first determining submodule is used for determining that the working state of the first vibrating diaphragm is a fault state if the first impedance value is not in a preset range;
and the second determining submodule is used for determining that the working state of the second vibrating diaphragm is a fault state if the second impedance value is not in a preset range.
Optionally, the state parameter value includes coding information, and the acquiring module includes:
the encoding submodule is used for encoding the first vibrating diaphragm and the second vibrating diaphragm;
the coding acquisition sub-module is used for acquiring coding information of a voice signal sent by the double-diaphragm loudspeaker under the condition that the double-diaphragm loudspeaker sounds;
the judging module comprises:
and the second judging submodule is used for determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the coding information corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively.
Optionally, the encoding submodule includes:
the first sub-module is used for respectively encoding the first vibrating diaphragm and the second vibrating diaphragm by using different frequency points to obtain first encoding information corresponding to the first vibrating diaphragm and second encoding information corresponding to the second vibrating diaphragm;
the second judging sub-module includes:
the third determining submodule is used for determining that the working state of the first diaphragm is a fault state if the voice signal sent by the double-diaphragm loudspeaker does not comprise first coding information under the condition that the double-diaphragm loudspeaker sounds;
and the fourth determining submodule is used for determining that the working state of the second diaphragm is a fault state if the voice signal sent by the double-diaphragm loudspeaker does not comprise the second coding information.
Optionally, the encoding submodule includes:
the second sub-module is used for coding the first vibrating diaphragm and the second vibrating diaphragm by using the same frequency point to obtain third coding information corresponding to the first vibrating diaphragm and the second vibrating diaphragm, setting the sounding duration of the first vibrating diaphragm as a first time period, setting the sounding duration of the second vibrating diaphragm as a second time period, and sounding the first vibrating diaphragm and the second vibrating diaphragm at different time points;
the second judging sub-module includes:
and the third sub-module is used for determining the respective working states of the first diaphragm or the second diaphragm according to the duration time of the voice signal, the received coding information of which is the third coding information, in a preset period under the condition that the double-diaphragm loudspeaker produces sound.
Optionally, the third sub-module includes:
a fifth determining submodule, configured to determine that the working state of the second diaphragm is a fault state if the duration of the received speech signal is the first time period within the preset period;
a sixth determining submodule, configured to determine that the working state of the first diaphragm is a fault state if the duration of the received voice signal is a second time period;
And a seventh determining submodule, configured to, if the duration of the received voice signal is the sum of the first time period and the second time period, make the working states of the first diaphragm and the second diaphragm be normal.
Optionally, the first vibrating diaphragm is a vibrating diaphragm of a receiver, the second vibrating diaphragm is a vibrating diaphragm of a loudspeaker, and the adjusting module includes:
the first adjusting sub-module is used for increasing the sound volume of the second vibrating diaphragm if the working state of the first vibrating diaphragm is a fault state and increasing the sound volume of the first vibrating diaphragm if the working state of the second vibrating diaphragm is a fault state under the condition that the first vibrating diaphragm and the second vibrating diaphragm are in the same phase;
the second adjusting sub-module is used for reducing the sound volume of the second vibrating diaphragm if the working state of the first vibrating diaphragm is a fault state and reducing the sound volume of the first vibrating diaphragm if the working state of the second vibrating diaphragm is a fault state under the condition that the first vibrating diaphragm and the second vibrating diaphragm are sounds with opposite phases.
In summary, in the embodiment of the application, the state parameter values of the first diaphragm and the second diaphragm in the dual-diaphragm loudspeaker are obtained, the working states corresponding to the two diaphragms in the dual-diaphragm loudspeaker are determined according to the state parameter values, and when one diaphragm is judged to be bad, the volume of the other diaphragm is adjusted to realize the volume adjustment of the dual-diaphragm loudspeaker, so that a user can hear normal sound when one diaphragm in the dual-diaphragm loudspeaker is bad, discomfort caused by human ears is avoided, and user experience is improved.
The volume control device of the dual-diaphragm loudspeaker in the embodiment of the application can be electronic equipment, and can also be a component in the electronic equipment, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The volume control device of the dual-diaphragm loudspeaker in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The volume control device for a dual-diaphragm speaker provided by the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 400, which includes a processor 401 and a memory 402, where the memory 402 stores a program or an instruction that can be executed on the processor 401, and the program or the instruction when executed by the processor 401 implements each step of the above-mentioned dual-diaphragm speaker volume control method embodiment, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor is used for acquiring state parameter values of the first vibrating diaphragm and the second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment;
determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively;
and under the condition that the working state of the first vibrating diaphragm or the second vibrating diaphragm is a fault state, adjusting the sounding volume of the second vibrating diaphragm or the first vibrating diaphragm.
Optionally, the state parameter value includes an impedance value, and the processor is further configured to:
acquiring a first impedance value of a coil corresponding to the first vibrating diaphragm and a second impedance value of a coil corresponding to the second vibrating diaphragm; the first impedance value is detected by a first power amplifier connected with the first vibrating diaphragm, and the second impedance value is detected by a second power amplifier connected with the second vibrating diaphragm;
the processor is further configured to:
judging whether the first impedance value and the second impedance value are within a preset range or not;
if the first impedance value is not in the preset range, the working state of the first vibrating diaphragm is a fault state;
And if the second impedance value is not in the preset range, the working state of the second vibrating diaphragm is a fault state.
Optionally, the state parameter value includes encoded information, and the processor is further configured to:
encoding the first diaphragm and the second diaphragm;
under the condition that the double-diaphragm loudspeaker sounds, acquiring coding information of a voice signal sent by the double-diaphragm loudspeaker;
the processor is further configured to:
and determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the coding information corresponding to the first vibrating diaphragm and the second vibrating diaphragm.
Optionally, the processor is further configured to:
respectively encoding the first vibrating diaphragm and the second vibrating diaphragm by using different frequency points to obtain first encoding information corresponding to the first vibrating diaphragm and second encoding information corresponding to the second vibrating diaphragm;
the processor is further configured to:
under the condition that the double-diaphragm loudspeaker produces sound, if the voice signal sent by the double-diaphragm loudspeaker does not comprise first coding information, the working state of the first diaphragm is a fault state;
and if the voice signal sent by the double-diaphragm loudspeaker does not comprise the second coding information, the working state of the second diaphragm is a fault state.
Optionally, the processor is further configured to:
the first vibrating diaphragm and the second vibrating diaphragm are encoded by the same frequency point to obtain third encoded information corresponding to the first vibrating diaphragm and the second vibrating diaphragm, the sounding duration of the first vibrating diaphragm is set to be a first time period, the sounding duration of the second vibrating diaphragm is set to be a second time period, and the first vibrating diaphragm and the second vibrating diaphragm sound at different time points;
the processor is further configured to:
under the condition that the double-diaphragm loudspeaker produces sound, the working states of the first diaphragm or the second diaphragm are determined according to the duration time of the voice signal, wherein the received coding information is the third coding information, in a preset period.
Optionally, the processor is further configured to:
if the duration of the received voice signal is a first time period in a preset period, determining that the working state of the second vibrating diaphragm is a fault state;
if the duration of the received voice signal is a second time period, determining that the working state of the first vibrating diaphragm is a fault state;
if the duration of the received voice signal is the sum of the first time period and the second time period, the working states of the first vibrating diaphragm and the second vibrating diaphragm are normal states.
Optionally, the first diaphragm is a diaphragm of a receiver, the second diaphragm is a diaphragm of a speaker, and the processor is further configured to:
under the condition that the first vibrating diaphragm and the second vibrating diaphragm emit sounds with the same phase, if the working state of the first vibrating diaphragm is a fault state, the sound volume of the second vibrating diaphragm is increased, and if the working state of the second vibrating diaphragm is a fault state, the sound volume of the first vibrating diaphragm is increased;
and under the condition that the first vibrating diaphragm and the second vibrating diaphragm emit sounds with opposite phases, if the working state of the first vibrating diaphragm is a fault state, the sound volume of the second vibrating diaphragm is reduced, and if the working state of the second vibrating diaphragm is a fault state, the sound volume of the first vibrating diaphragm is reduced.
In the embodiment of the application, the state parameter values of the first vibrating diaphragm and the second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker are obtained, the working states corresponding to the two vibrating diaphragms in the double-vibrating-diaphragm loudspeaker are determined according to the state parameter values, and when one vibrating diaphragm is judged to be broken, the volume of the other vibrating diaphragm is adjusted to realize the volume adjustment of the double-vibrating-diaphragm loudspeaker, so that a user can hear normal sound when one vibrating diaphragm in the double-vibrating-diaphragm loudspeaker is broken, discomfort caused by human ears is avoided, and user experience is improved.
It should be appreciated that in an embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1009 in embodiments of the application includes, but is not limited to, these and any other suitable types of memory.
The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, realizes each process of the above-mentioned dual-diaphragm speaker volume control method embodiment, and can achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the dual-diaphragm loudspeaker volume control method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above-described dual-diaphragm speaker volume control method embodiment, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (10)
1. A method for controlling the volume of a dual diaphragm loudspeaker, the method comprising:
acquiring state parameter values of a first vibrating diaphragm and a second vibrating diaphragm in the double-vibrating-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment;
determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively;
and under the condition that the working state of the first vibrating diaphragm or the second vibrating diaphragm is a fault state, adjusting the sounding volume of the second vibrating diaphragm or the first vibrating diaphragm.
2. The method of claim 1, wherein the state parameter value comprises an impedance value, and wherein the obtaining the state parameter values of the first diaphragm and the second diaphragm in the dual-diaphragm speaker comprises:
acquiring a first impedance value of a coil corresponding to the first vibrating diaphragm and a second impedance value of a coil corresponding to the second vibrating diaphragm; the first impedance value is detected by a first power amplifier connected with the first vibrating diaphragm, and the second impedance value is detected by a second power amplifier connected with the second vibrating diaphragm;
The determining, according to the state parameter values corresponding to the first diaphragm and the second diaphragm, the working states of the first diaphragm and the second diaphragm includes:
judging whether the first impedance value and the second impedance value are within a preset range or not;
if the first impedance value is not in the preset range, the working state of the first vibrating diaphragm is a fault state;
and if the second impedance value is not in the preset range, the working state of the second vibrating diaphragm is a fault state.
3. The method of claim 1, wherein the state parameter value includes encoded information, and wherein the obtaining state parameter values for the first diaphragm and the second diaphragm in the dual diaphragm loudspeaker includes:
encoding the first diaphragm and the second diaphragm;
under the condition that the double-diaphragm loudspeaker sounds, acquiring coding information of a voice signal sent by the double-diaphragm loudspeaker;
the determining, according to the state parameter values corresponding to the first diaphragm and the second diaphragm, the working states of the first diaphragm and the second diaphragm includes:
and determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the coding information corresponding to the first vibrating diaphragm and the second vibrating diaphragm.
4. A method according to claim 3, wherein the encoding the first diaphragm and the second diaphragm comprises:
respectively encoding the first vibrating diaphragm and the second vibrating diaphragm by using different frequency points to obtain first encoding information corresponding to the first vibrating diaphragm and second encoding information corresponding to the second vibrating diaphragm;
the determining, according to the coding information corresponding to the first diaphragm and the second diaphragm, the working states of the first diaphragm and the second diaphragm includes:
under the condition that the double-diaphragm loudspeaker produces sound, if the voice signal sent by the double-diaphragm loudspeaker does not comprise first coding information, the working state of the first diaphragm is a fault state;
and if the voice signal sent by the double-diaphragm loudspeaker does not comprise the second coding information, the working state of the second diaphragm is a fault state.
5. A method according to claim 3, wherein the encoding the first diaphragm and the second diaphragm comprises:
the first vibrating diaphragm and the second vibrating diaphragm are encoded by the same frequency point to obtain third encoded information corresponding to the first vibrating diaphragm and the second vibrating diaphragm, the sounding duration of the first vibrating diaphragm is set to be a first time period, the sounding duration of the second vibrating diaphragm is set to be a second time period, and the first vibrating diaphragm and the second vibrating diaphragm sound at different time points;
The determining, according to the coding information corresponding to the first diaphragm and the second diaphragm, the working states of the first diaphragm and the second diaphragm includes:
under the condition that the double-diaphragm loudspeaker produces sound, the working states of the first diaphragm or the second diaphragm are determined according to the duration time of the voice signal, wherein the received coding information is the third coding information, in a preset period.
6. The method of claim 5, wherein determining the respective operating states of the first diaphragm or the second diaphragm based on the duration of the voice signal in which the encoded information received in the predetermined period is the third encoded information, comprises:
if the duration of the received voice signal is a first time period in a preset period, determining that the working state of the second vibrating diaphragm is a fault state;
if the duration of the received voice signal is a second time period, determining that the working state of the first vibrating diaphragm is a fault state;
if the duration of the received voice signal is the sum of the first time period and the second time period, the working states of the first vibrating diaphragm and the second vibrating diaphragm are normal states.
7. The method according to any one of claims 1 to 6, wherein the first diaphragm is a diaphragm of a receiver, the second diaphragm is a diaphragm of a speaker, and adjusting the sound volume of the second diaphragm or the first diaphragm when the working state of the first diaphragm or the second diaphragm is a fault state includes:
under the condition that the first vibrating diaphragm and the second vibrating diaphragm emit sounds with the same phase, if the working state of the first vibrating diaphragm is a fault state, the sound volume of the second vibrating diaphragm is increased, and if the working state of the second vibrating diaphragm is a fault state, the sound volume of the first vibrating diaphragm is increased;
and under the condition that the first vibrating diaphragm and the second vibrating diaphragm emit sounds with opposite phases, if the working state of the first vibrating diaphragm is a fault state, the sound volume of the second vibrating diaphragm is reduced, and if the working state of the second vibrating diaphragm is a fault state, the sound volume of the first vibrating diaphragm is reduced.
8. A dual diaphragm speaker volume control apparatus, the apparatus comprising:
the acquisition module is used for acquiring state parameter values of the first diaphragm and the second diaphragm in the double-diaphragm loudspeaker; the first vibrating diaphragm and the second vibrating diaphragm respectively sound at different positions of the electronic equipment;
The judging module is used for determining the working states of the first vibrating diaphragm and the second vibrating diaphragm according to the state parameter values corresponding to the first vibrating diaphragm and the second vibrating diaphragm respectively;
the adjusting module is used for adjusting the sounding volume of the second vibrating diaphragm or the first vibrating diaphragm under the condition that the working state of the first vibrating diaphragm or the second vibrating diaphragm is a fault state.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the dual diaphragm loudspeaker volume control method of any one of claims 1-7.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the dual diaphragm loudspeaker volume control method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310591218.8A CN116847252A (en) | 2023-05-23 | 2023-05-23 | Volume control method and device for double-diaphragm loudspeaker |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310591218.8A CN116847252A (en) | 2023-05-23 | 2023-05-23 | Volume control method and device for double-diaphragm loudspeaker |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116847252A true CN116847252A (en) | 2023-10-03 |
Family
ID=88166049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310591218.8A Pending CN116847252A (en) | 2023-05-23 | 2023-05-23 | Volume control method and device for double-diaphragm loudspeaker |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116847252A (en) |
-
2023
- 2023-05-23 CN CN202310591218.8A patent/CN116847252A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11798566B2 (en) | Data transmission method and apparatus, terminal, and storage medium | |
CN107231473B (en) | Audio output regulation and control method, equipment and computer readable storage medium | |
CN111917489B (en) | Audio signal processing method and device and electronic equipment | |
EP2693721B1 (en) | Audio output apparatus | |
WO2020083294A1 (en) | Display control method and related product | |
US11272304B2 (en) | Method and terminal for playing audio data, and storage medium thereof | |
US9847767B2 (en) | Electronic device capable of adjusting an equalizer according to physiological condition of hearing and adjustment method thereof | |
EP2996352A1 (en) | Audio system and method using a loudspeaker output signal for wind noise reduction | |
CN108848267B (en) | Audio playing method and mobile terminal | |
CN107404587B (en) | Audio playing control method, audio playing control device and mobile terminal | |
CN114845213A (en) | Method for adjusting volume of terminal and terminal | |
CN109587603B (en) | Volume control method, device and storage medium | |
US20240147128A1 (en) | Mode control method, device for bluetooth headset, and computer readable storage medium | |
GB2557411A (en) | Tactile Bass Response | |
CN108319440B (en) | Audio output method and mobile terminal | |
CN109348366B (en) | Method for adjusting volume by using electrical parameters and mobile terminal | |
JP4305950B2 (en) | Mobile device | |
CN116847252A (en) | Volume control method and device for double-diaphragm loudspeaker | |
CN113766385B (en) | Earphone noise reduction method and device | |
CN107493376A (en) | A kind of ringing volume adjusting method and device | |
US20240069862A1 (en) | Audio playback method, failure detection method for screen sound production component, and electronic device | |
WO2023284403A1 (en) | Audio processing method and device | |
CN112492073B (en) | Audio playing method and device, storage medium and mobile terminal | |
CN116347320B (en) | Audio playing method and electronic equipment | |
CN114630237B (en) | Audio device, control method and device thereof and electronic device |
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 |