Audio playing method and electronic equipment

By adjusting the volume value of the second device audio system to match the audio parameters of the first device, the problem of poor output of low-frequency or high-frequency signals in the built-in sound system of small electronic devices is solved, and a more stable volume output and a better audio-visual experience are achieved.

CN119603604APending Publication Date: 2025-03-11LENOVO (BEIJING) LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411751121.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

Due to space limitations and layout reasons, the built-in sound system of existing small electronic devices has poor output effects of low-frequency or high-frequency signals, and the volume is unstable when the external devices are output together.

Method used

By obtaining the audio system parameters of the first device and the second device, adjusting the volume value of the second device audio system in the target frequency band to form a synchronous output audio signal to improve the synchronous volume and stability.

Benefits of technology

The combined sound volume value of the first device and the second device in the target frequency band is significantly improved, the problem of unstable volume is solved, and the user's audio-visual experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603604A_ABST
    Figure CN119603604A_ABST
Patent Text Reader

Abstract

The invention provides an audio playing method and electronic equipment, and the method is applied to first equipment, and comprises the steps: obtaining a first audio parameter of a first equipment audio system in the first equipment and a second audio parameter of a second equipment audio system in second equipment, and the second equipment is connected with the first equipment; based on the first audio parameter and the second audio parameter, adjusting a volume value corresponding to each frequency in the first target frequency band in the second audio parameter to obtain a third audio parameter; in response to an output instruction of the first audio signal, adjusting a volume value in the first audio signal based on the third audio parameter to form a second audio signal; and sending the second audio signal to a second device, so that when the first device audio system outputs the first audio signal, the second device audio system synchronously outputs the second audio signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio playback, and in particular to an audio playback method and electronic equipment. Background Art

[0002] Currently, many small electronic devices, such as laptops and tablets, are often connected to external monitors, speakers and other devices when used by users. Especially when playing audio data, the display area of ​​the electronic device can be increased by connecting to an external monitor to improve the viewing experience.

[0003] The built-in sound systems in many small electronic devices are mostly micro sound systems, which often have poor signal output effects at low or high frequencies due to internal space limitations or layout reasons. The existing solution is to enhance the volume values ​​of the low and high frequency stages of the local audio system through software algorithms, so that the volume values ​​of the low and high frequency stages of the built-in micro sound system of the notebook can be enhanced to a certain extent, but the effect is limited. Even when there is an external device to output the audio signal together, the output effect is not ideal, and the volume will fluctuate and be unstable. Summary of the invention

[0004] In order to solve the above technical problem, the present application provides an audio playback method, which is applied to a first device, and the method includes:

[0005] Obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in a second device, the second device being connected to the first device;

[0006] Based on the first audio parameter and the second audio parameter, the volume value of each frequency in the first target frequency band corresponding to the second audio parameter is adjusted to obtain a third audio parameter;

[0007] In response to an output instruction of the first audio signal, adjusting a volume value of the first audio signal based on the third audio parameter to form a second audio signal;

[0008] The second audio signal is sent to a second device, so that when the audio system of the first device outputs the first audio signal, the audio system of the second device synchronously outputs the second audio signal.

[0009] In one embodiment, before responding to the output instruction of the first audio signal, the method further includes:

[0010] When the frequencies in the first audio signal are concentrated in a frequency band outside the first target frequency band, the output volume of the audio system of the second device within the frequency band is adjusted based on the first audio signal.

[0011] In one embodiment, obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in the second device includes:

[0012] Controlling the volume of the first device audio system and the second device audio system to a first volume;

[0013] transmitting a test audio signal to the first device and the second device in a time-sharing manner;

[0014] Obtaining first playback data when the audio system of the first device outputs a test audio signal, and determining the first audio parameter based on the first playback data analysis;

[0015] Second playback data when the audio system of the second device outputs a test audio signal is obtained, and the second audio parameter is determined based on the analysis of the second playback data.

[0016] In one embodiment, the first audio parameter includes a low frequency cutoff frequency, a high frequency cutoff frequency, and volume values ​​at different frequencies;

[0017] The second audio parameters include a low frequency cutoff frequency, a high frequency cutoff frequency, and volume values ​​at different frequencies;

[0018] The first target frequency band is determined by a low frequency cutoff frequency and a high frequency cutoff frequency in the first audio parameter and the second audio parameter.

[0019] In one embodiment, adjusting the volume value of each frequency in the first target frequency band corresponding to the second audio parameter based on the first audio parameter and the second audio parameter includes:

[0020] Calculate and determine a volume difference between first volumes of the first device audio system and the second device audio system in a first target frequency band based on the first audio parameter and the second audio parameter;

