CN116156413A - Audio playing method, device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN116156413A
CN116156413A CN202310130400.3A CN202310130400A CN116156413A CN 116156413 A CN116156413 A CN 116156413A CN 202310130400 A CN202310130400 A CN 202310130400A CN 116156413 A CN116156413 A CN 116156413A
Authority
CN
China
Prior art keywords
signal
channel signal
right channel
signals
output signals
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
CN202310130400.3A
Other languages
Chinese (zh)
Inventor
何志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yibin Jimi Photoelectric Co Ltd
Original Assignee
Yibin Jimi Photoelectric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yibin Jimi Photoelectric Co Ltd filed Critical Yibin Jimi Photoelectric Co Ltd
Priority to CN202310130400.3A priority Critical patent/CN116156413A/en
Publication of CN116156413A publication Critical patent/CN116156413A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

Abstract

The application discloses an audio playing method, an audio playing device, electronic equipment and a storage medium. In the multi-channel surround sound system, when the input audio file is a two-channel stereo signal, the rear left channel sound box, the rear right channel sound box, the middle sound box and the ultra-low sound box are all in a silent state, and the sound field only exists in the one-dimensional space of the front left/right channels. According to the method and the device, the multichannel surround sound signals can be virtualized through the stereo signals of the left channel and the right channel, and the multichannel surround sound signals are played through the multichannel surround sound system, so that the space surround effect can be achieved. And, through carrying out the delay processing of different values to each frequency channel signal in the rear left channel signal and the rear right channel signal, a good decorrelation effect can be obtained, and thus, the sound field can be widened. Therefore, the user hearing feeling can be improved.

Description

