Audio output method and audio output system
Patent Information
- Application Number
- CN202411109149.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2044-08-13
AI Technical Summary
[0004]本申请实施例的目的是提供一种音频外放方法和音频外放系统,能够解决目前扬声器因保护套内磁石影响正常工作的问题
[0017]在本申请实施例中,音频外放方法可以应用于内置有扬声器的电子设备,该电子设备在检测到电子设备扣合有目标保护套的情况下,采用第一音频参数,通过所述扬声器外放声音;在未检测到电子设备扣合有目标保护套的情况下,采用第二音频参数,通过扬声器外放声音。由于目标保护套内设置有磁性件,且在目标保护套扣合于电子设备的情况下,磁性件靠近电子设备的一端的磁极,与扬声器的中心磁性件靠近目标保护套的一端的磁极相同。因此,在目标保护套扣合于电子设备的情况下,目标保护套的磁性件可以与扬声器的边路磁性件在扬声器的音圈处形成磁场,该磁场可以与扬声器的中心磁性件与边路磁性件在音圈处形成的磁场叠加,进而增强了扬声器中音圈所处位置的磁场强度。而音圈所处位置的磁场强度的增强,可以提升扬声器的音质。因而,采用在中心磁性件与目标保护套中磁性件的共同作用下扬声器的第一音频参数通过扬声器外放声音,可以有效提升扬声器的音质,避免扬声器容易出现音量减少、杂音等问题,保障扬声器的正常工作。
Smart Images

