CN112463107A - Audio playing parameter determination method and device, electronic equipment and readable storage medium - Google Patents

Audio playing parameter determination method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112463107A
CN112463107A CN202011337858.9A CN202011337858A CN112463107A CN 112463107 A CN112463107 A CN 112463107A CN 202011337858 A CN202011337858 A CN 202011337858A CN 112463107 A CN112463107 A CN 112463107A
Authority
CN
China
Prior art keywords
audio
playing
original
recording
parameter
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
CN202011337858.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011337858.9A priority Critical patent/CN112463107A/en
Publication of CN112463107A publication Critical patent/CN112463107A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data
    • G11B2020/10555Audio or video recording specifically adapted for audio data wherein the frequency, the amplitude, or other characteristics of the audio signal is taken into account
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data
    • G11B2020/10555Audio or video recording specifically adapted for audio data wherein the frequency, the amplitude, or other characteristics of the audio signal is taken into account
    • G11B2020/10564Audio or video recording specifically adapted for audio data wherein the frequency, the amplitude, or other characteristics of the audio signal is taken into account frequency

Abstract

The application provides an audio playing parameter determination method, an audio playing parameter determination device, an electronic device and a readable storage medium, wherein the method comprises the following steps: acquiring original audio parameters of original audio; acquiring a recording audio parameter of a recording audio recorded by a recording device; the recorded audio is obtained by the recording device recording the original audio played by the playing device; adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters; when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device; the target audio playing parameter is used for playing the original audio through the playing device. The method can improve the fidelity of sound.

Description