[0021] Based on the volume difference, the first audio parameter, and the second audio parameter, at least the volume value of the audio system of the second device at each frequency within the first target frequency band is adjusted.

[0022] In one embodiment, the first volume is a maximum volume, and if the maximum volume of the audio system of the second device is greater than the maximum volume of the audio system of the first device, adjusting the volume value of the audio system of the second device at each frequency in the first target frequency band based on the volume difference, the first audio parameter, and the second audio parameter includes:

[0023] Based on the volume difference, the volume value of the audio system of the second device at each frequency in the first target frequency band is reduced to obtain a corresponding relationship between frequency and volume corresponding to the first target frequency band, wherein the maximum volume of the audio system of the second device after reduction is the same as the maximum volume of the first device.

[0024] In one embodiment, it further includes:

[0025] Based on the first audio parameter, the second audio parameter, and the correspondence between frequency and volume, query the volume values ​​of the first device audio system and the second device audio system at different frequencies in the first target frequency band, and determine the frequency to be adjusted, at which the maximum combined volume of the first device audio system and the second device audio system in the first target frequency band is lower than the maximum volume;

[0026] The output volume of the audio system of the second device at the frequency to be adjusted is adjusted so that the maximum synthesized volume at the frequency to be adjusted is equal to the maximum volume.

[0027] In one embodiment, adjusting the output volume of the audio system of the second device within the frequency band based on the first audio signal includes:

[0028] determining a second target frequency band for volume adjustment based on volume values ​​at different frequencies in the first audio signal;

[0029] The volume value of the second device audio system at each frequency within the second target frequency band is adjusted so that, within the second target frequency band, the maximum combined volume of the first device audio system and the second device audio system is the maximum volume of the first device audio system, and the maximum volume of the second device audio system is the same as the maximum volume of the first device audio system.

[0030] In one embodiment, the method further comprises:

[0031] In response to the volume adjustment instruction, controlling the audio system of the first device to adjust the current first volume to a second volume;

[0032] adjusting the output volume of the first audio signal and the second audio signal according to the relationship between the second volume and the first volume, and sending the adjusted second audio signal to the second device;

[0033] The first device audio system and the second device audio system are controlled to respectively and simultaneously output the adjusted first audio signal and the second audio signal.

[0034] In one embodiment, the method further comprises:

[0035] When the second device is wirelessly connected to the first device, determining a playback delay duration between an audio system of the first device and an audio system of the second device;

[0036] The timing of sending the second audio signal to the second device is determined based on the adjustment of the play delay duration, so that the audio system of the first device and the audio system of the second device can output synchronously.

[0037] The present application also provides an electronic device, including:

[0038] A connection port for connecting a second device;

[0039] A first device audio system, used to output audio signals;

[0040] A processor is used to obtain a first audio parameter of the audio system of the first device and a second audio parameter of the audio system of the second device in the second device, adjust the volume value of each frequency in the second audio parameter corresponding to the first target frequency band according to the first audio parameter and the second audio parameter to obtain a third audio parameter, and in response to an output instruction of the first audio signal, adjust the volume value in the first audio signal based on the third audio parameter to form a second audio signal, control the sending of the second audio signal to the second device, and control the audio system of the first device to output the first audio signal, while the audio system of the second device synchronously outputs the second audio signal.

[0041] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.

[0042] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0044] Figure 1 Schematic diagram of the flow of the audio playback method in the embodiment of the present application.

[0045] Figure 2 Schematic diagram of the application process of the audio playback method in the embodiment of the present application.

[0046] Figure 3 Schematic diagram of frequency-volume curves of various devices in the embodiments of the present application.

[0047] Figure 4 It is a schematic diagram of frequency-volume curves of various devices in another embodiment of the present application.

[0048] Figure 5 FIG. 4 is a schematic diagram of an audio signal transmission path in another embodiment of the present application.

[0049] Figure 6 2 is another schematic diagram of an audio signal transmission path in an embodiment of the present application.

[0050] Figure 7 4 is a structural relationship diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0051] Below, specific embodiments of the present application are described in detail with reference to the accompanying drawings, but are not intended to limit the present application.

[0052] It should be understood that various modifications may be made to the embodiments disclosed herein. Therefore, the following description should not be considered as limiting, but merely as an example of an embodiment. Other modifications within the scope of the present disclosure will occur to those skilled in the art.

[0053] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the general description of the present disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the present disclosure.

[0054] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0055] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.

[0056] The above and other aspects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

[0057] Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it should be understood that the disclosed embodiments are merely examples of the present disclosure, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid obscuring the present disclosure with unnecessary or redundant details. Therefore, the specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present disclosure in a variety of ways with substantially any suitable detailed structure.