Audio playing method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of audio processing, and in particular, to an audio playing method, an apparatus, an electronic device, and a storage medium.
Background
The multichannel surround sound system can meet the super requirements of computer games and household video and audio, and the traditional double-channel sound also exits the stage of the advanced sound. The multi-channel surround sound system may include: the sound channels of the front five sound channels are independent of each other, wherein the sound channel of the front sound box is a specially designed ultra-low sound channel.
However, in the multi-channel surround sound system, when the input audio file is a two-channel stereo signal, the rear left channel sound box, the rear right channel sound box, the center sound box, and the super bass sound box are all in a silent state, and the sound field exists only in the one-dimensional space of the front left/right channels. Therefore, how to use two-channel stereo signals to achieve multi-channel surround sound effect is a major problem.
Disclosure of Invention
The application provides an audio playing method, an audio playing device, electronic equipment and a storage medium, which adopt stereo signals of two channels to realize a multichannel surround sound effect and improve the hearing of a user.
The application provides an audio playing method, which comprises the following steps:
acquiring a left channel signal and a right channel signal of an audio file;
determining a left-right channel difference signal according to the left channel signal and the right channel signal;
filtering the left-right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
the output signals of the K frequency bands are subjected to first delay processing and then added to obtain rear left channel signals, the output signals of the K frequency bands are subjected to second delay processing and then added to obtain rear right channel signals, and delay differences corresponding to signals of the same frequency band in the rear left channel signals and the rear right channel signals are larger than a first delay threshold and smaller than a second delay threshold;
determining a center signal from the left channel signal and the right channel signal, a center signal from the center signal, and a subwoofer signal from the center signal;
a multichannel surround sound system is used for playing a left channel signal, a right channel signal, a rear left channel signal, a rear right channel signal, a middle-set signal and a super bass signal.
The application also provides an audio playing device, comprising:
an acquisition unit that acquires a left channel signal and a right channel signal of an audio file;
a processing unit for determining a left-right channel difference signal based on the left channel signal and the right channel signal;
the processing unit is also used for filtering the left-right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
the processing unit is further used for carrying out first delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear left channel signal, carrying out second delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear right channel signal, wherein the delay difference corresponding to the signals of the same frequency band in the rear left channel signal and the rear right channel signal is larger than a first delay threshold value and smaller than a second delay threshold value;
the processing unit is also used for determining a central signal according to the left channel signal and the right channel signal, determining a middle signal according to the central signal and determining a super bass signal according to the central signal;
and the playing unit is also used for playing the left channel signal, the right channel signal, the rear left channel signal, the rear right channel signal, the middle-set signal and the ultralow sound signal by adopting the multichannel surround sound system.
In some embodiments, the response parameters of each of the K filters are determined according to a corresponding one of K hearing frequency bands, where the K hearing frequency bands are obtained by dividing a range of frequencies of human ear according to a type of audio file, and the type of audio file includes a lecture, a movie, and a music.
In some embodiments, after determining the left-right channel difference signal from the left channel signal and the right channel signal, further comprising:
performing delay processing on the left and right channel difference signals to obtain delayed left and right channel difference signals;
filtering the left-right channel difference signal by adopting K filters to obtain output signals of K frequency bands, wherein the filtering comprises the following steps:
and filtering the delayed left-right channel difference signals by adopting K filters to obtain K frequency band output signals.
In some embodiments, determining the mid-set signal from the central signal comprises:
filtering the central signal by adopting a band-pass filter to obtain a voice signal, and filtering the central signal by adopting a high-pass filter and a low-pass filter to obtain other signals;
obtaining an amplification factor corresponding to the clear intensity of the voice, and amplifying the voice signal by adopting the amplification factor to obtain an amplified voice signal;
and obtaining a middle-set signal according to the other signals and the amplified human voice signal.
In some embodiments, determining the subwoofer signal from the central signal comprises:
filtering the central signal by adopting a low-pass filter to obtain a low-frequency signal;
obtaining an ultra-low sound intensity coefficient;
and obtaining the ultra-bass signal according to the ultra-bass intensity coefficient and the low-frequency signal.
In some embodiments, further comprising:
exchanging channels of the rear left channel signal and the rear right channel signal every a preset time period;
and the phase vocoder is adopted to correct the phase of the rear left channel signal and the rear right channel signal after the channels are exchanged, and then the rear left channel signal and the rear right channel signal are played.
In some embodiments, before exchanging channels of the rear left channel signal and the rear right channel signal, further comprising:
acquiring the current average amplitude of the left and right channel difference signals corresponding to the cached current preset time period;
when the current average amplitude is smaller than a preset average amplitude threshold value and the last average amplitude value corresponding to the last preset time period is smaller than the preset average amplitude threshold value, triggering and executing the step of exchanging the channels of the rear left channel signal and the rear right channel signal.
The application also provides an electronic device comprising a memory and a processor, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to perform steps in any of the audio playback methods provided herein.
The present application also provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of any of the audio playback methods provided herein.
According to the method and the device, the multichannel surround sound signals can be virtualized through the stereo signals of the left channel and the right channel, and the multichannel surround sound signals are played through the multichannel surround sound system, so that the space surround effect can be achieved. And, through carrying out the delay processing of different values to each frequency channel signal in the rear left channel signal and the rear right channel signal, a good decorrelation effect can be obtained, and thus, the sound field can be widened. Therefore, the user hearing feeling can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an audio playing method provided in the present application;
fig. 2 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The application provides an audio playing method, an audio playing device, electronic equipment and a storage medium.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
In this embodiment, an audio playing method is provided, as shown in fig. 1, a specific flow of the audio playing method may be as follows:
110. a left channel signal and a right channel signal of an audio file are acquired.
The target audio is any audio which can be played by the electronic equipment, and can be audio corresponding to a video file or a pure audio file. Either locally stored audio from the electronic device, audio downloaded from the internet, etc.
120. A left-right channel difference signal is determined from the left channel signal and the right channel signal.
In some embodiments, the left-right channel difference signal Sd of the audio file may be obtained by a difference between the left channel signal L and the right channel signal R.
130. And filtering the left-right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer.
According to the dewpan effect, two identical speakers play the same sound, and if the two speakers differ in level by 0, when the two speakers differ in time by more than 3ms, the human ear will feel that the sound is all emitted from the speaker that was sounding first. The left-right channel difference signal Sd can be processed according to this acoustic effect to achieve the effect of stretching the sound field.
In some embodiments, the response parameters of each of the K filters are determined from a corresponding one of the K hearing bands. Optionally, the K hearing frequency bands are obtained by dividing a frequency range of human ear hearing. For example, the human ear hearing frequency range of 20 Hz-20000 Hz can be divided equally into K hearing bands. The value of K can be set in a self-defined mode according to practical application conditions, for example, the value range of K can be 2< K <21; since the sound sounds completely from one sound box only in two frequency bands, K should be greater than 2; if the frequency bands are too many, the sound of one audio clip will jump back and forth on the left and right surround sound boxes due to the frequency change, so K may be smaller than 21.
Optionally, the K hearing frequency bands are obtained by dividing the range of the ear hearing frequency according to the type of the audio file, including but not limited to a lecture class, a movie class, and a music class. The type of audio file may be obtained from a tag of the media asset library. Optionally, different frequency band division rules may be corresponding to different audio file types; for example, a lecture audio file may be divided into M hearing bands within a preset band range, and the remaining band ranges are divided into N hearing bands; m is greater than N, M plus N equals K, and the preset frequency range and the rest frequency ranges belong to the hearing frequency range of the human ear. For example, a movie audio file is uniformly divided into K hearing bands.
For example, if the audio file is a speech film source such as a phase sound or talk show, most of the signals are human voice signals, and the frequency band from 800Hz to 2000Hz can be divided into finer frequency bands (i.e. several more frequency bands are divided in the frequency range from 800Hz to 2000 Hz); for example, when the audio file is a film source, the sound frequency range of the film is rich, and the frequency band division can be carried out more uniformly within the range of 20 Hz-20000 Hz.
Optionally, the complete frequency of the audio file can be obtained, the frequency variation trend of the audio file is analyzed, if the duty ratio of the target frequency band in the audio file is larger than the preset proportion, M hearing frequency bands are divided in the target frequency band range, and the rest frequency band ranges are divided into N hearing frequency bands; or if the duty ratio of the target frequency band in the audio file is larger than the preset proportion, determining a division coefficient alpha according to the duty ratio of the target frequency band in the audio file, dividing alpha K hearing frequency bands in the target frequency band range, and dividing (1-alpha) K hearing frequency bands in the rest frequency band range. The preset proportion can be set in a self-defined manner according to practical application conditions, such as 60%. The target frequency band can be preset in advance according to the actual application condition, and can also be determined in the process of analyzing the frequency change trend.
Alternatively, the individual filters may be represented by the following formula:
Figure BDA0004084737340000051
wherein y is k (n) represents the output signal of the kth filter, i.e., the output signal of the kth frequency band; x (t) represents an input signal, i.e., a left-right channel difference signal Sd; h is a k The response parameter representing the kth filter is determined from the kth hearing band of the K hearing bands; n is a filterThe length of the wave device; t is time.
In some embodiments, after determining the left-right channel difference signal according to the left channel signal and the right channel signal, delay processing may be further performed on the left-right channel difference signal to obtain a delayed left-right channel difference signal; for example, in order to reduce the influence of the sound played by the rear left/right channel signal on the sound field of the front left/right channel, the left/right channel difference signal Sd may be subjected to delay processing, and the delay value T may have a value ranging from 5ms to 30ms. And then, filtering the delayed left and right channel difference signals by adopting K filters to obtain output signals of K frequency bands.
140. And carrying out first delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear left channel signal, carrying out second delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear right channel signal, wherein the delay difference corresponding to the signals of the same frequency band in the rear left channel signal and the rear right channel signal is larger than a first delay threshold value and smaller than a second delay threshold value.
In some embodiments, the output signal of the K-1 th frequency band in the output signals of the K frequency bands may be delayed by a first preset value, and after the output signal of the K frequency band is delayed by a second preset value, the output signals are added to obtain a rear left channel signal; and delaying the output signal of the K-1 frequency band in the output signals of the K frequency bands by a second preset value, and adding the delayed output signals of the K frequency bands by a first preset value to obtain a rear right channel signal.
Wherein, the delay difference between the first preset value and the second preset value is larger than the first delay threshold value and smaller than the second delay threshold value, and the value of K is an odd number or an even number from 2 to K. According to the De-Boeher effect and the Hasi effect, the sounding time difference of the two sound boxes is more than 3ms, and the sounding sound is completely from the sound box which firstly sounds; if the sounding time difference of the two sound boxes is larger than 30ms, a listener can feel the existence of the two sound boxes; the first delay threshold may be 3ms and the second delay threshold may be 30ms.
For example, assume that K has a value of 6, y 1 (n) to y 6 (n) output signals, a first preset value of 4ms, a second preset value of 0ms, SL representing the rear left channel signalSR represents a rear left channel signal, and the following table may be used for delay processing:
y 1 (n) y 2 (n) y 3 (n) y 4 (n) y 5 (n) y 6 (n)
delay of signals of respective frequency bands corresponding to SL 4ms 0ms 4ms 0ms 4ms 0ms
Delay of signals of each frequency band corresponding to SR 0ms 4ms 0ms 4ms 0ms 4ms
By performing delay processing of different values on signals of each frequency band in SL and SR, a good decorrelation effect can be obtained, and thus the sound field can be widened.
In some embodiments, the output signals of the K frequency bands are divided into I groups of output signals; delay processing is carried out on the ith output signal in the I output signal according to the first preset value group, delay processing is carried out on the (i+1) output signal according to the second preset value group, and then the signals are added to obtain a rear left channel signal; and carrying out delay processing on the ith output signal in the I output signal according to the second preset value group, carrying out delay processing on the (i+1) output signal according to the first preset value group, and adding to obtain a rear right channel signal.
Optionally, each of the I sets of output signals includes J output signals of frequency bands, and each of the first preset value set and the second preset value set includes J preset values corresponding to the output signals; wherein the preset values in the first preset value group are different from the preset values in the second preset value group; or, the preset values in the second preset value group are obtained by reversing the preset values in the first preset value group.
For example, assume that K has a value of 6, i is 2, and j is 4; the preset values in the first preset value group are 8ms, 4ms and 0ms, and the preset values in the second preset value group are 0ms, 4ms and 8ms, and then the following table can be adopted for delay processing:
y 1 (n) y 2 (n) y 4 (n) y 4 (n) y 5 (n) y 6 (n)
delay of signals of respective frequency bands corresponding to SL 8ms 4ms 0ms 0ms 4ms 8ms
Delay of signals of each frequency band corresponding to SR 0ms 4ms 8ms 8ms 4ms 0ms
Optionally, when the output signals of the K frequency bands are divided into only 1 group of output signals; the output signals of the K frequency bands can be delayed according to the first preset value group and added to obtain a rear left channel signal; and carrying out delay processing on the output signals of the K frequency bands according to the second preset value group, and adding to obtain a rear right channel signal.
For example, assume that K has a value of 7, y 1 (n) to y 7 (n) output signals; the preset values in the first preset value group are 12ms, 8ms, 4ms, 0ms, 4ms, 8ms and 12ms, and the preset values in the second preset value group are 0ms, 4ms, 8ms, 12ms and 8ms,The delay processing can be performed by using the following table, 4ms and 0 ms:
y 1 (n) y 2 (n) y 4 (n) y 4 (n) y 5 (n) y 6 (n) y 7 (n)
delay of signals of respective frequency bands corresponding to SL 12ms 8ms 4ms 0ms 4ms 8ms 12ms
Delay of signals of each frequency band corresponding to SR 0ms 7ms 8ms 12ms 8ms 4ms 0ms
By performing delay processing of different values on signals of each frequency band in SL and SR, a good decorrelation effect can be obtained, and thus the sound field can be widened. And can avoid sound to jump back and forth between the rear left channel sound box and the rear right channel sound box when the sound frequency changes greatly.
150. A center signal is determined from the left channel signal and the right channel signal, a center signal is determined from the center signal, and a subwoofer signal is determined from the center signal.
In some embodiments, the center signal is determined from the left channel signal and the right channel signal; for example, the center signal m= (l+r)/2.
Determining the mid-set signal from the central signal may include, but is not limited to:
(1) And filtering the central signal by adopting a band-pass filter to obtain a human voice signal hc, and filtering the central signal by adopting a high-pass filter and a low-pass filter to obtain other signals, wherein the signals are out of the human voice frequency range of other signals vhc. Wherein the response frequency of the band-pass filter may be in the range of 800HZ to 2000HZ; the upper cut-off frequency of the low pass filter may be 800HZ and the lower cut-off frequency of the high pass filter may be 2000HZ.
(2) And obtaining an amplification factor Ac corresponding to the clear intensity of the voice, and amplifying the voice signal by adopting the amplification factor to obtain an amplified voice signal. Alternatively, the amplification factor may be obtained by the clear intensity of the voice set by the user, or may be preset according to the actual application situation.
(3) And obtaining a middle-set signal according to the other signals and the amplified human voice signal. For example, the mid signal c= vhc +ac×hc.
Therefore, the clear intensity of the voice set by the user can be used for controlling the amplitude of the voice in the middle voice to achieve the clear effect of the voice, thereby meeting the personal requirements of the user.
In some embodiments, determining the subwoofer signal from the central signal may include, but is not limited to: filtering the central signal by adopting a low-pass filter to obtain a low-frequency signal Hl; the cut-off frequency of the low pass filter may be an ultra-low tone of 80Hz to 120 Hz. Obtaining an ultra-low sound intensity coefficient Aw; alternatively, the ultra-bass intensity coefficient may be derived from the bass intensity set by the user. Obtaining a super bass signal according to the super bass intensity coefficient and the low frequency signal; for example, the bass signal lft=hl×aw. Therefore, the ultra-low sound signal can be obtained through user setting, so that the personal requirements of users are met.
160. A multichannel surround sound system is used for playing a left channel signal, a right channel signal, a rear left channel signal, a rear right channel signal, a middle-set signal and a super bass signal.
In some embodiments, in playing the audio file using the multi-channel surround sound system, channels of the rear left channel signal and the rear right channel signal may be exchanged every preset time period; and the phase vocoder is adopted to correct the phase of the rear left channel signal and the rear right channel signal after the channels are exchanged, and then the rear left channel signal and the rear right channel signal are played. The preset time period can be set in a user-defined mode according to actual application conditions, for example, 1 minute, 2 minutes, 5 minutes and the like; the current preset time period may refer to a preset time period corresponding to the current time. In the last preset time period, the rear left channel sound box is adopted to play the rear left channel signal, the rear right channel sound box is adopted to play the rear right channel signal, and then the rear left channel sound box is adopted to play the rear right channel signal and the rear right channel sound box is adopted to play the rear left channel signal. After the phase correction is carried out by the phase vocoder, the signal in the last preset time period is fitted with the exchanged signal in the current preset time period in phase, so that the problem that sound sounds discontinuous can be solved.
Optionally, obtaining a current average amplitude of the left-right channel difference signal corresponding to the cached current preset time period; when the current average amplitude is smaller than a preset average amplitude threshold value and the last average amplitude value corresponding to the last preset time period is smaller than the preset average amplitude threshold value, the step of exchanging channels of the rear left channel signal and the rear right channel signal is executed; the preset average amplitude threshold value can be set in a self-defined mode according to practical application conditions. Therefore, on the basis of ensuring continuous sound, the possibility of generating fine tremble can be avoided, and a listener can not completely perceive the trace of channel exchange.
Optionally, the real-time amplitude of the left-right channel difference signal at the current moment can also be obtained; when the real-time amplitude is smaller than a preset amplitude threshold value and the amplitude of the left-right channel difference signal at the last moment is smaller than the preset amplitude threshold value, channels for exchanging the rear left channel signal and the rear right channel signal are executed; the preset amplitude threshold value can be set in a self-defined mode according to actual application conditions.
From the above, the present application can virtualize a multichannel surround signal by stereo signals of left and right channels, and play the surround signal by a multichannel surround system, so as to achieve a spatial surround effect. And, through carrying out the delay processing of different values to each frequency channel signal in the rear left channel signal and the rear right channel signal, a good decorrelation effect can be obtained, and thus, the sound field can be widened. Therefore, the user hearing feeling can be improved.
In order to better implement the above method, the present application also provides an audio playing device. The audio playing device can be integrated in an electronic device, and the electronic device can be a terminal, a server and other devices. The terminal can be projection equipment, intelligent televisions, laser televisions, mobile phones, tablet computers, intelligent Bluetooth equipment, notebook computers, desktop computers and other equipment; the server may be a single server or a server cluster composed of a plurality of servers. In some embodiments, the server may also be implemented in the form of a terminal.
In some embodiments, the audio playing device may also be integrated in a plurality of electronic devices, for example, the audio playing device may be integrated in a terminal and a server, where the terminal and the server jointly implement the audio playing method of the present application.
For example, in the present embodiment, the method of the present application will be described in detail by taking the example that the audio playing device is specifically integrated in the electronic device. For example, the audio playing device may include an acquisition unit, a processing unit, and a playing unit, as follows:
an acquisition unit that acquires a left channel signal and a right channel signal of an audio file;
a processing unit for determining a left-right channel difference signal based on the left channel signal and the right channel signal;
the processing unit is also used for filtering the left-right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
the processing unit is further used for carrying out first delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear left channel signal, carrying out second delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear right channel signal, wherein the delay difference corresponding to the signals of the same frequency band in the rear left channel signal and the rear right channel signal is larger than a first delay threshold value and smaller than a second delay threshold value;
the processing unit is also used for determining a central signal according to the left channel signal and the right channel signal, determining a middle signal according to the central signal and determining a super bass signal according to the central signal;
and the playing unit is also used for playing the left channel signal, the right channel signal, the rear left channel signal, the rear right channel signal, the middle-set signal and the ultralow sound signal by adopting the multichannel surround sound system.
In some embodiments, the response parameters of each of the K filters are determined according to a corresponding one of K hearing frequency bands, where the K hearing frequency bands are obtained by dividing a range of frequencies of human ear according to a type of audio file, and the type of audio file includes a lecture, a movie, and a music.
In some embodiments, after determining the left-right channel difference signal from the left channel signal and the right channel signal, further comprising:
performing delay processing on the left and right channel difference signals to obtain delayed left and right channel difference signals;
filtering the left-right channel difference signal by adopting K filters to obtain output signals of K frequency bands, wherein the filtering comprises the following steps:
and filtering the delayed left-right channel difference signals by adopting K filters to obtain K frequency band output signals.
In some embodiments, determining the mid-set signal from the central signal comprises:
filtering the central signal by adopting a band-pass filter to obtain a voice signal, and filtering the central signal by adopting a high-pass filter and a low-pass filter to obtain other signals;
obtaining an amplification factor corresponding to the clear intensity of the voice, and amplifying the voice signal by adopting the amplification factor to obtain an amplified voice signal;
and obtaining a middle-set signal according to the other signals and the amplified human voice signal.
In some embodiments, determining the subwoofer signal from the central signal comprises:
filtering the central signal by adopting a low-pass filter to obtain a low-frequency signal;
obtaining an ultra-low sound intensity coefficient;
and obtaining the ultra-bass signal according to the ultra-bass intensity coefficient and the low-frequency signal.
In some embodiments, further comprising:
exchanging channels of the rear left channel signal and the rear right channel signal every a preset time period;
and the phase vocoder is adopted to correct the phase of the rear left channel signal and the rear right channel signal after the channels are exchanged, and then the rear left channel signal and the rear right channel signal are played.
In some embodiments, before exchanging channels of the rear left channel signal and the rear right channel signal, further comprising:
acquiring the current average amplitude of the left and right channel difference signals corresponding to the cached current preset time period;
when the current average amplitude is smaller than a preset average amplitude threshold value and the last average amplitude value corresponding to the last preset time period is smaller than the preset average amplitude threshold value, triggering and executing the step of exchanging the channels of the rear left channel signal and the rear right channel signal.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
Therefore, in the application, the audio playing device can virtualize the multichannel surround sound signal through the stereo signals of the left channel and the right channel, play the multichannel surround sound signal through the multichannel surround sound system, and can realize the space surround effect. And, through carrying out the delay processing of different values to each frequency channel signal in the rear left channel signal and the rear right channel signal, a good decorrelation effect can be obtained, and thus, the sound field can be widened. Therefore, the user hearing feeling can be improved.
The application also provides electronic equipment; in this embodiment, an electronic device will be described in detail as an example of a projection device, for example, as shown in fig. 2, which shows a schematic structural diagram of the projection device related to the present application. It should be noted that the multi-channel surround sound system may be part of a projection device; or the multichannel surround sound system can be mutually independent from the projection equipment and communicated by wire or wireless; or, part of sound boxes in the multichannel surround sound system belong to projection equipment, and the part of sound boxes are mutually independent from the projection equipment and are communicated through wires or wirelessly; etc.
In some embodiments, the projection device may include an image processor 201 and a projection light engine 202. Wherein:
the image processor 201 may be a microcontroller, a dedicated image processing chip, etc., and the microcontroller may be an ARM chip, a micro control unit (Microcontroller Unit; MCU), etc.; the dedicated image processing chip may be an image signal processor (Image Signal Processing, ISP), a graphics processor (graphics processing unit, GPU), an embedded neural network processor (neural-network process units, NPU), or the like. The image processor 201 may be used for video decoding, image quality processing, and the like.
The projection light engine 202 may include a driver chip, a spatial light modulator, a light source, and the like. Wherein the light source can be a laser light source or an LED light source, etc.; the empty spatial light modulator may be a digital micromirror device (Digtial Micromirror Devices, DMD), a liquid crystal device (Liquid Crystal Display, LCD), a liquid crystal on silicon device (Liquid Crystal on Silicon, LCOS), or the like; the driver chip corresponds to a spatial light modulator, for example, a digital micromirror device may be driven with a digital light processing element (Digital Light Processing, DLP). The projection light machine 202 is used for projecting an image to be projected into a projection screen.
In some embodiments, the projection device further includes a central controller 203, which may be a CPU, ARM, MCU or like controller, of one or more processing cores. The central controller 203 is a control center of the projection device, and may run or execute software programs and/or an operating system stored in the memory 204 and invoke data stored in the memory 204 using various interfaces and lines to connect various portions of the entire projection device.
In some embodiments, the projection device further includes memory 204, input module 205, and communication module 206, power supply 207, etc., of one or more computer-readable storage media. It will be appreciated by those skilled in the art that the projection device structure shown in FIG. 2 is not limiting of the projection device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the memory 204 may be used to store software programs and an operating system, and the central controller 203 performs various functional applications and data processing by running the software programs and the operating system stored in the memory 204. The memory 204 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the projection device, etc. In addition, memory 204 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 204 may also include a memory controller to provide access to the memory 204 by the central controller 203.
The projection device may also include an input module 205, which input module 205 may be used to receive entered numeric or character information and to generate remote control, keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The projection device may also include a communication module 206, and in some embodiments the communication module 206 may include a wireless module, through which the projection device may wirelessly transmit over a short distance, thereby providing wireless broadband internet access to the user. For example, the communication module 206 may be used to assist a user in accessing streaming media, and the like.
The projection device further includes a power supply 207 for powering the various components, and in some embodiments, the power supply 207 may be logically connected to the central controller 203 via a power management system, such that charge, discharge, and power consumption management functions are performed by the power management system. The power supply 207 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
In some embodiments, the central controller 203 may run or execute software programs and/or operating systems stored in the memory 204 to implement various functional applications, such as:
acquiring a left channel signal and a right channel signal of an audio file;
determining a left-right channel difference signal according to the left channel signal and the right channel signal;
filtering the left-right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
the output signals of the K frequency bands are subjected to first delay processing and then added to obtain rear left channel signals, the output signals of the K frequency bands are subjected to second delay processing and then added to obtain rear right channel signals, and delay differences corresponding to signals of the same frequency band in the rear left channel signals and the rear right channel signals are larger than a first delay threshold and smaller than a second delay threshold;
determining a center signal from the left channel signal and the right channel signal, a center signal from the center signal, and a subwoofer signal from the center signal;
a multichannel surround sound system is used for playing a left channel signal, a right channel signal, a rear left channel signal, a rear right channel signal, a middle-set signal and a super bass signal.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
From the above, the projection device can virtualize a multichannel surround signal by stereo signals of left and right channels, and play the surround signal by a multichannel surround system, so as to achieve a spatial surround effect. And, through carrying out the delay processing of different values to each frequency channel signal in the rear left channel signal and the rear right channel signal, a good decorrelation effect can be obtained, and thus, the sound field can be widened. Therefore, the user hearing feeling can be improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the audio playback methods provided herein. For example, the instructions may perform the steps of:
acquiring a left channel signal and a right channel signal of an audio file;
determining a left-right channel difference signal according to the left channel signal and the right channel signal;
filtering the left-right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
the output signals of the K frequency bands are subjected to first delay processing and then added to obtain rear left channel signals, the output signals of the K frequency bands are subjected to second delay processing and then added to obtain rear right channel signals, and delay differences corresponding to signals of the same frequency band in the rear left channel signals and the rear right channel signals are larger than a first delay threshold and smaller than a second delay threshold;
determining a center signal from the left channel signal and the right channel signal, a center signal from the center signal, and a subwoofer signal from the center signal;
a multichannel surround sound system is used for playing a left channel signal, a right channel signal, a rear left channel signal, a rear right channel signal, a middle-set signal and a super bass signal.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the audio playing method provided in the above-described embodiment.
The steps in any audio playing method provided in the present application may be executed due to the instructions stored in the storage medium, so that the beneficial effects that any audio playing method provided in the present application may be achieved, which are detailed in the previous embodiments and are not repeated herein.
The foregoing has described in detail a method, apparatus, electronic device and computer readable storage medium for audio playback provided by the present application, and specific examples have been applied herein to illustrate the principles and embodiments of the present application, the above examples being provided only to assist in understanding the method and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. An audio playing method, characterized in that the audio playing method comprises the following steps:
acquiring a left channel signal and a right channel signal of an audio file;
determining a left-right channel difference signal according to the left channel signal and the right channel signal;
filtering the left-right channel difference signal by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
performing first delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear left channel signal, performing second delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear right channel signal, wherein the delay difference corresponding to the signals of the same frequency band in the rear left channel signal and the rear right channel signal is larger than a first delay threshold and smaller than a second delay threshold;
determining a center signal from the left channel signal and the right channel signal, a center signal from the center signal, and a subwoofer signal from the center signal;
and playing the left channel signal, the right channel signal, the rear left channel signal, the rear right channel signal, the middle-set signal and the ultra-low sound signal by adopting a multi-channel surround sound system.
2. The audio playing method according to claim 1, wherein the response parameters of each of the K filters are determined according to a corresponding one of K hearing frequency bands, the K hearing frequency bands being obtained by dividing a range of frequencies of human ear according to types of the audio file, the types of the audio file including a lecture class, a movie class, and a music class.
3. The audio playing method according to claim 1, wherein after determining a left-right channel difference signal according to the left channel signal and the right channel signal, further comprising:
performing delay processing on the left and right channel difference signals to obtain delayed left and right channel difference signals;
the filtering of the left-right channel difference signal by using K filters to obtain output signals of K frequency bands includes:
and filtering the delayed left and right channel difference signals by adopting K filters to obtain K frequency band output signals.
4. The audio playing method according to claim 1, wherein said determining a center signal from said center signal comprises:
filtering the central signal by adopting a band-pass filter to obtain a voice signal, and filtering the central signal by adopting a high-pass filter and a low-pass filter to obtain other signals;
obtaining an amplification factor corresponding to the clear intensity of the voice, and amplifying the voice signal by adopting the amplification factor to obtain an amplified voice signal;
and obtaining a middle-set signal according to the other signals and the amplified human voice signal.
5. The audio playback method as recited in claim 1, wherein said determining a sub-bass signal from said center signal comprises:
filtering the central signal by adopting a low-pass filter to obtain a low-frequency signal;
obtaining an ultra-low sound intensity coefficient;
and obtaining the ultra-low sound signal according to the ultra-low sound intensity coefficient and the low frequency signal.
6. The audio playing method according to claim 1, characterized in that the method further comprises:
exchanging channels of the rear left channel signal and the rear right channel signal every a preset time period;
and the phase vocoder is adopted to correct the phase of the rear left channel signal and the rear right channel signal after the channels are exchanged, and then the rear left channel signal and the rear right channel signal are played.
7. The audio playing method according to claim 6, wherein before exchanging channels of the rear left channel signal and the rear right channel signal, further comprising:
acquiring the current average amplitude of the left and right channel difference signals corresponding to the cached current preset time period;
and when the current average amplitude is smaller than a preset average amplitude threshold value and the last average amplitude value corresponding to the last preset time period is smaller than the preset average amplitude threshold value, triggering and executing the step of exchanging the channels of the rear left channel signal and the rear right channel signal.
8. An audio playback apparatus, comprising:
an acquisition unit that acquires a left channel signal and a right channel signal of an audio file;
a processing unit for determining a left-right channel difference signal from the left channel signal and the right channel signal;
the processing unit is also used for filtering the left and right channel difference signals by adopting K filters to obtain K frequency band output signals, wherein K is a positive integer;
the processing unit is further used for carrying out first delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear left channel signal, carrying out second delay processing on the output signals of the K frequency bands and then adding the output signals to obtain a rear right channel signal, wherein the delay difference corresponding to the signals of the same frequency band in the rear left channel signal and the rear right channel signal is larger than a first delay threshold and smaller than a second delay threshold;
the processing unit is also used for determining a central signal according to the left channel signal and the right channel signal, a middle signal according to the central signal and a ultralow sound signal according to the central signal;
and the playing unit is also used for playing the left channel signal, the right channel signal, the rear left channel signal, the rear right channel signal, the middle-set signal and the ultra-low sound signal by adopting a multi-channel surround sound system.
9. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the audio playing method according to any one of claims 1 to 8.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the audio playing method of any one of claims 1 to 8.
CN202310130400.3A 2023-02-17 2023-02-17 Audio playing method, device, electronic equipment and storage medium Pending CN116156413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310130400.3A CN116156413A (en) 2023-02-17 2023-02-17 Audio playing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310130400.3A CN116156413A (en) 2023-02-17 2023-02-17 Audio playing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116156413A true CN116156413A (en) 2023-05-23

