Audio playing method and audio playing system
By detecting the clamping state of the protective sleeve and using magnetic parts to enhance the magnetic field of the speaker, the problem of magnets in the protective sleeve interfering with the speaker is solved, improving the sound quality and reducing power consumption.
Patent Information
- Application Number
- CN202411109149.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-13
AI Technical Summary
The magnets in the existing protective case will interfere with the magnetic circuit of the speakers in the mobile terminal, resulting in reduced volume and noise, affecting the normal operation of the speakers.
By detecting the clasping state of the protective sleeve, the magnetic parts in the target protective sleeve work together with the central magnetic parts of the speaker to enhance the magnetic field strength of the voice coil position, thereby improving the sound quality of the speaker and avoiding volume reduction and noise problems.
It effectively improves the sound quality of the speaker, ensures the normal operation of the speaker, reduces power consumption, and avoids volume reduction and noise problems caused by magnet interference.
Smart Images

Figure CN119012093A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to an audio external speaker method and an audio external speaker system. Background Art
[0002] With the development of mobile terminals, mobile terminals have become an indispensable tool in people's daily life. Protective covers are one of the important accessories of mobile terminals and play an important role in protecting mobile terminals. Therefore, many interactive technologies between mobile terminals and protective covers have been derived. For example, the mobile terminal detects the presence of the protective cover.
[0003] At present, the in-place detection scheme of the protective cover usually includes: one or more magnets are built into the protective cover, and a Hall sensor is built into the mobile terminal. The mobile terminal can detect whether it is attached to the magnet through the Hall sensor, so as to determine that the mobile terminal is buckled with the protective cover when it is determined that the mobile terminal is attached to the magnet. However, the magnet built into the protective cover will interfere with the magnetic circuit of the speaker in the mobile terminal, causing the speaker to easily have problems such as reduced volume and noise, affecting the normal operation of the speaker. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an audio external speaker method and an audio external speaker system, which can solve the problem that the normal operation of the current speaker is affected by the magnet in the protective cover.
[0005] In a first aspect, an embodiment of the present application provides an audio playing method, which is applied to an electronic device with a built-in speaker, and the method includes:
[0006] When it is detected that the electronic device is buckled with a target protective cover, a first audio parameter is obtained, wherein a magnetic component is disposed in the target protective cover, and when the target protective cover is buckled with the electronic device, a magnetic pole of an end of the magnetic component close to the electronic device is the same as a magnetic pole of an end of a central magnetic component of the speaker close to the target protective cover, and the first audio parameter is an audio parameter of the speaker under the joint action of the central magnetic component and the magnetic component.
[0007] Using the first audio parameter, playing the sound through the speaker;
[0008] When it is not detected that the electronic device is buckled with the target protective cover, a second audio parameter is obtained, where the second audio parameter is an audio parameter of the speaker under the action of the central magnetic member.
[0009] The second audio parameter is used to play the sound through the speaker.
[0010] In a second aspect, an embodiment of the present application provides an audio external speaker system, the audio external speaker system comprising: an electronic device and a target protective cover;
[0011] The electronic device is equipped with a built-in speaker, the speaker includes a central magnetic part, a side magnetic part and a voice coil, the voice coil is arranged in a gap between the central magnetic part and the side magnetic part, the target protective cover is equipped with a magnetic part, when the target protective cover is buckled on the electronic device, the magnetic pole of one end of the magnetic part close to the electronic device is the same as the magnetic pole of one end of the central magnetic part close to the target protective cover;
[0012] The electronic device is used to play sound through the speaker using first audio parameters when it is detected that the electronic device is buckled with the target protective cover, and to play sound through the speaker using second audio parameters when it is not detected that the electronic device is buckled with the target protective cover.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0017] In an embodiment of the present application, the audio external playing method can be applied to an electronic device with a built-in speaker. When the electronic device detects that the target protective cover is buckled on the electronic device, the first audio parameter is used to play the sound through the speaker; when the target protective cover is not detected, the second audio parameter is used to play the sound through the speaker. Since a magnetic part is provided in the target protective cover, and when the target protective cover is buckled on the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover. Therefore, when the target protective cover is buckled on the electronic device, the magnetic part of the target protective cover can form a magnetic field with the side magnetic part of the speaker at the voice coil of the speaker, and the magnetic field can be superimposed with the magnetic field formed by the central magnetic part and the side magnetic part of the speaker at the voice coil, thereby enhancing the magnetic field strength at the position of the voice coil in the speaker. The enhancement of the magnetic field strength at the position of the voice coil can improve the sound quality of the speaker. Therefore, by using the first audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part in the target protective cover to play the sound through the speaker, the sound quality of the speaker can be effectively improved, the problem of volume reduction, noise and the like of the speaker can be avoided, and the normal operation of the speaker can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a structural schematic diagram of a speaker provided by the related technology;
[0019] Figure 2 It is a simulation diagram of a magnetic flux density model provided in an embodiment of the present application;
[0020] Figure 3 is a simulation diagram of another magnetic flux density model provided in an embodiment of the present application;
[0021] Figure 4 is a simulation diagram of another magnetic flux density model provided in an embodiment of the present application;
[0022] Figure 5 It is a structural schematic diagram of an audio external speaker system provided in an embodiment of the present application;
[0023] Figure 6 It is a structural schematic diagram of another audio external speaker system provided in an embodiment of the present application;
[0024] Figure 7 is a schematic structural diagram of a target protective cover provided in an embodiment of the present application;
[0025] Figure 8 is a simulation diagram of another magnetic flux density model provided in an embodiment of the present application;
[0026] Fig. 9 is a circuit diagram of an electronic device provided in an embodiment of the present application;
[0027] Fig.10 is a schematic diagram of a parameter adaptive debugging module provided in an embodiment of the present application;
[0028] Fig.11 It is a schematic diagram of a frequency response curve provided in an embodiment of the present application;
[0029] Fig.12 It is a schematic diagram of the debugging principle of an audio parameter provided in an embodiment of the present application;
[0030] Fig.13 is a circuit diagram of an impedance model provided in an embodiment of the present application;
[0031] Fig.14 is a schematic diagram of an impedance curve provided in an embodiment of the present application;
[0032] Fig.15 is a circuit diagram of another electronic device provided in an embodiment of the present application;
[0033] Fig.16 is a flow chart of an audio playing method provided by an embodiment of the present application;
[0034] Fig.17 is a flow chart of another audio playing method provided by an embodiment of the present application;
[0035] Fig.18 is a block diagram of an electronic device provided by another embodiment of the present application;
[0036] Fig.19 It is a structural schematic diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0038] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0039] The audio external speaker method and the audio external speaker system provided by the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0040] For ease of understanding, the principles involved in the technical solution of the present application are introduced first below.
[0041] Please refer to Figure 1 , which shows a schematic diagram of the structure of a speaker provided by the related art. Figure 1 As shown, the loudspeaker 10 includes a central magnet 101, four side magnets 102, a voice coil 103 and a diaphragm ( Figure 1 The four side magnets 102 are distributed on four sides of the center magnet 101. The voice coil 103 is arranged between the side magnets 102 and the center magnet 101.
[0042] Among them, the magnetic pole of one end of the central magnet 101 along the first direction is the N pole, and the magnetic pole of one end of the four side magnets 102 along the first direction is the S pole. Correspondingly, the magnetic pole of one end of the central magnet 101 along the opposite direction of the first direction is the S pole, and the magnetic pole of one end of the four side magnets 102 along the opposite direction of the first direction is the N pole. After the voice coil 103 is energized, the Lorentz force is generated under the action of the magnetic field of the central magnet 101 and the four side magnets 102, and the voice coil 103 moves back and forth along the first direction to drive the diaphragm to vibrate and drive the air to make sound.
[0043] According to the Ampere's law formula: F = BIL. The Ampere force F on the wire is equal to the product of the magnetic field strength B passing through the wire, the wire current I, and the wire length L. It can be seen that by increasing the magnetic field strength of the environment in which the voice coil 103 (i.e., the wire) is located, the movement sensitivity of the voice coil can be increased, thereby increasing the driving force of the voice coil on the diaphragm, increasing the vibration sensitivity of the diaphragm, improving the sound quality of the speaker, and reducing the power consumption of the speaker.
[0044] In the first case, if Figure 2As shown, a reinforcing magnet 20 is added to one side of the first direction of the central magnet 101. The magnetic poles of the reinforcing magnet 20 and the end adjacent to the central magnet 101 are the same, both are N poles. That is, the magnetic poles of the end of the reinforcing magnet 20 in the opposite direction of the first direction and the end of the central magnet 101 in the first direction are both N poles. The magnetic pole of the end of the reinforcing magnet 20 in the first direction is an S pole. That is, the reinforcing magnet 20 and the central magnet 101 have the same polarity.
[0045] In this case, a magnetic field is also formed between the reinforcing magnet 20 and the four side magnets 102, and the voice coil 103 is located in the magnetic field. After the voice coil 103 is powered on, the voice coil 103 can simultaneously generate a Lorentz force under the magnetic field formed by the central magnet 101 and the four side magnets 102, and the magnetic field formed by the reinforcing magnet 20 and the four side magnets 102. As the magnetic field strength of the environment in which the voice coil 103 is located increases, the motion sensitivity of the voice coil 103 increases, the sound quality of the speaker improves, and the power consumption decreases.
[0046] The magnetic flux density at the position of the voice coil 103 in this case can be simulated to obtain Figure 2 The simulation results are shown in Figure 2. Figure 2 The lighter the color of the bar on the right side, the larger the magnetic flux density norm (BT). Figure 2 The arrow in indicates the magnetic flux density. It can be calculated from the simulation results that the average value of the magnetic flux density modulus at the position where the voice coil 103 is located in this case is 0.745T.
[0047] In the second case, if Figure 3 As shown, a reinforcing magnet 20 is added to one side of the first direction of the central magnet 101. The magnetic poles of the reinforcing magnet 20 and the end adjacent to the central magnet 101 are opposite. That is, the end of the reinforcing magnet 20 in the opposite direction of the first direction is the S pole. The magnetic pole of one end of the central magnet 101 in the first direction is the N pole. The magnetic pole of one end of the reinforcing magnet 20 in the first direction is the N pole. That is, the reinforcing magnet 20 and the central magnet 101 have opposite polarities.
[0048] In this case, a magnetic field is formed between the reinforcing magnet 20 and the central magnet 101, which weakens the magnetic field strength between the central magnet 101 and the four side magnets 102, and the voice coil 103 is not located in the magnetic field. In this way, as the magnetic field strength of the environment where the voice coil 103 is located weakens, the movement sensitivity of the voice coil 103 weakens, and the sound quality of the speaker is reduced.
[0049] The magnetic flux density at the position of the voice coil 103 in this case can be simulated to obtain Figure 3 The simulation results are shown in Figure 2. Figure 3 The lighter the color of the bar on the right side, the larger the magnetic flux density modulus. Figure 3The arrow in indicates the magnetic flux density. It can be calculated from the simulation results that the average value of the magnetic flux density modulus at the position where the voice coil 103 is located in this case is 0.691T.
[0050] In order to better compare the changes in the magnetic field strength of the voice coil 103 in the above two cases, the magnetic flux density at the position of the voice coil 103 is simulated without adding the reinforcing magnet 20, that is, the voice coil 103 is in the magnetic field formed by the central magnet 101 and the four side magnets 102. Figure 4 The simulation results are shown in Figure 2. Figure 4 The lighter the color of the bar on the right side, the larger the magnetic flux density modulus. Figure 4 The arrow in indicates the magnetic flux density. It can be calculated from the simulation results that the average value of the magnetic flux density modulus at the position where the voice coil 103 is located in this case is 0.716T.
[0051] As can be seen from the above, the average values of the magnetic flux density modulus at the position of the voice coil 103 in the three cases are shown in Table 1. In the first case, the reinforcing magnet 20 and the central magnet 101 have the same polarity, and the average value of the magnetic flux density modulus at the position of the voice coil 103 is 0.745T. In the second case, the reinforcing magnet 20 and the central magnet 101 have opposite polarities, and the average value of the magnetic flux density modulus at the position of the voice coil 103 is 0.691T. In the third case, there is no reinforcing magnet 20, and the average value of the magnetic flux density modulus at the position of the voice coil 103 is 0.716T.
[0052]
[0053] Table 1
[0054] It is not difficult to see from Table 1 that when the magnetic poles of the reinforcing magnet 20 and the end adjacent to the central magnet 101 are the same, the reinforcing magnet 20 has an enhancing effect on the sensitivity of the voice coil 103, so that the magnetic flux density modulus at the position where the voice coil 103 is located increases. When the magnetic poles of the reinforcing magnet 20 and the end adjacent to the central magnet 101 are opposite, the reinforcing magnet 20 has an attenuating effect on the sensitivity of the voice coil 103, so that the magnetic flux density modulus at the position where the voice coil 103 is located decreases. Therefore, by providing a magnetic part on the protective cover, and making the magnetic pole of the end of the magnetic part of the protective cover close to the electronic device when the protective cover is buckled on the electronic device, the magnetic pole of the central magnetic part of the speaker close to the end of the protective cover can be the same, so as to increase the magnetic field strength of the magnetic field in the environment where the voice coil in the speaker is located, enhance the magnetic flux density film at the position where the voice coil is located, improve the motion sensitivity of the voice coil, and thus improve the sound quality of the speaker and reduce power consumption.
[0055] Regarding power consumption, specific tests are as follows: in the first case, the reinforcing magnet 20 has the same polarity as the central magnet 101. The power consumption of the test speaker when playing sound at the maximum volume is 198mA. In the second case, the reinforcing magnet 20 has the opposite polarity to the central magnet 101. The power consumption of the test speaker when playing sound at the maximum volume is 250mA. In the third case, there is no reinforcing magnet 20. The power consumption of the test speaker when playing sound at the maximum volume is 226mA. Obviously, under the action of the reinforcing magnet 20 with the same polarity as the central magnet 101, the power consumption of the speaker when playing sound is significantly reduced.
[0056] Please refer to Figure 5 and Figure 6 , which shows a schematic diagram of the structure of an audio speaker system provided by an embodiment of the present application. Figure 5 As shown, the audio external speaker system includes: an electronic device and a target protective cover 5. The electronic device is built with a speaker 10. The speaker 10 includes a central magnetic part, a side magnetic part and a voice coil. The voice coil is arranged in the gap between the central magnetic part and the side magnetic part.
[0057] The target protective cover 5 is provided with a magnetic member 51. When the target protective cover 5 is buckled on the electronic device, the magnetic pole of the end of the magnetic member 51 close to the electronic device is the same as the magnetic pole of the end of the central magnetic member in the speaker close to the target protective cover 5.
[0058] The electronic device is used to play the sound through the speaker using the first audio parameter when it is detected that the electronic device is buckled with the target protective cover 5, and to play the sound through the speaker using the second audio parameter when it is not detected that the electronic device is buckled with the target protective cover 5. The first audio parameter is the audio parameter of the speaker 10 under the joint action of the central magnetic part of the speaker 10 and the magnetic part of the target protective cover 5.
[0059] In an optional case, when the target protective cover 5 is buckled on the electronic device, the magnetic member 51 can be arranged alternately with the central magnetic member. In another optional case, when the target protective cover 5 is buckled on the electronic device, the magnetic member 50 can be arranged directly opposite the central magnetic member. In the case where the magnetic member 50 is arranged directly opposite the central magnetic member, the magnetic field strength of the magnetic field formed by the magnetic member 50 and the side magnetic member at the position where the voice coil is located is greater than the magnetic field strength when the magnetic member 50 is staggered with the central magnetic member. Therefore, the arrangement of the magnetic member 50 and the central magnetic member directly opposite each other can more effectively ensure the magnetic member 50's enhancement effect on the magnetic field at the position where the voice coil is located, effectively improve the magnetic flux density film at the position where the voice coil is located, improve the motion sensitivity of the voice coil, and then effectively improve the sound quality of the speaker and reduce power consumption.
[0060] Optionally, the speaker 10 of the electronic device may include one or more side magnetic members. The one or more side magnetic members are arranged on the sides of the central magnetic member. The voice coil is arranged between the central magnetic member and the side magnetic member. For example, the speaker 10 may be Figure 1 The loudspeaker 10 is shown. The magnetic member 51 of the target protective cover 5 can be arranged opposite to the central magnetic member 101 when the target protective cover 5 is buckled on the electronic device.
[0061] In an alternative case, if Figure 5 and 6 As shown, the magnetic member 51 may be a magnet. In another optional case, as Figure 7 As shown, the magnetic part 51 can be a coil 51. In this case, the target protective cover 5 also includes: a connecting contact 52. The connecting contact 52 is used to supply power to the coil 51 when power is turned on. The coil 51 can generate a magnetic field when power is turned on to obtain a device similar to a permanent magnet (magnet). Of course, it should be noted that the polarity of the magnetic field generated by the coil 51 when power is turned on is the same as the polarity of the center coil. That is, when the target protective cover 5 is buckled onto the electronic device, the magnetic pole of the magnetic field generated by the coil 51 when power is turned on is the same as the magnetic pole of the end close to the electronic device and the magnetic pole of the end of the center magnetic part in the speaker close to the target protective cover 5.
[0062] In addition, the magnetic induction intensity calculation formula of the coil 51 is: B = Φ / (N×Ae). B represents the magnetic induction intensity, and the unit is Wb / m^2. Φ represents the induced magnetic flux, and the unit is Wb. N represents the number of turns of the coil 51; Ae represents the effective cross-sectional area of the coil 51, and the unit is m^2. According to the magnetic induction intensity calculation formula, the magnetic induction intensity of the coil 51 when powered on can be adjusted by adjusting the number of turns and the effective cross-sectional area of the coil 51, thereby achieving the enhanced adjustment of the magnetic field intensity of the environment in which the voice coil is located by the coil 51 when powered on.
[0063] For example, Figure 8 As shown, the speaker 10 is Figure 1 The direction of the magnetic field generated by the coil 51 when powered on is the same as the direction of the magnetic pole of the end of the central magnetic member 101 close to the target protective cover. That is, the direction of the magnetic field generated by the coil 51 when powered on (N pole pointing to S pole) is the same as the direction of the magnetic field inside the central magnetic member 101 (S pole pointing to N pole).
[0064] The magnetic flux density at the position of the voice coil 103 in this case can be simulated to obtain Figure 8 The simulation results are shown in Figure 2. Figure 8 The lighter the color of the bar on the right side, the larger the magnetic flux density modulus. Figure 8The arrow in indicates the magnetic flux density. It can be calculated from the simulation results that the average value of the magnetic flux density modulus at the position where the voice coil 103 is located in this case is 0.754T.
[0065] Furthermore, since the coil 51 is powered by direct current, the power consumption of the coil 51 is relatively low. In addition, for the electronic device without the target protective cover, the power consumption of the test speaker when playing the sound at the maximum volume is 226mA. For the electronic device with the target protective cover with the magnetic part as the coil, the power consumption of the test speaker when playing the sound at the maximum volume is 205mA. Obviously, under the action of the magnetic part of the target protective cover 5, the power consumption of the speaker when playing the sound is significantly reduced.
[0066] Further optionally, the electronic device further includes a power supply module. The power supply module is used to supply power to the connection contact when the electronic device is in contact with the connection contact. The electronic device is also used to control the power supply module to stop supplying power to the connection contact 52 when it is detected that the target protective cover 5 is buckled on the electronic device and the power supply module supplies power to the connection contact 52, and when the external speaker instruction is triggered, control the power supply module to supply power to the connection contact 52, and use the first audio parameter to play the sound externally through the speaker 10.
[0067] Correspondingly, the electronic device is also used to play the sound outwardly through the speaker 10 using the second audio parameter if the external playing instruction is triggered when it is not detected that the target protective cover 5 is buckled on the electronic device.
[0068] Among them, the external sound instruction is used to control the speaker 10 to play the sound externally. When the electronic device detects that the target protective cover 5 is buckled on the electronic device and the power supply module supplies power to the connection contact 52, the electronic device can control the power supply module to stop supplying power to the connection contact 52. Then, when the external sound instruction is triggered, indicating that the speaker enters the working state, the electronic device controls the power supply module to supply power to the connection contact 52, so that the coil of the target protective cover 5 is energized to generate a magnetic field, and then the first audio parameter is used to play the sound externally through the speaker 10. In this way, continuous power supply to the connection contact can be avoided when the speaker is not working, reducing ineffective power consumption.
[0069] In an embodiment of the present application, the electronic device is used to use the first audio parameter (i.e., enhanced audio parameter) to play the sound through a speaker when it is detected that the electronic device is fastened with the target protective cover 5, and to use the second audio parameter (i.e., default audio parameter) to play the sound through a speaker when it is not detected that the electronic device is fastened with the target protective cover 5.
[0070] Optionally, the electronic device may store a first audio parameter and a second audio parameter. The electronic device may be used to detect in real time or periodically whether the electronic device is buckled with a target protective cover, so that when it is detected that the target protective cover is buckled with the electronic device, the stored first audio parameter is obtained and the sound is played out through a speaker using the first audio parameter.
[0071] The first audio parameter may include: input gain parameter, equalization parameter, multiband dynamic range control (MBDRC) parameter and amplitude threshold, etc. The input gain parameter is used to adjust the overall sound gain of the speaker. The equalization parameter is used to adjust the sound gain of audio signals at different frequencies. The MBDRC parameter is used to adjust the sound gain of audio signals of different loudnesses. The amplitude threshold is used to limit the amplitude of the audio signal.
[0072] In an optional case, the electronic device can be used to repeatedly adjust the audio parameters when the target protective cover is buckled on the electronic device, or when the electronic device buckled with the target protective cover is simulated, until the frequency response curve of the speaker meets the target frequency response condition, to obtain the adjusted audio parameters, and determine the adjusted audio parameters as the first audio parameters. The audio parameters include input gain parameters, equalization parameters, MBDRC parameters, amplitude thresholds, etc.
[0073] Further optionally, the electronic device can be used to play sound through the speaker 10 using initial audio parameters when the target protective cover is buckled on the electronic device; collect the frequency response curve of the speaker 10; if the frequency response curve does not meet the target frequency response conditions, adjust the values of the initial audio parameters, and play sound through the speaker 10 using the adjusted initial audio parameters; if the frequency response curve meets the target frequency response conditions, determine the initial audio parameters as the first audio parameters.
[0074] For example, the electronic device can draw a frequency response curve by collecting the audio signal output by the speaker 10 when the sound is played out through the speaker using the initial audio parameters. It is determined whether the drawn frequency response curve meets the target frequency response condition. When the frequency response curve meets the target frequency response condition, the initial audio parameter is determined as the first audio parameter. When the frequency response curve does not meet the target frequency response condition, the value of the initial audio parameter is adjusted to use the adjusted initial audio parameter to play the sound out through the speaker 10. The audio signal output by the speaker 10 when the sound is played out is collected again by the microphone to draw a frequency response curve until the drawn frequency response curve meets the target frequency response condition. Among them, the process of the electronic device adjusting the value of the initial audio parameter may include: the electronic device can directly increase or decrease the target variable of a single initial audio parameter. And / or, the electronic device can also adjust the value of the initial audio parameter corresponding to different volume levels differently for a single initial audio parameter.
[0075] The frequency response curve may be a sound frequency-sound pressure curve, that is, the horizontal axis of the frequency response curve is frequency, the unit is Hertz (Hz), and the vertical axis is sound pressure, the unit is decibel (dB). Alternatively, the frequency response curve may be a sound frequency-loudness curve, that is, the horizontal axis of the frequency response curve is frequency, the unit is Hz, and the vertical axis is loudness, the unit is dB. Alternatively, the frequency response curve may be a sound frequency-sound intensity curve, that is, the horizontal axis of the frequency response curve is frequency, the unit is Hz, and the vertical axis is sound intensity, the unit is dB.
[0076] In some embodiments of the present application, the target frequency response condition may include: the similarity between the frequency response curve and the reference frequency response curve is greater than a similarity threshold. The reference frequency response curve is the frequency response curve of the speaker when the second audio parameter is used to play the sound through the speaker. For example, the target frequency response condition includes that the frequency response curve of the speaker is the reference frequency response curve.
[0077] The electronic device can draw a frequency response curve by collecting the audio signal output by the speaker 10 when the sound is played out through the speaker using the initial audio parameters. The electronic device calculates the curve similarity between the drawn frequency response curve and the reference frequency response curve to obtain the similarity between the frequency response curve and the reference frequency response curve. Determine whether the similarity is greater than the similarity threshold. If so, it indicates that the frequency response curve meets the target frequency response condition, and the electronic device determines the initial audio parameter as the first audio parameter. If not, it indicates that the frequency response curve does not meet the target frequency response condition, and the electronic device adjusts the value of the initial audio parameter and uses the adjusted initial audio parameter to play the sound out through the speaker 10. The audio signal output by the speaker 10 when the sound is played out is collected again by the microphone to draw a frequency response curve until the similarity between the drawn frequency response curve and the reference frequency response curve is greater than the similarity threshold.
[0078] Optionally, the frequency response curve is a sound frequency-sound pressure curve. Fig. 9 As shown, the electronic device may further include: a processor 11 , a speaker external circuit 12 , and a feedback circuit 13 .
[0079] The speaker external circuit 12 is connected to the speaker 10. The speaker external circuit 12 is used to control the speaker 10 to play a plurality of sounds of different sound frequencies at a target input sound pressure using the initial audio parameters. The feedback circuit 13 is connected to the processor 11. The feedback circuit 13 is used to collect the actual sound pressure when the speaker 10 plays sounds of different sound frequencies, and transmit the actual sound pressure corresponding to the different sound frequencies to the processor 11. The processor 11 is connected to the speaker external circuit 12. The processor 11 is used to draw a frequency response curve according to the actual sound pressure corresponding to the different sound frequencies, and transmit an adjustment signal to the speaker external circuit 12 when the frequency response curve does not meet the target frequency response condition, and transmit a determination signal to the speaker external circuit 12 when the frequency response curve meets the target frequency response condition. The speaker external circuit 12 is also used to adjust the initial audio parameters when receiving the adjustment signal, and control the speaker 10 to play a plurality of sounds of different sound frequencies at the target input sound pressure again, and determine the initial audio parameters as the first audio parameters when receiving the determination signal.
[0080] Among them, the electronic device can be used to set the input sound pressure of the speaker 10 to a constant value (i.e., the target input sound pressure) when the target protective cover 50 is buckled on the electronic device, and to draw the frequency response curve of the speaker under different audio parameters by collecting the actual sound pressure of the sound played by the speaker 10 under different audio parameters, so as to determine the audio parameter whose frequency response curve meets the target frequency response condition as the first audio parameter.
[0081] For example, the processor 11 can control the speaker external circuit 12 to control the speaker 10 to play multiple sounds of different sound frequencies at a target input sound pressure, and control the speaker 10 to play multiple audio signals of different sound frequencies at a target input sound pressure. The feedback circuit 13 can collect the actual sound pressure when the speaker 10 plays sounds of different sound frequencies through a microphone, and transmit the actual sound pressure of the different sound frequencies to the processor 11. The processor 11 draws a frequency response curve of the sound pressure changing with the sound frequency according to the received actual sound pressure of different sound frequencies. In addition, a reference frequency response curve is obtained, and the curve similarity calculation is performed on the drawn frequency response curve and the reference frequency response curve to obtain the similarity. It is determined whether the similarity is greater than the similarity threshold. If so, it indicates that the frequency response curve meets the target frequency response condition, and a determination signal is transmitted to the speaker external circuit 12, so that the speaker external circuit 12 determines the initial audio parameter as the first audio parameter. If not, it indicates that the frequency response curve does not meet the target frequency response condition, and an adjustment signal is transmitted to the speaker external circuit 12, so that the speaker external circuit 12 adjusts the value of the initial audio parameter. The processor 11 can control the speaker external circuit 12 again to control the speaker 10 to play sounds of multiple different sound frequencies at the target input sound pressure.
[0082] Further optionally, the audio parameters of the speaker (including the first audio parameter and the second audio parameter) include: input gain parameter, equalization parameter, MBDRC parameter and amplitude threshold. Fig.10 As shown, the external circuit 12 of the speaker may include a parameter adaptive debugging module 121. The parameter adaptive debugging module 121 is used to adjust the value of the initial audio parameter when an adjustment signal is received, adjust the audio signal to be played by the speaker according to the adjusted initial audio parameter, and transmit the adjusted audio signal to the speaker 10 so that the speaker can play the sound corresponding to the audio signal. Correspondingly, the parameter adaptive debugging module 121 is also used to adjust the audio signal to be played by the speaker according to the first audio parameter when it is detected that the electronic device is buckled with a target protective cover, so as to use the first audio parameter to play the sound through the speaker. The parameter adaptive debugging module 121 is also used to adjust the audio signal to be played by the speaker according to the second audio parameter when it is not detected that the electronic device is buckled with a target protective cover, so as to use the second audio parameter to play the sound through the speaker.
[0083] Among them, the parameter adaptive debugging module 121 includes: an input gain (Input Gain) submodule 1211, an equalizer (EQ) module 1212, an MBDRC module 1213 and a limiter (Limiter) module 1214 connected in sequence. The input gain submodule 1211 is used to adjust the overall sound gain of the audio signal to be played by the speaker according to the input gain parameter. The input gain submodule 1211 is also used to adjust the value of the input gain parameter when an adjustment signal is received. The EQ module 1212 can be used to adjust the sound gain of different frequency bands of the audio signal to be played by the speaker through a finite impulse response (FIR) filter or an infinite impulse response (IIR) filter according to the equalization parameter. The EQ module 1212 is also used to adjust the value of the equalization parameter when an adjustment signal is received. The MBDRC module 1213 is used to adjust the audio signal to be played by the speaker according to the MBDRC parameter. When the electronic device is buckled with a target protective cover so that the magnetic part in the target protective cover acts on the speaker, the cavity environment of the speaker will have different degrees of attenuation for audio signals of different loudness. The MBDRC module 1213 is used to perform different gain compensations on audio signals of different loudness. The MBDRC module 1213 is also used to adjust the values of the MBDRC parameters when an adjustment signal is received. The limiter module 1214 is used to apply a negative sound gain to the audio signal when the amplitude of the audio signal to be played by the speaker exceeds the amplitude threshold, so as to reduce the amplitude of the audio signal and achieve the purpose of limiting the amplitude of the audio signal, thereby preventing the electronic device from causing the magnetic parts in the target protective cover to act on the speaker due to excessive gain of the audio signal, resulting in distortion, noise and other problems. The limiter module 1214 is also used to adjust the amplitude threshold when an adjustment signal is received.
[0084] Based on this, when the electronic device is fitted with a target protective cover, the electronic device can adjust the audio parameters of the speaker so that the parameter adaptive debugging module 121 adjusts the output audio signal according to the audio parameters until the frequency response curve of the speaker meets the target frequency response conditions, and determines the input gain parameters, equalization parameters, MBDRC parameters, and amplitude thresholds when the target frequency response conditions are met to obtain the first audio parameters.
[0085] Please refer to Fig.11, which shows the frequency response curve (also called swept frequency response curve) A when the speaker plays sound at the maximum volume (that is, the target input sound pressure is the maximum sound pressure) when the magnetic part in the target protective cover has the same polarity as the central magnet in the speaker in the above three situations; the frequency response curve B when the speaker plays sound at the maximum volume when the magnetic part in the target protective cover has the opposite polarity to the central magnet in the speaker; the frequency response curve C when the speaker plays sound at the maximum volume when the electronic device is not fastened with the target protective cover.
[0086] from Fig.11 It can be seen that compared with the second case where the magnetic part in the target protective cover 5 and the central magnet 101 in the speaker 10 have opposite polarities, in the first case where the magnetic part in the target protective cover 5 and the central magnet 101 in the speaker 10 have the same polarity, the sound pressure (SPL) of the speaker 10 under the audio signal with a frequency less than 800Hz can be increased, and the sound pressure under the audio signal with other frequencies is also approximately equal to the sound pressure of the speaker when the target protective cover is not fastened. Therefore, it has a better audio external speaker effect.
[0087] In an optional implementation, the input gain parameter, the equalization parameter and the amplitude threshold may all be fixed values, while the MBDRC parameter may have different values according to different input volumes of the speaker.
[0088] For example, Fig.12 As shown, for audio signals with a volume below -60dB, the loudness of the speaker can be suppressed by the MBDRC parameters to reduce the volume of the sound output by the speaker. In this case, it can be considered that the noise generated by the audio signal is adjusted by the MBDRC parameters to suppress the audio signal. For audio signals with volume levels of -60dB to -30dB and -30dB to -15dB, MBDRC parameters with different values can be selected according to the attenuation of the volume by the target protective cover to increase the sound gain to varying degrees and increase the volume of the sound output by the speaker. For audio signals with a volume of -15dB to 0dB, the loudness of the speaker can be suppressed by the MBDRC parameters to avoid problems such as noise and distortion caused by excessive sound increase.
[0089] Accordingly, when the initial audio parameter is an input gain parameter, an equalization parameter, or an amplitude threshold, the electronic device can directly increase or decrease the target variable of the initial audio parameter to adjust the value of the initial audio parameter. When the initial audio parameter is an MBDRC parameter, the electronic device can adjust the value of the initial audio parameter corresponding to different volumes differently.
[0090] In some embodiments of the present application, the electronic device is also used to obtain the current, voltage and target operating frequency of the speaker; determine the target impedance of the speaker based on the current and voltage; and when the target impedance is within the target threshold range corresponding to the target operating frequency, determine that the electronic device is detected to have a target protective cover fastened thereon.
[0091] Optionally, the electronic device may store a target threshold range of impedance of the speaker 10 at different operating frequencies when the electronic device 1 is fastened with a target protective cover 5. The electronic device may periodically or in real time obtain the current, voltage and target operating frequency of the speaker, and calculate the target impedance of the speaker according to the current, voltage and current-voltage conversion formula (voltage = current × impedance) of the speaker. Obtain the target threshold range corresponding to the target operating frequency, and determine whether the target impedance is within the target threshold range. If so, determine that the electronic device is detected to be fastened with the target protective cover. If not, determine that the electronic device is not detected to be fastened with the target protective cover.
[0092] Further optionally, based on the electric-force-acoustic analogy, an impedance model can be established for the speaker to analyze the impedance change of the speaker. For example, the impedance model of the speaker can be Fig.13 The circuit shown. Fig.13 In the circuit shown, the inductance Le represents the equivalent inductance of the speaker, and Re represents the equivalent DC impedance of the speaker. R represents the equivalent AC impedance of the speaker. U represents the voltage of the speaker. Among them, the voltage U satisfies:
[0093]
[0094] In this formula, Re represents the impedance value of the equivalent DC impedance. i(t) represents the instantaneous current of the speaker at time t. Le represents the inductance value of the equivalent inductance. Rm represents the impedance value of the equivalent AC impedance. BL represents the force coefficient of the speaker. The force coefficient indicates the product of the magnetic flux density B of the magnetic gap in the speaker and the wire length L of the voice coil. In addition, according to the principle of acoustics, the vibration of the speaker can be equivalent to the free vibration of a particle. Based on this, the force coefficient BL of the speaker satisfies:
[0095]
[0096] Where m is the mass of the speaker's diaphragm. r is the air resistance system. k is the spring constant. x(t) is the displacement of the speaker at time t.
[0097] Correspondingly, optionally, the electronic device is also used to establish a first impedance model of the speaker according to the modeling parameters of the speaker when the electronic device is not fastened with the target protective cover; determine the first AC impedance of the first impedance model at different operating frequencies; establish a second impedance model of the speaker according to the modeling parameters of the speaker when the electronic device is fastened with the target protective cover; determine the second AC impedance of the second impedance model at different operating frequencies; determine the target threshold range corresponding to each operating frequency based on the first AC impedance and the second AC impedance at each operating frequency.
[0098] Among them, the modeling parameters of the speaker may include: Fig.13 The circuit parameters shown in FIG. include: the voltage U of the speaker, the alternating current I, the impedance value Re of the equivalent DC impedance, the inductance value Le of the equivalent inductance, the force coefficient BL of the speaker, and the impedance value Rm of the equivalent AC impedance. For example, by establishing the first impedance module and the second impedance model, the following can be obtained: Fig.14 The AC impedance curve shown in FIG. 1 is a schematic diagram showing the change of AC impedance with the current frequency (i.e., the operating frequency of the speaker). Fig.14 The AC impedance curve C141 of the first impedance model is shown in the first case where the magnetic part in the target protective cover 5 has the same polarity as the central magnet 101 in the speaker, and the AC impedance curve C142 of the second impedance model is shown in the third case where the electronic device is not buckled with the target protective cover.
[0099] like Fig.14 It can be clearly seen that the AC impedance curve of the speaker is different in different situations. Therefore, the target threshold range corresponding to each operating frequency can be determined based on the first AC impedance and the second AC impedance at each operating frequency. For example, for each operating frequency of the speaker, the electronic device can determine the corresponding target threshold range at the operating frequency as [R1-a, R2+a]. Wherein, R1 represents the first AC impedance. R2 represents the second AC impedance. a is a constant. Alternatively, for each operating frequency of the speaker, the electronic device can determine the corresponding target threshold range at the operating frequency as (R1, R2).
[0100] In some embodiments of the present application, Fig. 9 and Fig.15 As shown, the electronic device may further include: a processor 11, a speaker external circuit 12, and a feedback circuit 13. The speaker external circuit 12 is connected to the speaker 10 and the feedback circuit 13. The feedback circuit 13 is also connected to the processor 11 and the speaker 10. The processor 11 is connected to the speaker external circuit 12.
[0101] The feedback circuit 13 is also used to collect the current and voltage of the speaker 10, determine the target impedance of the speaker 13 according to the current and voltage, and transmit the target impedance to the processor 11. The processor 11 is also used to obtain the target operating frequency of the speaker 10, and when the target impedance is within the target threshold range corresponding to the target operating frequency, determine that the electronic device is buckled with the target protective cover, and transmit the enhanced mode signal to the speaker external circuit 12, and when the target impedance exceeds the target threshold range corresponding to the target operating frequency, determine that the electronic device is not buckled with the target protective cover, and transmit the default mode signal to the speaker external circuit 12. The speaker external circuit 12 is also used to obtain the first audio parameter when receiving the enhanced mode signal, use the first audio parameter to control the speaker to play the sound, and obtain the second audio parameter when receiving the default mode signal, use the second audio parameter to control the speaker to play the sound.
[0102] Optionally, the feedback circuit 13 is used to collect the current I and voltage U of the speaker 10 to determine the target impedance of the speaker 13. The target impedance R0 satisfies R0=U / I. Further optionally, the feedback circuit 13 includes an analog-to-digital conversion module 131, a sampling module 132 and an impedance estimation module 133. The analog-to-digital conversion module 131 is connected to the speaker external circuit 12 and the speaker 10. In addition, the analog-to-digital conversion module 131 is also connected to the sampling module 132 and the impedance estimation module 133, and the impedance estimation module 133 is connected to the processor 11 and the speaker external circuit 12. The analog-to-digital conversion module 131 is used to sample the current signal and voltage signal of the speaker, and convert the current signal and voltage signal into analog signals, and transmit the analog signals to the sampling module 132. The sampling module 132 is used to obtain the current signal at the target frequency from the analog signal converted from the current signal, and obtain the voltage signal at the target frequency from the analog signal converted from the voltage signal by downsampling, and transmit the current signal and voltage signal at the target frequency to the impedance estimation module 133. The impedance estimation module 133 is used to determine the target impedance of the speaker according to the current indicated by the current signal and the voltage indicated by the voltage signal, and transmit the target impedance to the processor 11. The target frequency may be the operating frequency of the speaker.
[0103] Optionally, the processor 11 may store a target threshold range of the AC impedance at each operating frequency of the speaker. After receiving the target impedance of the speaker, the processor 11 may obtain the target threshold range corresponding to the target operating frequency of the speaker. It is determined whether the target impedance is within the target threshold range. If so, an enhanced mode signal is transmitted to the speaker external circuit 12. If not, a default mode signal is transmitted to the speaker external circuit 12.
[0104] Further optionally, the speaker external circuit 12 stores the first audio parameter and the second audio parameter. When receiving the enhanced mode signal, the speaker external circuit 12 uses the first audio parameter to control the speaker to play sound externally, and when receiving the default mode signal, uses the second audio parameter to control the speaker to play sound externally.
[0105] In some embodiments of the present application, Fig.15 As shown, the speaker external circuit 12 includes: a parameter adaptive debugging module 121, a high-pass filtering module 122, a low-frequency sound guide module 123 and a power amplifier (Power Amplifier, PA) 124.
[0106] The high-pass filter module 122 is respectively connected to the processor 11 and the parameter adaptive debugging module 121. The high-pass filter module 122 is used to perform low-pass filtering on the audio signal to be played by the speaker transmitted by the processor 11, and transmit the filtered audio signal to the parameter adaptive debugging module 121. The low-pass filtering by the high-pass filter module 122 can effectively filter out interference in the audio signal.
[0107] The parameter adaptive debugging module 121 is used to adjust the received audio signal according to the first audio parameter and transmit the adjusted audio signal to the PA 124 when it is detected that the electronic device is buckled with the target protective cover; when it is not detected that the electronic device is buckled with the target protective cover, adjust the received audio signal according to the second audio parameter and transmit the adjusted audio signal to the PA 124.
[0108] The PA 124 is used to perform power amplification processing on the received audio signal to convert the audio signal into an analog electrical signal and output it to the speaker 10 by boosting the voltage, so that the speaker 10 converts the analog electrical signal into a sound signal for external sound playback.
[0109] In summary, the audio external speaker system provided by the embodiment of the present application includes: an electronic device and a target protective cover. The electronic device is equipped with a speaker, and the speaker includes a central magnetic part, a side magnetic part and a voice coil, and the voice coil is arranged in the gap between the central magnetic part and the side magnetic part. The electronic device is used to use the first audio parameter to play the sound through the speaker when it is detected that the electronic device is buckled with the target protective cover, and use the second audio parameter to play the sound through the speaker when it is not detected that the electronic device is buckled with the target protective cover. Since a magnetic part is arranged in the target protective cover, and when the target protective cover is buckled with the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover. Therefore, when the target protective cover is buckled with the electronic device, the magnetic part of the target protective cover can form a magnetic field with the side magnetic part of the speaker at the voice coil of the speaker, and the magnetic field can be superimposed with the magnetic field formed by the central magnetic part and the side magnetic part of the speaker at the voice coil, thereby enhancing the magnetic field strength at the position of the voice coil in the speaker. The enhancement of the magnetic field strength at the position of the voice coil can improve the sound quality of the speaker. Therefore, by using the first audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part in the target protective cover to play the sound through the speaker, the sound quality of the speaker can be effectively improved, the problem of volume reduction, noise and the like of the speaker can be avoided, and the normal operation of the speaker can be ensured.
[0110] Please refer to Fig.16 , which shows a flow chart of an audio external speaker method provided in an embodiment of the present application. The audio external speaker method can be applied to the audio external speaker system provided in an embodiment of the present application and executed by an electronic device. Fig.16 As shown, the audio playing method includes:
[0111] Step 1601: When it is detected that the electronic device is buckled with the target protective cover, a first audio parameter is obtained. A magnetic part is arranged in the target protective cover, and when the target protective cover is buckled with the electronic device, the magnetic pole of the end of the magnetic part close to the electronic device is the same as the magnetic pole of the end of the central magnetic part of the speaker close to the target protective cover, and the first audio parameter is the audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part.
[0112] Step 1602: Use the first audio parameter to play the sound through the speaker.
[0113] Step 1603: when it is not detected that the electronic device is buckled with the target protective cover, obtain a second audio parameter, where the second audio parameter is an audio parameter of the speaker under the action of the central magnetic member.
[0114] Step 1604: Use the second audio parameter to play the sound through the speaker.
[0115] In an embodiment of the present application, the audio external playing method can be applied to an electronic device with a built-in speaker. When the electronic device detects that the target protective cover is buckled on the electronic device, the first audio parameter is used to play the sound through the speaker; when the target protective cover is not detected, the second audio parameter is used to play the sound through the speaker. Since a magnetic part is provided in the target protective cover, and when the target protective cover is buckled on the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover. Therefore, when the target protective cover is buckled on the electronic device, the magnetic part of the target protective cover can form a magnetic field with the side magnetic part of the speaker at the voice coil of the speaker, and the magnetic field can be superimposed with the magnetic field formed by the central magnetic part and the side magnetic part of the speaker at the voice coil, thereby enhancing the magnetic field strength at the position of the voice coil in the speaker. The enhancement of the magnetic field strength at the position of the voice coil can improve the sound quality of the speaker. Therefore, by using the first audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part in the target protective cover to play the sound through the speaker, the sound quality of the speaker can be effectively improved, the problem of volume reduction, noise and the like of the speaker can be avoided, and the normal operation of the speaker can be ensured.
[0116] Optionally, the audio playing method further includes:
[0117] When the target protective cover is buckled on the electronic device, the initial audio parameters are used to play the sound through the speaker;
[0118] Collect the frequency response curve of the speaker;
[0119] When the frequency response curve does not meet the target frequency response condition, the value of the initial audio parameter is adjusted, and the sound is played out through the speaker using the adjusted initial audio parameter;
[0120] When the frequency response curve meets the target frequency response condition, the initial audio parameter is determined as the first audio parameter.
[0121] Optionally, the target frequency response condition includes: a similarity between the frequency response curve and a reference frequency response curve is greater than a similarity threshold, and the reference frequency response curve is a frequency response curve of a speaker when sound is played through the speaker using the second audio parameter.
[0122] Optionally, detecting that the electronic device is buckled with a target protective cover includes:
[0123] Get the current, voltage and target operating frequency of the speaker;
[0124] Determine the target impedance of the speaker based on the current and voltage;
[0125] When the target impedance is within the target threshold range corresponding to the target operating frequency, it is determined that the electronic device is detected to be buckled with the target protective cover.
[0126] Optionally, the audio playing method further includes:
[0127] When the electronic device is not buckled with the target protective cover, a first impedance model of the speaker is established according to the modeling parameters of the speaker;
[0128] Determine the first AC impedance of the first impedance model at different operating frequencies;
[0129] When the electronic device is buckled with the target protective cover, a second impedance model of the speaker is established according to the modeling parameters of the speaker;
[0130] Determine a second AC impedance of the second impedance model at different operating frequencies;
[0131] According to the first AC impedance and the second AC impedance at each operating frequency, a target threshold range corresponding to each operating frequency is determined.
[0132] Optionally, the magnetic member includes a coil, and the target protective cover further includes a connection contact, and the connection contact is used to supply power to the coil when powered; the audio external speaker method further includes: supplying power to the connection contact when the electronic device is in contact with the connection contact;
[0133] Accordingly, when it is detected that the electronic device is buckled with the target protective cover, the first audio parameter is obtained, including: when it is detected that the electronic device is buckled with the target protective cover, power is stopped to the connection contact; when the external speaker instruction is triggered, power is supplied to the connection contact and the first audio parameter is obtained.
[0134] It should be noted that the explanation and implementation of each step of the embodiment of the method side can refer to the relevant introduction of the aforementioned system side, and the embodiment of the present application will not be repeated here.
[0135] For example, Fig.17 As shown, the electronic device can detect whether the electronic device is buckled with a target protective cover. When the target protective cover is detected, a reminder message is output, and the reminder message is used to prompt the user whether the external speaker enhancement solution is applicable. It is determined whether a confirmation operation of the user's external speaker enhancement solution is received.
[0136] When the user confirms the use of the speaker enhancement scheme, the enhanced audio parameters (i.e., the first audio parameters) are obtained, and the sound is played out through the speaker using the enhanced audio parameters. When the user does not confirm the use of the speaker enhancement scheme, the default audio parameters (i.e., the second audio parameters) are obtained, and the sound is played out through the speaker using the default audio parameters. The user's confirmation use operation of the speaker enhancement scheme can be an input operation in the form of clicking, long pressing, sliding, or voice on the reminder information.
[0137] In summary, the audio external speaker method provided in the embodiment of the present application can be applied to an electronic device with a built-in speaker. When the electronic device detects that the target protective cover is buckled on the electronic device, the first audio parameter is used to play the sound through the speaker; when the target protective cover is not detected, the second audio parameter is used to play the sound through the speaker. Since a magnetic part is provided in the target protective cover, and when the target protective cover is buckled on the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover. Therefore, when the target protective cover is buckled on the electronic device, the magnetic part of the target protective cover can form a magnetic field with the side magnetic part of the speaker at the voice coil of the speaker, and the magnetic field can be superimposed with the magnetic field formed by the central magnetic part and the side magnetic part of the speaker at the voice coil, thereby enhancing the magnetic field strength at the position of the voice coil in the speaker. The enhancement of the magnetic field strength at the position of the voice coil can improve the sound quality of the speaker. Therefore, by using the first audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part in the target protective cover to play the sound through the speaker, the sound quality of the speaker can be effectively improved, the problem of volume reduction, noise and the like of the speaker can be avoided, and the normal operation of the speaker can be ensured.
[0138] The electronic device in the embodiment of the present application may be a terminal, or may be other devices other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0139] The electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0140] The electronic device provided in the embodiment of the present application can achieve Figure 16 to Figure 17 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0141] Alternatively, if Fig.18 As shown, an embodiment of the present application further provides an electronic device 1800, including a processor 1801 and a memory 1802, wherein the memory 1802 stores a program or instruction that can be executed on the processor 1801, and when the program or instruction is executed by the processor 1801, each step of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0142] Among them, the electronic device 1800 also includes: a speaker. The speaker includes a central magnetic part, a side magnetic part and a voice coil, and the voice coil is arranged in the gap between the central magnetic part and the side magnetic part. The electronic device is also used to snap together with a protective cover, and a magnetic part is arranged in the protective cover. When the protective cover is snapped onto the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part close to one end of the protective cover. It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices described above.
[0143] Fig.19A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application. The electronic device 1900 includes, but is not limited to, components such as a radio frequency unit 1901, a network module 1902, an audio output unit 1903, an input unit 1904, a sensor 1905, a display unit 1906, a user input unit 1907, an interface unit 1908, a memory 1909, and a processor 1910. In addition, the electronic device 1900 also includes: a speaker. The speaker includes a central magnetic part, a side magnetic part, and a voice coil, and the voice coil is arranged in the gap between the central magnetic part and the side magnetic part. The electronic device is also used to buckle with a protective cover, and a magnetic part is arranged in the protective cover. When the protective cover is buckled with the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part close to one end of the protective cover.
[0144] Those skilled in the art will appreciate that the electronic device 1900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.19 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0145] Among them, processor 1910 is used to obtain a first audio parameter when it is detected that the electronic device is buckled with a target protective cover, a magnetic part is provided in the target protective cover, and when the target protective cover is buckled on the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover, and the first audio parameter is the audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part, and the first audio parameter is used to play the sound through the speaker; when it is not detected that the electronic device is buckled with the target protective cover, the second audio parameter is obtained, and the second audio parameter is the audio parameter of the speaker under the action of the central magnetic part, and the second audio parameter is used to play the sound through the speaker.
[0146] In an embodiment of the present application, the audio external playing method can be applied to an electronic device with a built-in speaker. When the electronic device detects that the target protective cover is buckled on the electronic device, the first audio parameter is used to play the sound through the speaker; when the target protective cover is not detected, the second audio parameter is used to play the sound through the speaker. Since a magnetic part is provided in the target protective cover, and when the target protective cover is buckled on the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover. Therefore, when the target protective cover is buckled on the electronic device, the magnetic part of the target protective cover can form a magnetic field with the side magnetic part of the speaker at the voice coil of the speaker, and the magnetic field can be superimposed with the magnetic field formed by the central magnetic part and the side magnetic part of the speaker at the voice coil, thereby enhancing the magnetic field strength at the position of the voice coil in the speaker. The enhancement of the magnetic field strength at the position of the voice coil can improve the sound quality of the speaker. Therefore, by using the first audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part in the target protective cover to play the sound through the speaker, the sound quality of the speaker can be effectively improved, the problem of volume reduction, noise and the like of the speaker can be avoided, and the normal operation of the speaker can be ensured.
[0147] Optionally, processor 1910 is configured to, when the target protective cover is buckled onto the electronic device, use initial audio parameters to play sound through a speaker; collect a frequency response curve of the speaker; if the frequency response curve does not meet target frequency response conditions, adjust the values of the initial audio parameters, and use the adjusted initial audio parameters to play sound through the speaker; if the frequency response curve meets the target frequency response conditions, determine the initial audio parameters as first audio parameters.
[0148] Optionally, the target frequency response condition includes: a similarity between the frequency response curve and a reference frequency response curve is greater than a similarity threshold, and the reference frequency response curve is a frequency response curve of a speaker when sound is played through the speaker using the second audio parameter.
[0149] Optionally, processor 1910 is used to obtain the current, voltage and target operating frequency of the speaker; determine the target impedance of the speaker based on the current and voltage; and determine that the electronic device is detected to have a target protective cover fastened thereon when the target impedance is within a target threshold range corresponding to the target operating frequency.
[0150] Optionally, processor 1910 is used to establish a first impedance model of the speaker according to modeling parameters of the speaker when the electronic device is not fastened with a target protective cover; determine a first AC impedance of the first impedance model at different operating frequencies; establish a second impedance model of the speaker according to the modeling parameters of the speaker when the electronic device is fastened with a target protective cover; determine a second AC impedance of the second impedance model at different operating frequencies; and determine a target threshold range corresponding to each operating frequency based on the first AC impedance and the second AC impedance at each operating frequency.
[0151] Optionally, the magnetic component includes a coil, and the target protective cover also includes a connecting contact, which is used to supply power to the coil when power is on; the processor 1910 is used to supply power to the connecting contact when the electronic device is in contact with the connecting contact; when it is detected that the electronic device is buckled with the target protective cover, stop supplying power to the connecting contact; when a speaker command is triggered, supply power to the connecting contact and obtain the first audio parameter.
[0152] In an embodiment of the present application, the audio external playing method can be applied to an electronic device with a built-in speaker. When the electronic device detects that the target protective cover is buckled on the electronic device, the first audio parameter is used to play the sound through the speaker; when the target protective cover is not detected, the second audio parameter is used to play the sound through the speaker. Since a magnetic part is provided in the target protective cover, and when the target protective cover is buckled on the electronic device, the magnetic pole of the magnetic part close to one end of the electronic device is the same as the magnetic pole of the central magnetic part of the speaker close to one end of the target protective cover. Therefore, when the target protective cover is buckled on the electronic device, the magnetic part of the target protective cover can form a magnetic field with the side magnetic part of the speaker at the voice coil of the speaker, and the magnetic field can be superimposed with the magnetic field formed by the central magnetic part and the side magnetic part of the speaker at the voice coil, thereby enhancing the magnetic field strength at the position of the voice coil in the speaker. The enhancement of the magnetic field strength at the position of the voice coil can improve the sound quality of the speaker. Therefore, by using the first audio parameter of the speaker under the joint action of the central magnetic part and the magnetic part in the target protective cover to play the sound through the speaker, the sound quality of the speaker can be effectively improved, the problem of volume reduction, noise and the like of the speaker can be avoided, and the normal operation of the speaker can be ensured.
[0153] It should be understood that in the embodiment of the present application, the input unit 1904 may include a graphics processor (GPU) 19041 and a microphone 19042, and the graphics processor 19041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1906 may include a display panel 19061, and the display panel 19061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1907 includes a touch panel 19071 and at least one of other input devices 19072. The touch panel 19071 is also called a touch screen. The touch panel 19071 may include two parts: a touch detection device and a touch controller. Other input devices 19072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0154] The memory 1909 can be used to store software programs and various data. The memory 1909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1909 may include a volatile memory or a non-volatile memory, or the memory 1909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0155] The processor 1910 may include one or more processing units; optionally, the processor 1910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1910.
[0156] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0157] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0158] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0159] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0160] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned audio playback method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0161] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0163] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An audio player method, characterized in that: Applied to an electronic device with a built-in speaker, the method comprises: When it is detected that the electronic device is buckled with a target protective cover, a first audio parameter is obtained, wherein a magnetic component is disposed in the target protective cover, and when the target protective cover is buckled with the electronic device, a magnetic pole of an end of the magnetic component close to the electronic device is the same as a magnetic pole of an end of a central magnetic component of the speaker close to the target protective cover, and the first audio parameter is an audio parameter of the speaker under the joint action of the central magnetic component and the magnetic component. Using the first audio parameter, playing the sound through the speaker; When it is not detected that the electronic device is buckled with the target protective cover, a second audio parameter is obtained, where the second audio parameter is an audio parameter of the speaker under the action of the central magnetic member. The second audio parameter is used to play the sound through the speaker.
2. The method according to claim 1, characterized in that The method further comprises: When the target protective cover is buckled on the electronic device, the initial audio parameters are used to play the sound through the speaker; Collecting a frequency response curve of the speaker; When the frequency response curve does not meet the target frequency response condition, adjusting the value of the initial audio parameter, and using the adjusted initial audio parameter to play the sound through the speaker; When the frequency response curve meets the target frequency response condition, the initial audio parameter is determined as the first audio parameter.
3. The method according to claim 2, characterized in that The target frequency response condition includes: a similarity between the frequency response curve and a reference frequency response curve is greater than a similarity threshold, and the reference frequency response curve is a frequency response curve of the speaker when the second audio parameter is used to play sound through the speaker.
4. The method according to claim 1, characterized in that: The detecting that the electronic device is buckled with a target protective cover comprises: Obtaining the current, voltage and target operating frequency of the speaker; determining a target impedance of the speaker according to the current and the voltage; When the target impedance is within the target threshold range corresponding to the target operating frequency, it is determined that the electronic device is detected to be buckled with a target protective cover.
5. The method according to claim 4, characterized in that The method further comprises: When the electronic device is not fastened with the target protective cover, establishing a first impedance model of the speaker according to the modeling parameters of the speaker; Determining a first AC impedance of the first impedance model at different operating frequencies; When the electronic device is buckled with the target protective cover, establishing a second impedance model of the speaker according to the modeling parameters of the speaker; Determining a second AC impedance of the second impedance model at different operating frequencies; According to the first AC impedance and the second AC impedance at each of the operating frequencies, a target threshold range corresponding to each of the operating frequencies is determined.
6. The method according to claim 1, characterized in that The magnetic member includes a coil, and the target protective cover also includes a connection contact, and the connection contact is used to supply power to the coil when powered; the method further includes: supplying power to the connection contact when the electronic device is in contact with the connection contact; The step of acquiring the first audio parameter when it is detected that the electronic device is buckled with the target protective cover includes: When it is detected that the electronic device is buckled with the target protective cover, stopping supplying power to the connection contact; When the external speaker instruction is triggered, power is supplied to the connection contact, and the first audio parameter is obtained.
7. An audio external speaker system, characterized in that: The audio external speaker system comprises: an electronic device and a target protective cover; The electronic device is equipped with a built-in speaker, the speaker includes a central magnetic part, a side magnetic part and a voice coil, the voice coil is arranged in a gap between the central magnetic part and the side magnetic part, the target protective cover is equipped with a magnetic part, when the target protective cover is buckled on the electronic device, the magnetic pole of one end of the magnetic part close to the electronic device is the same as the magnetic pole of one end of the central magnetic part close to the target protective cover; The electronic device is used to play sound through the speaker using first audio parameters when it is detected that the electronic device is buckled with the target protective cover, and to play sound through the speaker using second audio parameters when it is not detected that the electronic device is buckled with the target protective cover.
8. The audio amplifier system according to claim 7, characterized in that: When the target protective cover is buckled onto the electronic device, the magnetic member is arranged opposite to the central magnetic member.
9. The audio amplifier system according to claim 7, characterized in that: The electronic device further comprises: a processor, a speaker external circuit and a feedback circuit; The speaker external circuit is connected to the speaker and is used to control the speaker to play a plurality of sounds of different sound frequencies at a target input sound pressure using initial audio parameters; The feedback circuit is connected to the processor and is used to collect the actual sound pressure when the speaker plays sounds of different sound frequencies, and transmit the actual sound pressure corresponding to the different sound frequencies to the processor; The processor is connected to the external circuit of the speaker, and is used to draw a frequency response curve according to the actual sound pressure corresponding to different sound frequencies, and transmit an adjustment signal to the external circuit of the speaker when the frequency response curve does not meet the target frequency response condition, and transmit a determination signal to the external circuit of the speaker when the frequency response curve meets the target frequency response condition; The speaker external circuit is also used to adjust the initial audio parameters when the adjustment signal is received, and to control the speaker again to play sounds of multiple different sound frequencies at the target input sound pressure, and to determine the initial audio parameters as the first audio parameters when the determination signal is received.
10. The audio amplifier system according to claim 9, characterized in that: The feedback circuit is further used to collect the current and voltage of the speaker, determine the target impedance of the speaker according to the current and the voltage, and transmit the target impedance to the processor; The processor is further configured to obtain a target operating frequency of the speaker, determine that the electronic device is buckled with a target protective cover when the target impedance is within a target threshold range corresponding to the target operating frequency, and transmit an enhanced mode signal to an external circuit of the speaker, and determine that the electronic device is not buckled with a target protective cover when the target impedance exceeds a target threshold range corresponding to the target operating frequency, and transmit a default mode signal to an external circuit of the speaker; The speaker external circuit is also used to obtain the first audio parameter when the enhanced mode signal is received, and use the first audio parameter to control the speaker to play sound externally; and to obtain the second audio parameter when the default mode signal is received, and use the second audio parameter to control the speaker to play sound externally.
11. The audio amplifier system according to any one of claims 7 to 10, characterized in that: The magnetic member is a magnet; Alternatively, the magnetic member is a coil, and the target protective cover further comprises: a connection contact, wherein the connection contact is used to supply power to the coil when powered.
12. The audio amplifier system according to claim 11, characterized in that: The electronic device further includes a power supply module; The power supply module is used to supply power to the connection contact when the electronic device is in contact with the connection contact; The electronic device is also used to control the power supply module to stop supplying power to the connection contacts when it is detected that the electronic device is buckled with a target protective cover and the power supply module is supplying power to the connection contacts, and to control the power supply module to supply power to the connection contacts when an external speaker instruction is triggered.
Citation Information
Patent Citations
Audio processing method and device
CN115038016A
Terminal accessory and terminal
CN220383209U
Coil for hearing aid and connecting structure thereof with speaker
KR1020060099662A
Speaker and amplifier system
US6104817A
Portable audio speaker system that attaches to clothing or other structures via magnet
US9264791B1