[0058] This specification may use the phrases "in one embodiment," "in another embodiment," "in a further embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present disclosure.

[0059] Below, embodiments of the present application are described in detail with reference to the accompanying drawings.

[0060] like Figure 1 and Figure 2 As shown, an embodiment of the present application provides an audio playback method, which is applied to a first device, and the method includes:

[0061] S1: obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in a second device, where the second device is connected to the first device;

[0062] S2: adjusting the volume value of each frequency in the first target frequency band corresponding to the second audio parameter based on the first audio parameter and the second audio parameter to obtain a third audio parameter;

[0063] S3: in response to the output instruction of the first audio signal, adjusting the volume value of the first audio signal based on the third audio parameter to form a second audio signal;

[0064] S4: Sending the second audio signal to a second device, so that when the audio system of the first device outputs the first audio signal, the audio system of the second device synchronously outputs the second audio signal.

[0065] The first device described in this embodiment can be considered as a host end, which can be any device of the same type, such as a computer host, a laptop computer, etc. The second device can be considered as an external device connected to the first device by wired or wireless means, and has an audio output function. The second device can be, for example, but not limited to, a display or a display end (the display end and the system end are integrated in the same device system, such as a laptop computer), a speaker, a TV, etc., or the second device can also be a device of the same type as the first device, such as both are laptop computers, tablet computers, or different devices of the same type, etc. The specific details are not unique. Any two devices with independent audio systems can form the first device and the second device in this embodiment after being connected.

[0066] The first device audio system and the second device audio system are built-in audio systems of the first device and the second device, respectively, for outputting the obtained audio signal. The first device audio system may include an audio signal processor, or the processor may be external and connected to the audio system, or the processor may be a processor (CPU) in the first device, which may be specific. The method described in this embodiment may be configured as an application and executed by the processor.

