CN115426589A - Audio signal adjusting method and electronic equipment - Google Patents

Audio signal adjusting method and electronic equipment Download PDF

Info

Publication number
CN115426589A
CN115426589A CN202211365689.9A CN202211365689A CN115426589A CN 115426589 A CN115426589 A CN 115426589A CN 202211365689 A CN202211365689 A CN 202211365689A CN 115426589 A CN115426589 A CN 115426589A
Authority
CN
China
Prior art keywords
audio signal
electronic device
attenuation compensation
distance
frequency band
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
CN202211365689.9A
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211365689.9A priority Critical patent/CN115426589A/en
Publication of CN115426589A publication Critical patent/CN115426589A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses audio signal's adjusting method and electronic equipment relates to stereo set technical field, can compensate the in-process that the audio signal that first electronic equipment sent conveys the target user's ear to a certain extent, and the decay of audio signal in the propagation process guarantees as far as possible that the audio signal size equals with the initial audio signal that sends, and the sound feel that the user hears is based on unanimous with the feel of the initial sound that the audio signal that first electronic equipment just sent corresponds, promotes user's audio frequency and experiences. The method comprises the following steps: measuring the distance between the first electronic equipment and the second electronic equipment in the process of playing the audio by the first electronic equipment; the first electronic device obtains an attenuation compensation value corresponding to the audio signal and a frequency band to be compensated of the audio signal based on the distance between the first electronic device and the second electronic device, and performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be emitted by the first electronic device based on the obtained attenuation compensation value.

Description