Figure CN119012093B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, specifically relating to an audio playback method and an audio playback system. Background Technology
[0002] With the development of mobile devices, they have become an indispensable tool in people's daily lives. Protective cases are an important accessory for mobile devices, playing a crucial role in their protection. Consequently, numerous interaction technologies between mobile devices and protective cases have emerged. For example, there is in-situ detection technology for mobile devices and protective cases.
[0003] Current in-situ detection solutions for protective cases typically involve embedding one or more magnets within the case and a Hall sensor within the mobile device. The mobile device can detect whether it is in contact with the magnet using the Hall sensor, thus confirming that the protective case is securely fastened to the device. However, the magnets embedded in the case can interfere with the magnetic circuitry of the speaker within the mobile device, potentially causing issues such as reduced volume and unwanted noise, thus affecting the speaker's normal operation. Summary of the Invention
[0004] The purpose of this application is to provide an audio playback method and an audio playback system that can solve the problem that the normal operation of speakers is affected by the magnet inside the protective cover.
[0005] In a first aspect, embodiments of this application provide an audio playback method applied to an electronic device with a built-in speaker, the method comprising:
[0006] When the electronic device is detected to be secured with a target protective case, a first audio parameter is acquired. The target protective case contains a magnetic component, and when the target protective case is secured to the electronic device, the magnetic pole of the end of the magnetic component near the electronic device is the same as the magnetic pole of the center magnetic component of the speaker near the end of the target protective case. The first audio parameter is the audio parameter of the speaker under the combined effect of the center magnetic component and the first magnetic component.
[0007] Using the first audio parameters, sound is played out through the speaker;
[0008] If the electronic device is not detected to be fastened with the target protective cover, a second audio parameter is acquired. The second audio parameter is the audio parameter of the speaker under the action of the central magnetic element.
[0009] Using the second audio parameters, sound is played out through the speaker.
[0010] Secondly, embodiments of this application provide an audio external speaker system, the audio external speaker system comprising: an electronic device and a target protective case;
[0011] The electronic device has a built-in speaker, which includes a central magnetic component, a side magnetic component, and a voice coil. The voice coil is disposed in the gap between the central magnetic component and the side magnetic component. The target protective sleeve is provided with a magnetic component. When the target protective sleeve is fastened to the electronic device, the magnetic pole of the end of the magnetic component near the electronic device is the same as the magnetic pole of the end of the central magnetic component near the target protective sleeve.
[0012] The electronic device is used to play sound through the speaker using a first audio parameter when the target protective case is detected to be fastened to the electronic device, and to play sound through the speaker using a second audio parameter when the target protective case is not detected to be fastened to the electronic device.
[0013] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0015] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0017] In this embodiment, the audio playback method can be applied to an electronic device with a built-in speaker. When the electronic device detects that a target protective case is fastened to it, it uses a first audio parameter to play sound through the speaker; when the target protective case is not detected, it uses a second audio parameter to play sound through the speaker. Since the target protective case contains a magnetic component, and when the target protective case is fastened to the electronic device, the magnetic pole at the end of the magnetic component near the electronic device is the same as the magnetic pole at the end of the central magnetic component of the speaker near the target protective case. Therefore, when the target protective case is fastened to the electronic device, the magnetic component of the target protective case can form a magnetic field at the voice coil of the speaker with the side magnetic component of the speaker. This magnetic field can be superimposed on the magnetic field formed by the central magnetic component and the side magnetic component at the voice coil, thereby enhancing the magnetic field strength at the voice coil location. This enhanced magnetic field strength at the voice coil location improves the sound quality of the speaker. Therefore, by using the combined action of the central magnetic component and the magnetic component in the target protective sleeve, the first audio parameters of the speaker can be played out through the speaker, which can effectively improve the sound quality of the speaker, avoid problems such as volume reduction and noise that are easy to occur in the speaker, and ensure the normal operation of the speaker. Attached Figure Description
[0018] Figure 1 This is a structural diagram of a loudspeaker provided by related technologies;
[0019] Figure 2 This is a simulation diagram of a magnetic flux density mode provided in an embodiment of this application;
[0020] Figure 3 This is a simulation diagram of another magnetic flux density mode provided in an embodiment of this application;
[0021] Figure 4 This is a simulation diagram of another magnetic flux density mode provided in the embodiments of this application;
[0022] Figure 5 This is a schematic diagram of the structure of an audio external speaker system provided in an embodiment of this application;
[0023] Figure 6 This is a schematic diagram of another audio external speaker system provided in an embodiment of this application;
[0024] Figure 7 This is a schematic diagram of the structure of a target protective sleeve provided in an embodiment of this application;
[0025] Figure 8 This is a simulation diagram of another magnetic flux density mode provided in the embodiments of this application;
[0026] Figure 9 This is a circuit diagram of an electronic device provided in an embodiment of this application;
[0027] Figure 10 This is a schematic diagram of a parameter adaptive debugging module provided in an embodiment of this application;
[0028] Figure 11 This is a schematic diagram of a frequency response curve provided in an embodiment of this application;
[0029] Figure 12 This is a schematic diagram illustrating the debugging principle of audio parameters provided in an embodiment of this application;
[0030] Figure 13 This is a circuit diagram of an impedance model provided in an embodiment of this application;
[0031] Figure 14 This is a schematic diagram of an impedance curve provided in an embodiment of this application;
[0032] Figure 15 This is a circuit diagram of another electronic device provided in an embodiment of this application;
[0033] Figure 16 This is a flowchart of an audio playback method provided in an embodiment of this application;
[0034] Figure 17 This is a flowchart of another audio playback method provided in the embodiments of this application;
[0035] Figure 18 This is a block diagram of an electronic device provided in another embodiment of this application;
[0036] Figure 19 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0038] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0039] The audio playback method and audio playback system provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0040] For ease of understanding, the principles involved in the technical solution of this application will be introduced first below.
[0041] Please refer to Figure 1 It shows a schematic diagram of the structure of a loudspeaker provided by related technologies. For example... Figure 1 As shown, the loudspeaker 10 includes a center magnet 101, four side magnets 102, a voice coil 103, and a diaphragm. Figure 1 (Not shown in the image). Four side magnets 102 are distributed on the four sides of the central magnet 101. A voice coil 103 is disposed between the side magnets 102 and the central magnet 101.
[0042] In this configuration, the central magnet 101 has a north pole (N) at one end along the first direction, and the four side magnets 102 have south poles (S) at one end along the first direction. Correspondingly, the central magnet 101 has a south pole (S) at one end along the opposite direction of the first direction, and the four side magnets 102 have a north pole (N) at one end along the opposite direction of the first direction. When the voice coil 103 is energized, it generates a Lorentz force under the influence of the magnetic fields of the central magnet 101 and the four side magnets 102, causing it to reciprocate along the first direction, thereby driving the diaphragm to vibrate and producing sound through the air.
[0043] According to Ampere's law formula: F = BIL, the Ampere force F on a conductor is equal to the product of the magnetic field strength B passing through the conductor, the current I in the conductor, and the length L of the conductor. Therefore, by increasing the magnetic field strength of the environment surrounding the voice coil 103 (i.e., the conductor), the motion sensitivity of the voice coil can be increased, thereby increasing the driving force of the voice coil on the diaphragm, improving the vibration sensitivity of the diaphragm, enhancing the sound quality of the speaker, and reducing the power consumption of the speaker.
[0044] In the first case, such as Figure 2As shown, a reinforcing magnet 20 is added to one side of the central magnet 101 in the first direction. The reinforcing magnet 20 has the same magnetic pole as the end adjacent to the central magnet 101, both being N poles. That is, the end of the reinforcing magnet 20 in the opposite direction to the first direction has the same N pole as the end of the central magnet 101 in the first direction. The magnetic pole of the end of the reinforcing magnet 20 in the first direction is the S pole. In other words, the reinforcing magnet 20 and the central magnet 101 have the same polarity.
[0045] In this configuration, a magnetic field is also formed between the reinforcing magnet 20 and the four side magnets 102, and the voice coil 103 is located within this magnetic field. When the voice coil 103 is energized, it can simultaneously generate a Lorentz force under the influence of the magnetic fields formed by the central magnet 101 and the four side magnets 102, as well as the magnetic field formed by the reinforcing magnet 20 and the four side magnets 102. As the magnetic field strength of the environment surrounding the voice coil 103 increases, the motion sensitivity of the voice coil 103 increases, the sound quality of the speaker improves, and power consumption decreases.
[0046] The magnetic flux density at the location of voice coil 103 under this condition can be simulated to obtain true. Figure 2 The simulation results are shown in the figure. Figure 2 The lighter the color of the indicator bar on the right, the larger the magnetic flux density modulus (BT). Furthermore, Figure 2 The arrows in the diagram indicate the magnetic flux density. Simulation results show that the average magnetic flux density modulus at the location of voice coil 103 in this case is 0.745T.
[0047] In the second case, such as Figure 3 As shown, a reinforcing magnet 20 is added to one side of the central magnet 101 in the first direction. The magnetic poles of the reinforcing magnet 20 are opposite to those of the central magnet 101 at the end adjacent to it. That is, the end of the reinforcing magnet 20 in the opposite direction of the first direction is the S pole, while the magnetic pole of the end of the central magnet 101 in the first direction is the N pole. In other words, the reinforcing magnet 20 and the central magnet 101 have opposite polarities.
[0048] In this situation, a magnetic field is formed between the reinforcing magnet 20 and the central magnet 101, weakening the magnetic field strength between the central magnet 101 and the four side magnets 102, and the voice coil 103 is not located within this magnetic field. Thus, as the magnetic field strength of the environment surrounding the voice coil 103 weakens, the motion sensitivity of the voice coil 103 decreases, and the sound quality of the speaker deteriorates.
[0049] The magnetic flux density at the location of voice coil 103 under this condition can be simulated to obtain true. Figure 3 The simulation results are shown in the figure. Figure 3 The lighter the color of the calibration bar on the right, the greater the magnetic flux density modulus. Furthermore, Figure 3The arrows in the diagram indicate the magnetic flux density. Simulation results show that the average magnetic flux density modulus at the location of voice coil 103 in this case is 0.691 T.
[0050] To better compare the changes in magnetic field strength of the environment surrounding voice coil 103 under the two aforementioned conditions, the magnetic flux density at the location of voice coil 103 can be simulated without adding reinforcing magnet 20, i.e., when voice coil 103 is located within the magnetic field formed by the central magnet 101 and the four side magnets 102. Figure 4 The simulation results are shown in the figure. Figure 4 The lighter the color of the calibration bar on the right, the greater the magnetic flux density modulus. Furthermore, Figure 4 The arrows in the diagram indicate the magnetic flux density. Simulation results show that the average magnetic flux density modulus at the location of voice coil 103 in this case is 0.716 T.
[0051] As shown above, the average values of the magnetic flux density modulus at the location of voice coil 103 in the three cases are illustrated 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 location of voice coil 103 is 0.745 T. 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 location of voice coil 103 is 0.691 T. In the third case, without the reinforcing magnet 20, the average value of the magnetic flux density modulus at the location of voice coil 103 is 0.716 T.
[0052]
[0053] Table 1
[0054] As can be seen from Table 1, when the magnetic poles of the reinforcing magnet 20 and the central magnet 101 are the same at their adjacent ends, the reinforcing magnet 20 enhances the sensitivity of the voice coil 103, increasing the magnetic flux density modulus at the location of the voice coil 103. When the magnetic poles of the reinforcing magnet 20 and the central magnet 101 are opposite at their adjacent ends, the reinforcing magnet 20 attenuates the sensitivity of the voice coil 103, decreasing the magnetic flux density modulus at the location of the voice coil 103. Therefore, by providing a magnetic component on the protective sleeve, and ensuring that the magnetic pole of the protective sleeve's magnetic component near the electronic device is the same as the magnetic pole of the speaker's central magnetic component near the protective sleeve when the protective sleeve is fastened to the electronic device, the magnetic field strength of the magnetic field surrounding the voice coil in the speaker can be increased, enhancing the magnetic flux density modulus at the voice coil's location, improving the voice coil's motion sensitivity, thereby improving the speaker's sound quality and reducing power consumption.
[0055] Regarding power consumption, specific tests were conducted in the following cases: In the first case, the reinforcing magnet 20 and the central magnet 101 had the same polarity. The power consumption of the speaker at maximum volume was 198mA. In the second case, the reinforcing magnet 20 and the central magnet 101 had opposite polarities. The power consumption of the speaker at maximum volume was 250mA. In the third case, without the reinforcing magnet 20, the power consumption of the speaker at maximum volume was 226mA. Clearly, with the reinforcing magnet 20 having 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 This illustration shows a structural schematic diagram of an audio playback system provided in an embodiment of this application. Figure 5 As shown, the audio external speaker system includes: electronic equipment and a target protective case 5. The electronic equipment has a built-in speaker 10. The speaker 10 includes a center magnetic element, a side magnetic element, and a voice coil. The voice coil is disposed in the gap between the center magnetic element and the side magnetic element.
[0057] A magnetic element 51 is provided inside the target protective case 5. When the target protective case 5 is fastened to the electronic device, the magnetic pole of the end of the magnetic element 51 near the electronic device is the same as the magnetic pole of the central magnetic element inside the speaker near the end of the target protective case 5.
[0058] The electronic device is used to play sound through a speaker using a first audio parameter when the target protective case 5 is detected to be fastened to the electronic device, and to play sound through a speaker using a second audio parameter when the target protective case 5 is not detected to be fastened to the electronic device. The first audio parameter is the audio parameter of the speaker 10 under the combined action of the central magnetic element of the speaker 10 and the magnetic element of the target protective case 5.
[0059] In one optional configuration, when the target protective sleeve 5 is fastened to the electronic device, the magnetic element 51 can be alternately arranged with the central magnetic element. In another optional configuration, when the target protective sleeve 5 is fastened to the electronic device, the magnetic element 50 can be directly opposite the central magnetic element. When the magnetic element 50 is directly opposite the central magnetic element, the magnetic field strength formed by the magnetic element 50 and the side magnetic elements at the voice coil location is greater than the magnetic field strength when the magnetic element 50 and the central magnetic element are alternately arranged. Therefore, the direct alignment of the magnetic element 50 with the central magnetic element can more effectively ensure the enhancement effect of the magnetic field at the voice coil location by the magnetic element 50, effectively increase the magnetic flux density at the voice coil location, improve the voice coil's movement sensitivity, and thus effectively improve the speaker's sound quality and reduce power consumption.
[0060] Optionally, the speaker 10 of the electronic device may include one or more side magnetic elements. These side magnetic elements are distributed along the sides of the central magnetic element. A voice coil is disposed between the central magnetic element and the side magnetic elements. For example, the speaker 10 may be... Figure 1 The speaker 10 is shown. The magnetic element 51 of the target protective cover 5 can be positioned directly opposite the central magnetic element 101 when the target protective cover 5 is fastened to the electronic device.
[0061] In an alternative case, such as Figure 5 and 6 As shown, the magnetic component 51 can be a magnet. In another alternative case, such as Figure 7 As shown, the magnetic component 51 can be a coil 51. In this case, the target protective sleeve 5 also includes a connecting contact 52. The connecting contact 52 is used to supply power to the coil 51 when energized. The coil 51 can generate a magnetic field when energized to obtain a device similar to a permanent magnet. Of course, it should be noted that the polarity of the magnetic field generated by the coil 51 when energized is the same as the polarity of the central coil. That is, when the target protective sleeve 5 is fastened to the electronic device, the magnetic pole of the magnetic field generated by the coil 51 when energized is the same as the magnetic pole of the central magnetic component in the speaker at the end near the target protective sleeve 5.
[0062] Furthermore, the magnetic flux density of coil 51 is calculated using the formula: B = Φ / (N × Ae). B represents the magnetic flux density, measured in Wb / m². Φ represents the induced magnetic flux, measured in Wb. N represents the number of turns in coil 51; Ae represents the effective cross-sectional area of coil 51, measured in m². Based on this formula, the magnetic flux density of coil 51 under energized conditions can be adjusted by changing the number of turns and the effective cross-sectional area, thereby enhancing the magnetic field strength of the voice coil's environment under energized conditions.
[0063] For example, such as Figure 8 As shown, speaker 10 is Figure 1 The speaker 10 shown. The direction of the magnetic field generated by the coil 51 when energized is the same as the direction of the magnetic pole at the end of the central magnetic element 101 closest to the target protective sleeve. That is, the direction of the magnetic field generated by the coil 51 when energized (N pole pointing to S pole) is the same as the direction of the magnetic field inside the central magnetic element 101 (S pole pointing to N pole).
[0064] The magnetic flux density at the location of voice coil 103 under this condition can be simulated to obtain true. Figure 8 The simulation results are shown in the figure. Figure 8 The lighter the color of the calibration bar on the right, the greater the magnetic flux density modulus. Furthermore, Figure 8The arrows in the diagram indicate the magnetic flux density. Simulation results show that the average magnetic flux density modulus at the location of voice coil 103 in this case is 0.754 T.
[0065] Furthermore, since coil 51 is powered by DC, its power consumption is relatively low. Additionally, for electronic devices with the target protective case not fastened, the power consumption of the speaker at maximum volume was 226mA. For electronic devices with the target protective case fastened with a magnetic coil, the power consumption of the speaker at maximum volume was 205mA. Clearly, the power consumption of the speaker is significantly reduced due to the magnetic component of the target protective case 5.
[0066] Optionally, the electronic device further includes a power supply module. The power supply module supplies power to the connection contact point when the electronic device is in contact with the connection contact point. The electronic device is also configured to control the power supply module to stop supplying power to the connection contact point 52 when it detects that the electronic device is secured with the target protective sleeve 5 and the power supply module is supplying power to the connection contact point 52; and to control the power supply module to supply power to the connection contact point 52 when a speaker command is triggered. , The sound is played out through speaker 10 using the first audio parameters.
[0067] Accordingly, the electronic device is also used to, if a speaker command is triggered and a second audio parameter is used to play sound through the speaker 10 when the target protective case 5 is not detected to be fastened to the electronic device.
[0068] The external playback command is used to control the speaker 10 to output sound. When the electronic device detects that the target protective sleeve 5 is fastened to the electronic device and that the power supply module is supplying power to the connection contact 52, the electronic device can control the power supply module to stop supplying power to the connection contact 52. Furthermore, when the external playback command is triggered, indicating that the speaker has entered 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 sleeve 5 is energized to generate a magnetic field, and then, using the first audio parameters, sound is output through the speaker 10. This avoids continuous power supply to the connection contact when the speaker is not working, reducing unnecessary power consumption.
[0069] In this embodiment of the application, the electronic device is used to play sound through a speaker using a first audio parameter (i.e., enhanced audio parameter) when the target protective case 5 is detected to be fastened to the electronic device, and to play sound through a speaker using a second audio parameter (i.e., default audio parameter) when the target protective case 5 is not detected to be fastened to the electronic device.
[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 fastened with a target protective case, so that when the target protective case is detected to be fastened with the electronic device, the stored first audio parameter is acquired, 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. The input gain parameter adjusts the overall sound gain of the speaker. The equalization parameter adjusts the sound gain of the audio signal at different frequencies. The MBDRC parameter adjusts the sound gain of the audio signal at different loudness levels. The amplitude threshold limits the amplitude of the audio signal.
[0072] In an alternative embodiment, the electronic device can be used, either when the target protective case is attached to the electronic device or when the electronic device with the target protective case attached is simulated, to repeatedly adjust audio parameters until the frequency response curve of the speaker meets the target frequency response condition, thereby obtaining the adjusted audio parameters, and defining the adjusted audio parameters as the first audio parameters. The audio parameters include input gain parameters, equalization parameters, MBDRC parameters, and amplitude thresholds, etc.
[0073] Further optionally, the electronic device can be used to, when the target protective case is fastened to the electronic device, use initial audio parameters to play sound through the speaker 10; acquire the frequency response curve of the speaker 10; if the frequency response curve does not meet the target frequency response condition, adjust the value of the initial audio parameters, use the adjusted initial audio parameters to play sound through the speaker 10; if the frequency response curve meets the target frequency response condition, determine the initial audio parameters as the first audio parameters.
[0074] For example, an electronic device can plot a frequency response curve by capturing the audio signal output from speaker 10 when playing sound through a speaker using initial audio parameters. It then determines whether the plotted frequency response curve meets the target frequency response condition. If the frequency response curve meets the target frequency response condition, the initial audio parameters are determined as the first audio parameters. If the frequency response curve does not meet the target frequency response condition, the value of the initial audio parameters is adjusted, and the adjusted initial audio parameters are used to play sound through speaker 10. The frequency response curve is plotted again by capturing the audio signal output from speaker 10 when playing sound through the microphone, until the plotted frequency response curve meets the target frequency response condition. The process of adjusting the value of the initial audio parameters may include: the electronic device can directly increase or decrease the target variable of a single initial audio parameter; and / or, the electronic device may also adjust the value of the initial audio parameter at different volume levels for a single initial audio parameter.
[0075] The frequency response curve can be a sound frequency-sound pressure curve, where the horizontal axis represents frequency in Hertz (Hz) and the vertical axis represents sound pressure in decibels (dB). Alternatively, it can be a sound frequency-loudness curve, where the horizontal axis represents frequency in Hz and the vertical axis represents loudness in dB. Or, it can be a sound frequency-sound intensity curve, where the horizontal axis represents frequency in Hz and the vertical axis represents sound intensity in dB.
[0076] In some embodiments of this 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 sound is played out through the speaker using a second audio parameter. For example, the target frequency response condition includes the speaker's frequency response curve being the reference frequency response curve.
[0077] The electronic device can plot a frequency response curve by capturing the audio signal output from speaker 10 when playing sound through a speaker using initial audio parameters. The electronic device then calculates the similarity between the plotted frequency response curve and a reference frequency response curve. It determines whether the similarity is greater than a similarity threshold. If yes, the frequency response curve meets the target frequency response condition, and the electronic device sets the initial audio parameters as the first audio parameters. If no, the frequency response curve does not meet the target frequency response condition, and the electronic device adjusts the initial audio parameters, using the adjusted initial audio parameters to play sound through speaker 10. The frequency response curve is plotted again by capturing the audio signal output from speaker 10 through the microphone until the similarity between the plotted 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. For example... Figure 9 As shown, the electronic device may also include: a processor 11, a speaker external circuit 12, and a feedback circuit 13.
[0079] The external speaker circuit 12 is connected to the speaker 10. The external speaker circuit 12 is used to control the speaker 10 to output multiple sounds of different frequencies at a target input sound pressure using 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 outputs sounds of different frequencies and transmit the actual sound pressure corresponding to each sound frequency to the processor 11. The processor 11 is connected to the external speaker circuit 12. The processor 11 is used to plot a frequency response curve based on the actual sound pressure corresponding to different sound frequencies. If the frequency response curve does not meet the target frequency response condition, it transmits an adjustment signal to the external speaker circuit 12. If the frequency response curve meets the target frequency response condition, it transmits a confirmation signal to the external speaker circuit 12. The external speaker circuit 12 is also used to adjust the initial audio parameters upon receiving the adjustment signal, and again control the speaker 10 to output multiple sounds of different frequencies at the target input sound pressure. Upon receiving the confirmation signal, it determines the initial audio parameters as the first audio parameter.
[0080] The electronic device can be used to set the input sound pressure of the speaker 10 to a fixed value (i.e., the target input sound pressure) when the target protective cover 50 is fastened to the electronic device. By collecting the actual sound pressure of the speaker 10 under different audio parameters, the frequency response curve of the speaker under different audio parameters is plotted, thereby determining the audio parameter that satisfies the target frequency response condition as the first audio parameter.
[0081] For example, the processor 11 can control the external speaker circuit 12 to control the speaker 10 to play multiple sounds of different frequencies at a target input sound pressure, and control the speaker 10 to play multiple audio signals of different frequencies at a target input sound pressure. The feedback circuit 13 can collect the actual sound pressure of the speaker 10 playing sounds of different frequencies through a microphone and transmit the actual sound pressure of different frequencies to the processor 11. The processor 11 can plot the frequency response curve of the sound pressure changing with the sound frequency based on the received actual sound pressure of different frequencies. Furthermore, it obtains a reference frequency response curve, calculates the curve similarity between the plotted frequency response curve and the reference frequency response curve, and obtains the similarity. It determines whether the similarity is greater than the similarity threshold. If yes, it indicates that the frequency response curve meets the target frequency response condition, and a determination signal is transmitted to the external speaker circuit 12 so that the external speaker circuit 12 determines the initial audio parameter as the first audio parameter. If no, it indicates that the frequency response curve does not meet the target frequency response condition, and an adjustment signal is transmitted to the external speaker circuit 12 so that the external speaker circuit 12 adjusts the value of the initial audio parameter. The processor 11 can again control the speaker 10 to output multiple different sound frequencies at the target input sound pressure by controlling the external circuitry 12 of the speaker.
[0082] Further optionally, the speaker's audio parameters (including first audio parameters and second audio parameters) include: input gain parameters, equalization parameters, MBDRC parameters, and amplitude threshold. For example... Figure 10 As shown, the external circuit 12 of the speaker may include a parameter adaptive adjustment module 121. The parameter adaptive adjustment module 121 is used to adjust the values of initial audio parameters upon receiving an adjustment signal, adjust the audio signal to be played by the speaker according to the adjusted initial audio parameters, and transmit the adjusted audio signal to the speaker 10 for the speaker to play the sound corresponding to the audio signal. Correspondingly, the parameter adaptive adjustment module 121 is also used to adjust the audio signal to be played by the speaker according to a first audio parameter when a target protective case is detected on the electronic device, so as to play sound through the speaker using the first audio parameter. The parameter adaptive adjustment module 121 is also used to adjust the audio signal to be played by the speaker according to a second audio parameter when a target protective case is not detected on the electronic device, so as to play sound through the speaker using the second audio parameter.
[0083] The parameter adaptive tuning module 121 includes, in sequence, an input gain submodule 1211, an equalizer (EQ) module 1212, an MBDRC module 1213, and a limiter module 1214. The input gain submodule 1211 adjusts 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 also adjusts the value of the input gain parameter upon receiving an adjustment signal. The EQ module 1212 can adjust the sound gain of different frequency bands of the audio signal to be played by the speaker using a finite impulse response (FIR) filter or an infinite impulse response (IIR) filter according to the equalization parameter. The EQ module 1212 also adjusts the value of the equalization parameter upon receiving an adjustment signal. The MBDRC module 1213 adjusts the audio signal to be played by the speaker according to the MBDRC parameter. After the electronic device is secured with a target protective sleeve, causing the magnetic components within the protective sleeve to act on the speaker, the speaker's cavity environment will attenuate audio signals of different loudnesses to varying degrees. The MBDRC module 1213 is used to perform different gain compensations for audio signals of different loudnesses. The MBDRC module 1213 is also used to adjust the values of MBDRC parameters upon receiving an adjustment signal. The limiter module 1214 is used to apply negative sound gain to the audio signal when the amplitude of the audio signal to be played by the speaker exceeds the amplitude threshold, thereby reducing the amplitude of the audio signal and limiting its amplitude. This prevents excessive gain, distortion, and noise caused by the magnetic components inside the protective case acting on the speaker when the electronic device is fastened to the protective case. The limiter module 1214 is also used to adjust the amplitude threshold upon receiving an adjustment signal.
[0084] Based on this, when the electronic device is attached to the target protective cover, the audio parameters of the speaker can be adjusted 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 condition. The input gain parameters, equalization parameters, MBDRC parameters, and amplitude threshold when the target frequency response condition is met are determined to obtain the first audio parameters.
[0085] Please refer to Figure 11It shows the frequency response curve (also known as the sweep frequency response curve) A when the magnetic component inside the target protective case and the central magnet inside the speaker have the same polarity, and the speaker plays sound at maximum volume (i.e., the target input sound pressure is at maximum sound pressure) in the three cases mentioned above; the frequency response curve B when the magnetic component inside the target protective case and the central magnet inside the speaker have opposite polarities, and the frequency response curve C when the speaker plays sound at maximum volume when the electronic device is not fastened with the target protective case.
[0086] from Figure 11 It can be seen that, compared to the second scenario where the magnetic component inside the target protective sleeve 5 and the central magnet 101 inside the speaker 10 have opposite polarities, in the first scenario where the magnetic component inside the target protective sleeve 5 and the central magnet 101 inside the speaker 10 have the same polarity, the sound pressure level (SPL) of the speaker 10 at audio signals with frequencies below 800Hz can be increased, and the SPL at other audio frequencies is approximately equal to the SPL of the speaker when the target protective sleeve is not fastened. Therefore, it has a better audio playback effect.
[0087] In one alternative implementation, the input gain parameter, equalization parameter, and amplitude threshold can all be constant values. The MBDRC parameter, however, can take different values depending on the speaker's input volume.
[0088] For example, such as Figure 12 As shown, for audio signals with a volume below -60dB, the loudness of the speaker can be suppressed using the MBDRC parameter to reduce the volume of the speaker output. In this case, it can be considered that the noise generated by the audio signal is suppressed by adjusting the MBDRC parameter. For audio signals with a volume of -60dB to -30dB and -30dB to -15dB, different values of the MBDRC parameter can be selected according to the volume attenuation of the target protective case to increase the sound gain to varying degrees and increase the volume of the speaker output. For audio signals with a volume of -15dB to 0dB, the loudness of the speaker can be suppressed using the MBDRC parameter to avoid problems such as noise and distortion caused by excessive sound increase.
[0089] Accordingly, when the initial audio parameters are input gain parameters, equalization parameters, or amplitude thresholds, the electronic device can directly increase or decrease the target variable of the initial audio parameters to adjust their values. When the initial audio parameters are MBDRC parameters, the electronic device can adjust the values of the initial audio parameters at different volume levels.
[0090] In some embodiments of this application, the electronic device is further configured to acquire 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 fitted with a target protective cover when the target impedance is within the target threshold range corresponding to the target operating frequency.
[0091] Optionally, the electronic device can store the target threshold range of the speaker 10's impedance at different operating frequencies when the target protective sleeve 5 is fastened to the electronic device 1. The electronic device can periodically or in real-time acquire the speaker's current, voltage, and target operating frequency, and calculate the speaker's target impedance based on the speaker's current, voltage, and the current-voltage conversion formula (voltage = current × impedance). It acquires the target threshold range corresponding to the target operating frequency and determines whether the target impedance is within the target threshold range. If yes, it is determined that the electronic device is detected to be fastened with the target protective sleeve. If no, it is determined that the electronic device is not detected to be fastened with the target protective sleeve.
[0092] Alternatively, based on the electro-mechanical-acoustic analogy, an impedance model can be established for the loudspeaker to analyze its impedance variations. For example, the impedance model of the loudspeaker could be... Figure 13 The circuit shown. Figure 13 In the circuit shown, inductance Le represents the equivalent inductance of the loudspeaker, Re represents the equivalent DC impedance of the loudspeaker, R represents the equivalent AC impedance of the loudspeaker, and U represents the voltage across the loudspeaker. The voltage U satisfies:
[0093]
[0094] In this formula, Re represents the equivalent DC impedance. i(t) represents the instantaneous current of the loudspeaker at time t. Le represents the equivalent inductance. Rm represents the equivalent AC impedance. BL represents the force coefficient of the loudspeaker. The force coefficient indicates the product of the gap flux density B and the wire length L of the voice coil within the loudspeaker. Furthermore, according to acoustic principles, loudspeaker vibration can be equivalent to the free vibration of a point mass. Based on this, the force coefficient BL of the loudspeaker satisfies:
[0095]
[0096] Where m represents the mass of the loudspeaker diaphragm, r represents the air resistance system, k is the spring constant, and x(t) represents the displacement of the loudspeaker at time t.
[0097] Optionally, the electronic device is also used to: establish a first impedance model of the speaker based on the speaker's modeling parameters when the electronic device is not fitted with a 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 based on the speaker's modeling parameters when the electronic device is fitted with a target protective cover; determine the second AC impedance of the second impedance model at different operating frequencies; and 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] The modeling parameters for the loudspeaker may include: Figure 13 The circuit parameters shown include: the loudspeaker voltage U, AC current I, equivalent DC impedance Re, equivalent inductance Le, loudspeaker power coefficient BL, and equivalent AC impedance Rm. For example, by establishing a first impedance module and a second impedance model, the following can be obtained: Figure 14 The AC impedance curve shown is a schematic diagram illustrating how AC impedance changes with the current frequency (i.e., the operating frequency of the loudspeaker). Among them, Figure 14 The AC impedance curve C141 of the first impedance model is shown when the magnetic component inside the target protective sleeve 5 has the same polarity as the central magnet 101 inside the speaker in the first case. The AC impedance curve C142 of the second impedance module is shown when the electronic device is not secured with the target protective sleeve.
[0099] like Figure 14 It is evident that the AC impedance curve of the speaker differs under different conditions. 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 target threshold range corresponding to the operating frequency as [R1-a, R2+a]. Here, R1 represents the first AC impedance, R2 represents the second AC impedance, and a is a constant. Alternatively, for each operating frequency of the speaker, the electronic device can determine the target threshold range corresponding to the operating frequency as (R1, R2).
[0100] In some embodiments of this application, such as Figure 9 and Figure 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] Feedback circuit 13 is also used to acquire the current and voltage of speaker 10, determine the target impedance of speaker 13 based on the current and voltage, and transmit the target impedance to processor 11. Processor 11 is also used to acquire the target operating frequency of speaker 10, determine that an electronic device with a target protective cover is detected when the target impedance is within the target threshold range corresponding to the target operating frequency, and transmit an enhancement mode signal to external speaker circuit 12. When the target impedance exceeds the target threshold range corresponding to the target operating frequency, determine that no electronic device with a target protective cover is detected, and transmit a default mode signal to external speaker circuit 12. External speaker circuit 12 is also used to acquire a first audio parameter when receiving the enhancement mode signal, control the speaker to play sound using the first audio parameter, and acquire a second audio parameter when receiving the default mode signal, control the speaker to play sound using the second audio parameter.
[0102] Optionally, the feedback circuit 13 is used to acquire the current I and voltage U of the loudspeaker 10 to determine the target impedance of the loudspeaker 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 external circuitry 12 and the loudspeaker 10. Furthermore, 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 external circuitry 12. The analog-to-digital conversion module 131 is used to sample the current and voltage signals of the loudspeaker, convert the current and voltage signals into analog signals, and transmit the analog signals to the sampling module 132. The sampling module 132 is used to sample the current signal at the target frequency from the analog signal converted from the current signal and the voltage signal at the target frequency from the analog signal converted from the voltage signal through downsampling, and transmit the current and voltage signals at the target frequency to the impedance estimation module 133. The impedance estimation module 133 is used to determine the target impedance of the loudspeaker based on 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 can be the operating frequency of the loudspeaker.
[0103] Optionally, the processor 11 may store the 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 can obtain the target threshold range corresponding to the target operating frequency of the speaker. It then determines whether the target impedance is within the target threshold range. If yes, it transmits an enhancement mode signal to the external circuitry 12 of the speaker. If no, it transmits a default mode signal to the external circuitry 12 of the speaker.
[0104] Optionally, the external speaker circuit 12 stores a first audio parameter and a second audio parameter. When receiving an enhancement mode signal, the external speaker circuit 12 uses the first audio parameter to control the speaker to play sound; when receiving a default mode signal, it uses the second audio parameter to control the speaker to play sound.
[0105] In some embodiments of this application, such as Figure 15 As shown, the external circuit of the speaker 12 includes: a parameter adaptive adjustment module 121, a high-pass filter module 122, a low-frequency sound guide module 123, and a power amplifier (PA) 124.
[0106] The high-pass filter module 122 is connected to both the processor 11 and the parameter adaptive tuning module 121. The high-pass filter module 122 performs low-pass filtering on the audio signal to be played from the speaker transmitted by the processor 11, and then transmits the filtered audio signal to the parameter adaptive tuning module 121. Low-pass filtering via the high-pass filter module 122 effectively removes interference from 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 PA 124 when the electronic device is detected to be fastened with a target protective cover; and to adjust the received audio signal according to the second audio parameter and transmit the adjusted audio signal to PA 124 when the electronic device is not detected to be fastened with a target protective cover.
[0108] PA 124 is used to amplify the received audio signal to convert it into an analog electrical signal and boost it to output to speaker 10, so that speaker 10 converts the analog electrical signal into a sound signal for external playback.
[0109] In summary, the audio playback system provided in this application includes an electronic device and a target protective sleeve. The electronic device has a built-in speaker, which includes a central magnetic element, a side magnetic element, and a voice coil, with the voice coil disposed in the gap between the central magnetic element and the side magnetic element. The electronic device is used to play sound through the speaker using a first audio parameter when the target protective sleeve is detected being fastened to the electronic device, and to play sound through the speaker using a second audio parameter when the target protective sleeve is not detected being fastened to the electronic device. Since the target protective sleeve contains a magnetic element, and when the target protective sleeve is fastened to the electronic device, the magnetic pole at the end of the magnetic element near the electronic device is the same as the magnetic pole at the end of the central magnetic element of the speaker near the target protective sleeve. Therefore, when the target protective sleeve is fastened to the electronic device, the magnetic element of the target protective sleeve and the side magnetic element of the speaker can form a magnetic field at the voice coil of the speaker. This magnetic field can be superimposed on the magnetic field formed by the central magnetic element and the side magnetic element at the voice coil of the speaker, thereby enhancing the magnetic field strength at the location of the voice coil in the speaker. This enhancement of the magnetic field strength at the location of the voice coil can improve the sound quality of the speaker. Therefore, by using the combined action of the central magnetic component and the magnetic component in the target protective sleeve, the first audio parameters of the speaker can be played out through the speaker, which can effectively improve the sound quality of the speaker, avoid problems such as volume reduction and noise that are easy to occur in the speaker, and ensure the normal operation of the speaker.
[0110] Please refer to Figure 16 This document illustrates a flowchart of an audio playback method provided in an embodiment of this application. The audio playback method can be applied to the audio playback system provided in this embodiment and is executed by an electronic device. Figure 16 As shown, the audio playback methods include:
[0111] Step 1601: When it is detected that the electronic device is secured with the target protective cover, the first audio parameter is obtained. The target protective cover is provided with a magnetic component, and when the target protective cover is secured to the electronic device, the magnetic pole of the end of the magnetic component near the electronic device is the same as the magnetic pole of the central magnetic component of the speaker near the end of the target protective cover. The first audio parameter is the audio parameter of the speaker under the combined action of the central magnetic component and the magnetic component.
[0112] Step 1602: Using the first audio parameters, play the sound through the speaker.
[0113] Step 1603: If no target protective cover is detected on the electronic device, obtain the second audio parameter, which is the audio parameter of the speaker under the action of the central magnetic component.
[0114] Step 1604: Use the second audio parameters to play the sound through the speaker.
[0115] In this embodiment, the audio playback method can be applied to an electronic device with a built-in speaker. When the electronic device detects that a target protective case is fastened to it, it uses a first audio parameter to play sound through the speaker; when the target protective case is not detected, it uses a second audio parameter to play sound through the speaker. Since the target protective case contains a magnetic component, and when the target protective case is fastened to the electronic device, the magnetic pole at the end of the magnetic component near the electronic device is the same as the magnetic pole at the end of the central magnetic component of the speaker near the target protective case. Therefore, when the target protective case is fastened to the electronic device, the magnetic component of the target protective case can form a magnetic field at the voice coil of the speaker with the side magnetic component of the speaker. This magnetic field can be superimposed on the magnetic field formed by the central magnetic component and the side magnetic component at the voice coil, thereby enhancing the magnetic field strength at the voice coil location. This enhanced magnetic field strength at the voice coil location improves the speaker's sound quality. Therefore, by using the combined action of the central magnetic component and the magnetic component in the target protective sleeve, the first audio parameters of the speaker can be played out through the speaker, which can effectively improve the sound quality of the speaker, avoid problems such as volume reduction and noise that are easy to occur in the speaker, and ensure the normal operation of the speaker.
[0116] Alternatively, the audio playback method also includes:
[0117] With the target protective case fastened to the electronic device, the initial audio parameters are used to play sound through the speaker.
[0118] Collect the frequency response curve of the loudspeaker;
[0119] If the frequency response curve does not meet the target frequency response conditions, adjust the values of the initial audio parameters, use the adjusted initial audio parameters, and play the sound through the speaker.
[0120] If the frequency response curve meets the target frequency response condition, the initial audio parameters are determined as the first audio parameters.
[0121] Optionally, the target frequency response condition includes: the similarity between the frequency response curve and the reference frequency response curve is greater than a similarity threshold, and the reference frequency response curve is the frequency response curve of the speaker when the sound is played out through the speaker using the second audio parameters.
[0122] Optionally, detecting that the electronic device is secured with a target protective case includes:
[0123] Obtain the speaker's current, voltage, and target operating frequency;
[0124] Determine the target impedance of the loudspeaker based on the current and voltage;
[0125] If the target impedance is within the target threshold range corresponding to the target operating frequency, it is determined that the electronic device is fitted with a target protective cover.
[0126] Alternatively, the audio playback method also includes:
[0127] When the electronic device is not secured with the target protective cover, the first impedance model of the speaker is established based on the speaker's modeling parameters;
[0128] Determine the first AC impedance of the first impedance model at different operating frequencies;
[0129] When the electronic device is secured with a protective cover, a second impedance model of the speaker is established based on the speaker's modeling parameters.
[0130] Determine the second AC impedance of the second impedance model at different operating frequencies;
[0131] Based on the first AC impedance and the second AC impedance at each operating frequency, determine the target threshold range corresponding to each operating frequency.
[0132] Optionally, the magnetic component includes a coil, and the target protective sleeve also includes a connecting contact for supplying power to the coil when energized; the audio playback method further includes supplying power to the connecting contact when the electronic device is in contact with the connecting contact.
[0133] Accordingly, when the electronic device is detected to be secured with a target protective case, the first audio parameter is acquired, including: when the electronic device is detected to be secured with a target protective case, power supply to the connection contact is stopped; when an external speaker command is triggered, power supply to the connection contact is supplied, and the first audio parameter is acquired.
[0134] It should be noted that the explanation and implementation of each step in the embodiments of this method can be found in the relevant introduction of the system side mentioned above, and the embodiments of this application will not be repeated here.
[0135] For example, such as Figure 17 As shown, the electronic device can detect whether a target protective case is attached to it. If a target protective case is detected, a reminder message is output to prompt the user whether the external speaker enhancement solution is applicable. The system then determines whether it has received confirmation of the user's use of the external speaker enhancement solution.
[0136] If the system receives confirmation from the user regarding the enhanced speaker feature, it acquires the enhanced audio parameters (i.e., the first audio parameters) and uses these parameters to play the sound through the speaker. If the system does not receive confirmation from the user, it acquires the default audio parameters (i.e., the second audio parameters) and uses these parameters to play the sound through the speaker. The user's confirmation can be a tap, long press, swipe, or voice input related to the notification message.
[0137] In summary, the audio playback method provided in this application can be applied to electronic devices with built-in speakers. When the electronic device detects that a target protective case is fastened to it, it uses a first audio parameter to play sound through the speaker; when the target protective case is not fastened to it, it uses a second audio parameter to play sound through the speaker. Since the target protective case contains a magnetic component, and when the target protective case is fastened to the electronic device, the magnetic pole of the end of the magnetic component near the electronic device is the same as the magnetic pole of the central magnetic component of the speaker near the target protective case. Therefore, when the target protective case is fastened to the electronic device, the magnetic component of the target protective case can form a magnetic field at the voice coil of the speaker with the side magnetic component of the speaker. This magnetic field can be superimposed on the magnetic field formed by the central magnetic component and the side magnetic component at the voice coil of the speaker, thereby enhancing the magnetic field strength at the voice coil location. This enhanced magnetic field strength at the voice coil location improves the sound quality of the speaker. Therefore, by using the combined action of the central magnetic component and the magnetic component in the target protective sleeve, the first audio parameters of the speaker can be played out through the speaker, which can effectively improve the sound quality of the speaker, avoid problems such as volume reduction and noise that are easy to occur in the speaker, and ensure the normal operation of the speaker.
[0138] The electronic device in this application embodiment can be a terminal, or it can be any other device besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope.
[0139] The electronic device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0140] The electronic device provided in this application embodiment can achieve... Figures 16 to 17 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0141] Optionally, such as Figure 18 As shown, this application embodiment also provides an electronic device 1800, including a processor 1801 and a memory 1802. The memory 1802 stores a program or instructions that can run on the processor 1801. When the program or instructions are executed by the processor 1801, they implement the various steps of the above-described audio playback method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0142] The electronic device 1800 further includes a speaker. The speaker includes a central magnetic element, side magnetic elements, and a voice coil, with the voice coil disposed within the gap between the central and side magnetic elements. The electronic device is also used to engage with a protective sleeve, the protective sleeve containing a magnetic element. When the protective sleeve is engaged with the electronic device, the magnetic pole at the end of the magnetic element near the electronic device is the same as the magnetic pole at the end of the central magnetic element near the protective sleeve. It should be noted that the electronic devices in this embodiment include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0143] Figure 19This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this 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. Furthermore, the electronic device 1900 also includes a speaker. The speaker includes a central magnetic element, a side magnetic element, and a voice coil, with the voice coil disposed in the gap between the central magnetic element and the side magnetic element. The electronic device is also used to fasten with a protective sleeve, the protective sleeve containing a magnetic element. When the protective sleeve is fastened to the electronic device, the magnetic pole of the end of the magnetic element near the electronic device is the same as the magnetic pole of the end of the central magnetic element near the protective sleeve.
[0144] Those skilled in the art will understand that the electronic device 1900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 19 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0145] The processor 1910 is configured to, when detecting that the electronic device is fitted with a target protective cover, acquire a first audio parameter, wherein the target protective cover contains a magnetic element, and when the target protective cover is fitted with the electronic device, the magnetic pole of the end of the magnetic element near the electronic device is the same as the magnetic pole of the central magnetic element of the speaker near the end of the target protective cover. The first audio parameter is the audio parameter of the speaker under the combined action of the central magnetic element and the magnetic element, and the first audio parameter is used to play sound through the speaker. When not detecting that the electronic device is fitted with the target protective cover, the processor acquires a second audio parameter, the second audio parameter is the audio parameter of the speaker under the action of the central magnetic element, and the second audio parameter is used to play sound through the speaker.
[0146] In this embodiment, the audio playback method can be applied to an electronic device with a built-in speaker. When the electronic device detects that a target protective case is fastened to it, it uses a first audio parameter to play sound through the speaker; when the target protective case is not detected, it uses a second audio parameter to play sound through the speaker. Since the target protective case contains a magnetic component, and when the target protective case is fastened to the electronic device, the magnetic pole at the end of the magnetic component near the electronic device is the same as the magnetic pole at the end of the central magnetic component of the speaker near the target protective case. Therefore, when the target protective case is fastened to the electronic device, the magnetic component of the target protective case can form a magnetic field at the voice coil of the speaker with the side magnetic component of the speaker. This magnetic field can be superimposed on the magnetic field formed by the central magnetic component and the side magnetic component at the voice coil, thereby enhancing the magnetic field strength at the voice coil location. This enhanced magnetic field strength at the voice coil location improves the speaker's sound quality. Therefore, by using the combined action of the central magnetic component and the magnetic component in the target protective sleeve, the first audio parameters of the speaker can be played out through the speaker, which can effectively improve the sound quality of the speaker, avoid problems such as volume reduction and noise that are easy to occur in the speaker, and ensure the normal operation of the speaker.
[0147] Optionally, the processor 1910 is configured to, when the target protective cover is fastened to the electronic device, use initial audio parameters to play sound through a speaker; acquire the frequency response curve of the speaker; if the frequency response curve does not meet the target frequency response condition, adjust the value 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 condition, determine the initial audio parameters as the first audio parameters.
[0148] Optionally, the target frequency response condition includes: the similarity between the frequency response curve and the reference frequency response curve is greater than a similarity threshold, and the reference frequency response curve is the frequency response curve of the speaker when the sound is played out through the speaker using the second audio parameters.
[0149] Optionally, the processor 1910 is configured to acquire 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 fitted with a target protective cover if the target impedance is within the target threshold range corresponding to the target operating frequency.
[0150] Optionally, the processor 1910 is configured to, when the electronic device is not fitted with a target protective cover, establish a first impedance model of the speaker based on the speaker's modeling parameters; determine the first AC impedance of the first impedance model at different operating frequencies; when the electronic device is fitted with a target protective cover, establish a second impedance model of the speaker based on the speaker's modeling parameters; determine the second AC impedance of the second impedance model at different operating frequencies; and 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.
[0151] Optionally, the magnetic component includes a coil, and the target protective case also includes a connecting contact point for supplying power to the coil when energized; the processor 1910 is configured to supply power to the connecting contact point when the electronic device is in contact with the connecting contact point; to stop supplying power to the connecting contact point when the electronic device is detected to be fastened with the target protective case; and to supply power to the connecting contact point and acquire first audio parameters when a speaker command is triggered.
[0152] In this embodiment, the audio playback method can be applied to an electronic device with a built-in speaker. When the electronic device detects that a target protective case is fastened to it, it uses a first audio parameter to play sound through the speaker; when the target protective case is not detected, it uses a second audio parameter to play sound through the speaker. Since the target protective case contains a magnetic component, and when the target protective case is fastened to the electronic device, the magnetic pole of the end of the magnetic component near the electronic device is the same as the magnetic pole of the central magnetic component of the speaker near the target protective case. Therefore, when the target protective case is fastened to the electronic device, the magnetic component of the target protective case can form a magnetic field at the voice coil of the speaker with the side magnetic component of the speaker. This magnetic field can be superimposed on the magnetic field formed by the central magnetic component and the side magnetic component at the voice coil, thereby enhancing the magnetic field strength at the voice coil location. This enhanced magnetic field strength at the voice coil location improves the sound quality of the speaker. Therefore, by using the combined action of the central magnetic component and the magnetic component in the target protective sleeve, the first audio parameters of the speaker can be played out through the speaker, which can effectively improve the sound quality of the speaker, avoid problems such as volume reduction and noise that are easy to occur in the speaker, and ensure the normal operation of the speaker.
[0153] It should be understood that, in this embodiment, the input unit 1904 may include a graphics processing unit (GPU) 19041 and a microphone 19042. The GPU 19041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1906 may include a display panel 19061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1907 includes at least one of a touch panel 19071 and other input devices 19072. The touch panel 19071 is also called a touch screen. The touch panel 19071 may include a touch detection device and a touch controller. Other input devices 19072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0154] The memory 1909 can be used to store software programs and various data. The memory 1909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0155] Processor 1910 may include one or more processing units; optionally, processor 1910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1910.
[0156] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described audio playback method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0157] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0158] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described audio playback method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0159] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0160] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the audio playback method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0161] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0163] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An audio playback method, characterized in that, An electronic device having a built-in speaker, the speaker comprising a center magnet, a side magnet, and a voice coil disposed within a gap between the center magnet and the side magnet, the method comprising: When the electronic device is detected to be secured with a target protective cover, a first audio parameter is acquired. The target protective cover contains a magnetic component, and when the target protective cover is secured to the electronic device, the magnetic component and the central magnetic component are positioned opposite each other or staggered. The magnetic pole of the magnetic component near the electronic device is the same as the magnetic pole of the central magnetic component of the speaker near the target protective cover. The magnetic component of the target protective cover and the side magnetic component of the speaker form a magnetic field at the voice coil of the speaker. This magnetic field is superimposed on the magnetic fields of the central magnetic component and the side magnetic component at the voice coil. The first audio parameter is the audio parameter of the speaker under the combined action of the central magnetic component and the magnetic component. Using the first audio parameter, sound is emitted through the speaker. If the electronic device is not detected to be fastened with the target protective cover, a second audio parameter is obtained. The second audio parameter is the audio parameter of the speaker under the action of the central magnetic component. Using the second audio parameter, sound is played out through the speaker.
2. The method according to claim 1, characterized in that, The method further includes: With the target protective case fastened to the electronic device, sound is played out through the speaker using initial audio parameters; Collect the frequency response curve of the loudspeaker; If 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. If the frequency response curve satisfies 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: the similarity between the frequency response curve and the reference frequency response curve is greater than a similarity threshold, and the reference frequency response curve is the frequency response curve of the speaker when the second audio parameters are used to play sound through the speaker.
4. The method according to claim 1, characterized in that, The detection that the electronic device is fastened with a target protective case includes: Obtain the current, voltage, and target operating frequency of the speaker; The target impedance of the loudspeaker is determined based on the current and the voltage. If the target impedance is within the target threshold range corresponding to the target operating frequency, it is determined that the electronic device is fitted with a target protective cover.
5. The method according to claim 4, characterized in that, The method further includes: When the electronic device is not secured with the target protective cover, a first impedance model of the speaker is established based on the speaker's modeling parameters; Determine the first AC impedance of the first impedance model at different operating frequencies; With the target protective cover fastened to the electronic device, a second impedance model of the speaker is established based on the speaker's modeling parameters; Determine the second AC impedance of the second impedance model at different operating frequencies; Based on the first AC impedance and the second AC impedance at each operating frequency, a target threshold range corresponding to each operating frequency is determined.
6. The method according to claim 1, characterized in that, The magnetic component includes a coil, and the target protective sleeve further includes a connecting contact point for supplying power to the coil when energized; the method further includes supplying power to the connecting contact point when the electronic device is in contact with the connecting contact point. The step of acquiring the first audio parameter when the electronic device is detected to be secured with a target protective case includes: If the electronic device is detected to be secured with a target protective cover, power supply to the connection contact point shall be stopped. When the external speaker command is triggered, power is supplied to the connection contact point, and the first audio parameter is acquired.
7. An audio external speaker system, characterized in that, The audio playback system includes: electronic devices and a target protective case; The electronic device has a built-in speaker, which includes a central magnetic component, a side magnetic component, and a voice coil. The voice coil is disposed in the gap between the central magnetic component and the side magnetic component. A magnetic component is disposed inside the target protective sleeve. When the target protective sleeve is fastened to the electronic device, the magnetic component is positioned directly opposite or alternately with the central magnetic component. The magnetic pole of the end of the magnetic component near the electronic device is the same as the magnetic pole of the end of the central magnetic component near the target protective sleeve. The magnetic component of the target protective sleeve and the side magnetic component of the speaker form a magnetic field at the voice coil of the speaker, and this magnetic field is superimposed on the magnetic field of the central magnetic component and the side magnetic component at the voice coil of the speaker. The electronic device is used to play sound through the speaker using a first audio parameter when the target protective cover is detected to be fastened to the electronic device, and to play sound through the speaker using a second audio parameter when the target protective cover is not detected to be fastened to the electronic device; wherein, the first audio parameter is the audio parameter of the speaker under the combined action of the central magnetic element and the magnetic element, and the second audio parameter is the audio parameter of the speaker under the action of the central magnetic element.
8. The audio external speaker system according to claim 7, characterized in that, The electronic device also includes: a processor, external speaker circuitry, and a feedback circuitry; The external circuit of the loudspeaker is connected to the loudspeaker and is used to control the loudspeaker to output multiple sounds of different 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 frequencies, and transmit the actual sound pressure corresponding to different frequencies to the processor. The processor is connected to the external circuit of the speaker and is used to plot the frequency response curve according to the actual sound pressure corresponding to different sound frequencies. If the frequency response curve does not meet the target frequency response condition, an adjustment signal is transmitted to the external circuit of the speaker. If the frequency response curve meets the target frequency response condition, a determination signal is transmitted to the external circuit of the speaker. The external circuit of the speaker is also used to adjust the initial audio parameters when the adjustment signal is received, and to control the speaker to play multiple sounds of different frequencies with the target input sound pressure. When the determination signal is received, the initial audio parameters are determined as the first audio parameters.
9. The audio external speaker system according to claim 8, characterized in that, The feedback circuit is also used to collect the current and voltage of the speaker, determine the target impedance of the speaker based on the current and voltage, and transmit the target impedance to the processor; The processor is further configured to acquire the target operating frequency of the speaker, and if the target impedance is within the target threshold range corresponding to the target operating frequency, determine that the electronic device is fitted with a target protective cover and transmit an enhancement mode signal to the external circuit of the speaker; if the target impedance exceeds the target threshold range corresponding to the target operating frequency, determine that the electronic device is not fitted with a target protective cover and transmit a default mode signal to the external circuit of the speaker. The external circuitry of the speaker is also used to obtain the first audio parameter when the enhanced mode signal is received, and to control the speaker to play sound using the first audio parameter; and to obtain the second audio parameter when the default mode signal is received, and to control the speaker to play sound using the second audio parameter.
10. The audio playback system according to any one of claims 7 to 9, characterized in that, The magnetic component is a magnet; Alternatively, the magnetic component may be a coil, and the target protective sleeve may further include a connecting contact point for supplying power to the coil when energized.
11. The audio external playback system according to claim 10, characterized in that, The electronic device also includes a power supply module; The power supply module is used to supply power to the connection contact point when the electronic device is in contact with the connection contact point; The electronic device is also used to control the power supply module to stop supplying power to the connection contact when it is detected that the electronic device is fastened with a target protective cover and the power supply module is supplying power to the connection contact; and to control the power supply module to supply power to the connection contact when an external speaker command is triggered.
Citation Information
Patent Citations
Audio processing method and device
CN115038016A