[0067] In this embodiment, the first device and the second device are connected via an HDMI bus, and the method is to obtain the first audio parameter of the audio system of the first device and the second audio parameter of the second audio system to obtain the performance parameters of the audio system of the first device and the audio system of the second device when outputting audio signals, such as volume, frequency, output power, signal-to-noise ratio, etc., which are not unique. After the first device obtains the first audio parameter and the second audio parameter, the volume value of each frequency point in the second audio parameter corresponding to the first target frequency band is adjusted based on the two sets of parameters to obtain the third audio parameter after the updated volume value. The first target frequency band is the frequency band that needs to be compensated for volume, which is not specific, and can be the full frequency band or a partial frequency band, such as a low frequency band, a high frequency band, etc. In response to the output instruction of the first audio signal, the first device adjusts the volume value in the first audio signal corresponding to the first target frequency band based on the third audio parameter to generate a second audio signal. Afterwards, the first device sends the second audio signal to the second device, and then controls its own first device audio system to output the first audio signal. At the same time, after the second audio system of the second device obtains the second audio signal, it synchronously outputs the second audio signal, that is, the first device audio system and the second device audio system output audio signals synchronously. Through the above method, when the first device and the second device synchronously output the corresponding audio data in response to the first audio signal output instruction, they are at least within the first target frequency band, and the combined volume of the two devices is significantly improved. Assuming that the volume values ​​of the two devices are both positioned at 100%, that is, the maximum device volume / maximum system volume (corresponding to Figure 2 The maximum volume of the HDM I in the first target audio segment is located in the first target audio segment, and the volume values ​​of the harmony of the two devices are both the maximum volume values ​​of the audio system of the first device.

[0068] Through the above method, when the first device is connected to the second device, the synergy of the two devices can be effectively improved, and the volume value of the harmony of the two devices within the first target frequency band can be improved at the same time. Taking the first target frequency band including the low frequency band and the high frequency band as an example, through the method of this embodiment, the volume of the harmony of the two devices (that is, the synthesized volume value) can be significantly improved, which makes up for the phenomenon of insufficient volume playback caused by the structural limitations of the devices themselves, the space limitations of the scene, etc., and can make the played sound more natural and harmonious in the environment, ensuring the user's audio-visual experience.

[0069] In one embodiment, obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in the second device includes:

[0070] S5: controlling the volume of the first device audio system and the second device audio system to be at a first volume;

[0071] S6: transmitting a test audio signal to the first device audio system and the second device audio system in a time-sharing manner;

[0072] S7: obtaining first playback data when the audio system of the first device outputs a test audio signal, and determining the first audio parameter based on the analysis of the first playback data;

[0073] S8: Obtain second playback data when the audio system of the second device outputs a test audio signal, and determine the second audio parameter based on the analysis of the second playback data.

[0074] In this embodiment, the first audio parameter and the second audio parameter are obtained by pre-performing an audio test on the first device and the second device. Exemplarily, the audio volume of the first device and the second device, that is, the device volume and the audio system volume, are controlled at the maximum value (that is, the first volume), such as 100%. At the same time, the volume value of the second device can be fixed so that it is always in a state where the volume value is 100%, so as to avoid the user manually adjusting the volume value of the second device alone, causing the output volume of the second device to not match the output volume of the first device, or when the user adjusts the volume value of the second device, the second device itself does not act, but sends the adjustment instruction to the first device, and the first device performs unified adjustment, that is, adjusts its own volume and the volume of the second device at the same time to meet the user's volume adjustment needs. Similarly, when the user adjusts the volume of the first device, the first device will synchronously adjust the volume sent to the second device so that the device volumes of the two match.

[0075] Furthermore, the test audio signal is transmitted to the first device audio system and the second device audio system in time-sharing. For example, the first device can generate a test small amplitude signal (such as a pink noise small signal with an average amplitude of -26dBFS) through the SW APO algorithm, and then output it to the first device audio system and the second device audio system in time-sharing. In this embodiment, the first device uses the HDMI audio path to send the test signal to the second device. After receiving the audio test signal, the first device audio system and the second device audio system will output the test signal respectively, and respectively collect and obtain their own playback data. After that, the second device can send the recorded playback data to the first device. After the first device obtains the first playback data and the second playback data, it will analyze them and then determine the first audio parameter and the second audio parameter respectively.

[0076] In this embodiment, the first audio parameter includes a low-frequency cutoff frequency, a high-frequency cutoff frequency, and volume values ​​at different frequencies. It may also include the center frequency of the sound valley and the corresponding sound pressure value, etc., which are not determined in detail. The second audio parameter includes a low-frequency cutoff frequency, a high-frequency cutoff frequency, and volume values ​​at different frequencies. It may also include the center frequency of the sound valley and the corresponding sound pressure value, etc., which are also not determined in detail. However, the two audio parameters must include a low-frequency cutoff frequency, a high-frequency cutoff frequency, and volume values ​​at different frequencies. The first target frequency band is determined by the low-frequency cutoff frequency and the high-frequency cutoff frequency in the first audio parameter and the second audio parameter. The first target frequency band in this embodiment is composed of the frequency band divided by the minimum low-frequency cutoff frequency and the maximum high-frequency cutoff frequency in the two audio parameters. Of course, the frequency band obtained by dividing the low-frequency cutoff frequency and the high-frequency cutoff frequency in the first audio parameter can also be taken as the first target frequency band.

[0077] After determining the first target frequency band, the first device adjusts the volume value of each frequency in the first target frequency band corresponding to the second audio parameter based on the first audio parameter and the second audio parameter, including:

[0078] S9: calculating and determining a volume difference between first volumes of the first device audio system and the second device audio system in a first target frequency band based on the first audio parameter and the second audio parameter;

[0079] S10: adjusting at least the volume value of the audio system of the second device at each frequency within a first target frequency band based on the volume difference, the first audio parameter, and the second audio parameter.

[0080] For example, based on the maximum output volume value of the first device audio system (equivalent to the first volume of the first device audio system) in the first target frequency band recorded in the first audio parameter and the second audio parameter, and the maximum output volume value of the second device audio system (equivalent to the first volume of the second device audio system), the volume difference between the first volumes of the two audio systems is calculated and determined. Figure 3 As shown (the sound pressure value in the figure is the volume value, the same below), the dotted line shows the frequency-volume curve of the second device audio system, and number 1 is the frequency-volume curve of the first device audio system. By comparison in the figure, it can be seen that the first volume of the second device audio system is 65db, and the first volume of the first device audio system is 60db, so the volume difference is -5db, which indicates that the maximum volume of the second device audio system needs to drop by 5db to match the maximum volume of the first device audio system. After the first device determines the volume difference, the first audio parameter, and the second audio parameter, it will adjust the volume value of the second device audio system at each frequency in the first target frequency band based on at least these three parameters.

[0081] Further, as described above, the first volume is the maximum volume. When the maximum volume of the audio system of the second device is greater than the maximum volume of the audio system of the first device, for example Figure 3 In the illustrated case, when the first device adjusts the volume value of the audio system of the second device at each frequency in the first target frequency band based on the volume difference, the first audio parameter, and the second audio parameter, it includes:

[0082] S11: Based on the volume difference, reducing the volume value of the audio system of the second device at each frequency of the first target frequency band to obtain a corresponding relationship between frequency and volume corresponding to the first target frequency band, wherein the maximum volume of the audio system of the second device after reduction is the same as the maximum volume of the first device.

[0083] Furthermore, when the first device adjusts the output volume of the audio system of the second device, the first device further includes:

[0084] S12: querying the volume values ​​of the first device audio system and the second device audio system at different frequencies in the first target frequency band based on the first audio parameter, the second audio parameter and the correspondence between frequency and volume, and determining a frequency to be adjusted, at which the maximum combined volume of the first device audio system and the second device audio system in the first target frequency band is lower than the maximum volume;

[0085] S13: adjusting the output volume of the audio system of the second device at the frequency to be adjusted so that the maximum synthesized volume at the frequency to be adjusted is equal to the maximum volume.

[0086] For example, when making adjustments, the volume values ​​of each frequency in the second device audio system at least within the first target frequency band are first adjusted based on the volume difference. In this embodiment, the volume values ​​of the entire frequency band of the first device audio system are actually adjusted. The adjustment is specifically to lower the volume values ​​at each frequency in the entire frequency band, and the lowering range is 5db, that is, the volume difference. The adjustment can be implemented by a post-processing equalizer. The frequency-volume correspondence (frequency-volume curve) of the second device audio system after adjustment is shown in FIG. Figure 3 As shown in No. 2, Figure 3 It can be seen that the maximum volume value of the adjusted curve is the same as the maximum volume of the audio system of the first device, which is 60db.

[0087] Next, in order to achieve that when both devices are in the first volume state, within the first target frequency band, the synthesized volume of the first device audio system and the second device audio system when outputting signals is 60db, that is, both are the maximum volumes of the first device audio system and the second device audio system after the volume is adjusted, in this embodiment, the first device determines the center frequency of the sound valley in the frequency-volume correspondence obtained above based on the second audio parameter, and then takes the center frequency of the sound valley in the first audio parameter and the center frequency of the sound valley corresponding to the second device as starting points, respectively, in the first target frequency band, inquires and calculates different frequencies and volumes along their respective frequency-volume curves, and determines the frequency to be adjusted. The frequency to be adjusted indicates that at this frequency, the synthesized volume of the adjusted output volume of the second device audio system and the output volume of the first device audio system is lower than the maximum volume, for example, lower than 60db. For example, at this frequency, the synthesized volume of the two audio systems only reaches 58db, and cannot reach 60db. Therefore, it is necessary to adjust the volume of the second device audio system at this frequency, or adjust the volumes of the first device audio system and the second device audio system at this frequency at the same time, so that the synthesized volume of the two is 60db, that is, the maximum volume. In this embodiment, the volume of the second device audio system is adjusted first. If the above effect can be achieved by adjusting the volume of one audio system, the volumes of both audio systems are no longer adjusted. When making specific adjustments, the solution adopted in this embodiment is to use a band-stop filter to adjust the output volume of the second device at the frequency to be adjusted. The result of the adjustment is that the combined volume of the two devices at this frequency is equal to the maximum volume. For example, Figure 3 The frequency points indicated by the band-stop filter 1 and the band-stop filter 2 shown in the figure have adjusted volume values ​​of 57db. This ensures that when the two devices output a volume of 57db at the corresponding frequency, the combined volume can reach 60db.

[0088] In another embodiment, before the first device responds to the output instruction of the first audio signal, the method further includes:

[0089] S14: When the frequencies in the first audio signal are concentrated in a frequency band outside the first target frequency band, adjusting the output volume of the audio system of the second device within the frequency band based on the first audio signal.

[0090] The adjusting the output volume of the audio system of the second device within the frequency band based on the first audio signal includes:

[0091] S15: determining a second target frequency band for volume adjustment based on volume values ​​at different frequencies in the first audio signal;

[0092] S16: Adjust the volume value of the second device audio system at each frequency within the second target frequency band so that, within the second target frequency band, the maximum combined volume of the first device audio system and the second device audio system is the maximum volume of the first device audio system, and the maximum volume of the second device audio system is the same as the maximum volume of the first device audio system.

[0093] The above embodiment refers to analyzing and identifying the first audio signal before outputting the first audio signal. If it is found that the frequencies in the first audio signal are mostly concentrated in a frequency band outside the first target frequency band, such as concentrated in a low frequency band outside the low frequency cutoff frequency of the first target frequency band, or concentrated in a high frequency band outside the high frequency cutoff frequency, the output volume of the second device audio system in the frequency band can be adjusted based on the first audio signal. Specifically, when making adjustments, the second target frequency band is determined based on the volume values ​​at different frequencies in the first audio signal, the transient maximum amplitude of the sound signal, and the end value of the adjacent first target frequency band (such as the low frequency cutoff frequency or the high frequency cutoff frequency). The second target frequency band refers to the frequency band where the composite volume of the two devices is required to be the maximum volume at each frequency in the frequency band. Then, the adjustment amount is determined based on the transient maximum amplitude, and the volume value of the second device audio system at each frequency in the second target frequency band is increased by using the determined adjustment amount, so that the maximum composite volume of the first device audio system and the second device audio system is the maximum volume. In this embodiment, when making the above adjustments, the scheme adopted is to use a bandpass dynamic range compressor to achieve it. For example, Figure 4 As shown, the second target frequency band is the frequency band covered by the bandpass dynamic range compressor in the figure. The bandpass dynamic range compressor compresses the curve segment indicated by the tail of the dotted arrow by 3db to form the curve segment indicated by the head of the dotted arrow. It can be seen from the figure that the low-frequency cutoff frequency of the synthetic volume curve is widened through the above adjustment, and the volume in the low-frequency range is further increased.

[0094] In another embodiment, the method further comprises:

[0095] S17: In response to the volume adjustment instruction, controlling the audio system of the first device to adjust the current first volume to a second volume;

[0096] S18: adjusting the output volume of the first audio signal and the second audio signal according to the relationship between the second volume and the first volume, and sending the adjusted second audio signal to the second device;

[0097] S19: Control the first device audio system and the second device audio system to respectively and simultaneously output the adjusted first audio signal and the second audio signal.

[0098] As described above, in this embodiment, the volume of the second device is fixed, or the control of its volume adjustment is handed over to the first device, so that the volume adjustment of the second device and the volume adjustment of the first device are uniformly implemented by the first device. When the user adjusts the volume through the second device, or adjusts the volume through the first device, that is, inputs a volume adjustment instruction to the second device or the first device, the first device will respond to the instruction and control the audio system of the first device to adjust the current first volume to the second volume, and at the same time, according to the size relationship and proportional relationship between the second volume and the first volume, the output volume of the first audio signal and the second audio signal is correspondingly adjusted, so that the size relationship between the volume values ​​in the two signals and the volume value before adjustment satisfies the size relationship between the first volume and the second volume. Afterwards, the first device sends the adjusted second audio signal to the second device, and controls the audio system of the first device and the audio system of the second device to output the adjusted first audio signal and the second audio signal respectively at the same time.

[0099] Furthermore, when the second device is a speaker system connected to the first device via USB / HDMI, the transmission of audio signals between the two devices is almost synchronous and has no delay. The second device can quickly obtain the audio signal to be output by copying the signal on the HDMI path. However, if the second device is a Bluetooth speaker connected via Bluetooth or a speaker system connected via Wi-Fi, there will be a transmission delay. In order to achieve synchronous playback of the two devices, the method further includes:

[0100] S20: When the second device is connected to the first device in a near field communication form, determining a playback delay duration between an audio system of the first device and an audio system of the second device;

[0101] S21: Determine a timing for sending a second audio signal to a second device based on the adjustment of the play delay duration, so that the audio system of the first device and the audio system of the second device can output audio synchronously.

[0102] For example, Figure 5 and Figure 6 As shown in the figure, the flow paths of the signal in the wireless field and the Bluetooth field are respectively shown (since the path is a conventional path, it will not be repeated). When determining the delay time, the first device can send ultrasound at different ultrasonic frequencies f1 and f2 to the audio system of the first device and the audio system of the second device at the same time. The ultrasound f1 and f2 are played by the two audio systems and then received by the microphone and transmitted to the ultrasonic Service. The paths are the same, which are:

[0103] t4'-t3'=t4-t3→t4'-t4=t3'-t3.

[0104] And t3-t2 and t3'-t2' are the time for ultrasound to propagate in the air. The error is calculated based on a distance of 2 meters, which is 2 / 344=0.006s (within 6ms). Based on this, the delay time can be deduced as:

[0105] (t2'-t1)-(t2-t1)=t2'-t2=t3'-t3=t4'-t4.

[0106] After the delay time is calculated and determined, the delay on the transmission path can be increased through, but not limited to, the APO algorithm, thereby achieving synchronous playback of the two devices.

[0107] like Figure 7 As shown, another embodiment of the present application also provides an electronic device, that is, a first electronic device, the electronic device comprising:

[0108] A connection port for connecting a second device;

[0109] A first device audio system, used to output audio signals;

[0110] A processor is used to obtain a first audio parameter of the audio system of the first device and a second audio parameter of the audio system of the second device in the second device, adjust the volume value of each frequency in the second audio parameter corresponding to the first target frequency band according to the first audio parameter and the second audio parameter to obtain a third audio parameter, and in response to an output instruction of the first audio signal, adjust the volume value in the first audio signal based on the third audio parameter to form a second audio signal, control the sending of the second audio signal to the second device, and control the audio system of the first device to output the first audio signal, while the audio system of the second device synchronously outputs the second audio signal.

[0111] In some embodiments, before responding to the output instruction of the first audio signal, the method further includes:

[0112] When the frequencies in the first audio signal are concentrated in a frequency band outside the first target frequency band, the output volume of the audio system of the second device within the frequency band is adjusted based on the first audio signal.

[0113] In some embodiments, obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in the second device includes:

[0114] Controlling the volume of the first device audio system and the second device audio system to a first volume;

[0115] transmitting a test audio signal to the first device and the second device in a time-sharing manner;

[0116] Obtaining first playback data when the audio system of the first device outputs a test audio signal, and determining the first audio parameter based on the first playback data analysis;

[0117] Second playback data when the audio system of the second device outputs a test audio signal is obtained, and the second audio parameter is determined based on the analysis of the second playback data.

[0118] In some embodiments, the first audio parameter includes a low frequency cutoff frequency, a high frequency cutoff frequency, and volume values ​​at different frequencies;

[0119] The second audio parameters include a low frequency cutoff frequency, a high frequency cutoff frequency, and volume values ​​at different frequencies;

[0120] The first target frequency band is determined by a low frequency cutoff frequency and a high frequency cutoff frequency in the first audio parameter and the second audio parameter.

[0121] In some embodiments, adjusting the volume value of each frequency in the first target frequency band corresponding to the second audio parameter based on the first audio parameter and the second audio parameter includes:

[0122] Calculate and determine a volume difference between first volumes of the first device audio system and the second device audio system in a first target frequency band based on the first audio parameter and the second audio parameter;

[0123] The volume value of the audio system of the second device at each frequency in the first target frequency band is adjusted based on the volume difference, the first audio parameter, and the second audio parameter.

[0124] In some embodiments, the first volume is a maximum volume, and if the maximum volume of the audio system of the second device is greater than the maximum volume of the audio system of the first device, adjusting the volume value of the audio system of the second device at each frequency within the first target frequency band based on the volume difference, the first audio parameter, and the second audio parameter includes:

[0125] Based on the volume difference, at least the volume value of the audio system of the second device at each frequency in the first target frequency band is reduced to obtain a corresponding relationship between frequency and volume corresponding to the first target frequency band, wherein the maximum volume of the audio system of the second device after reduction is the same as the maximum volume of the first device.

[0126] In some embodiments, the processor is further configured to:

[0127] Based on the first audio parameter, the second audio parameter, and the correspondence between frequency and volume, query the volume values ​​of the first device audio system and the second device audio system at different frequencies in the first target frequency band, and determine the frequency to be adjusted, at which the maximum combined volume of the first device audio system and the second device audio system is lower than the maximum volume;

[0128] The output volume of the audio system of the second device at the frequency to be adjusted is adjusted so that the maximum synthesized volume at the frequency to be adjusted is equal to the maximum volume.

[0129] In some embodiments, the processor is further configured to:

[0130] In response to the volume adjustment instruction, controlling the audio system of the first device to adjust the current first volume to a second volume;

[0131] adjusting the output volume of the first audio signal and the second audio signal according to the relationship between the second volume and the first volume, and sending the adjusted second audio signal to the second device;

[0132] The first device audio system and the second device audio system are controlled to respectively and simultaneously output the adjusted first audio signal and the second audio signal.

[0133] In some embodiments, the processor is further configured to:

[0134] When the second device is connected to the first device in a near field communication form, determining a playback delay duration between an audio system of the first device and an audio system of the second device;

[0135] The timing of sending the second audio signal to the second device is determined based on the adjustment of the play delay duration, so that the audio system of the first device and the audio system of the second device can output audio synchronously.

[0136] Furthermore, an embodiment of the present application also provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the audio playback method described above is implemented. It should be understood that each solution in this embodiment has the corresponding technical effect in the above method embodiment, which will not be repeated here.

[0137] Furthermore, an embodiment of the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-readable instructions, which, when executed, enable at least one processor to perform an audio playback method such as that in the embodiment described above.

[0138] It should be noted that the computer storage medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate or transmit a program configured to be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, antenna, optical cable, RF, etc., or any suitable combination of the above.

[0139] In addition, it should be understood by those skilled in the art that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.

[0141] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0142] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of protection of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0143] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. An audio playback method, applied to a first device, the method comprising: Obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in a second device, the second device being connected to the first device; Based on the first audio parameter and the second audio parameter, the volume value of each frequency in the first target frequency band corresponding to the second audio parameter is adjusted to obtain a third audio parameter; In response to an output instruction of the first audio signal, adjusting the volume value of the first audio signal based on the third audio parameter to form a second audio signal; The second audio signal is sent to a second device, so that when the audio system of the first device outputs the first audio signal, the audio system of the second device synchronously outputs the second audio signal.