Audio signal adjusting method and electronic equipment
Technical Field
The present application relates to the field of sound technology, and in particular, to an audio signal adjusting method and an electronic device.
Background
At present, in the process of audio signals emitted by electronic equipment propagating in media (such as air and solid), the phenomenon of audio signal attenuation occurs. If the electronic device is away from the user by a certain distance, when the audio signal sent by the electronic device is transmitted to the ear of the target user, the texture of the sound heard by the user is weaker than the texture of the initial sound corresponding to the audio signal just sent by the electronic device due to the attenuation of the audio signal in the transmission process, and the user experience is poorer.
Disclosure of Invention
The embodiment of the application provides an audio signal adjusting method and electronic equipment, and is used for solving the problems that when the electronic equipment is away from a user by a certain distance and an audio signal sent by the electronic equipment is transmitted to an ear of a target user, the texture of sound heard by the user is weaker than the texture of initial sound corresponding to the audio signal just sent by the electronic equipment due to attenuation of the audio signal in the transmission process, and user experience is poorer.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, a method for adjusting an audio signal is provided, where the method is applied to a first electronic device, and the first electronic device establishes a short-range wireless communication connection with a second electronic device worn by a user, and the method includes: measuring the distance between the first electronic equipment and the second electronic equipment in the process of playing the audio by the first electronic equipment; the distance between the first electronic device and the second electronic device is the distance between the first electronic device and the user; the first electronic equipment obtains an attenuation compensation value corresponding to the audio signal and a frequency band to be compensated of the audio signal based on the distance between the first electronic equipment and the second electronic equipment, and performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be sent by the first electronic equipment based on the obtained attenuation compensation value; the first electronic device prestores a plurality of distances, attenuation compensation values corresponding to the distances and frequency bands to be compensated corresponding to the distances; the larger the distance between the first electronic device and the second electronic device is, the larger the attenuation compensation value corresponding to the distance is; the frequency bands to be compensated corresponding to different distances are different, and the larger the frequency of the audio signal in the frequency band to be compensated corresponding to the distance is, the larger the attenuation compensation value is.
In the scheme, even if the first electronic equipment is separated from the user by a certain distance, in the process that the audio signal sent by the first electronic equipment is transmitted into the ear of the target user, the attenuation of the audio signal in the transmission process can be compensated, the audio signal is ensured to be equal to the initially sent audio signal to the greatest extent, the texture of the sound heard by the user is consistent with the texture of the initial sound corresponding to the audio signal sent by the first electronic equipment, and the audio experience of the user is improved.
With reference to the first aspect, in one possible design, the attenuation compensation value is used to compensate for an attenuation of the amplitude during propagation of the audio signal.
Therefore, even if the audio signal is attenuated in the propagation process, the audio signal is ensured to be equal to the initially emitted audio signal to the greatest extent when reaching the ears of the user, so that the texture of the sound heard by the user is basically the same as the texture of the initial sound, and the audio experience of the user is improved.
With reference to the first aspect, in one possible design manner, the plurality of distances includes a first-order preset distance range, a second-order preset distance range, and a third-order preset distance range; the lower limit value of the distance in the third-order preset distance range is greater than or equal to the upper limit value of the distance in the second-order preset distance range, and the lower limit value of the distance in the second-order preset distance range is greater than or equal to the upper limit value of the distance in the first-order preset distance range; the first electronic device obtains an attenuation compensation value corresponding to the audio signal and a frequency band to be compensated of the audio signal based on a distance between the first electronic device and the second electronic device, and performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be emitted by the first electronic device based on the obtained attenuation compensation value, including: if the distance between the first electronic equipment and the second electronic equipment is within the first-order preset distance range, the electronic equipment does not perform attenuation compensation on the audio signal to be sent out by the first electronic equipment; wherein, the attenuation compensation value corresponding to the first-order preset distance range is zero; if the distance between the first electronic device and the second electronic device is within the second-order preset distance range, the electronic device performs attenuation compensation on audio signals of a first preset frequency band and a second preset frequency band in the audio signals to be sent by the first electronic device based on the attenuation compensation value corresponding to the second-order preset distance range; if the distance between the first electronic device and the second electronic device is within the third-order preset distance range, the electronic device performs attenuation compensation on audio signals of a third preset frequency band, a first preset frequency band and a second preset frequency band in audio signals to be sent out by the first electronic device based on an attenuation compensation value corresponding to the third-order preset distance range; the lower limit value of the frequency in the second preset frequency band is greater than or equal to the upper limit value of the frequency in the first preset frequency band, and the lower limit value of the frequency in the first preset frequency band is greater than or equal to the upper limit value of the frequency in the third preset frequency band.
Therefore, based on different distance ranges between the first electronic device and the second electronic device, attenuation compensation is performed on the frequency bands to be compensated corresponding to the different distance ranges, and the accuracy of audio signal compensation can be further improved.
With reference to the first aspect, in a possible design manner, the third predetermined frequency band includes 63 hz to 250 hz, the first predetermined frequency band includes 250 hz to 2 khz, and the second predetermined frequency band includes frequencies of 2 khz and above.
With reference to the first aspect, in a possible design manner, the first-order preset distance range includes a distance within 1 meter, the second-order preset distance range includes a distance from 1 meter to 5 meters, and the third-order preset distance range includes a distance of 5 meters or more.
With reference to the first aspect, in a possible design manner, for a second-order preset distance range, an attenuation compensation value of a second preset frequency band is greater than or equal to an attenuation compensation value of a first preset frequency band; and aiming at the third-order preset distance range, the attenuation compensation value of the second preset frequency band is greater than or equal to that of the first preset frequency band.
In the scheme, the farther the audio signal propagation path is, the greater the attenuation degree of the amplitude of the audio signal in the air is, and the greater the attenuation degree compensation value is, so that the accuracy of audio signal compensation can be further improved.
With reference to the first aspect, in a possible design manner, the attenuation compensation value is an attenuation compensation coefficient of an amplitude of an audio signal emitted by the first electronic device; based on the obtained attenuation compensation value, the attenuation compensation is performed on the audio signal of the frequency band to be compensated in the audio signal sent by the first electronic device, and the method comprises the following steps: and the first electronic equipment multiplies the obtained attenuation compensation coefficient by the amplitude of the audio signal to be sent out by the first electronic equipment to obtain the amplitude of the adjusted audio signal.
With reference to the first aspect, in a possible design manner, performing attenuation compensation on an audio signal in a frequency band to be compensated in an audio signal sent by a first electronic device based on an obtained attenuation compensation value includes: and the first electronic equipment adds the obtained attenuation compensation value with the amplitude of the audio signal to be sent by the first electronic equipment to obtain the amplitude of the adjusted audio signal.
In a second aspect, an electronic device is provided, the electronic device comprising a processor and a memory; the memory is used for storing code instructions; the processor is configured to execute the code instructions to perform the method of conditioning an audio signal as in any one of the possible designs of the first aspect.
In a third aspect, a computer-readable storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the method for adjusting an audio signal as in any one of the possible designs of the first aspect.
For technical effects brought by any one of the design manners of the second aspect and the third aspect, reference may be made to technical effects brought by different design manners of the first aspect, and details are not described here.
Drawings
FIG. 1 is a schematic diagram of a periodic variation of an audio signal according to some embodiments of the present application;
fig. 2 is a schematic diagram illustrating a structure of a handset 100 according to some embodiments of the present application;
fig. 3 is a schematic diagram illustrating an application scenario of a method for conditioning an audio signal according to some embodiments of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a method of conditioning an audio signal, according to some embodiments of the present application;
fig. 5 is a schematic diagram illustrating a frequency response curve according to some embodiments of the present application.
Detailed Description
The illustrative embodiments of the present application include, but are not limited to, a method of conditioning an audio signal and an electronic device.
Embodiments of the present application will now be described with reference to the accompanying drawings, and it is to be understood that the described embodiments are merely illustrative of some, but not all, embodiments of the present application. As can be known to those skilled in the art, with the development of technology and the emergence of new scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
Some of the terms referred to in this application are briefly summarized below.
(1) The frequency of the audio signal, i.e. the number of times the audio signal has completed a periodic change per unit time. Fig. 1 is a schematic diagram of a periodic variation of an audio signal according to some embodiments of the present application. As shown in fig. 1, an audio signal is propagated in air with compressed portions and sparse portions, which appear alternately one at a time as one period, and the number of periods that change within one second is called frequency. It will be appreciated that the sound heard by the user is often made up of a combination of sounds having different frequencies, not just different frequencies, but also different degrees of compression/stretching, i.e. different amplitudes, and different magnitudes of sounds heard.
(2) The frequency response, i.e., frequency response, refers to the phenomenon that the amplitude of an audio signal output by an electronic device at a constant voltage increases or decreases with the change of frequency, and the phase changes with the change of frequency. Generally, the frequency response of the audio signal cannot be changed in different use scenes because the audio signal is solidified in the electronic device through a program after the frequency response adjustment is completed in the development and design process. Cannot follow the sound field environment change or the user position change. In the embodiment of the present application, the electronic device adjusts the amplitude of the audio signal, which may also be called adjusting the frequency response.
As described in the background art, if the electronic device is separated from the user by a certain distance, and the audio signal sent by the electronic device is transmitted to the ear of the target user, due to the attenuation of the audio signal in the propagation process, the texture of the sound heard by the user is weaker than the texture of the initial sound corresponding to the audio signal sent by the electronic device, and the user experience is poor.
In order to solve the above technical problem, the present application provides an audio signal adjusting method, after an electronic device 1 establishes a short-range wireless communication connection with an electronic device 2 worn by a user, the method including: in the process of playing the audio by the electronic equipment 1, measuring the distance between the electronic equipment 1 and the electronic equipment 2; the distance between the electronic device 1 and the electronic device 2 can be used to characterize the distance between the electronic device 1 and the user. Then, the electronic device 1 obtains an attenuation compensation value corresponding to the audio signal and a frequency band to be compensated of the audio signal based on the distance between the electronic device 1 and the electronic device 2. Then, the electronic device 1 performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be emitted by the electronic device 1 based on the obtained attenuation compensation value, wherein a plurality of distances are pre-stored in the electronic device 1, and the attenuation compensation value corresponding to each distance is larger when the distance between the electronic device 1 and the electronic device 2 is larger, and the attenuation compensation value corresponding to the distance is larger.
In the scheme, even if the electronic device 1 is separated from the user by a certain distance, in the process of transmitting the audio signal sent by the electronic device 1 to the ear of the target user, the attenuation of the audio signal in the transmission process is compensated, the audio signal is ensured to be equal to the initially sent audio signal to the greatest extent, the texture of the sound heard by the user is consistent with the texture of the initial sound corresponding to the audio signal just sent by the electronic device 1, and the audio experience of the user is improved.
It can be understood that the audio signals have different frequencies, and the attenuation speed and degree of the audio signals in different frequency bands are different in the propagation process, for example, the attenuation speed is fast in high frequency and medium frequency bands, and the attenuation degree is large; the attenuation of the low frequency band is slow and small, wherein the high frequency band can be 2 KHz and above, the middle frequency band can be 250 Hz-2 KHz, and the low frequency band can be 63 Hz-250 Hz. Therefore, in order to improve the accuracy of audio signal compensation, in the embodiment of the present application, the to-be-compensated frequency band corresponding to each distance is also pre-stored in the electronic device 1, where the to-be-compensated frequency bands corresponding to different distances are different.
For example, the electronic device 1 (i.e., the first electronic device) in the embodiment of the present application may be a mobile phone, a stereo, a media player (e.g., MP3, MP4, etc.), a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a Personal Digital Assistant (PDA), a television, or a smart watch.
Electronic equipment 2 (being the second electronic equipment) in the embodiment of the present application can be wearing equipment such as smart watch, bracelet, electronic watch. The embodiment of the present application does not particularly limit the specific form of the electronic device.
The embodiment of the present application takes an electronic device as an example for explanation. Fig. 2 is a schematic diagram illustrating a structure of a handset 100 according to some embodiments of the present application.
As shown in fig. 2, the mobile phone 100 may include a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display (touch screen) 294, and a Subscriber Identity Module (SIM) card interface 295.
The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like. In the embodiment of the present application, the mobile phone 100 (i.e., the electronic device 1) may measure the distance between the mobile phone 100 and the electronic device 2 by using the distance sensor. Fig. 3 is a schematic diagram illustrating an application scenario of an audio signal adjusting method according to some embodiments of the present application. As shown in fig. 3, the application scenario includes the cell phone 100, the user, and the smart watch 200 worn by the user. During the playing of music, the user may move around while listening to the music in the mobile phone 100. In the process of walking, the distance between the user and the mobile phone 100 may also change, and the mobile phone 100 may measure the distance between the user and the mobile phone 100 by using the distance sensor, which is 1 meter (m), 5 meters (m), or 10 meters (m).
It is to be understood that the illustrated structure of the present embodiment does not specifically limit the mobile phone 100. In other embodiments, the handset 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be the neural center and command center of the cell phone 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
In the embodiment of the present application, in the process of playing the audio by the mobile phone 100, the distance between the mobile phone 100 and the electronic device 2 is measured by the distance sensor; the distance between the processor 210 and the electronic device 2 may be used to characterize the distance between the mobile phone 100 and the user. Then, the processor 210 obtains an attenuation compensation value corresponding to the audio signal and a frequency band to be compensated of the audio signal based on the distance between the mobile phone 100 and the electronic device 2. Then, the processor 210 performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be sent by the processor 210 based on the obtained attenuation compensation value, wherein a plurality of distances are pre-stored in the processor 210, and the attenuation compensation value corresponding to each distance is larger when the distance between the mobile phone 100 and the electronic device 2 is larger.
It should be understood that the connection relationship between the modules shown in this embodiment is only illustrative, and does not limit the structure of the mobile phone 100. In other embodiments, the mobile phone 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. The charging management module 240 may also supply power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 may also be disposed in the same device.
The wireless communication function of the mobile phone 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like. In some embodiments, antenna 1 of the handset 100 is coupled to the mobile communication module 250 and antenna 2 is coupled to the wireless communication module 260 so that the handset 100 can communicate with networks and other devices through wireless communication techniques.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 can provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.
The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional blocks of the mobile communication module 250 may be provided in the same device as at least some of the blocks of the processor 210.
The wireless communication module 260 may provide solutions for wireless communication applied to the mobile phone 100, including WLAN (e.g., wireless fidelity (Wi-Fi) network), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. In this embodiment, the mobile phone 100 may establish a wireless communication channel with the smart watch 200 by using the wireless communication module 260. Specifically, the mobile phone 100 may include a bluetooth module, and the mobile phone 100 may establish a bluetooth communication channel with the smart watch 200 by using the bluetooth module, and perform instruction and/or data transmission with a bluetooth headset through the bluetooth communication channel. Wherein the data may be a distance between the cell phone 100 and the smart watch 200 worn by the user.
The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves. In some embodiments, the mobile phone 100 (i.e., the electronic device 1) may measure the distance between the mobile phone 100 and the electronic device 2 by using the wireless communication module 260 (e.g., a bluetooth module) as described above. For example, the mobile phone 100 may transmit a wireless signal to the electronic device 2 through the wireless communication module 260, then receive a response signal from the electronic device 2 to the wireless signal, and finally calculate the distance between the mobile phone 100 and the electronic device 2 according to the time when the electronic device 2 transmits the response signal and the time when the mobile phone 100 receives the response signal.
The mobile phone 100 implements display functions through the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel.
The mobile phone 100 may implement a camera function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or video. In some embodiments, the mobile phone 100 may include 1 or N cameras 293, N being a positive integer greater than or equal to 1.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the mobile phone 100. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in the external memory card.
The internal memory 221 may be used to store computer-executable program code, which includes instructions. The processor 210 executes various functional applications of the cellular phone 100 and data processing by executing instructions stored in the internal memory 221. For example, in the present embodiment, the processor 210 may execute instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.
The storage program area may store an operating system, an application program (such as a sound playing function, a service preemption function, and the like) required by at least one function, and the like. The data storage area may store data (e.g., audio data, a phonebook, etc.) created during use of the handset 100, and the like. In addition, the internal memory 221 may include a high speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a Universal Flash Storage (UFS), and the like.
The mobile phone 100 can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, and the application processor. Such as music playing, recording, etc.
The keys 290 include a power-on key, a volume key, and the like. The keys 290 may be mechanical keys. Or may be touch keys. The motor 291 may generate a vibration cue. The motor 291 can be used for incoming call vibration prompting, and can also be used for touch vibration feedback. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the cellular phone 100 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than or equal to 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc.
In the embodiment of the present application, taking an example that the electronic device 1 (i.e., the first electronic device) is a mobile phone 100, and the electronic device 2 (i.e., the second electronic device) is a smart watch 200 worn by a user, the method of the embodiment of the present application is described. After the mobile phone 100 establishes the short-distance wireless communication connection with the smart watch 200 worn by the user, the wireless communication channel may transmit instructions and/or data with the smart watch 200, and perform adjustment of the frequency response curve of the audio signal to be sent by the mobile phone 100, where the short-distance wireless communication connection may be a bluetooth communication connection or the like.
It can be understood that the mobile phone 100 may include various audio applications, and the mobile phone 100 may detect that the user opens the audio application and selects an operation of playing music, and further detect an event triggering the mobile phone 100 to play audio, and execute the method for adjusting an audio signal provided in the embodiment of the present application in a process that the mobile phone 100 plays audio, which may include steps 401 to 405. As shown in fig. 4, the method for adjusting an audio signal provided by the embodiment of the present application may include steps 401 to 405.
401: the handset 100 receives a first operation that triggers the handset 100 to play audio.
In some embodiments, the first operation may be an operation input by the user at the audio application for triggering the handset 100 to play audio. The audio application may be an audio application corresponding to an audio application icon on the handset 100. The mobile phone can receive a click operation (such as a click operation) of the audio application icon by the user, and can display an interface of the audio application in response to the click operation of the audio application icon by the user. The interface of the audio application includes various music to be played. It is understood that the first operation may be a click operation (e.g., a single-click operation) of a play button of a certain music to be played by the user.
In other embodiments, the mobile phone 100 detects that the user's finger slides down from the top, and displays a pull-down menu of the control center, where the pull-down menu includes a play button of music to be played, and the first operation may be a user clicking (e.g., clicking) on the play button of music to be played in the control center.
402: measuring the distance between the mobile phone 100 and the smart watch 200 in the process of playing the audio by the mobile phone 100; wherein, the distance between the cell phone 100 and the smart watch 200 may be used to characterize the distance between the cell phone 100 and the user.
403: the mobile phone 100 obtains an attenuation compensation value corresponding to the audio signal and a frequency band to be compensated of the audio signal based on the distance between the mobile phone 100 and the smart watch 200.
It will be appreciated that the further the audio signal travels, the greater the attenuation of the amplitude of the audio signal in air. Therefore, in order to solve the technical problem, in the embodiment of the present application, the mobile phone 100 may obtain an estimated amplitude attenuation compensation value corresponding to the amplitude of the audio signal based on the distance between the mobile phone 100 and the smart watch 200, and adjust the amplitude of the audio signal sent by the mobile phone 100 based on the obtained estimated amplitude attenuation compensation value, where the estimated amplitude attenuation compensation value is larger as the distance between the mobile phone 100 and the smart watch 200 is larger. Therefore, even if the audio signal is attenuated in the propagation process, the audio signal is ensured to be equal to the initially emitted audio signal to the greatest extent when reaching the ear of the user, so that the texture of the sound heard by the user is basically the same as that of the initial sound, and the audio experience of the user is improved.
It can be understood that the audio signals have different frequencies, and the attenuation speeds and degrees of the audio signals in different frequency bands are different in the propagation process, for example, the attenuation of high frequency and middle frequency bands is fast, and the attenuation degree is large; the attenuation of the low frequency band is slow and small, wherein the high frequency band can be 2 KHz and above, the middle frequency band can be 250 Hz-2 KHz, and the low frequency band can be 63 Hz-250 Hz. Fig. 5 is a schematic diagram illustrating a frequency response curve, as shown in fig. 5, with the y-axis of the frequency response curve representing audio signal magnitude in decibels and the x-axis of the frequency response curve representing audio signal frequency in hertz (Hz), according to some embodiments of the present application.
Therefore, in order to improve the accuracy of audio signal compensation, in the embodiment of the present application, the frequency bands to be compensated corresponding to each distance are also pre-stored in the mobile phone 100, and the frequency bands to be compensated corresponding to different distances are different. For example, table 1 shows a corresponding relationship between a distance and a frequency band to be compensated.
TABLE 1
Figure 346868DEST_PATH_IMAGE001
As shown in table 1, if the distance between the mobile phone 100 and the smart watch 200 is within 1 meter, the mobile phone 100 does not perform attenuation compensation on the audio signal to be transmitted by the mobile phone 100, that is, the attenuation compensation value corresponding to the distance range is zero; if the distance between the mobile phone 100 and the smart watch 200 is 1 meter to 5 meters, the mobile phone 100 performs attenuation compensation on the audio signals of the high frequency band and the middle frequency band in the audio signals to be sent by the mobile phone 100 based on the attenuation compensation value corresponding to the distance range; if the distance between the mobile phone 100 and the smart watch 200 is 5 meters or more, the mobile phone 100 performs attenuation compensation on the audio signals of the low frequency band, the high frequency band and the middle frequency band in the audio signal to be transmitted by the mobile phone 100 based on the attenuation compensation value corresponding to the distance in the distance range, wherein the greater the frequency of the audio signal in the frequency band to be compensated, the greater the attenuation compensation value.
It can be understood that, in the embodiment of the present application, the frequency bands to be compensated corresponding to the three distance ranges are mainly introduced, but it does not mean that when the audio signal attenuation compensation is performed in the embodiment of the present application, the influence of division of other distance ranges on the audio signal attenuation is not referred to. For example, the division of the distance range may follow the following rules: the plurality of distances includes a first-order preset distance range (e.g., a distance within 1 meter in table 1), a second-order preset distance range (e.g., a distance of 1 meter to 5 meters in table 1), and a third-order preset distance range (e.g., a distance of 5 meters and more in table 1); the lower limit value of the distance in the third-order preset distance range is greater than or equal to the upper limit value of the distance in the second-order preset distance range, and the lower limit value of the distance in the second-order preset distance range is greater than or equal to the upper limit value of the distance in the first-order preset distance range.
Similarly, in the embodiment of the present application, the three frequency bands to be compensated are mainly introduced, but it does not mean that when the audio signal attenuation compensation is performed in the embodiment of the present application, the influence of division of other frequency bands to be compensated on the audio signal attenuation is not referred to. For example, the division of the frequency band to be compensated may follow the following rules: the frequency band to be compensated comprises a high frequency band (namely a first preset frequency band), a medium frequency band (namely a second preset frequency band) and a low frequency band (namely a third preset frequency band), wherein the lower limit value of the medium frequency band is greater than or equal to the upper limit value of the medium frequency band of the high frequency band, and the lower limit value of the medium frequency band of the high frequency band is greater than or equal to the upper limit value of the medium frequency band of the low frequency band.
It can be understood that the larger the frequency of the audio signal is, the larger the attenuation degree is, and thus, in order to improve the accuracy of audio signal compensation, in the embodiment of the present application, the larger the frequency of the audio signal in the frequency band to be compensated is, the larger the attenuation degree compensation value is.
404: the mobile phone 100 performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be transmitted by the mobile phone 100 based on the obtained attenuation compensation value, wherein a plurality of distances are pre-stored in the mobile phone 100, and the larger the distance between the mobile phone 100 and the smart watch 200 is, the larger the attenuation compensation value corresponding to the distance is.
In some embodiments, the attenuation compensation value is an attenuation compensation coefficient of an amplitude of an audio signal to be transmitted by the mobile phone 100, and the mobile phone 100 may multiply the obtained attenuation compensation coefficient by the amplitude of the audio signal to be transmitted by the mobile phone 100 to obtain an adjusted amplitude of the audio signal to be transmitted by the mobile phone 100. The mobile phone 100 stores a corresponding relationship between the distance between the mobile phone 100 and the smart watch 200, a frequency band to be compensated, and an attenuation compensation coefficient, and the mobile phone 100 may obtain the attenuation compensation coefficient by querying the corresponding relationship based on the distance between the mobile phone 100 and the smart watch 200. Aiming at the second-order preset distance range, the attenuation compensation value of the second preset frequency band is greater than or equal to that of the first preset frequency band; and aiming at the third-order preset distance range, the attenuation compensation value of the second preset frequency band is greater than or equal to that of the first preset frequency band.
For example, table 2 shows a corresponding relationship between the distance between the mobile phone 100 and the smart watch 200, the frequency band to be compensated, and the attenuation compensation coefficient.
TABLE 2
Figure 945339DEST_PATH_IMAGE002
As shown in table 2, the distance between the mobile phone 100 and the smart watch 200 is within 1 meter, and there is no frequency band to be compensated. The distance between the mobile phone 100 and the smart watch 200 is 1 meter to 5 meters, the attenuation compensation coefficient of the audio signal in the high frequency band is 1.02, and the attenuation compensation coefficient of the audio signal in the medium frequency band is 1.01. The distance between the mobile phone 100 and the smart watch 200 is 5 meters or more, the attenuation compensation coefficient of the audio signal in the high frequency band is 1.05, the attenuation compensation coefficient of the audio signal in the middle frequency band is 1.04, and the attenuation compensation coefficient of the audio signal in the low frequency band is 1.03. That is, the attenuation compensation coefficient of the distance between the mobile phone 100 and the smart watch 200 being 5 meters or more is greater than the attenuation compensation coefficient of the distance between the mobile phone 100 and the smart watch 200 being 1 meter to 5 meters; the attenuation compensation coefficient of the distance between the mobile phone 100 and the smart watch 200 in the range of 1 meter to 5 meters is greater than the attenuation compensation coefficient of the distance between the mobile phone 100 and the smart watch 200 in the range of 1 meter, and the higher the frequency is, the higher the attenuation compensation coefficient is.
In other embodiments, the attenuation compensation factor has a functional correspondence with the distance between the mobile phone 100 and the smart watch 200 and the frequency band to be compensated. Specifically, the mobile phone 100 may obtain the attenuation compensation coefficient prediction model pre-stored in the mobile phone 100. In the using stage of the attenuation compensation coefficient prediction model, the attenuation compensation coefficient prediction model is pre-stored in the mobile phone 100, and the attenuation compensation coefficient prediction model includes the distance between the mobile phone 100 and the smart watch 200 acquired by using the distance sensor and the frequency of the frequency band to be compensated, so as to obtain the corresponding attenuation compensation coefficient.
It is understood that, in the preliminary building stage, the following steps 1 and 2 may be performed to obtain a plurality of training samples for training the attenuation compensation coefficient prediction model. Step 1: the distance between the mobile phone 100 and the smart watch 200 is obtained, and the frequency of the audio signal to be emitted by the mobile phone 100 is determined. And step 2, acquiring the audio signal to be sent by the mobile phone 100 and the real audio signal of the audio signal sent by the mobile phone 100 reaching the ear of the user.
The training sample may include a distance between the mobile phone 100 and the smart watch 200, a frequency of an audio signal to be transmitted by the mobile phone 100, and a proportional relationship between an amplitude of an audio signal to be transmitted by the mobile phone 100 and an amplitude of an audio signal to be transmitted by the mobile phone 100, where the audio signal reaches an ear of a user. In the embodiment of the application, a preset AI algorithm may be adopted, a proportional relationship between a distance between the mobile phone 100 and the smart watch 200, a frequency of an audio signal to be sent by the mobile phone 100, an amplitude of a real audio signal, which is sent by the mobile phone 100 and reaches an ear of a user, of an audio signal to be sent by the mobile phone 100 is used as an input sample of the attenuation compensation coefficient prediction model, and the attenuation compensation coefficient prediction model is trained to have a function of performing signal attenuation compensation on the audio signal by using the distance between the mobile phone 100 and the smart watch 200 and the frequency of the audio signal to be sent by the mobile phone 100, so as to obtain an attenuation compensation coefficient.
It can be understood that, in the stage of initially establishing the attenuation degree compensation coefficient prediction model, the distance between the mobile phone 100 and the smart watch 200, the frequency of the audio signal to be emitted by the mobile phone 100, and the proportional relationship between the amplitude of the real audio signal, which reaches the ear of the user, emitted by the mobile phone 100 and the amplitude of the audio signal to be emitted by the mobile phone 100 are used as training samples to train the attenuation degree compensation coefficient prediction model. Therefore, the attenuation compensation coefficient prediction model after multiple sample training can have the function of performing signal attenuation compensation on the audio signal by using the distance between the mobile phone 100 and the smart watch 200 and the frequency of the audio signal to be emitted by the mobile phone 100 to obtain the attenuation compensation coefficient. Moreover, the more times of sample training, the higher the accuracy of the attenuation compensation coefficient obtained by the attenuation compensation coefficient prediction model is, and the higher the accuracy of the audio signal attenuation compensation performed by the mobile phone 100 is. Therefore, in the embodiment of the present application, the attenuation compensation coefficient prediction model configured in advance in the mobile phone may be an AI model trained by a large number of samples.
For example, the preset AI algorithm may be any one of an AI algorithm such as a least square method or a decision tree algorithm, which is not limited in the embodiment of the present application.
In some other embodiments, the handset 100 adds the obtained attenuation compensation value to the amplitude of the audio signal to be transmitted by the handset 100 to obtain the amplitude of the adjusted audio signal. Specifically, there is a functional correspondence between the attenuation compensation value and the distance between the cell phone 100 and the smart watch 200 and the frequency band to be compensated. Specifically, the mobile phone 100 may obtain the attenuation compensation value prediction model pre-stored in the mobile phone 100. In the using stage of the attenuation compensation value prediction model, the attenuation compensation value prediction model is prestored in the mobile phone 100, and the attenuation compensation value prediction model includes the distance between the mobile phone 100 and the smart watch 200 acquired by using the distance sensor and the frequency of the frequency band to be compensated, so as to obtain the corresponding attenuation compensation value.
It is understood that, in the preliminary building stage, the following steps 1 and 2 may be performed to obtain a plurality of training samples for training the attenuation compensation value prediction model. Step 1: the distance between the mobile phone 100 and the smart watch 200 is obtained, and the frequency of the audio signal to be emitted by the mobile phone 100 is determined. And 2, acquiring an audio signal to be sent by the mobile phone 100 and a real audio signal of the audio signal sent by the mobile phone 100 reaching the ear of the user.
The training sample may include a distance between the mobile phone 100 and the smart watch 200, a frequency of an audio signal to be transmitted by the mobile phone 100, a difference between an amplitude of an actual audio signal transmitted by the mobile phone 100 and reaching an ear of a user, and an amplitude of an audio signal to be transmitted by the mobile phone 100. In the embodiment of the application, a preset AI algorithm may be used, and a difference between an amplitude of an audio signal sent by the mobile phone 100 and an amplitude of an audio signal to be sent by the mobile phone 100, the frequency of the audio signal to be sent by the mobile phone 100, and an amplitude of a real audio signal reaching an ear of a user, which is sent by the mobile phone 100, in each training sample is used as an input sample of an attenuation compensation value prediction model, so that the attenuation compensation value prediction model is trained, and has a function of performing signal attenuation compensation on the audio signal by using the distance between the mobile phone 100 and the smart watch 200 and the frequency of the audio signal to be sent by the mobile phone 100 to obtain an attenuation compensation value.
It can be understood that, in the stage of initially establishing the attenuation compensation value prediction model, the distance between the mobile phone 100 and the smart watch 200, the frequency of the audio signal to be emitted by the mobile phone 100, and the difference between the amplitude of the real audio signal that reaches the ear of the user and the amplitude of the audio signal to be emitted by the mobile phone 100 are used as training samples to train the attenuation compensation value prediction model. Therefore, the attenuation compensation value prediction model after multiple sample training can have the function of performing signal attenuation compensation on the audio signal by using the distance between the mobile phone 100 and the smart watch 200 and the frequency of the audio signal to be emitted by the mobile phone 100 to obtain the attenuation compensation value. Moreover, the more times of sample training, the higher the accuracy of the attenuation compensation value obtained by the attenuation compensation value prediction model, and the higher the accuracy of the mobile phone 100 in performing the audio signal attenuation compensation. Therefore, in the embodiment of the present application, the attenuation compensation value prediction model configured in advance in the mobile phone may be an AI model trained by a large number of samples.
For example, the preset AI algorithm may be any one of an AI algorithm such as a least square method or a decision tree algorithm, which is not limited in the embodiment of the present application.
405: the handset 100 broadcasts the compensated audio signal to the user.
In the embodiment of the present application, when an electronic device (e.g., the mobile phone 100) plays audio, a user may place the electronic device at a fixed location (e.g., the mobile phone is placed on a desk or an electronic device that cannot be moved such as a television), and move himself in a small range at a fixed location (e.g., home). Because the attenuation speeds of the audio signals of different frequency bands in the air are different (the medium-high frequency attenuation is fast, the low frequency attenuation is slow), the distance between the electronic equipment playing the audio and the user is measured through the wearable equipment of the user (such as the intelligent watch 200), the audio frequency response curve is adjusted through the distance, the attenuation of the audio signals in the transmission process is compensated, and therefore the texture of the sound heard by the user is basically the same as the texture of the initial sound, and the audio experience of the user is improved.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this Application, a processing system includes any system having a Processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer readable storage media. Thus, a machine-readable storage medium may include any mechanism for storing or propagating information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, read-Only memories (CD-ROMs), magneto-optical disks, read Only Memories (ROMs), random Access Memories (RAMs), erasable Programmable Read Only Memories (EPROMs), electrically Erasable Programmable Read Only Memories (EEPROMs), magnetic or optical cards, flash Memory, or a tangible machine-readable Memory for propagating information in an electrical, optical, acoustical or other form (e.g., carrier waves, infrared signals, digital signals, etc.) over the internet. Thus, a machine-readable storage medium includes any type of machine-readable storage medium suitable for storing or propagating electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some features of structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the illustrative figures. In addition, the inclusion of a structural or methodical feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the apparatuses in the present application, each unit/module is a logical unit/module, and physically, one logical unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logical unit/module itself is not the most important, and the combination of the functions implemented by the logical unit/module is the key to solve the technical problem provided by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules which are not so closely related to solve the technical problems presented in the present application, which does not indicate that no other units/modules exist in the above-mentioned device embodiments.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (10)