Audio playing parameter determination method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an audio playing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, a recording algorithm scheme of electronic equipment is a fixed gain scheme, which is generally fixedly set before leaving a factory, so that recorded sound is more prominent. The current recording scheme and playing scheme change the loudness and timbre of a sound source, and when a user needs to record the loudness and timbre of the sound source heard by the ears at that time, the loudness and timbre of the sound source at that time cannot be accurately described in the playing process of common recording. Because its downstream loudness is affected by the playback volume curve, the maximum and minimum volumes of a typical 16-level volume curve may differ by more than 50 dB. The timbre may be changed by the audio parameters set by the manufacturer, resulting in distortion of the sound.
Disclosure of Invention
The embodiment of the application provides an audio playing parameter determining method, an audio playing parameter determining device, electronic equipment and a computer readable storage medium, which can improve the fidelity of sound.
An audio playing parameter determination method comprises the following steps:
acquiring original audio parameters of original audio;
acquiring a recording audio parameter of a recording audio recorded by a recording device; the recorded audio is obtained by the recording device recording the original audio played by the playing device;
adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters;
when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device; the target audio playing parameter is used for playing the original audio through the playing device.
A method of audio playback, the method comprising:
acquiring a target audio playing parameter of a target audio; the target audio playing parameter is an audio playing parameter corresponding to the playing device when the comparison result is within a preset audio parameter range; the comparison result is obtained by comparing the original audio parameters of the target audio with the recorded audio parameters of the recorded audio in advance; the audio playing parameters are adjusted based on the comparison result; the recorded audio is obtained by recording the target audio played by the playing device by the recording device;
and playing the target audio according to the target audio playing parameters through the playing device.
An audio playback parameter determination apparatus, comprising:
the first acquisition module is used for acquiring original audio parameters of original audio;
the second acquisition module is used for acquiring the recorded audio parameters of the recorded audio which is obtained by recording through the recording device; the recorded audio is obtained by the recording device recording the original audio played by the playing device;
the adjusting module is used for adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters;
the determining module is used for obtaining a target audio playing parameter of the playing device when the comparison result is within a preset audio parameter range; the target audio playing parameter is used for playing the original audio through the playing device.
An audio playback apparatus comprising:
the target audio playing parameter acquiring module is used for acquiring a target audio playing parameter of a target audio; the target audio playing parameter is an audio playing parameter corresponding to the playing device when the comparison result is within a preset audio parameter range; the comparison result is obtained by comparing the original audio parameters of the target audio with the recorded audio parameters of the recorded audio in advance; the audio playing parameters are adjusted based on the comparison result; the recorded audio is obtained by recording the target audio played by the playing device by the recording device;
and the playing module is used for playing the target audio according to the target audio playing parameters through the playing device.
An electronic device comprises a memory, a processor, a recording device and a playing device, wherein the recording device is used for recording audio, and the playing device is used for playing the audio; the memory has stored therein a computer program that, when executed by the processor, causes the processor to execute an audio playback parameter determination method.
An electronic device comprises a memory, a processor, a recording device and a playing device, wherein the recording device is used for recording audio, and the playing device is used for playing the audio; the memory has stored therein a computer program that, when executed by the processor, causes the processor to execute an audio playback method.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out an audio playback parameter determination method.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out an audio playback method.
According to the audio playing parameter determining method, the device, the electronic equipment and the readable storage medium, the audio playing parameter of the playing device is adjusted by acquiring the audio parameter of the original audio and the recorded audio parameter of the recorded audio and according to the comparison result of the original audio parameter and the recorded audio parameter, namely, the original audio parameter is close to the recorded audio parameter by adjusting the audio playing parameter of the playing device, so that the recorded audio is closer to the original audio to restore the original audio, and the fidelity of sound is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of a method for determining audio playback parameters;
FIG. 2 is a flow diagram of a method for determining audio playback parameters in one embodiment;
FIG. 3 is a schematic diagram of a process for adjusting the full-band gain of a playback device according to an embodiment;
FIG. 4 is a flow diagram illustrating an embodiment of adjusting a playback equalizer curve of a playback device;
FIG. 5 is a schematic flow chart illustrating calibration of the recording device in one embodiment;
FIG. 6 is a system framework flow diagram of a method for audio playback parameter determination in one embodiment;
FIG. 7 is a flow diagram illustrating an exemplary method for audio playback;
FIG. 8 is a block diagram of an audio playback parameter determination apparatus according to an embodiment;
FIG. 9 is a block diagram of an audio playback device according to an embodiment;
fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
Fig. 1 is a schematic diagram of an application environment of the audio playing parameter determining method in an embodiment. As shown in fig. 1, the application environment includes an electronic device 110, a recording device 120, and a playback device 130. Wherein, the recording device 120 may be located in the electronic device 110, and both the recording device 120 and the playing device 130 may be located in the electronic device 110. Alternatively, the recording device 120 and the playing device 130 can be connected to the electronic device through a wired connection or a wireless connection, respectively. The recording device 120 is used for collecting audio, and the recording device 120 may be a microphone, a recorder, or the like. The playing device 130 is used for playing original audio, and the playing device 130 may specifically be a speaker, a sound device, or the like. The electronic device 110 is configured to obtain original audio parameters of original audio. The playing device 130 is used for playing the original audio, and the recording device 120 is used for recording the original audio played by the playing device 130 to obtain a recorded audio. The electronic device 110 obtains a recording audio parameter of the recording audio; adjusting the audio playing parameters of the playing device 130 according to the comparison result of the original audio parameters and the recorded audio parameters; when the comparison result is within the preset audio parameter range, the target audio playing parameter of the playing device 130 is obtained. The playing device 130 plays the original audio based on the target audio playing parameters.
Fig. 2 is a flowchart of a method for determining audio playback parameters in one embodiment. The method for determining audio playing parameters in this embodiment is described by taking the electronic device 110 in fig. 1 as an example. As shown in fig. 2, the audio playing parameter determining method includes steps 202 to 208:
in step 202, original audio parameters of the original audio are obtained.
The original audio refers to audio formed by a sound source recorded by electronic equipment. The duration of the original audio is not limited, and may specifically be 1 second, 2 seconds, 10 seconds, 5 minutes, and the like, but is not limited thereto. The original audio parameters are used to represent some of the sound characteristics of the original audio. For example, the original audio parameter may be, but is not limited to, original audio loudness, original audio frequency, original audio gain, etc.
Specifically, the electronic device obtains the original audio parameters from the recording device that recorded the original audio. Or the electronic equipment performs spectrum analysis on the original audio to obtain the original audio parameters of the original audio.
Step 204, acquiring a recording audio parameter of the recorded audio obtained by recording through the recording device; the recorded audio is obtained by recording the original audio played by the playing device by the recording device.
The recording device is used for recording the original audio played by the playing device. The number of the sound recording devices is not limited, and may be 1, 2, 3, or the like without being limited thereto. The sound effect of the recorded audio recorded by the plurality of recording devices is better. Recording the audio refers to recording the audio obtained by recording the original audio played by the playing device. The recorded audio parameters refer to audio parameters of the recorded audio. Likewise, the recorded audio parameter may be, but is not limited to, recorded audio loudness, recorded audio frequency, recorded audio gain, etc.
Specifically, the playing device plays the original audio, and the recording device can record the original audio played by the playing device in real time. The electronic equipment acquires the recording audio parameters of the recording audio. Since the audio playing parameters of the playing devices may be different, the recorded audio parameters of the recorded audio may also be different.
And step 206, adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters.
In particular, the comparison result is used to represent the difference between the original audio parameters and the recorded audio parameters. The comparison result may specifically be a difference or similarity, or the like. The audio playing parameters of the playing device are used for adjusting the playing effect of the original audio. For example, the greater the loudness of the playback device, the greater the loudness of the original audio that is played back. The electronic equipment adjusts the audio playing parameters of the playing device according to the parameter difference value of the original audio parameters and the recorded audio parameters. For example, when the value of the comparison result is larger, the adjustment range of the audio playing parameter of the playing device is larger. Or when the original audio parameter is larger than the recorded audio parameter, increasing the audio playing parameter of the playing device; and when the original audio parameters are less than or equal to the recorded audio parameters, reducing the audio playing parameters of the playing device.
Step 208, when the comparison result is within the preset audio parameter range, obtaining a target audio playing parameter of the playing device; the target audio playing parameters are used for playing the original audio through the playing device.
The preset audio parameter range can be set according to actual conditions. The preset audio parameter range may be specifically one interval. For example, the preset audio parameter range may be an interval of-1 to 1. The difference represented by the comparison result within the preset audio parameter range is smaller than the difference represented by the comparison result which is not within the preset audio parameter range.
Specifically, when the comparison result is within the preset audio parameter range, the electronic device obtains the corresponding audio playing parameter to obtain the target audio playing parameter. The playing device plays the original audio based on the target audio playing parameter. For example, the comparison result between the original audio parameter and the recorded audio parameter is in the interval of-2 to 2, and the preset audio parameter range is in the interval of-1 to 1, so that the electronic device needs to adjust the audio playing parameter of the playing device. Assuming that the comparison result is 1.5, the electronic device adjusts to obtain an audio playing parameter a based on 1.5. The electronic equipment judges whether the comparison result corresponding to the audio playing parameter a is in the range of-1 to 1, and when the comparison result is in the preset audio parameter range, the target audio playing parameter a is obtained.
In the audio playing parameter determining method in this embodiment, the audio playing parameter of the playing device is adjusted by obtaining the audio parameter of the original audio and the recorded audio parameter of the recorded audio, and according to the comparison result between the original audio parameter and the recorded audio parameter, that is, the original audio parameter and the recorded audio parameter are made to be close by adjusting the audio playing parameter of the playing device, so that the recorded audio can be made to be closer to the original audio to restore the original audio, and the fidelity of sound is improved.
In one embodiment, the original audio parameters include an original audio loudness; recording the audio parameter comprises recording audio loudness; the comparison result comprises a loudness comparison result; the audio playing parameters include full-band playing gain.
Adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters, comprising: and adjusting the full-band playing gain of the playing device according to the loudness comparison result of the original audio loudness and the recorded audio loudness.
When the comparison result is within the preset audio parameter range, obtaining the target audio playing parameter of the playing device, including: and when the loudness comparison result is within the preset loudness range, obtaining the target full-band playing gain of the playing device.
The loudness is also called volume, and is used to indicate the strength of sound. The loudness of the original audio is the loudness corresponding to the original audio. The original audio loudness is obtained by converting the magnitude of membrane vibrations of a recording device that records the original audio to loudness. Recording audio loudness is the loudness corresponding to the recorded audio. The loudness comparison result is used to represent the difference between the original audio loudness and the recorded audio loudness. The loudness comparison result may specifically be a difference or a ratio, etc. The full-band playback gain refers to a gain of sound of the entire band. Namely, the gains corresponding to all frequency points are the full-band playing gain. For example, the full band is 10 hz to 1000 hz, and the full band playing gain is a uniform gain corresponding to each frequency point in 10 hz to 1000 hz.
The preset loudness range can be set according to actual conditions. The preset loudness range may be specifically an interval. For example, the preset loudness range can be an interval of-1 to 1. The contrast results within the preset loudness range represent a smaller difference than the contrast results not within the preset loudness range.
Specifically, the electronic equipment continuously adjusts the full-band playing gain of the playing device according to the loudness comparison result between the original audio loudness and the recorded audio loudness when the comparison result is not within the preset audio parameter range; and obtaining the target full-band playing gain of the playing device until the loudness comparison result is within the preset loudness range.
In this embodiment, although the loudness of the audio at different time points is different, for the same audio, the full-band playing gain is the same, so that when the playing device plays the original audio, the recording device records the original audio played by the playing device in real time to obtain the loudness of the original audio and the loudness of the recorded audio at the same time, thereby obtaining a loudness comparison result at the same time for adjusting the audio playing parameters of the playing device.
According to the method for determining the audio playing parameters in the embodiment, the full-band playing gain of the playing device is adjusted according to the loudness comparison result of the original audio loudness and the recorded audio loudness, when the loudness comparison result is within the preset loudness range, the target full-band playing gain of the playing device is obtained, that is, the loudness comparison result can be within a range by adjusting the full-band playing gain of the playing device, so that the original audio and the recorded audio converge, the loudness of the original audio can be restored, and the fidelity of the loudness of the recorded audio is improved.
In one embodiment, adjusting the full-band playing gain of the playing device according to the loudness comparison result between the original audio loudness and the recorded audio loudness includes: when the recorded audio loudness is greater than the original audio loudness, reducing the full-band playing gain of the playing device; and when the recorded audio loudness is smaller than the original audio loudness, increasing the full-band playing gain of the playing device.
Specifically, when the recorded audio loudness is greater than the original audio loudness, it is indicated that the full-band playing gain of the playing device is too large, and therefore the full-band playing gain of the playing device needs to be reduced. When the recorded audio loudness is smaller than the original audio loudness, it indicates that the full-band playing gain of the playing device is too small, and therefore the full-band gain of the playing device needs to be increased. The manner of increasing and decreasing is not limited, and for example, may be increasing by one fixed value at a time or decreasing by one fixed value at a time, and the like. Or when the difference value between the recorded audio loudness and the original audio loudness exceeds a first difference value, adjusting the full-band gain of the playing device according to the first gain value; and when the difference value between the recorded audio loudness and the original audio loudness is smaller than the first difference value, adjusting the full-band gain of the playing device according to the second difference value, wherein the first gain value is larger than the second gain value.
In one embodiment, as shown in fig. 3, a schematic flow chart of adjusting the full-band gain of the playback device in one embodiment is shown. Obtaining original audio loudness B of original audio0. Initial gain value A of player device initialization0. The playback device plays the original audio based on the current full-band playback gain. The recording device records the original audio played by the playing device to obtain a recorded audio, and obtains a recorded audio loudness Bn corresponding to the recorded audio. Judgment of | Bn-B0Whether | is greater than h, where h is the loudness difference value. Namely, judgment of Bn-B0Whether it is greater than h or Bn-B0Less than-h. When | Bn-B0If h, the loudness comparison result is not in the preset loudness range, so that the audio frequency of the playing device needs to be adjustedAnd playing parameters. Specifically, the method is realized by stepping +/-Delta a. When B is presentn-B0When the sound intensity Bn is greater than the original sound intensity B0, the sound playing parameter An of the playing device is reduced to An-1-. DELTA.a. When B is presentn-B0When the sound volume of the recorded sound is less than or equal to the original sound volume, the sound playing parameter An of the playing device is increased to An-1And a. When the electronic device obtains the adjusted full-band playing gain. And returning to the step of playing with the current full-band playing gain. When | Bn-B0When | < h, the loudness comparison result | B is explainedn-B0And if the | is within the preset loudness range, finishing iteration to obtain a target full-band playing gain An of the playing device. The playback device plays the original audio with a target full-band playback gain An.
In the method for determining audio playing parameters in this embodiment, when the recorded audio loudness is greater than the original audio loudness, it is indicated that the full-band playing gain of the playing device is too large, and therefore the full-band playing gain of the playing device needs to be reduced; when the recorded audio loudness is smaller than the original audio loudness, it is indicated that the full-band playing gain of the playing device is too small, so that the full-band gain of the playing device needs to be increased, the original audio loudness and the recorded audio loudness converge, the playing effect of the original audio can be restored, and the fidelity of the recorded audio is improved.
In one embodiment, the original audio parameters comprise an original equalizer curve; recording the audio parameters comprises recording an equalizer curve; the audio playback parameters include playback equalizer curves.
Adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters, comprising: adjusting a playing equalizer curve of the playing device according to the target full-band playing gain to obtain an adjusted playing equalizer curve; the adjusted playing equalizer curve is used for audio playing and audio recording; and adjusting the adjusted playing equalizer curve according to the comparison result of the equalizer curve between the original equalizer curve and the recording equalizer curve.
When the comparison result is within the preset audio parameter range, obtaining the target audio playing parameter of the playing device, including: when the comparison result of the equalizer curve is within the preset frequency point gain range, obtaining a target playing equalizer curve of the playing device; the target playback equalizer curve is used to play the original audio through the playback device.
The Equalizer curve is an EQ (Equalizer) curve. The abscissa of the equalizer curve is frequency and the ordinate is gain. Namely, the equalizer curve is used for representing the relationship between each frequency point and the gain. Spectral analysis of the audio can yield an equalizer curve. The original equalizer curve refers to the equalizer curve of the original audio. A recorded equalizer curve refers to an equalizer curve that records audio. The playing equalizer curve refers to an equalizer curve when the playing device currently plays the original audio. The adjusted playing equalizer curve is a curve adjusted by the target full-band playing gain. And the adjusted playing equalizer curve is used for audio playing and audio recording. The equalizer curve comparison result may refer to an equalizer comparison result for an optional frequency point in the equalizer curve.
Specifically, since the target full-band play gain refers to a coarse play gain of all frequencies, the play equalizer curve of the play device needs to be adjusted according to the target full-band play gain to obtain the adjusted play equalizer curve. The adjusted playing equalizer curve is used for audio playing and audio recording, namely, the playing device plays audio based on the adjusted playing equalizer curve, and the recording device records the audio played based on the adjusted playing equalizer curve. And the electronic equipment adjusts the adjusted playing equalizer curve according to the comparison result of the equalizer curve between the original equalizer curve and the recorded equalizer curve until the target playing equalizer curve of the playing device is obtained when the comparison result of the equalizer curve is within the preset frequency point gain range. The playback device plays the original audio based on the target playback equalizer curve. For example, if the electronic device obtains the target full-band playback audio gain An and the playback device has its own playback equalizer curve EQ1, then the EQ1 is adjusted according to An to obtain the adjusted EQ 1. The playing device plays the original audio according to the adjusted EQ1, the recording device records the original audio played by the playing device according to the adjusted EQ1 to obtain a recorded audio Y, and then the adjusted EQ1 is adjusted according to an equalizer curve comparison result between a recorded equalizer curve of the recorded audio Y and the original equalizer curve of the original audio until a target playing equalizer curve EQn of the playing device is obtained when the equalizer curve comparison result is within a preset frequency point gain range.
In the embodiment, the electronic device acquires the original audio loudness of the original audio and the original equalizer curve; acquiring recording audio loudness of recorded audio obtained by recording through a recording device; the recorded audio is obtained by recording the original audio played by the playing device by the recording device; adjusting the audio playing loudness of the playing device according to the comparison result of the original audio loudness and the recorded audio loudness; when the loudness comparison result is within the preset loudness range, obtaining the target full-band playing gain of the playing device; the target full-band playback gain is used to play the original audio through the playback device. The electronic equipment adjusts a playing equalizer curve of the playing device according to the target full-band playing gain to obtain an adjusted playing equalizer curve; acquiring recording audio loudness of recorded audio obtained by recording through a recording device, wherein the recorded audio is obtained by recording original audio played by the playing device based on the adjusted playing equalizer curve; adjusting the adjusted playing equalizer curve according to an equalizer curve comparison result between the original equalizer curve and a recording equalizer curve for recording audio; and obtaining a target playing equalizer curve of the playing device until the comparison result of the equalizer curve is within the preset frequency point gain range. The target playback equalizer curve is used to play the original audio through the playback device.
In the method for determining audio playing parameters in this embodiment, a playing equalizer curve of a playing device is adjusted according to a target full-band playing gain to obtain an adjusted playing equalizer curve, that is, a playing equalizer curve of the playing device is coarsely adjusted; according to the comparison result of the equalizer curve between the original equalizer curve and the recording equalizer curve for recording the audio, the adjusted playing equalizer curve is adjusted, namely the adjusted playing equalizer curve is finely adjusted; when the comparison result of the equalizer curve is within the preset frequency point gain range, the target playing equalizer curve of the playing device is obtained, so that the tone colors of the original audio and the recorded audio can be converged, the playing effect of the original audio is restored, and the fidelity of the sound is improved.
In one embodiment, the comparison results comprise equalizer curve comparison results; the audio playing parameters comprise playing equalizer curves; the target audio playing parameters comprise a target playing equalizer curve; when the comparison result is within the preset audio parameter range, obtaining the target audio playing parameter of the playing device, including: and when the comparison result of the equalizer curve is within the preset frequency point gain range, obtaining a target playing equalizer curve of the playing device.
Specifically, the comparison result of the equalizer curve is within a preset frequency point gain range, which may mean that the comparison results of the frequency point gains of preset points on the equalizer curve are all within the preset frequency point gain range; or the frequency point gain comparison result of each point on the curve of the equalizer is within the preset frequency point gain range, and the like. For example, the frequency ranges corresponding to the original equalizer curve and the recorded equalizer curve are both 10 to 1000 hz, and when the gain comparison results corresponding to the frequencies of 10, 100, 200, 300, etc. are all within the preset frequency point gain range, it indicates that the equalizer curve comparison results are within the preset frequency point gain range.
In this embodiment, obtaining a recording audio parameter of a recording audio obtained by recording through at least two recording devices includes: and acquiring the recorded audio parameters of the recorded audio recorded by each recording device, and averaging at least two recorded audio parameters to obtain the recorded audio parameters of the recorded audio.
In the method for determining audio playing parameters in this embodiment, when the comparison result of the equalizer curve is within the preset frequency point gain range, it indicates that the difference between the original equalizer curve and the recorded equalizer is small, so that the target playing equalizer curve of the playing device can be obtained, and the original audio played by the playing device can be highly restored, so that the human ear can hear the original tone of the original audio.
In one embodiment, the original audio parameters comprise an original equalizer curve; recording the audio parameters includes recording an equalizer curve. Adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters, comprising:
and (a1) acquiring each preset frequency and the original frequency point gain corresponding to each preset frequency from the original equalizer curve.
The abscissa of the equalizer curve is frequency, and the ordinate is frequency point gain. The preset frequency refers to a frequency supported in both the original equalizer curve and the recorded equalizer curve. The preset frequency can be set as required. For example, the preset frequency may be 10 hz, 100 hz, 1000 hz, etc., but is not limited thereto. The original bin gain is used to represent the frequency gain.
Specifically, the electronic device obtains each preset frequency and an original frequency point gain corresponding to each preset frequency from an original equalizer curve. For example, the preset frequencies are 10 hz, 100 hz and 1000 hz, then 5dB (decibel) of the original frequency point gain corresponding to 10 hz, 10dB (decibel) of the original frequency point gain corresponding to 100 hz and-3 dB (decibel) of the original frequency point gain corresponding to 1000 hz are obtained.
And (a2) acquiring each preset frequency and the recording frequency point gain corresponding to each preset frequency from the recording equalizer curve.
Specifically, each preset frequency and the recording frequency point gain corresponding to each preset frequency are obtained from the recording equalizer curve. For example, if the preset frequencies are 10 hz, 100 hz, and 1000 hz, then 10dB (decibel) of the recording frequency point gain corresponding to 10 hz, 5dB (decibel) of the recording frequency point gain corresponding to 100 hz, and-6 dB (decibel) of the recording frequency point gain corresponding to 1000 hz are obtained.
And (a3) comparing the original frequency point gain corresponding to the preset frequency with the corresponding recording frequency point gain for each preset frequency to obtain a frequency point gain comparison result corresponding to the preset frequency.
And the frequency point gain comparison result is used for representing the gain difference corresponding to the same frequency. The frequency point gain comparison result may be specifically a gain difference value corresponding to the same frequency, or may be a gain difference ratio corresponding to the same frequency, and the like.
Specifically, for each preset frequency, the electronic device compares the original frequency point gain corresponding to the same preset frequency with the corresponding recorded frequency point gain to obtain a frequency point gain comparison result corresponding to the preset frequency. For example, presetting the frequency of 10 Hz, and comparing the original frequency point gain of 5dB with the recorded frequency point gain of 10dB to obtain the frequency point gain comparison result of 5dB corresponding to 10 Hz. Presetting the frequency of 100 Hz, and comparing the gain of the original frequency point of 5dB with the gain of the recorded frequency point of 10dB to obtain the frequency point gain comparison result of 5dB corresponding to 100 Hz. Presetting the frequency to 1000 Hz, and comparing the original frequency point gain of-3 dB (decibel) with the recorded frequency point gain of-6 dB (decibel) to obtain the frequency point gain comparison result of 3dB (decibel) corresponding to 1000 Hz.
And (a4) adjusting the frequency point playing gain corresponding to the preset frequency of the playing device according to the frequency point gain comparison result corresponding to the preset frequency.
Specifically, the electronic device adjusts the frequency point playing gain corresponding to the preset frequency point of the playing device according to the frequency point gain comparison result corresponding to each preset frequency. For example, the electronic device adjusts the frequency point playing gain corresponding to the frequency point gain of 10 hz of the playing device according to the frequency point gain comparison result of 5dB (decibel) corresponding to 10 hz. And the electronic equipment adjusts the frequency point playing gain corresponding to 100 Hz of the playing device according to the frequency point gain comparison result corresponding to 100 Hz of 5 dB. And the electronic equipment adjusts the frequency point playing gain corresponding to the 1000 Hz of the playing device according to the frequency point gain comparison result 3dB (decibel) corresponding to the 1000 Hz.
And when the original frequency point gain corresponding to the preset frequency is larger than the recording frequency point gain, increasing the frequency point playing gain corresponding to the preset frequency of the playing device. And when the original frequency point gain corresponding to the preset frequency is smaller than the recording frequency point gain, reducing the frequency point playing gain corresponding to the preset frequency of the playing device.
When the curve comparison result of the equalizer is within the preset frequency point gain range, obtaining a target playing equalizer curve of the playing device, including:
and (a5) obtaining the target frequency point playing gain corresponding to the preset frequency when the frequency point gain comparison result corresponding to the preset frequency is within the preset frequency point gain range.
Specifically, when the frequency point gain comparison result corresponding to the preset frequency is within the preset frequency point gain range, the electronic device outputs the target frequency point playing gain corresponding to the preset frequency. For example, if the preset frequency point gain range is within the range of-1 to 1, the electronic device outputs the target frequency point playing gain corresponding to the preset frequency.
And (a6) obtaining a target playing equalizer curve based on the target frequency point playing gain of each preset frequency.
Specifically, the electronic device reconstructs a target playing equalizer curve based on the target frequency point playing gain of each preset frequency. Or the electronic equipment adjusts the equalizer curve of the playing device based on the target frequency point playing gain of each preset frequency to obtain a target playing equalizer curve.
In the method for determining audio playing parameters in this embodiment, each preset frequency, and the corresponding original frequency point gain and the corresponding recording frequency point gain are obtained from the original equalizer curve and the recording equalizer curve, and the playing frequency point gain is adjusted for each preset frequency, so that a final target playing equalizer curve can be obtained, a sound effect obtained by recording by a recording device is closer to an original audio, and the sound reduction degree and the fidelity are improved.
In one embodiment, as shown in fig. 4, a flow chart of adjusting a playing equalizer curve of a playing device in one embodiment is shown. Original audio and an original equalizer curve for the original audio are obtained. The playing device plays the original audio with its own current equalizer curve. Specifically, at the time of initialization, the playing device may play the original audio with its own calibrated frequency response curve to reduce the sound distortion of the original audio when playing. The frequency domain calibration can be carried out on the playing device based on the spectrum characteristic of white noise, and a calibrated frequency response curve of the playing device is obtained. The recording device records the original audio played by the playing device according to the current equalizer curve, and acquires a recorded equalizer curve corresponding to the recorded audio. And judging whether the frequency point gain comparison result between the original equalizer curve and the current equalizer curve is within a preset frequency point gain range. And when the frequency point gain comparison result is not in the preset frequency point gain range, adjusting the frequency point playing gain corresponding to each preset frequency, and updating the current equalizer curve of the playing device based on the adjusted frequency point playing gain. And when the frequency point gain comparison result is within the preset frequency point gain range, obtaining a target playing equalizer curve.
In one embodiment, obtaining original audio parameters of original audio comprises: carrying out sound source positioning on a sound source through a sound recording device array consisting of at least two sound recording devices to obtain the sound source depth of the sound source; the sound source is a sounding sound source corresponding to the original audio; determining a sound source propagation loss based on the sound source depth; the original audio parameters are determined based on the sound source propagation loss and the audio parameters of the original audio.
Wherein, the sound source refers to a sound source corresponding to the original audio. For example, the sound source is a firework sound, a musical sound played live, or the like. The sound recording device may be any sound recording device. The recording device array formed by at least two recording devices forms a Beam Forming (BF) microphone array by utilizing at least two recording devices. The sound source depth is used for representing the distance between the recording device array and the sound source. For example, 5 meters, 10 meters, etc. are not limited thereto.
Specifically, the sound source is positioned through a sound recording device array formed by at least two sound recording devices, and the sound source depth is obtained. The electronic device determines a sound source propagation loss based on the sound source depth. The specific sound source depth is positively correlated with the sound source propagation loss. The greater the sound source depth, the greater the sound source propagation loss; the smaller the sound source depth, the smaller the sound source propagation loss. The electronic device may add the sound source propagation loss to the audio parameters of the original audio to obtain the original audio parameters. For example, the electronic device obtains the sound source depth of the sound source by performing sound source localization through a beam forming microphone array composed of a microphone a and a microphone B. The electronic equipment determines that the sound source propagation loss is 5dB based on the sound source depth, the audio parameter of the original audio frequency is 2dB, and then the original audio parameter is 7dB based on the sound source propagation loss of 5dB and the audio parameter of the original audio frequency is 2 dB. In a scenario where, for example, the sound source is firework and the original audio is recorded by user a on the bank, after the sound source propagation loss is determined, based on the sound source propagation loss and the audio parameters of the original audio recorded by user a on the bank, the original audio parameters of the sound source can be determined, which are equivalent to the original audio parameters obtained by user a recording beside firework.
In the method for determining audio playing parameters in this embodiment, a sound source is located through a recording device array formed by at least two recording devices to obtain a sound source depth of the sound source, a sound source propagation loss is determined based on the sound source depth, and an original audio parameter is determined based on the sound source propagation loss and an audio parameter of an original audio, so that the propagation loss caused in the sound source propagation process can be compensated, and the reduction of the sound source audio and the loudness at the audio generation position can be realized.
In one embodiment, the audio playing parameter determining method further includes: recording white noise through a recording device, and performing spectrum analysis on the white noise to obtain the spectrum characteristic of the white noise; carrying out frequency domain calibration on the recording device based on the spectrum characteristic of the white noise to obtain a frequency response curve of the recording device; and recording audio based on the frequency response curve.
Specifically, the electronic device records white noise through a recording device, and performs spectrum analysis on the white noise to obtain the spectrum characteristic of the white noise. The electronic equipment calibrates the frequency spectrum characteristic of the recording device based on the frequency spectrum characteristic of the white noise, namely calibrates the frequency response curve of the recording device into a straight line to obtain the frequency response curve of the recording device. Namely, the frequency response curve of the recording device is characterized in that the specific frequency point is not enhanced and attenuated, and the maximum reduction of the tone of the recorded sound is ensured. Namely, the gain of the high gain frequency point of the sound recording device is reduced, and the gain of the low gain frequency point of the sound recording device is increased. And recording audio based on the frequency response curve, and acquiring recorded audio parameters obtained by recording.
In one embodiment, as shown in fig. 5, a schematic flowchart of the calibration of the recording device in one embodiment is shown. In which the calibration procedure of two recording devices is shown. White noise is recorded through the recording device 1 and the recording device 2, and the electronic equipment performs spectrum analysis on the white noise to obtain the spectrum characteristic of the white noise. The electronic equipment calibrates the frequency domain of the recording device based on the spectrum characteristic of the white noise to obtain a frequency response curve of the recording device. The electronic equipment stores a frequency domain calibration coefficient matrix corresponding to the frequency response curve of each sound recording device, namely a frequency domain double microphone calibration coefficient matrix.
According to the method for determining the audio playing parameters, white noise is recorded through the recording device, spectrum analysis is conducted on the white noise, the spectrum characteristic of the white noise is obtained, the power spectral densities of the white noise in all frequency bands are the same, and gains of all frequency points are basically consistent, so that the spectrum characteristic calibration is conducted on the recording device based on the spectrum characteristic of the white noise, a frequency response curve of the recording device is obtained, the recording device records the recorded audio based on the frequency response curve, and the maximum reduction of the sound timbre of the recorded sound can be guaranteed.
In one embodiment, the audio playing parameter determining method further includes: when the comparison result is not within the preset audio parameter range, adjusting based on the comparison result of the original audio parameter and the recorded audio parameter to obtain an adjusted audio playing parameter; and playing and recording the audio based on the adjusted audio playing parameter, and returning to the step of acquiring the recorded audio parameter of the recorded audio recorded by the recording device. .
Specifically, when the comparison result is not within the preset audio parameter range, it indicates that the comparison result is relatively large, and the electronic device adjusts based on the comparison result of the original audio parameter and the recorded audio parameter to obtain the adjusted audio playing parameter. And the playing device plays the original audio according to the adjusted audio playing parameters, the recording device records the original audio played according to the adjusted audio playing parameters, and the step of obtaining the recorded audio parameters of the recorded audio recorded by the recording device is returned to. And then, comparing the original audio parameters with the recorded audio parameters again, and adjusting the audio playing parameters of the playing device until the comparison result is within the preset audio parameter range, so as to obtain the target audio playing parameters of the playing device.
In the method for determining audio playing parameters in this embodiment, when the comparison result is not within the preset audio parameter range, adjustment is performed based on the comparison result of the original audio parameter and the recorded audio parameter to obtain an adjusted audio playing parameter, and audio playing and audio recording are performed based on the adjusted audio playing parameter, that is, audio playing and audio recording need to be performed cyclically to cyclically adjust the audio playing parameter, until the comparison result is within the preset audio parameter range, a target audio playing parameter of a playing device is obtained, so that the fidelity of sound is improved.
In one embodiment, a scenario is provided as follows: the recording device is located in the electronic equipment, the playing device is connected with the electronic equipment, and the sound source is firework. The electronic device records the pyrotechnical sound to form the raw audio and obtains raw audio parameters of the raw audio. The recording device can be similar to the human ear of the user A, the sound heard by the human ear is the recorded audio, and the parameter of the recorded audio heard by the human ear is the recorded audio parameter. When the playing device plays the original audio, the ear of the user a can determine whether the heard sound is consistent with the original heard sound, if not, the playing audio parameter of the playing device needs to be adjusted until the heard sound is the same as the original audio, the playing audio parameter of the playing device is obtained, and the sound effect of the played original audio is very close to the original audio.
In one embodiment, as shown in fig. 6, a system framework flowchart of a method for determining audio playing parameters in one embodiment is shown. Recording by a recording device: and recording the sound source through a recording device to obtain the original audio. Calibrating a recording device: the white noise is recorded through the recording device, spectrum analysis is carried out on the white noise to obtain the spectrum characteristic of the white noise, and the frequency domain calibration is carried out on the recording device based on the spectrum characteristic of the white noise to obtain the frequency response curve of the recording device. And (3) full-band gain calibration: adjusting the full-band playing gain of the playing device according to the comparison result of the original audio loudness and the recorded audio loudness; and when the loudness comparison result is within the preset audio parameter range, obtaining the target audio playing parameter of the playing device. Calibrating an equalizer curve: adjusting a playing equalizer curve of the playing device according to the target full-band playing gain to obtain an adjusted playing equalizer curve; adjusting the adjusted playing equalizer curve according to an equalizer curve comparison result between the original equalizer curve and the recording equalizer curve; and when the comparison result of the equalizer curve is within the preset frequency point gain range, obtaining a target playing equalizer curve of the playing device. And (3) downlink playing: the original audio is played with the result of the target playback equalizer curve by the playback device. And for different original audios, corresponding target audio playing parameters exist. I.e. the target audio playback parameters are difficult to share. The utility model provides a for the scheme of the true reduction audio frequency timbre and loudness of user's at utmost, when the user recorded audio frequency, the sound source file of recording can not receive turning EQ curve and the influence of volume level curve, the loudness and the timbre of audio frequency at that time of reappearing that can the maximum fidelity. The technical scheme can be applied to a sound source restoring machine scheme without human intervention, and the problem of inconformity of timbre and loudness caused by subjective difference of human ears is solved.
In one embodiment, an audio playing parameter determination method comprises the following steps:
and (b1) positioning the sound source through a sound recording device array formed by at least two sound recording devices to obtain the sound source depth of the sound source. The sound source is a sound source corresponding to the original audio.
And (b2) determining the sound source propagation loss based on the sound source depth.
And (b3) determining original audio parameters based on the sound source propagation loss and the audio parameters of the original audio.
And (b4) recording white noise through the recording device, and performing spectrum analysis on the white noise to obtain the spectrum characteristic of the white noise.
And (b5) calibrating the frequency domain of the sound recording device based on the spectrum characteristic of the white noise to obtain a frequency response curve of the sound recording device.
And (b6) acquiring the recorded audio parameters of the recorded audio obtained by recording the recording device based on the frequency response curve.
And (b7), when the recorded audio loudness is greater than the original audio loudness, reducing the full-band playing gain of the playing device.
And (b8), when the recorded audio loudness is smaller than the original audio loudness, increasing the full-band playing gain of the playing device.
And (b9) when the loudness comparison result is in the preset loudness range, obtaining the target full-band playing gain of the playing device.
Step (b10), adjusting the playing equalizer curve of the playing device according to the target full-band playing gain to obtain an adjusted playing equalizer curve; and the adjusted playing equalizer curve is used for audio playing and audio recording.
And (b11) acquiring each preset frequency and the original frequency point gain corresponding to each preset frequency from the original equalizer curve.
And (b12) acquiring each preset frequency and the recording frequency point gain corresponding to each preset frequency from the recording equalizer curve.
And (b13) comparing the original frequency point gain corresponding to the preset frequency with the corresponding recording frequency point gain for each preset frequency to obtain a frequency point gain comparison result corresponding to the preset frequency.
And (b14) adjusting the frequency point playing gain corresponding to the preset frequency of the adjusted playing equalizer curve according to the frequency point gain comparison result corresponding to the preset frequency.
And (b15) when the frequency point gain comparison result corresponding to the preset frequency is within the preset frequency point gain range, obtaining the target frequency point playing gain corresponding to the preset frequency.
And (b16) obtaining a target playing equalizer curve based on the target frequency point playing gain of each preset frequency, wherein the target playing equalizer curve is used for playing the original audio through a playing device.
Step (b17), when the comparison result is not in the preset audio parameter range, adjusting based on the comparison result of the original audio parameter and the recorded audio parameter to obtain an adjusted audio playing parameter; and playing and recording the audio based on the adjusted audio playing parameter, and returning to the step of acquiring the recorded audio parameter of the recorded audio recorded by the recording device.
The audio parameter determination method in the embodiment provides a scheme for truly restoring the tone and the loudness of the audio to the maximum extent for the user, when the user records the audio, the recorded sound source file is not influenced by the EQ curve and the volume level curve, and the loudness and the tone of the audio at that time can be reproduced with the maximum fidelity; the technical scheme can be applied to a sound source restoring machine scheme without human intervention, and the problem of inconformity of timbre and loudness caused by subjective difference of human ears is solved.
In one embodiment, as shown in fig. 7, a flowchart of an audio playing method in one embodiment is shown. An audio playback method, comprising:
step 702, acquiring a target audio playing parameter of a target audio; the target audio playing parameter is an audio playing parameter corresponding to the playing device when the comparison result is within a preset audio parameter range; the comparison result is obtained by comparing the original audio parameters of the target audio with the recorded audio parameters of the recorded audio in advance; the audio playing parameters are adjusted based on the comparison result; the recorded audio is obtained by recording the target audio played by the playing device by the recording device.
Specifically, target audio playing parameters corresponding to the target audio are stored in the electronic device in advance. Before obtaining the target audio playing parameter of the target audio, the electronic equipment obtains the target audio played by the recorded audio recording and playing device to obtain the recorded audio. The electronic equipment compares the original audio parameters of the target audio with the recorded audio parameters of the recorded audio to obtain a comparison result, and adjusts audio playing parameters according to the comparison result; and when the comparison result is within the preset audio parameter range, acquiring the audio playing parameter corresponding to the playing device at that time as the target audio playing parameter.
Step 704, playing the target audio according to the target audio playing parameter by the playing device.
Specifically, the electronic device plays the target audio according to the target audio playing parameter through the playing device.
In the audio playing method in this embodiment, the target audio playing parameter of the target audio is obtained, and the target audio is played according to the target audio playing parameter through the playing device, so that the tone effect of the target audio can be restored, and the fidelity of the sound is improved.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 8 is a block diagram of an audio playback parameter determining apparatus according to an embodiment. As shown in fig. 8, an apparatus for determining audio playing parameters includes a first obtaining module 802, a second obtaining module 804, an adjusting module 806, and a determining module 808, where:
a first obtaining module 802, configured to obtain an original audio parameter of an original audio;
a second obtaining module 804, configured to obtain a recorded audio parameter of a recorded audio obtained by recording with the recording device; the recorded audio is obtained by recording the original audio played by the playing device by the recording device;
an adjusting module 806, configured to adjust an audio playing parameter of the playing device according to a comparison result between the original audio parameter and the recorded audio parameter;
a determining module 808, configured to obtain a target audio playing parameter of the playing device when the comparison result is within a preset audio parameter range; the target audio playing parameters are used for playing the original audio through the playing device.
The audio playing parameter determining device in this embodiment adjusts the audio playing parameter of the playing device by obtaining the audio parameter of the original audio and the recorded audio parameter of the recorded audio, and according to the comparison result between the original audio parameter and the recorded audio parameter, that is, the original audio parameter and the recorded audio parameter are made to be close by adjusting the audio playing parameter of the playing device, so that the recorded audio is made to be closer to the original audio to restore the original audio, and the fidelity of the sound is improved.
In one embodiment, the original audio parameters include an original audio loudness; recording the audio parameter comprises recording audio loudness; the comparison result comprises a loudness comparison result; the audio playing parameters include full-band playing gain. The adjusting module 806 is configured to adjust a full-band playing gain of the playing device according to a loudness comparison result between the original audio loudness and the recorded audio loudness. The determining module 808 is configured to obtain a target full-band playing gain of the playing device when the loudness comparison result is within a preset loudness range.
The audio playing parameter determining device in this embodiment adjusts the full-band playing gain of the playing device according to the loudness comparison result between the original audio loudness and the recorded audio loudness, and when the loudness comparison result is within the preset loudness range, the target full-band playing gain of the playing device is obtained, that is, the loudness comparison result can be within a range by adjusting the full-band playing gain of the playing device, so that the original audio and the recorded audio converge, the loudness of the original audio can be restored, and the fidelity of the loudness of the recorded audio is improved.
In one embodiment, the adjusting module 806 is configured to reduce a full-band playing gain of the playing device when the recorded audio loudness is greater than the original audio loudness; and when the recorded audio loudness is smaller than the original audio loudness, increasing the full-band playing gain of the playing device.
In the audio playing parameter determining apparatus in this embodiment, when the recorded audio loudness is greater than the original audio loudness, it indicates that the full-band playing gain of the playing device is too large, and therefore the full-band playing gain of the playing device needs to be reduced; when the recorded audio loudness is smaller than the original audio loudness, it is indicated that the full-band playing gain of the playing device is too small, so that the full-band gain of the playing device needs to be increased, the original audio loudness and the recorded audio loudness converge, the playing effect of the original audio can be restored, and the fidelity of the recorded audio is improved.
In one embodiment, the original audio parameters comprise an original equalizer curve; recording the audio parameters comprises recording an equalizer curve; the audio playback parameters include playback equalizer curves. The adjusting module 806 is configured to adjust a playing equalizer curve of the playing device according to the target full-band playing gain, so as to obtain an adjusted playing equalizer curve; and adjusting the adjusted playing equalizer curve according to the comparison result of the equalizer curve between the original equalizer curve and the recording equalizer curve, wherein the adjusted playing equalizer curve is used for audio playing and audio recording. The determining module 808 is configured to obtain a target playing equalizer curve of the playing device when the equalizer curve comparison result is within the preset frequency point gain range; the target playback equalizer curve is used to play the original audio through the playback device.
The audio playing parameter determining apparatus in this embodiment adjusts the playing equalizer curve of the playing device according to the target full-band playing gain to obtain an adjusted playing equalizer curve, that is, the playing equalizer curve of the playing device is coarsely adjusted; according to the comparison result of the equalizer curve between the original equalizer curve and the recording equalizer curve for recording the audio, the adjusted playing equalizer curve is adjusted, namely the adjusted playing equalizer curve is finely adjusted; when the comparison result of the equalizer curve is within the preset frequency point gain range, the target playing equalizer curve of the playing device is obtained, so that the tone colors of the original audio and the recorded audio can be converged, the playing effect of the original audio is restored, and the fidelity of the sound is improved.
In one embodiment, the comparison results comprise equalizer curve comparison results; the audio playing parameters comprise playing equalizer curves; the target audio playback parameters include a target playback equalizer curve. The determining module 808 is configured to obtain a target playing equalizer curve of the playing device when the equalizer curve comparison result is within the preset frequency point gain range.
In the audio playing parameter determining apparatus in this embodiment, when the comparison result of the equalizer curve is within the preset frequency point gain range, it indicates that the difference between the original equalizer curve and the recorded equalizer is small, so that the target playing equalizer curve of the playing device can be obtained, and the original audio played by the playing device has a high degree of restitution, so that the human ear can hear the original tone of the original audio.
In one embodiment, the original audio parameters comprise an original equalizer curve; recording the audio parameters includes recording an equalizer curve. The adjusting module 806 is configured to obtain each preset frequency and an original frequency point gain corresponding to each preset frequency from the original equalizer curve; acquiring each preset frequency and recording frequency point gain corresponding to each preset frequency from the recording equalizer curve; for each preset frequency, comparing the original frequency point gain corresponding to the preset frequency with the corresponding recording frequency point gain to obtain a frequency point gain comparison result corresponding to the preset frequency; adjusting the frequency point playing gain corresponding to the preset frequency of the playing device according to the frequency point gain comparison result corresponding to the preset frequency; when the frequency point gain comparison result corresponding to the preset frequency is within the preset frequency point gain range, obtaining a target frequency point playing gain corresponding to the preset frequency; and obtaining a target playing equalizer curve based on the target frequency point playing gain of each preset frequency.
The audio playing parameter determining device in this embodiment obtains each preset frequency, and the corresponding original frequency point gain and the corresponding recording frequency point gain from the original equalizer curve and the recording equalizer curve, and adjusts the playing frequency point gain for each preset frequency, so that a final target playing equalizer curve can be obtained, the sound effect obtained by recording the recording device is closer to the original audio, and the sound reduction and the fidelity are improved.
In one embodiment, the first obtaining module 802 is configured to perform sound source localization on a sound source through a sound recording device array formed by at least two sound recording devices, so as to obtain a sound source depth of the sound source; the sound source is a sounding sound source corresponding to the original audio; determining a sound source propagation loss based on the sound source depth; the original audio parameters are determined based on the sound source propagation loss and the audio parameters of the original audio.
The audio playing parameter determining apparatus in this embodiment performs sound source localization on a sound source through a recording device array formed by at least two recording devices to obtain a sound source depth of the sound source, determines a sound source propagation loss based on the sound source depth, and determines an original audio parameter based on the sound source propagation loss and an audio parameter of an original audio, so that the propagation loss caused in the sound source propagation process can be compensated, and the reduction of an audio generation position, i.e., a sound source audio and a loudness can be realized.
In one embodiment, the second obtaining module 804 is configured to record white noise through a recording device, perform spectrum analysis on the white noise, and obtain a spectrum characteristic of the white noise; carrying out frequency domain calibration on the recording device based on the spectrum characteristic of the white noise to obtain a frequency response curve of the recording device; and recording audio based on the frequency response curve.
The audio playing parameter determining device in this embodiment records white noise through the recording device, performs spectrum analysis on the white noise to obtain the spectral characteristics of the white noise, and because the power spectral densities of the white noise in each frequency band are the same and the gains of each frequency point are basically the same, the spectral characteristics of the recording device are calibrated based on the spectral characteristics of the white noise to obtain the frequency response curve of the recording device, and the recording device records the recorded audio based on the frequency response curve to obtain the recorded audio, which can ensure that the sound tone of the recorded sound is restored to the maximum extent.
In an embodiment, the second obtaining module 804 is further configured to, when the comparison result is not within the preset audio parameter range, perform adjustment based on the comparison result of the original audio parameter and the recorded audio parameter to obtain an adjusted audio playing parameter; and performing audio playing and audio recording based on the adjusted audio playing parameters, and obtaining recording audio parameters of the recorded audio recorded by the recording device.
In the audio playing parameter determining apparatus in this embodiment, when the comparison result is not within the preset audio parameter range, the comparison result based on the original audio parameter and the recorded audio parameter is adjusted to obtain an adjusted audio playing parameter, and audio playing and audio recording are performed based on the adjusted audio playing parameter, that is, the audio playing and audio recording need to be performed cyclically to adjust the audio playing parameter, until the comparison result is within the preset audio parameter range, a target audio playing parameter of the playing device is obtained, and the fidelity of sound is improved.
Fig. 9 is a block diagram of an audio playback device according to an embodiment. As shown in fig. 9, an audio playing apparatus includes a target audio playing parameter obtaining module 902 and a playing module 904, where:
a target audio playing parameter obtaining module 902, configured to obtain a target audio playing parameter of a target audio; the target audio playing parameter is an audio playing parameter corresponding to the playing device when the comparison result is within a preset audio parameter range; the comparison result is obtained by comparing the original audio parameters of the target audio with the recorded audio parameters of the recorded audio in advance; the audio playing parameters are adjusted based on the comparison result; the recorded audio is obtained by recording the target audio played by the playing device by the recording device;
and a playing module 904, configured to play the target audio according to the target audio playing parameter through a playing device.
The audio playing apparatus in this embodiment can restore the tone effect of the target audio and improve the fidelity of sound by acquiring the target audio playing parameter of the target audio and playing the target audio according to the target audio playing parameter through the playing device.
The division of the modules in the audio playing parameter determining apparatus and the audio playing apparatus is merely for illustration, and in other embodiments, the audio playing parameter determining apparatus and the audio playing apparatus may be divided into different modules as needed to complete all or part of the functions of the audio playing parameter determining apparatus and the audio playing apparatus.
For specific limitations of the audio playing parameter determining apparatus and the audio playing apparatus, reference may be made to the above limitations of the audio playing parameter determining method, which is not described herein again. The audio playing parameter determining device and each module in the audio playing device may be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 10, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing an audio playback parameter determination method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the audio playing parameter determination device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
An electronic device comprises a memory, a processor, a recording device and a playing device, wherein the recording device is used for recording audio, and the playing device is used for playing the audio; the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the audio playback parameter determination method.
An electronic device comprises a memory, a processor, a recording device and a playing device, wherein the recording device is used for recording audio, and the playing device is used for playing the audio; the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the audio playback method.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the audio playback parameter determination method.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the audio playback method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform an audio playback parameter determination method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform an audio playback method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. An audio playing parameter determination method, comprising:
acquiring original audio parameters of original audio;
acquiring a recording audio parameter of a recording audio recorded by a recording device; the recorded audio is obtained by the recording device recording the original audio played by the playing device;
adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters;
when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device; the target audio playing parameter is used for playing the original audio through the playing device.
2. The method of claim 1, wherein the original audio parameters comprise an original audio loudness; the recorded audio parameters comprise recorded audio loudness; the comparison results comprise loudness comparison results; the audio playing parameters comprise full-band playing gains;
the adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters includes:
adjusting the full-band playing gain of the playing device according to the loudness comparison result of the original audio loudness and the recorded audio loudness;
when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device, including:
and when the loudness comparison result is within a preset loudness range, obtaining the target full-band playing gain of the playing device.
3. The method of claim 2, wherein the adjusting the full-band playback gain of the playback device according to the loudness comparison result of the original audio loudness and the recorded audio loudness comprises:
when the recorded audio loudness is greater than the original audio loudness, reducing the full-band playing gain of the playing device;
and when the recorded audio loudness is smaller than the original audio loudness, increasing the full-band playing gain of the playing device.
4. The method of claim 2 or 3, wherein the original audio parameters comprise an original equalizer curve; the recorded audio parameters comprise a recorded equalizer curve; the audio playing parameters comprise a playing equalizer curve;
the adjusting the audio playing parameters of the playing device according to the comparison result between the original audio parameters and the recorded audio parameters further comprises:
adjusting a playing equalizer curve of the playing device according to the target full-band playing gain to obtain an adjusted playing equalizer curve; the adjusted playing equalizer curve is used for audio playing and audio recording;
adjusting the adjusted playing equalizer curve according to an equalizer curve comparison result between the original equalizer curve and the recorded equalizer curve of the recorded audio;
when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device, further comprising:
and when the comparison result of the equalizer curve is within a preset frequency point gain range, obtaining a target playing equalizer curve of the playing device.
5. The method of claim 1, wherein the comparison results comprise equalizer curve comparison results; the audio playing parameters comprise a playing equalizer curve; the target audio playing parameters comprise a target playing equalizer curve;
when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device, including:
and when the comparison result of the equalizer curve is within a preset frequency point gain range, obtaining a target playing equalizer curve of the playing device.
6. The method of claim 5, wherein the original audio parameters comprise an original equalizer curve; the recorded audio parameters comprise a recorded equalizer curve;
the adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters includes:
acquiring each preset frequency and the original frequency point gain corresponding to each preset frequency from the original equalizer curve;
acquiring each preset frequency and recording frequency point gain corresponding to each preset frequency from the recording equalizer curve;
for each preset frequency, comparing the original frequency point gain corresponding to the preset frequency with the corresponding recording frequency point gain to obtain a frequency point gain comparison result corresponding to the preset frequency;
adjusting the frequency point playing gain corresponding to the preset frequency of the playing device according to the frequency point gain comparison result corresponding to the preset frequency;
when the comparison result of the equalizer curve is within the preset frequency point gain range, obtaining a target playing equalizer curve of the playing device, including:
when the frequency point gain comparison result corresponding to the preset frequency is within a preset frequency point gain range, obtaining a target frequency point playing gain corresponding to the preset frequency;
and obtaining a target playing equalizer curve based on the target frequency point playing gain of each preset frequency.
7. The method of any one of claims 1, 2, 3, 5, and 6, wherein obtaining original audio parameters of original audio comprises:
carrying out sound source positioning on a sound source through a sound recording device array consisting of at least two sound recording devices to obtain the sound source depth of the sound source; the sound source is a sound production sound source corresponding to the original audio;
determining a sound source propagation loss based on the sound source depth;
determining an original audio parameter based on the sound source propagation loss and an audio parameter of the original audio.
8. The method of any one of claims 1, 2, 3, 5, 6, further comprising:
recording white noise through the recording device, and performing spectrum analysis on the white noise to obtain the spectrum characteristic of the white noise;
carrying out frequency domain calibration on the recording device based on the spectrum characteristic of white noise to obtain a frequency response curve of the recording device;
and recording audio based on the frequency response curve.
9. The method of any one of claims 1, 2, 3, 5, 6, further comprising:
when the comparison result is not within the preset audio parameter range, adjusting based on the comparison result of the original audio parameter and the recorded audio parameter to obtain an adjusted audio playing parameter;
and performing audio playing and audio recording based on the adjusted audio playing parameters, and returning to the step of acquiring the recorded audio parameters of the recorded audio recorded by the recording device.
10. An audio playing method, the method comprising:
acquiring a target audio playing parameter of a target audio; the target audio playing parameter is an audio playing parameter corresponding to the playing device when the comparison result is within a preset audio parameter range; the comparison result is obtained by comparing the original audio parameters of the target audio with the recorded audio parameters of the recorded audio in advance; the audio playing parameters are adjusted based on the comparison result; the recorded audio is obtained by recording the target audio played by the playing device by the recording device;
and playing the target audio according to the target audio playing parameters through the playing device.
11. An audio playback parameter determination apparatus, comprising:
the first acquisition module is used for acquiring original audio parameters of original audio;
the second acquisition module is used for acquiring the recorded audio parameters of the recorded audio which is obtained by recording through the recording device; the recorded audio is obtained by the recording device recording the original audio played by the playing device;
the adjusting module is used for adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters;
the determining module is used for obtaining a target audio playing parameter of the playing device when the comparison result is within a preset audio parameter range; the target audio playing parameter is used for playing the original audio through the playing device.
12. An electronic device is characterized by comprising a memory, a processor, a recording device and a playing device, wherein the recording device is used for recording audio, and the playing device is used for playing the audio;
a computer program stored in the memory, the computer program, when executed by the processor, causing the processor to perform the steps of:
acquiring original audio parameters of original audio;
acquiring a recording audio parameter of a recording audio obtained by recording through the recording device;
adjusting the audio playing parameters of the playing device according to the comparison result of the original audio parameters and the recorded audio parameters;
when the comparison result is within a preset audio parameter range, obtaining a target audio playing parameter of the playing device; the target audio playing parameter is used for playing the original audio through the playing device.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 10.
CN202011337858.9A 2020-11-25 2020-11-25 Audio playing parameter determination method and device, electronic equipment and readable storage medium Pending CN112463107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011337858.9A CN112463107A (en) 2020-11-25 2020-11-25 Audio playing parameter determination method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011337858.9A CN112463107A (en) 2020-11-25 2020-11-25 Audio playing parameter determination method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112463107A true CN112463107A (en) 2021-03-09

