CN117880693A - Loudness adjusting method and device, storage medium and electronic equipment - Google Patents

Loudness adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117880693A
CN117880693A CN202410029828.3A CN202410029828A CN117880693A CN 117880693 A CN117880693 A CN 117880693A CN 202410029828 A CN202410029828 A CN 202410029828A CN 117880693 A CN117880693 A CN 117880693A
Authority
CN
China
Prior art keywords
distance
equipment
play
main body
time delay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410029828.3A
Other languages
Chinese (zh)
Inventor
马轩
陈文杰
高伟标
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Shiwei New Technology Co Ltd
Original Assignee
Huizhou Shiwei New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Shiwei New Technology Co Ltd filed Critical Huizhou Shiwei New Technology Co Ltd
Priority to CN202410029828.3A priority Critical patent/CN117880693A/en
Publication of CN117880693A publication Critical patent/CN117880693A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Stereophonic System (AREA)

Abstract

The application discloses a loudness adjustment method, a device, a storage medium and electronic equipment, and relates to the field of sound playing, wherein the method comprises the following steps: detecting a first distance and a first azimuth angle between first equipment and second equipment, wherein the first equipment and the second equipment are in a common-broadcast scene; detecting a second distance and a second azimuth between the first device and a target user; calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user; and calculating according to the third distance and the second distance to obtain a play gain adjustment value, wherein the play gain adjustment value is used for adjusting and controlling the play gain of the equipment in the common play scene. The method and the device can effectively improve the device loudness equalization effect under the double-device co-broadcasting scene, and improve the user experience.

Description