1. A method for adjusting an audio signal, which is applied to a first electronic device, wherein the first electronic device establishes a short-range wireless communication connection with a second electronic device worn by a user, and the method comprises the following steps:
measuring the distance between the first electronic equipment and the second electronic equipment in the process of playing the audio by the first electronic equipment; wherein a distance between the first electronic device and the second electronic device is a distance between the first electronic device and the user;
the first electronic device obtains an attenuation compensation value corresponding to an audio signal and a frequency band to be compensated of the audio signal based on the distance between the first electronic device and the second electronic device, and performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be sent by the first electronic device based on the obtained attenuation compensation value;
a plurality of distances, attenuation compensation values corresponding to each distance and a frequency band to be compensated corresponding to each distance are pre-stored in the first electronic device; the larger the distance between the first electronic equipment and the second electronic equipment is, the larger the attenuation compensation value corresponding to the distance is; the frequency bands to be compensated corresponding to different distances are different, and the larger the frequency of the audio signal in the frequency band to be compensated corresponding to the distance is, the larger the attenuation compensation value is.
2. The method of claim 1, wherein the attenuation compensation value is used to compensate for attenuation of amplitude during propagation of the audio signal.
3. The method according to claim 1 or 2, wherein the plurality of distances comprises a first order preset distance range, a second order preset distance range, and a third order preset distance range; the lower limit value of the distance in the third-order preset distance range is greater than or equal to the upper limit value of the distance in the second-order preset distance range, and the lower limit value of the distance in the second-order preset distance range is greater than or equal to the upper limit value of the distance in the first-order preset distance range;
the first electronic device obtains an attenuation compensation value corresponding to an audio signal and a frequency band to be compensated of the audio signal based on a distance between the first electronic device and the second electronic device, and performs attenuation compensation on the audio signal of the frequency band to be compensated in the audio signal to be sent by the first electronic device based on the obtained attenuation compensation value, including:
if the distance between the first electronic device and the second electronic device is within the first-order preset distance range, the electronic device does not perform attenuation compensation on the audio signal to be emitted by the first electronic device; wherein, the attenuation compensation value corresponding to the first-order preset distance range is zero;
if the distance between the first electronic device and the second electronic device is within the second-order preset distance range, the electronic device performs attenuation compensation on audio signals of a first preset frequency band and a second preset frequency band in the audio signals to be sent by the first electronic device based on an attenuation compensation value corresponding to the second-order preset distance range;
if the distance between the first electronic device and the second electronic device is within the third-order preset distance range, the electronic device performs attenuation compensation on audio signals of a third preset frequency band, the first preset frequency band and the second preset frequency band in the audio signals to be sent by the first electronic device based on an attenuation compensation value corresponding to the third-order preset distance range;
the lower limit value of the frequency in the second preset frequency band is greater than or equal to the upper limit value of the frequency in the first preset frequency band, and the lower limit value of the frequency in the first preset frequency band is greater than or equal to the upper limit value of the frequency in the third preset frequency band.
4. The method of claim 3, wherein the third predetermined band comprises 63 Hz-250 Hz, the first predetermined band comprises 250 Hz-2 kHz, and the second predetermined band comprises frequencies of 2 kHz and above.
5. The method of claim 3, comprising: the first-order preset distance range comprises a distance within 1 meter, the second-order preset distance range comprises a distance from 1 meter to 5 meters, and the third-order preset distance range comprises a distance of 5 meters and more.
6. The method according to claim 3, wherein for the second-order preset distance range, the attenuation compensation value of the second preset frequency band is greater than or equal to the attenuation compensation value of the first preset frequency band; and aiming at the third-order preset distance range, the attenuation compensation value of the second preset frequency band is greater than or equal to the attenuation compensation value of the first preset frequency band.
7. The method of claim 2, comprising: the attenuation compensation value is an attenuation compensation coefficient of the amplitude of the audio signal emitted by the first electronic equipment;
the attenuation compensation is performed on the audio signal of the frequency band to be compensated in the audio signal sent by the first electronic device based on the obtained attenuation compensation value, and the method includes:
and the first electronic equipment multiplies the obtained attenuation compensation coefficient by the amplitude of the audio signal to be sent by the first electronic equipment to obtain the amplitude of the adjusted audio signal.
8. The method according to claim 2, wherein the attenuation compensation of the audio signal of the frequency band to be compensated in the audio signal sent by the first electronic device based on the obtained attenuation compensation value comprises:
and the first electronic equipment adds the obtained attenuation compensation value with the amplitude of the audio signal to be sent by the first electronic equipment to obtain the amplitude of the adjusted audio signal.
9. An electronic device comprising a processor and a memory; the memory is used for storing code instructions; the processor is configured to execute the code instructions to cause the electronic device to perform the method of any of claims 1-8.
10. A computer readable storage medium comprising computer instructions which, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-8.
CN202211365689.9A 2022-11-03 2022-11-03 Audio signal adjusting method and electronic equipment Pending CN115426589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211365689.9A CN115426589A (en) 2022-11-03 2022-11-03 Audio signal adjusting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211365689.9A CN115426589A (en) 2022-11-03 2022-11-03 Audio signal adjusting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN115426589A true CN115426589A (en) 2022-12-02