Family

ID=74798962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011337858.9A Pending CN112463107A (en) 2020-11-25 2020-11-25 Audio playing parameter determination method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112463107A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553022A (en) * 2021-07-16 2021-10-26 Oppo广东移动通信有限公司 Equipment adjusting method and device, mobile terminal and storage medium
CN116994608A (en) * 2023-09-28 2023-11-03 中国传媒大学 Method, system and equipment for processing mother belt sound and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828254A (en) * 2016-05-09 2016-08-03 青岛海信电器股份有限公司 Audio adjusting method and device
CN107231598A (en) * 2017-06-21 2017-10-03 惠州Tcl移动通信有限公司 A kind of adaptive audio adjustment method, system and mobile terminal
US20180275951A1 (en) * 2017-03-21 2018-09-27 Kabushiki Kaisha Toshiba Speech recognition device, speech recognition method and storage medium
CN111370024A (en) * 2020-02-21 2020-07-03 腾讯科技(深圳)有限公司 Audio adjusting method, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828254A (en) * 2016-05-09 2016-08-03 青岛海信电器股份有限公司 Audio adjusting method and device
US20180275951A1 (en) * 2017-03-21 2018-09-27 Kabushiki Kaisha Toshiba Speech recognition device, speech recognition method and storage medium
CN107231598A (en) * 2017-06-21 2017-10-03 惠州Tcl移动通信有限公司 A kind of adaptive audio adjustment method, system and mobile terminal
CN111370024A (en) * 2020-02-21 2020-07-03 腾讯科技(深圳)有限公司 Audio adjusting method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553022A (en) * 2021-07-16 2021-10-26 Oppo广东移动通信有限公司 Equipment adjusting method and device, mobile terminal and storage medium
CN116994608A (en) * 2023-09-28 2023-11-03 中国传媒大学 Method, system and equipment for processing mother belt sound and storage medium