Family

ID=86340366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310130400.3A Pending CN116156413A (en) 2023-02-17 2023-02-17 Audio playing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116156413A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634350A (en) * 2023-07-24 2023-08-22 荣耀终端有限公司 Audio processing method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634350A (en) * 2023-07-24 2023-08-22 荣耀终端有限公司 Audio processing method and device and electronic equipment
CN116634350B (en) * 2023-07-24 2023-10-31 荣耀终端有限公司 Audio processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104520924B (en) Indicate coding and the presentation of the object-based audio of gaming audio content
JP4262597B2 (en) Sound system
US9866963B2 (en) Headphone audio enhancement system
US10638245B2 (en) Dynamic multi-speaker optimization
US9489954B2 (en) Encoding and rendering of object based audio indicative of game audio content
WO2020238000A1 (en) Audio processing method, device, terminal, and computer-readable storage medium
CN110874203A (en) Screen sounding controller, method, device, terminal and storage medium
JP2020109968A (en) Customized audio processing based on user-specific audio information and hardware-specific audio information
CN116156413A (en) Audio playing method, device, electronic equipment and storage medium
US10547927B1 (en) Systems and methods for processing an audio signal for replay on stereo and multi-channel audio devices
US20240015438A1 (en) Managing low frequencies of an output signal
CN106658340B (en) Content adaptive surround sound virtualization
KR102446946B1 (en) Multiband ducker
CN113170255A (en) Compensation for binaural loudspeaker directivity
US10547926B1 (en) Systems and methods for processing an audio signal for replay on stereo and multi-channel audio devices
US20120020483A1 (en) System and method for robust audio spatialization using frequency separation
WO2022237252A1 (en) Audio signal processing method and apparatus, and storage medium
US20240056732A1 (en) Method and apparatus for controlling power consumption of speaker, storage medium, and electronic device
WO2024016398A1 (en) Sound and vibration playing method and apparatus
WO2024031803A1 (en) Loudspeaker power consumption control method and apparatus, storage medium, and electronic device
WO2020107192A1 (en) Stereophonic playback method and apparatus, storage medium, and electronic device
CN116074685A (en) Mobile device and audio signal processing method and device thereof
CN116785710A (en) Sound playing method, device, equipment and storage medium
JP2019522450A (en) Signal enhancement
TW201132140A (en) Speaker system and control method thereof

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