Family

ID=84207518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211365689.9A Pending CN115426589A (en) 2022-11-03 2022-11-03 Audio signal adjusting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115426589A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001275198A (en) * 2000-03-28 2001-10-05 Matsushita Electric Ind Co Ltd Sound volume controller
CN102342131A (en) * 2009-03-03 2012-02-01 松下电器产业株式会社 Speaker with camera, signal processing device, and AV system
CN105679346A (en) * 2015-12-31 2016-06-15 深圳还是威健康科技有限公司 Method and apparatus for controlling radio set
CN105828225A (en) * 2015-01-09 2016-08-03 国基电子(上海)有限公司 Electronic device for adjusting microphone output power and gain
CN106534541A (en) * 2016-11-15 2017-03-22 广东小天才科技有限公司 Volume adjusting method and device and terminal equipment
CN106686520A (en) * 2017-01-03 2017-05-17 南京地平线机器人技术有限公司 Multi-channel audio system capable of tracking user and equipment with multi-channel audio system
US20200359153A1 (en) * 2019-05-07 2020-11-12 Acer Incorporated Speaker adjustment method and electronic device using the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001275198A (en) * 2000-03-28 2001-10-05 Matsushita Electric Ind Co Ltd Sound volume controller
CN102342131A (en) * 2009-03-03 2012-02-01 松下电器产业株式会社 Speaker with camera, signal processing device, and AV system
CN105828225A (en) * 2015-01-09 2016-08-03 国基电子(上海)有限公司 Electronic device for adjusting microphone output power and gain
CN105679346A (en) * 2015-12-31 2016-06-15 深圳还是威健康科技有限公司 Method and apparatus for controlling radio set
CN106534541A (en) * 2016-11-15 2017-03-22 广东小天才科技有限公司 Volume adjusting method and device and terminal equipment
CN106686520A (en) * 2017-01-03 2017-05-17 南京地平线机器人技术有限公司 Multi-channel audio system capable of tracking user and equipment with multi-channel audio system
US20200359153A1 (en) * 2019-05-07 2020-11-12 Acer Incorporated Speaker adjustment method and electronic device using the same