Loudness adjusting method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of sound playing, in particular to a loudness adjusting method, a loudness adjusting device, a storage medium and electronic equipment.
Background
Dual device usage scenarios are becoming more common, dual device usage scenarios Jing Cunzai a first device (e.g., television) and a second device (e.g., sound bar) cooperatively play a common broadcast scenario of the same audio (typically the audio provided in the first device).
In the co-broadcasting scene, although the first device and the second device cooperatively transmit can bring better hearing, in the co-broadcasting scene, the listener (user) may move in the sound field, so that the loudness of the sound played by the first device and the second device heard by the listener is unbalanced, and the hearing of the user is poor. While it is conventional to address this problem, it is currently common to have the listener sit in the sweet spot and manually adjust the loudness of both to be similar to equalize the loudness.
However, under the current scheme, the user may have a certain balance of loudness only near the best listening position, and many positions are not balanced enough to affect the user experience because the listener dynamically moves in the sound field.
Disclosure of Invention
The embodiment of the application provides a scheme, which can effectively improve the equipment loudness equalization effect under the double-equipment co-broadcasting scene and improve the user experience.
The embodiment of the application provides the following technical scheme:
According to one embodiment of the present application, a loudness adjustment method includes: detecting a first distance and a first azimuth angle between first equipment and second equipment, wherein the first equipment and the second equipment are in a common-broadcast scene; detecting a second distance and a second azimuth between the first device and a target user; calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user; and calculating according to the third distance and the second distance to obtain a play gain adjustment value, wherein the play gain adjustment value is used for adjusting and controlling the play gain of the equipment in the common play scene.
In some embodiments of the present application, the method further comprises: performing difference calculation according to the second distance and the third distance to obtain a distance difference value; and calculating according to the distance difference value to obtain a playing time delay, wherein the playing time delay is used for regulating and controlling the playing time of the equipment in the common playing scene.
In some embodiments of the present application, the play gain adjustment value is a gain adjustment value of a subject to be adjusted; after the calculation is performed according to the third distance and the second distance, the method further includes: summing the main body playing gain of the reference main body and the playing gain adjustment value to obtain a target playing gain of the main body to be adjusted; and under the co-broadcasting scene, controlling the reference main body to play audio based on the main body playing gain, and controlling the main body to be adjusted to play audio based on the target playing gain, wherein the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the play time delay is a time delay of a main body to be adjusted; after the calculation is performed according to the distance difference value, and the playing time delay is obtained, the method further comprises the following steps: and under the common broadcast scene, controlling a reference main body to play common broadcast audio and controlling the main body to be adjusted to play the common broadcast audio, wherein the main body to be adjusted delays the playing time delay compared with the audio playing time of the reference main body, and the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the calculating according to the third distance and the second distance to obtain a play gain adjustment value includes: proportional calculation is carried out on the third distance and the second distance to obtain a distance ratio; and calculating according to the distance ratio to obtain the play gain adjustment value.
In some embodiments of the present application, the calculating according to the distance ratio to obtain the play gain adjustment value includes: and calculating according to a formula delta g=20 log A to obtain a play gain adjustment value, wherein A refers to the distance ratio, and delta g refers to the play gain adjustment value.
In some embodiments of the present application, the calculating according to the distance difference value, to obtain a play delay, includes: calculating the ratio of the distance difference value to the sound velocity to obtain a time delay value; and obtaining the playing time delay according to the time delay value.
In some embodiments of the present application, the obtaining the play delay according to the delay value includes one of the following manners: taking the time delay value as the playing time delay; and multiplying the time delay value by a preset adjustment coefficient to obtain the playing time delay, wherein the preset adjustment coefficient is an adjustment coefficient corresponding to the equipment type of the first equipment and the second equipment.
In some embodiments of the present application, the calculating according to the first distance, the first azimuth angle, the second distance, and the second azimuth angle, to obtain a third distance between the second device and the target user includes: according to the formulaAnd calculating to obtain the third distance, wherein D is the third distance, h is the first distance, D is the second distance, alpha is the second azimuth angle, and beta is the first azimuth angle.
According to one embodiment of the present application, a loudness adjustment device, the device comprising: the first detection module is used for detecting a first distance and a first azimuth angle between first equipment and second equipment, and the first equipment and the second equipment are in a common-broadcast scene; the second detection module is used for detecting a second distance and a second azimuth angle between the first equipment and the target user; the first calculation module is used for calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user; the second calculation module is used for calculating according to the third distance and the second distance to obtain a play gain adjustment value, and the play gain adjustment value is used for carrying out equipment play gain regulation and control under the common broadcast scene.
In some embodiments of the present application, the apparatus further comprises a third computing module for: performing difference calculation according to the second distance and the third distance to obtain a distance difference value; and calculating according to the distance difference value to obtain a playing time delay, wherein the playing time delay is used for regulating and controlling the playing time of the equipment in the common playing scene.
In some embodiments of the present application, the play gain adjustment value is a gain adjustment value of a subject to be adjusted; after the calculation is performed according to the third distance and the second distance to obtain a play gain adjustment value, the device further includes a first regulation module, configured to: summing the main body playing gain of the reference main body and the playing gain adjustment value to obtain a target playing gain of the main body to be adjusted; and under the co-broadcasting scene, controlling the reference main body to play audio based on the main body playing gain, and controlling the main body to be adjusted to play audio based on the target playing gain, wherein the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the play time delay is a time delay of a main body to be adjusted; after the calculation is performed according to the distance difference value, and the play time delay is obtained, the device further comprises a second regulation and control module, which is used for: and under the common broadcast scene, controlling a reference main body to play common broadcast audio and controlling the main body to be adjusted to play the common broadcast audio, wherein the main body to be adjusted delays the playing time delay compared with the audio playing time of the reference main body, and the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the second computing module is configured to: proportional calculation is carried out on the third distance and the second distance to obtain a distance ratio; and calculating according to the distance ratio to obtain the play gain adjustment value.
In some embodiments of the present application, the second computing module is configured to: and calculating according to a formula delta g=20 log A to obtain a play gain adjustment value, wherein A refers to the distance ratio, and delta g refers to the play gain adjustment value.
In some embodiments of the present application, the third computing module is configured to: calculating the ratio of the distance difference value to the sound velocity to obtain a time delay value; and obtaining the playing time delay according to the time delay value.
In some embodiments of the present application, the third computing module is configured to implement one of the following manners: taking the time delay value as the playing time delay; and multiplying the time delay value by a preset adjustment coefficient to obtain the playing time delay, wherein the preset adjustment coefficient is an adjustment coefficient corresponding to the equipment type of the first equipment and the second equipment.
In some embodiments of the present application, the first computing module is configured to: according to the formula And calculating to obtain the third distance, wherein D is the third distance, h is the first distance, D is the second distance, alpha is the second azimuth angle, and beta is the first azimuth angle.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method described in the embodiments of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described in the embodiments of the present application.
In the embodiment of the application, a first distance and a first azimuth angle between a first device and a second device are detected, wherein the first device and the second device are in a common-broadcast scene; detecting a second distance and a second azimuth between the first device and a target user; calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user; and calculating according to the third distance and the second distance to obtain a play gain adjustment value, wherein the play gain adjustment value is used for adjusting and controlling the play gain of the equipment in the common play scene.
In this way, in the co-broadcasting scene of the first device and the second device, by detecting the first distance, the first azimuth angle, the second distance and the second azimuth angle, a third distance between the second device and the target user is obtained, a play gain adjustment value is obtained by calculating the third distance and the second distance, and the play gain adjustment value is used for adjusting and controlling the play gain of the device in the co-broadcasting scene, so that when a listener moves in the co-broadcasting sound field of the first device and the second device, the listener always can hear the sound with balanced loudness, which is played by the first device and the second device together, and the loudness balancing effect of the device in the co-broadcasting scene of the double devices can be effectively improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flow chart of a loudness adjustment method according to an embodiment of the present application.
Fig. 2 shows a schematic diagram of a loudness adjustment system architecture according to an embodiment of the present application.
Fig. 3 shows a schematic diagram of a loudness adjustment system architecture according to an embodiment of the present application.
Fig. 4 shows a block diagram of a loudness adjustment device according to one embodiment of the present application.
Fig. 5 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present disclosure is further described in detail below with reference to the drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are some of the embodiments for implementing the present disclosure, and not all of the embodiments for implementing the present disclosure, and the technical solutions described in the embodiments of the present disclosure may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present disclosure, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a method or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such method or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other related elements (e.g., a step in a method or a unit in an apparatus, e.g., a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in a method or apparatus comprising the element.
For example, the loudness adjustment method provided by the embodiment of the present disclosure includes a series of steps, but the loudness adjustment method provided by the embodiment of the present disclosure is not limited to the described steps, and similarly, the loudness adjustment device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the explicitly described units, and may also include units that are required to be set when acquiring related information, or performing processing based on the information.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure.
Fig. 1 schematically shows a flow chart of a loudness adjustment method according to an embodiment of the present application. The main implementation body of the loudness adjustment method can be any device or server with processing capability, such as a television, a computer, a mobile phone, a smart watch, a household appliance, etc., and a server such as a cloud server or a physical server, etc.
In a specific embodiment of the present application, the implementation subject of the loudness adjustment method is specifically a device, which may be one of the first device or the second device, and the device may also be another device (such as a mobile phone held by a user, etc.) other than the first device or the second device.
As shown in fig. 1, the loudness adjustment method may include steps S110 to S140.
Step S110, detecting a first distance and a first azimuth angle between a first device and a second device, wherein the first device and the second device are in a common-broadcast scene; step S120, detecting a second distance and a second azimuth angle between the first device and the target user; step S130, calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle, to obtain a third distance between the second device and the target user; step S140, calculating according to the third distance and the second distance to obtain a play gain adjustment value, where the play gain adjustment value is used for performing play gain adjustment and control on the device in the common play scene.
Under the condition that the first equipment and the second equipment perform double-equipment co-broadcasting scenes (the first equipment and the second equipment cooperatively play the same audio in the co-broadcasting scenes), relevant detection can be performed for the first equipment and the second equipment, and a first distance, a second distance, a first azimuth angle and a second azimuth angle can be obtained through detection.
The first azimuth may specifically be an angle between a connection between the first device and the second device and a connection between the microphone array elements in the first device, and the second azimuth may specifically be an angle between the target user and a connection between the first device and the microphone array elements in the first device.
Referring to fig. 2, a first azimuth angle between the first device 210 and the second device 220 may be as shown by β in fig. 2, a second azimuth angle between the first device 210 and the target user 230 may be as shown by α in fig. 2, and a connection between microphone array elements in the first device 210 may be as shown by a line 240 in fig. 2. The first distance may be as shown by h in fig. 2 and the second distance may be as shown by d in fig. 2.
Further, a third distance between the second device and the target user may be obtained by calculating according to the first distance, the first azimuth, the second distance and the second azimuth, and the third distance may be shown as D between the second device 220 and the target user 230 in fig. 2.
And calculating according to the third distance and the second distance to obtain a play gain adjustment value, wherein the play gain adjustment value is used for adjusting and controlling the play gain of the equipment in the common-play scene, and the play gain of a certain equipment can be adjusted to be larger in the common-play scene based on the play gain adjustment value, so that a user can hear the balanced loudness of the two equipment.
In this way, based on steps S110 to S140, in the co-cast scene of the first device and the second device, by detecting the first distance, the first azimuth angle, the second distance and the second azimuth angle, calculating to obtain the third distance between the second device and the target user, calculating to obtain the play gain adjustment value according to the third distance and the second distance, and performing device play gain adjustment and control in the co-cast scene according to the play gain adjustment value, the listener can always hear the loudness balanced sound played by the first device and the second device together well when moving in the co-cast sound field of the first device and the second device, so that the device loudness balanced effect in the co-cast scene of the double devices can be effectively improved, and the user experience is improved.
Further alternative embodiments of the steps performed when making loudness adjustments under the embodiment of fig. 1 are described below.
In an embodiment, the detecting the first distance and the first azimuth angle between the first device and the second device, where the first device and the second device are in a common broadcast scene may specifically be: acquiring sound signals received by a plurality of microphones in a first device and played by a second device; and calculating according to the sound signals received by the microphones to obtain the first distance and the first azimuth angle.
Specifically, the speaker in the second device (may be the preferred speaker in the selected second device) is controlled to play the sound signal, and meanwhile, the sound signal is received through the microphone array in the first device, so as to obtain the sound signals received by the microphones in the microphone array.
Taking a linear microphone array as an example, as shown in FIG. 3, the distance between the microphone 310 and the microphone 320 in the plurality of microphones is d 0 The microphone 310 receives the sound signal y at time t 1 (t), the microphone 320 receives the sound signal y at the time t 2 (t) y can be calculated 1 (t) and y 2 Cross-correlation function of (t):
r y1y2 (p)=E[y 1 (t)y 2 (t+p)],
then the time difference τ between the two microphones receiving the sound signal is r y1y2 When (p) takes the maximum value, the value of p is:
τ=argmax p r y1y2 (p),
the included angle between the connection line of the first device and the second device and the connection line between the microphone array elements in the first device is as follows:
Where c is the speed of sound.
Further, a hyperbola with a distance τc to the difference between the wheat 310 and the wheat 320 may be drawn. And repeating the steps, drawing a plurality of groups of hyperbolas according to sound signals received by other groups of microphones, wherein the intersection point of the hyperbolas is the position of the second equipment, so that the first distance h between the first equipment and the second equipment can be calculated according to the position of the first equipment and the position of the second equipment.
In one embodiment, the detecting the second distance and the second azimuth between the first device and the target user may specifically be: controlling and acquiring an acoustic signal received by a microphone array in first equipment when a loudspeaker in the first equipment plays an ultrasonic signal; and calculating according to the acoustic signals to obtain a second distance and a second azimuth angle between the first equipment and the target user.
Specifically, a speaker in the first device (which may be a preferred one of a plurality of speakers in the first device) is controlled to play the ultrasonic signal, while the acoustic signal is received by the microphone array(s) in the first device.
Band-pass filtering (for example, band-pass filtering of 20 kHz-24 kHz) is carried out on the received acoustic signals to obtain filtered signals; and preprocessing the filtered signal, and removing direct sound and reflected sound of a stationary object to obtain a signal to be analyzed.
And multiplying the played ultrasonic signal and the signal to be analyzed, and then performing shaping filtering to obtain a sine wave signal containing distance information. After the signal to noise ratio of the signal is improved by carrying out time domain beam forming on the sine wave signal, a distance-angle of arrival profile is estimated by utilizing a 2D-MUSIC algorithm. And then searching a distance-angle-of-arrival profile, and searching a position with the maximum energy in the distance-angle-of-arrival profile to obtain a second distance d and a second azimuth angle alpha of the target user relative to the first device at each estimated moment.
In an embodiment, the calculating according to the first distance, the first azimuth angle, the second distance, and the second azimuth angle to obtain a third distance between the second device and the target user may specifically include: according to the formulaAnd calculating to obtain the third distance, wherein D is the third distance, h is the first distance, D is the second distance, alpha is the second azimuth angle, and beta is the first azimuth angle.
Applicants have found that according to the formulaThe second equipment and the target user can be accurately calculatedAnd the third distance between the two can be further accurately calculated based on the third distance to obtain an effective play gain adjustment value, so that the loudness balance adjustment effect is effectively improved.
It will be appreciated that in other embodiments, the third distance between the second device and the target user may be calculated based on other preset formulas according to the first distance, the first azimuth angle, the second distance, and the second azimuth angle.
In one embodiment, the calculating according to the third distance and the second distance to obtain the play gain adjustment value may include: proportional calculation is carried out on the third distance and the second distance to obtain a distance ratio; and calculating according to the distance ratio to obtain the play gain adjustment value.
Further, the calculating according to the distance ratio to obtain the play gain adjustment value may specifically include: and calculating according to a formula delta g=20 log A to obtain a play gain adjustment value, wherein A refers to the distance ratio, and delta g refers to the play gain adjustment value.
If a=d/D, D is the third distance and D is the second distance, the play gain adjustment value Δg is the gain adjustment value of the second device, that is, the second device is the subject to be adjusted. If a=d/D, the play gain adjustment value Δg is the gain adjustment value of the first device, that is, the first device is the subject to be adjusted.
The applicant finds that the loudness equalization adjusting effect can be very effectively improved by calculating according to the formula Δg=20log a to obtain the play gain adjusting value and adjusting the play gain based on the play gain adjusting value.
In one embodiment, the play gain adjustment value is a gain adjustment value of a main body to be adjusted; after the calculation is performed according to the third distance and the second distance, the method further includes: summing the main body playing gain of the reference main body and the playing gain adjustment value to obtain a target playing gain of the main body to be adjusted; and under the co-broadcasting scene, controlling the reference main body to play audio based on the main body playing gain, and controlling the main body to be adjusted to play audio based on the target playing gain, wherein the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
One of the first device and the second device is selected as a reference body, and the other is a body to be adjusted. And calculating according to the third distance and the second distance to obtain a play gain adjustment value corresponding to the main body to be adjusted.
According to formula g 2 =g 1 +Δg, the body play gain g of the reference body can be calculated 1 (namely, the playing gain of the reference main body) and the playing gain adjustment value delta g are summed to obtain the target playing gain g of the main body to be adjusted 2
Under the co-broadcasting scene, the reference main body can be controlled to play the audio based on the main body playing gain, and the main body to be adjusted is controlled to play the audio based on the target playing gain, so that a user can hear the co-broadcasting effect with extremely balanced loudness.
In one embodiment, the method further comprises: performing difference calculation according to the second distance and the third distance to obtain a distance difference value; and calculating according to the distance difference value to obtain a playing time delay, wherein the playing time delay is used for regulating and controlling the playing time of the equipment in the common playing scene.
And calculating a difference value according to the second distance and the third distance, so as to obtain a distance difference value, and calculating according to the distance difference value, so as to obtain a playing time delay. In one example, subtracting the third distance from the second distance may result in a distance difference Δd.
According to the distance difference value, the playing time delay is calculated, the playing time delay is used for regulating and controlling the playing time of equipment in the common playing scene, according to the playing time delay, the playing time of the equipment in the common playing scene is regulated and controlled, when a listener (namely a target user) moves in a sound field formed by combining the first equipment and the second equipment, the listener (namely the target user) can always hear the sound synchronously played by the first equipment and the second equipment, the loudness balancing effect is further assisted and improved, and the loudness regulating effect is further improved.
Further, the calculating according to the distance difference value to obtain a play time delay may specifically include: calculating the ratio of the distance difference value to the sound velocity to obtain a time delay value; and obtaining the playing time delay according to the time delay value.
The ratio of the distance difference Δd to the sound velocity C can be calculated according to the formula to obtain a time delay value. According to the time delay value, the playing time delay can be obtained, and the playing time of the equipment is regulated and controlled based on the playing time delay, so that when a listener (namely a target user) moves in a sound field combined by the first equipment and the second equipment, the sound synchronously played by the first equipment and the second equipment can be always heard at the same time.
Further, the obtaining the playing time delay according to the time delay value includes one of the following modes: firstly, taking the time delay value as the playing time delay; and secondly, multiplying the time delay value by a preset adjustment coefficient to obtain the playing time delay, wherein the preset adjustment coefficient is an adjustment coefficient corresponding to the equipment type of the first equipment and the second equipment.
In the first mode, the time delay value is used as the playing time delay, so that the playing time regulation effect of the equipment can be effectively ensured; in the second mode, according to the preset adjustment coefficient corresponding to the equipment type (specifically, the equipment type) of the first equipment and the second equipment, the time delay value is multiplied by the preset adjustment coefficient to obtain the playing time delay, so that the playing time regulation effect of the equipment can be further improved.
Further, the playing time delay is the time delay of the main body to be adjusted; after the calculating according to the distance difference value, the method may further include: and under the common broadcast scene, controlling a reference main body to play common broadcast audio and controlling the main body to be adjusted to play the common broadcast audio, wherein the main body to be adjusted delays the playing time delay compared with the audio playing time of the reference main body, and the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
Taking the main body to be regulated as a second device as an example, subtracting the third distance D from the second distance D to obtain a distance difference delta D, and calculating the obtained play time delay, namely the play time delay corresponding to the second device; in contrast, taking the main body to be adjusted as the first device as an example, subtracting the second distance D from the third distance D can obtain a distance difference Δd to calculate the obtained play time delay, that is, the play time delay corresponding to the first device.
In the common broadcast scene, the reference main body can be controlled to play common broadcast audio, and the method is according to the formula s 2 (t)=s 1 And (t+delta t) controlling the main body to be regulated to play the co-broadcast audio, so that the main body to be regulated is delayed in playing time by delta t compared with the audio playing time of the reference main body, wherein the reference main body and the main body to be regulated are respectively one of the first equipment and the second equipment, and s 1 (t) Co-cast Audio played for reference subject, s 2 And (t) the co-broadcast audio played by the main body to be adjusted.
In order to facilitate better implementation of the loudness adjustment method provided by the embodiments of the present application, the embodiments of the present application further provide a loudness adjustment device based on the loudness adjustment method. Where the meaning of the terms is the same as in the loudness adjustment method described above, specific implementation details may be referred to in the description of the method embodiments. Fig. 4 shows a block diagram of a loudness adjustment device according to one embodiment of the present application.
As shown in fig. 4, the loudness adjustment device 400 may include: the first detection module 410 may be configured to detect a first distance and a first azimuth between a first device and a second device, where the first device and the second device are in a common broadcast scene; the second detection module 420 may be configured to detect a second distance and a second azimuth between the first device and a target user; the first calculating module 430 may be configured to calculate, according to the first distance, the first azimuth angle, the second distance, and the second azimuth angle, a third distance between the second device and the target user; the second calculation module 440 may be configured to calculate, according to the third distance and the second distance, a play gain adjustment value, where the play gain adjustment value is used to perform device play gain adjustment in the common broadcast scenario.
In some embodiments of the present application, the apparatus further comprises a third computing module for: performing difference calculation according to the second distance and the third distance to obtain a distance difference value; and calculating according to the distance difference value to obtain a playing time delay, wherein the playing time delay is used for regulating and controlling the playing time of the equipment in the common playing scene.
In some embodiments of the present application, the play gain adjustment value is a gain adjustment value of a subject to be adjusted; after the calculation is performed according to the third distance and the second distance to obtain a play gain adjustment value, the device further includes a first regulation module, configured to: summing the main body playing gain of the reference main body and the playing gain adjustment value to obtain a target playing gain of the main body to be adjusted; and under the co-broadcasting scene, controlling the reference main body to play audio based on the main body playing gain, and controlling the main body to be adjusted to play audio based on the target playing gain, wherein the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the play time delay is a time delay of a main body to be adjusted; after the calculation is performed according to the distance difference value, and the play time delay is obtained, the device further comprises a second regulation and control module, which is used for: and under the common broadcast scene, controlling a reference main body to play common broadcast audio and controlling the main body to be adjusted to play the common broadcast audio, wherein the main body to be adjusted delays the playing time delay compared with the audio playing time of the reference main body, and the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the second computing module is configured to: proportional calculation is carried out on the third distance and the second distance to obtain a distance ratio; and calculating according to the distance ratio to obtain the play gain adjustment value.
In some embodiments of the present application, the second computing module is configured to: and calculating according to a formula delta g=20 log A to obtain a play gain adjustment value, wherein A refers to the distance ratio, and delta g refers to the play gain adjustment value.
In some embodiments of the present application, the third computing module is configured to: calculating the ratio of the distance difference value to the sound velocity to obtain a time delay value; and obtaining the playing time delay according to the time delay value.
In some embodiments of the present application, the third computing module is configured to implement one of the following manners: taking the time delay value as the playing time delay; and multiplying the time delay value by a preset adjustment coefficient to obtain the playing time delay, wherein the preset adjustment coefficient is an adjustment coefficient corresponding to the equipment type of the first equipment and the second equipment.
In some embodiments of the present application, the first computing module is configured to: according to the formula And calculating to obtain the third distance, wherein D is the third distance, h is the first distance, D is the second distance, alpha is the second azimuth angle, and beta is the first azimuth angle.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the application further provides an electronic device, as shown in fig. 5, and fig. 5 shows a block diagram of the electronic device according to an embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 501 is a control center of the electronic device, and connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user pages, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The electronic device further comprises a power supply 503 for powering the various components, preferably the power supply 503 is logically connected to the processor 501 via a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 504, which input unit 504 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 501 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 executes the computer programs stored in the memory 502, so as to implement the functions in the foregoing embodiments of the present application, where the processor 501 may perform the following steps:
Detecting a first distance and a first azimuth angle between first equipment and second equipment, wherein the first equipment and the second equipment are in a common-broadcast scene; detecting a second distance and a second azimuth between the first device and a target user; calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user; and calculating according to the third distance and the second distance to obtain a play gain adjustment value, wherein the play gain adjustment value is used for adjusting and controlling the play gain of the equipment in the common play scene.
In some embodiments of the present application, further comprising: performing difference calculation according to the second distance and the third distance to obtain a distance difference value; and calculating according to the distance difference value to obtain a playing time delay, wherein the playing time delay is used for regulating and controlling the playing time of the equipment in the common playing scene.
In some embodiments of the present application, the play gain adjustment value is a gain adjustment value of a subject to be adjusted; after the calculation is performed according to the third distance and the second distance, the method further includes: summing the main body playing gain of the reference main body and the playing gain adjustment value to obtain a target playing gain of the main body to be adjusted; and under the co-broadcasting scene, controlling the reference main body to play audio based on the main body playing gain, and controlling the main body to be adjusted to play audio based on the target playing gain, wherein the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the play time delay is a time delay of a main body to be adjusted; after the calculation is performed according to the distance difference value, the method further comprises the following steps: and under the common broadcast scene, controlling a reference main body to play common broadcast audio and controlling the main body to be adjusted to play the common broadcast audio, wherein the main body to be adjusted delays the playing time delay compared with the audio playing time of the reference main body, and the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
In some embodiments of the present application, the calculating according to the third distance and the second distance to obtain a play gain adjustment value includes: proportional calculation is carried out on the third distance and the second distance to obtain a distance ratio; and calculating according to the distance ratio to obtain the play gain adjustment value.
In some embodiments of the present application, the calculating according to the distance ratio to obtain the play gain adjustment value includes: and calculating according to a formula delta g=20 log A to obtain a play gain adjustment value, wherein A refers to the distance ratio, and delta g refers to the play gain adjustment value.
In some embodiments of the present application, the calculating according to the distance difference value, to obtain a play delay, includes: calculating the ratio of the distance difference value to the sound velocity to obtain a time delay value; and obtaining the playing time delay according to the time delay value.
In some embodiments of the present application, the obtaining the play delay according to the delay value includes one of the following manners: taking the time delay value as the playing time delay; and multiplying the time delay value by a preset adjustment coefficient to obtain the playing time delay, wherein the preset adjustment coefficient is an adjustment coefficient corresponding to the equipment type of the first equipment and the second equipment.
In some embodiments of the present application, the calculating according to the first distance, the first azimuth angle, the second distance, and the second azimuth angle, to obtain a third distance between the second device and the target user includes: according to the formulaAnd calculating to obtain the third distance, wherein D is the third distance, h is the first distance, D is the second distance, alpha is the second azimuth angle, and beta is the first azimuth angle.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present embodiments also provide a storage medium having stored therein a computer program that can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may be a computer-readable storage medium, the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the storage medium may perform any of the steps in the method provided in the embodiment of the present application, the beneficial effects that can be achieved by the method provided in the embodiment of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (12)

1. A method of loudness adjustment, comprising:
detecting a first distance and a first azimuth angle between first equipment and second equipment, wherein the first equipment and the second equipment are in a common-broadcast scene;
detecting a second distance and a second azimuth between the first device and a target user;
calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user;
and calculating according to the third distance and the second distance to obtain a play gain adjustment value, wherein the play gain adjustment value is used for adjusting and controlling the play gain of the equipment in the common play scene.
2. The method according to claim 1, wherein the method further comprises:
performing difference calculation according to the second distance and the third distance to obtain a distance difference value;
and calculating according to the distance difference value to obtain a playing time delay, wherein the playing time delay is used for regulating and controlling the playing time of the equipment in the common playing scene.
3. The method of claim 1, wherein the play gain adjustment value is a gain adjustment value of a subject to be adjusted; after the calculation is performed according to the third distance and the second distance, the method further includes:
summing the main body playing gain of the reference main body and the playing gain adjustment value to obtain a target playing gain of the main body to be adjusted;
and under the co-broadcasting scene, controlling the reference main body to play audio based on the main body playing gain, and controlling the main body to be adjusted to play audio based on the target playing gain, wherein the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
4. The method of claim 2, wherein the play-out delay is a delay of a subject to be adjusted; after the calculation is performed according to the distance difference value, and the playing time delay is obtained, the method further comprises the following steps:
in the common broadcast scene, controlling the reference body to play common broadcast audio, and,
and controlling the main body to be adjusted to play the co-broadcast audio, wherein the main body to be adjusted delays the playing time delay compared with the audio playing time of the reference main body, and the reference main body and the main body to be adjusted are respectively one of the first equipment and the second equipment.
5. The method of claim 1, wherein the calculating according to the third distance and the second distance to obtain the play gain adjustment value includes:
proportional calculation is carried out on the third distance and the second distance to obtain a distance ratio;
and calculating according to the distance ratio to obtain the play gain adjustment value.
6. The method of claim 5, wherein said calculating according to said distance ratio to obtain said play gain adjustment value comprises:
and calculating according to a formula delta g=20 log A to obtain a play gain adjustment value, wherein A refers to the distance ratio, and delta g refers to the play gain adjustment value.
7. The method according to claim 2, wherein the calculating according to the distance difference value, to obtain a play delay, includes:
calculating the ratio of the distance difference value to the sound velocity to obtain a time delay value;
and obtaining the playing time delay according to the time delay value.
8. The method of claim 7, wherein obtaining the play-out delay according to the delay value comprises one of:
taking the time delay value as the playing time delay;
And multiplying the time delay value by a preset adjustment coefficient to obtain the playing time delay, wherein the preset adjustment coefficient is an adjustment coefficient corresponding to the equipment type of the first equipment and the second equipment.
9. The method according to any one of claims 1 to 8, wherein the calculating according to the first distance, the first azimuth angle, the second distance, and the second azimuth angle, to obtain a third distance between the second device and the target user, includes:
according to the formulaAnd calculating to obtain the third distance, wherein D is the third distance, h is the first distance, D is the second distance, alpha is the second azimuth angle, and beta is the first azimuth angle.
10. A loudness adjustment device, comprising:
the first detection module is used for detecting a first distance and a first azimuth angle between first equipment and second equipment, and the first equipment and the second equipment are in a common-broadcast scene;
the second detection module is used for detecting a second distance and a second azimuth angle between the first equipment and the target user;
the first calculation module is used for calculating according to the first distance, the first azimuth angle, the second distance and the second azimuth angle to obtain a third distance between the second equipment and the target user;
The second calculation module is used for calculating according to the third distance and the second distance to obtain a play gain adjustment value, and the play gain adjustment value is used for carrying out equipment play gain regulation and control under the common broadcast scene.
11. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 9.
12. An electronic device, comprising: a memory storing a computer program; a processor reading the computer program stored in the memory to perform the method of any one of claims 1 to 9.
CN202410029828.3A 2024-01-08 2024-01-08 Loudness adjusting method and device, storage medium and electronic equipment Pending CN117880693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410029828.3A CN117880693A (en) 2024-01-08 2024-01-08 Loudness adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410029828.3A CN117880693A (en) 2024-01-08 2024-01-08 Loudness adjusting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117880693A true CN117880693A (en) 2024-04-12

Family

ID=90578743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410029828.3A Pending CN117880693A (en) 2024-01-08 2024-01-08 Loudness adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117880693A (en)

Similar Documents

Publication Publication Date Title
US8233352B2 (en) Audio source localization system and method
US11635937B2 (en) Method, apparatus and computer-readable media utilizing positional information to derive AGC output parameters
EP2320675B1 (en) Audio processing device
US8229129B2 (en) Method, medium, and apparatus for extracting target sound from mixed sound
JP6652978B2 (en) Sports headphones with situational awareness
CN107464565B (en) Far-field voice awakening method and device
CN110035372B (en) Output control method and device of sound amplification system, sound amplification system and computer equipment
US10461712B1 (en) Automatic volume leveling
US9538288B2 (en) Sound field correction apparatus, control method thereof, and computer-readable storage medium
CN108347673A (en) A kind of control method of intelligent sound box, device, storage medium and intelligent sound box
WO2006057131A1 (en) Sound reproducing device and sound reproduction system
CN103746668A (en) Sound volume control method and system
US20180324540A1 (en) Content-Adaptive Surround Sound Virtualization
CN108449691B (en) Pickup device and sound source distance determining method
CN117880693A (en) Loudness adjusting method and device, storage medium and electronic equipment
Peled et al. Objective performance analysis of spherical microphone arrays for speech enhancement in rooms
CN113223552B (en) Speech enhancement method, device, apparatus, storage medium, and program
CN111163411B (en) Method for reducing influence of interference sound and sound playing device
CN112558004A (en) Method and device for determining wave arrival direction of beam information and storage medium
US10897665B2 (en) Method of decreasing the effect of an interference sound and sound playback device
CN113611271B (en) Digital volume augmentation method and device suitable for mobile terminal and storage medium
CN108377445A (en) Volume adjusting method, device, storage medium and the intelligent sound box of intelligent sound box
Wang et al. A robust generalized sidelobe canceller controlled by a priori sir estimate
WO2023065317A1 (en) Conference terminal and echo cancellation method
WO2021019844A1 (en) Sound pick-up device, storage medium, and sound pick-up method

Legal Events

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