2. The audio playback method according to claim 1, before responding to the output instruction of the first audio signal, the method further comprises: When the frequencies in the first audio signal are concentrated in a frequency band outside the first target frequency band, the output volume of the audio system of the second device within the frequency band is adjusted based on the first audio signal.

3. The audio playback method according to claim 1, obtaining a first audio parameter of a first device audio system in the first device and a second audio parameter of a second device audio system in the second device, comprising: Controlling the volume of the first device audio system and the second device audio system to a first volume; transmitting a test audio signal to the first device and the second device in a time-sharing manner; Obtaining first playback data when the audio system of the first device outputs a test audio signal, and determining the first audio parameter based on the first playback data analysis; Second playback data when the audio system of the second device outputs a test audio signal is obtained, and the second audio parameter is determined based on the analysis of the second playback data.

4. The audio playback method according to claim 1, wherein the first audio parameter comprises a low frequency cutoff frequency, a high frequency cutoff frequency, and volume values ​​at different frequencies; The second audio parameters include a low frequency cutoff frequency, a high frequency cutoff frequency, and volume values ​​at different frequencies; The first target frequency band is determined by a low frequency cutoff frequency and a high frequency cutoff frequency in the first audio parameter and the second audio parameter.

5. The audio playback method according to claim 4, wherein the adjusting the volume value of each frequency in the first target frequency band corresponding to the second audio parameter based on the first audio parameter and the second audio parameter comprises: Calculate and determine a volume difference between first volumes of the first device audio system and the second device audio system in a first target frequency band based on the first audio parameter and the second audio parameter; The volume value of the audio system of the second device at each frequency in the first target frequency band is adjusted based on the volume difference, the first audio parameter, and the second audio parameter.