Similar Documents

Publication Publication Date Title
CN111050250B (en) Noise reduction method, device, equipment and storage medium
CN115729511A (en) Audio playing method and electronic equipment
US11284151B2 (en) Loudness adjustment method and apparatus, and electronic device and storage medium
CN111445901B (en) Audio data acquisition method and device, electronic equipment and storage medium
CN110996305B (en) Method and device for connecting Bluetooth equipment, electronic equipment and medium
CN106506437B (en) Audio data processing method and device
CN108897516B (en) Wearable device volume adjustment method and related product
CN111314560A (en) Method for adjusting sound loudness and communication terminal
CN110989961A (en) Sound processing method and device
EP4319116A1 (en) Volume adjustment method and terminal device
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN111324196B (en) Memory operation frequency adjusting method and device, storage medium and electronic equipment
CN111984222A (en) Method and device for adjusting volume, electronic equipment and readable storage medium
CN113489844B (en) Volume gear adjusting method and electronic equipment
CN113921002A (en) Equipment control method and related device
EP4203447A1 (en) Sound processing method and apparatus thereof
CN110058837B (en) Audio output method and terminal
CN114900737A (en) Video progress adjusting method and electronic equipment
CN109360577B (en) Method, apparatus, and storage medium for processing audio
CN115426589A (en) Audio signal adjusting method and electronic equipment
CN111063364B (en) Method, apparatus, computer device and storage medium for generating audio
CN110753391B (en) Information transmission method and device and electronic equipment
CN111585601A (en) Signal processing circuit and signal processing method
CN116233696B (en) Airflow noise suppression method, audio module, sound generating device and storage medium
CN112133267B (en) Audio effect processing method, device and storage medium

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