Similar Documents

Publication Publication Date Title
US10104485B2 (en) Headphone response measurement and equalization
KR101342296B1 (en) Neural network filtering techniques for compensating linear and non-linear distortion of an audio transducer
US6721428B1 (en) Automatic loudspeaker equalizer
CN111031445B (en) Volume compensation method and device, computer equipment and storage medium
US9577595B2 (en) Sound processing apparatus, sound processing method, and program
US20130163766A1 (en) Spectrally Uncolored Optimal Crosstalk Cancellation For Audio Through Loudspeakers
US10555108B2 (en) Filter generation device, method for generating filter, and program
US20120230501A1 (en) auditory test and compensation method
CN112463107A (en) Audio playing parameter determination method and device, electronic equipment and readable storage medium
CN104811155A (en) Balance device adjusting method and device
CN112165670B (en) Dynamic adjusting method and device for sound effect frequency response parameters, intelligent terminal and storage medium
EP4139915A1 (en) Managing characteristics of active noise reduction
EP3871212B1 (en) Tuning method, manufacturing method, computer-readable storage medium and tuning system
WO2022174727A1 (en) Howling suppression method and apparatus, hearing aid, and storage medium
WO2022048334A1 (en) Testing method and apparatus, earphones, and readable storage medium
US20170373656A1 (en) Loudspeaker-room equalization with perceptual correction of spectral dips
SE2150611A1 (en) Voice optimization in noisy environments
US20210326099A1 (en) Systems and methods for providing content-specific, personalized audio replay on consumer devices
EP3603106B1 (en) Dynamically extending loudspeaker capabilities
US20210384879A1 (en) Acoustic signal processing device, acoustic signal processing method, and non-transitory computer-readable recording medium therefor
US11950089B2 (en) Perceptual bass extension with loudness management and artificial intelligence (AI)
US11539339B2 (en) Audio signal processing method and apparatus for frequency spectrum correction
CN117412222A (en) Space self-adaptive acoustic radiation calibration method and system based on generalized transfer function
KR20220018540A (en) Adaptive sound equalization system and method for personal hearing device
CN116709155A (en) Horn self-calibration method, system 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