6. The audio playback method according to claim 5, wherein the first volume is a maximum volume, and if the maximum volume of the audio system of the second device is greater than the maximum volume of the audio system of the first device, adjusting the volume value of the audio system of the second device at each frequency in the first target frequency band based on the volume difference, the first audio parameter, and the second audio parameter comprises: Based on the volume difference, at least the volume value of the audio system of the second device at each frequency in the first target frequency band is reduced to obtain a corresponding relationship between frequency and volume corresponding to the first target frequency band, wherein the maximum volume of the audio system of the second device after reduction is the same as the maximum volume of the first device.

7. The audio playback method according to claim 6, further comprising: Based on the first audio parameter, the second audio parameter, and the correspondence between frequency and volume, query the volume values ​​of the first device audio system and the second device audio system at different frequencies in the first target frequency band, and determine the frequency to be adjusted, at which the maximum combined volume of the first device audio system and the second device audio system is lower than the maximum volume; The output volume of the audio system of the second device at the frequency to be adjusted is adjusted so that the maximum synthesized volume at the frequency to be adjusted is equal to the maximum volume.

8. The audio playback method according to claim 1, further comprising: In response to the volume adjustment instruction, controlling the audio system of the first device to adjust the current first volume to a second volume; adjusting the output volume of the first audio signal and the second audio signal according to the relationship between the second volume and the first volume, and sending the adjusted second audio signal to the second device; The first device audio system and the second device audio system are controlled to respectively and simultaneously output the adjusted first audio signal and the second audio signal.

9. The audio playback method according to claim 1, further comprising: When the second device is connected to the first device in a near field communication form, determining a playback delay duration between an audio system of the first device and an audio system of the second device; The timing of sending the second audio signal to the second device is determined based on the adjustment of the play delay duration, so that the audio system of the first device and the audio system of the second device can output audio synchronously.

10. An electronic device, comprising: A connection port for connecting a second device; A first device audio system, used to output audio signals; A processor is used to obtain a first audio parameter of the audio system of the first device and a second audio parameter of the audio system of the second device in the second device, adjust the volume value of each frequency in the second audio parameter corresponding to the first target frequency band according to the first audio parameter and the second audio parameter to obtain a third audio parameter, and in response to an output instruction of the first audio signal, adjust the volume value in the first audio signal based on the third audio parameter to form a second audio signal, control the sending of the second audio signal to the second device, and control the audio system of the first device to output the first audio signal, while the audio system of the second device synchronously outputs the second audio signal.

Citation Information

Cited By

  • Electronic equipment and audio signal playing method

    CN120857031A

  • Electronic device and audio signal playing method

    CN120857031B