Differential surround audio signal generation method, device, storage medium and electronic device
By separating and delaying the audio signal, the delay difference between the left and right channels is reduced, which solves the problem of partial sound and unclear sound image when the differential surround sound effector expands the sound field, and achieves a balance between clear sound image and sound field expansion. Improved audio playback quality.
Patent Information
- Application Number
- CN202110302980.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-03-22
AI Technical Summary
When the differential surround sound effector expands the sound field, it is easy to cause partial sound and unclear sound image. It is difficult to ensure the sound field expansion effect while ensuring that the sound image is clear and unbiased.
By separating and delaying the audio signal, controlling the time difference between the first duration and the second duration to be smaller than the time difference between the third delay and the fourth delay, reducing the delay difference between the left and right channels to improve the sound and image clarity, and Use the delay of background sound to produce a surround effect to compensate for the lack of obvious expansion of the sound field.
While ensuring the sound field expansion effect, it also ensures that the audio image is clear and unbiased, improving the audio playback quality.
Smart Images

Figure CN115116459B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of audio processing, and in particular to a differential surround audio signal generation method, device, storage medium and electronic device. Background Art
[0002] In the related art, differential surround sound effect devices are widely used due to their simple structure, obvious sound field expansion effect, low computational complexity, and no spectral coloration. In order to expand the sound field, the differential surround sound effect device deliberately introduces a certain delay to the left and right channels, thereby expanding the sound field. However, while the sound field is expanded, it will also cause sound bias (the sound is biased to one side of the ears) and unclear sound and image, which seriously reduces the listening experience. If the delay of the left and right channels is reduced, although the sound and image can be guaranteed to be clear and not biased, the sound field expansion effect is difficult to guarantee.
[0003] Therefore, it is crucial to ensure that the sound image is clear and not biased while ensuring the sound field expansion effect. Summary of the invention
[0004] The purpose of the present disclosure is to provide a differential surround audio signal generation method, device, storage medium and electronic device, which can ensure clear sound and image without sound deviation while ensuring the sound field expansion effect, thereby effectively improving the audio playback quality.
[0005] In order to achieve the above objective, in a first aspect, the present disclosure provides a method for generating a differential surround audio signal, the method comprising:
[0006] Acquire an audio signal, and divide the audio signal into a plurality of audio frames to obtain an audio frame sequence;
[0007] Separating the audio frames in the audio frame sequence to obtain a left channel audio frame and a right channel audio frame of each audio frame;
[0008] For each of the audio frames, perform the following steps:
[0009] Obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame;
[0010] Input the left channel audio frame of the audio frame to the first delay device, delay it for the first time and output it; input the right channel audio frame of the audio frame to the second delay device, delay it for the second time and output it; input the background sound audio frame of the audio frame to the third delay device, delay it for the third time and output it; input the background sound audio frame of the audio frame to the fourth delay device, delay it for the fourth time and output it;
[0011] The method further comprises:
[0012] At the same time, the audio data output by the first delay device and the audio data output by the third delay device are superimposed to obtain target left channel audio data; and,
[0013] Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain target right channel audio data;
[0014] The target left channel audio data and the target right channel audio data are used to generate a differential surround audio signal, and a time difference between the first duration and the second duration is smaller than a time difference between the third delay and the fourth delay.
[0015] Optionally, the first duration, the second duration, the third duration and the fourth duration have the following relationship:
[0016] TD1=T A -T B ;
[0017] TD2=T L -T R ;
[0018]
[0019]
[0020] Wherein, TD1 is the first preset parameter, TD2 is the second preset parameter, and T A is the third duration, the T B is the fourth duration, the T L is the first duration, the T R This is the second duration.
[0021] Optionally, at the same time, superimposing the audio data output by the first delay device and the audio data output by the third delay device to obtain target left channel audio data includes:
[0022] Superimposing the audio data output by the first delay device and the audio data output by the third delay device to obtain first superimposed audio data;
[0023] The first superimposed audio data is respectively subjected to high-frequency filtering and low-frequency filtering, and the first superimposed audio data, the first superimposed audio data after the high-frequency filtering, and the first superimposed audio data after the low-frequency filtering are superimposed to obtain target left channel audio data.
[0024] Optionally, the audio data output by the second delay device and the audio data output by the fourth delay device are superimposed to obtain target right channel audio data, including
[0025] Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain second superimposed audio data;
[0026] The second superimposed audio data is respectively subjected to high-frequency filtering and low-frequency filtering, and the second superimposed audio data, the second superimposed audio data after the high-frequency filtering, and the second superimposed audio data after the low-frequency filtering are superimposed to obtain a target right channel audio frame.
[0027] Optionally, obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame includes:
[0028] The left channel audio frame and the right channel audio frame of the audio frame are subtracted to obtain a background sound audio frame corresponding to the audio frame.
[0029] Optionally, the method further comprises:
[0030] The target left channel audio data and the target right channel audio data are superimposed to generate a differential surround audio signal.
[0031] In a second aspect, the present disclosure provides a differential surround audio signal generating device, the device comprising:
[0032] An acquisition module, used for acquiring an audio signal, and dividing the audio signal into a plurality of audio frames to obtain an audio frame sequence;
[0033] A separation module, used for separating the audio frames in the audio frame sequence to obtain a left channel audio frame and a right channel audio frame of each audio frame;
[0034] The delay module is used to perform the following steps for each of the audio frames:
[0035] Obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame;
[0036] Input the left channel audio frame of the audio frame to the first delay device, delay it for the first time and output it; input the right channel audio frame of the audio frame to the second delay device, delay it for the second time and output it; input the background sound audio frame of the audio frame to the third delay device, delay it for the third time and output it; input the background sound audio frame of the audio frame to the fourth delay device, delay it for the fourth time and output it;
[0037] The device further includes a superposition module, which is used to superimpose the audio data output by the first delay device and the audio data output by the third delay device at the same time to obtain target left channel audio data; and
[0038] Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain target right channel audio data;
[0039] The target left channel audio data and the target right channel audio data are used to generate a differential surround audio signal, and a time difference between the first duration and the second duration is smaller than a time difference between the third delay and the fourth delay.
[0040] Optionally, the first duration, the second duration, the third duration and the fourth duration have the following relationship:
[0041] TD1=T A -T B ;
[0042] TD2=T L -T R ;
[0043]
[0044]
[0045] Wherein, TD1 is the first preset parameter, TD2 is the second preset parameter, and T A is the third duration, the T B is the fourth duration, the T L is the first duration, the T R It is the second duration, and the first preset parameter is greater than the second preset parameter.
[0046] In a third aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0047] In a fourth aspect, the present disclosure provides an electronic device, characterized in that it includes: a first delay device, a second delay device, a third delay device, a fourth delay device, a memory, and a processor;
[0048] The memory is used to store a computer program executed by the processor;
[0049] The processor is used to execute the computer program in the memory to implement the steps of any method described in the first aspect above.
[0050] Through the above technical solution, the time difference between the first duration and the second duration is controlled to be smaller than the time difference between the third delay and the fourth delay, that is, on the existing basis, the delay difference between the left and right channels of the differential surround sound effect device is reduced to improve the clarity of the sound image and make the sound image non-biased. At the same time, the background sound with a surround effect is generated by delaying the background sound, compensating for the problem of unclear sound field expansion caused by reducing the delay difference between the left and right channels, achieving the purpose of ensuring the clarity of the audio image and non-biased sound while ensuring the sound field expansion effect, and effectively improving the audio playback quality.
[0051] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0053] Figure 1 The figure is a flow chart of a method for generating a differential surround audio signal according to an exemplary embodiment of the present disclosure.
[0054] Figure 2 is another flow chart of a method for generating a differential surround audio signal according to an exemplary embodiment of the present disclosure.
[0055] Figure 3 It is a block diagram of a differential surround audio signal generating device according to an exemplary embodiment of the present disclosure.
[0056] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0057] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0058] As mentioned in the background technology, in order to better expand the sound field, the differential surround sound effector will increase the delay difference between the left and right channels. In this way, the sound field can be better expanded, and the larger the delay difference between the left and right channels, the more obvious the sound field expansion, but at the same time it will also lead to more obvious sound deviation and less clear sound image. Conversely, the smaller the delay difference between the left and right channels, the less obvious the sound deviation problem, the clearer the sound image, and the less obvious the sound field expansion.
[0059] Therefore, it is crucial to ensure that the sound image is clear and not biased while ensuring the sound field expansion effect.
[0060] In view of this, in order to solve the above problems, the embodiments of the present disclosure provide a differential surround audio signal generation method, device, storage medium and electronic device, which ensure clear sound and image without sound bias while ensuring the sound field expansion effect, effectively improving the audio playback quality.
[0061] Figure 1 FIG. 1 is a flow chart of a method for generating a differential surround audio signal according to an exemplary embodiment of the present disclosure. Figure 1 , the differential surround audio signal generation method comprises:
[0062] Step 101, obtain an audio signal, and divide the audio signal into multiple audio frames to obtain an audio frame sequence. For example, obtaining the audio signal may be in response to an audio input operation of the user, obtaining the audio input by the user, and the audio is the obtained audio signal, or it may be automatically obtaining the audio from the local storage of the electronic device after receiving an audio processing instruction, and the audio is the obtained audio signal, etc., which is not limited in this embodiment.
[0063] It should be understood that each audio frame in the multiple audio frames of the audio signal has a time sequence, and therefore, an audio frame sequence consisting of multiple audio frames arranged in time can be obtained according to the audio signal.
[0064] Step 102: Separate the audio frames in the audio frame sequence to obtain a left channel audio frame and a right channel audio frame of each audio frame.
[0065] In this embodiment, the method of separating the left channel audio frame and the right channel audio frame of the audio frame is similar to that in the related art, and will not be described in detail here.
[0066] Step 103: Use the first audio frame in the audio frame sequence as the current audio frame.
[0067] For example, the audio frame sequence includes a first frame, a second frame, a third frame, a fourth frame and a fifth frame arranged in chronological order, and therefore, the first frame arranged in the first position is used as the current audio frame.
[0068] Step 104: Obtain a background sound audio frame corresponding to the current audio frame according to the left channel audio frame and the right channel audio frame corresponding to the current audio frame.
[0069] It should be understood that the background sound is the remaining part after removing the same or related parts of the left channel and the right channel.
[0070] Step 105, input the left channel audio frame of the current audio frame into the first delay device, delay it for the first time and output it, input the right channel audio frame of the current audio frame into the second delay device, delay it for the second time and output it, input the background sound audio frame of the current audio frame into the third delay device, delay it for the third time and output it, input the background sound audio frame of the current audio frame into the fourth delay device, delay it for the fourth time and output it.
[0071] It should be noted that the size of the storage space of each delay device reflects the length of the delay. The larger the storage space, the more data can be cached, and the corresponding delay is longer.
[0072] Step 106 , determining whether there is a next audio frame for the current audio frame, if yes, executing step S107 , taking the next audio frame as a new current audio frame, and returning to executing step 104 .
[0073] For example, the audio frame sequence includes a first frame, a second frame, a third frame, a fourth frame and a fifth frame arranged in chronological order. If the first frame is the current audio frame, the new current audio frame is the second frame, and so on.
[0074] Step 108, at the same time, superimpose the audio data output by the first delay device and the audio data output by the third delay device to obtain the target left channel audio data; and superimpose the audio data output by the second delay device and the audio data output by the fourth delay device to obtain the target right channel audio data.
[0075] It can be understood that the target left channel audio data and the target right channel audio data are used to generate a differential surround audio signal. When the target left channel audio data and the target right channel audio data are obtained, the target left channel audio data and the target right channel audio data can be superimposed to generate a differential surround audio signal, so that the audio playing device can play according to the differential surround audio signal.
[0076] Through the above method, the time difference between the first duration and the second duration is controlled to be smaller than the time difference between the third delay and the fourth delay, that is, on the existing basis, the delay difference between the left and right channels of the differential surround sound effect device is reduced to improve the clarity of the sound image and make the sound image non-biased. At the same time, the background sound with a surround effect is generated by delaying the background sound, compensating for the problem of unclear sound field expansion caused by reducing the delay difference between the left and right channels, achieving the purpose of ensuring the clarity of the audio image and non-biased sound while ensuring the sound field expansion effect, and effectively improving the audio playback quality.
[0077] In a possible manner, the first duration, the second duration, the third duration and the fourth duration have the following relationship:
[0078] TD1=T A -T B ;
[0079] TD2=T L -T R ;
[0080]
[0081]
[0082] Among them, TD1 is the first preset parameter, TD2 is the second preset parameter, the first preset parameter and the second preset parameter can be customized, T A For the third duration, T B For the fourth period, T L is the first duration, T R It should be noted that TD1, TD2 and T A are pre-set parameters.
[0083] It should be noted that the greater the delay difference between the left and right channels, the more obvious the sound field expansion is, but at the same time, the more obvious the sound deviation is, and the less clear the sound image is. Therefore, the specific values of the delay difference between the left and right channels and the delay difference of the background sound are particularly important. The specific values of the first duration, the second duration, the third duration, and the fourth duration are determined by using the above relationship, that is, the sound image can be clear and centered while maintaining a good sound field expansion effect.
[0084] Figure 2 FIG. 1 is another flow chart of a method for generating a differential surround audio signal according to an exemplary embodiment of the present disclosure. Figure 2 , Figure 2 The delay device L in the example is the first delay device, the delay device R is the second delay device, the delay device A is the third delay device, and the delay device B is the fourth delay device. Figure 2 The embodiments of the present disclosure are further explained.
[0085] First, the acquired audio is divided into frames, and then the left and right channels of each audio frame are separated to obtain a left channel audio frame and a right channel audio frame of the audio frame, and a background sound audio frame is obtained according to the left channel audio frame and the right channel audio frame of the audio frame.
[0086] Next, the left channel audio frame is input into the delay device L and output after being delayed for the first time period, the right channel audio frame is input into the delay device R and output after being delayed for the second time period, the background sound audio frame is input into the delay device A and output after being delayed for the third time period, and the background sound audio frame is input into the delay device B and output after being delayed for the fourth time period.
[0087] Then, at the same time, the audio data output by the delay device L and the delay device A are superimposed to obtain the first superimposed audio data ( Figure 2SL shown in ), the audio data output by the delay device R and the delay device B are superimposed to obtain the second superimposed audio data ( Figure 2 SR shown in ).
[0088] Then, the obtained first superimposed audio data is subjected to high-frequency enhancement and low-frequency enhancement respectively to obtain first superimposed audio data with high-frequency enhancement and first superimposed audio data with low-frequency enhancement, and the first superimposed audio data, the first superimposed audio data with high-frequency enhancement and the first superimposed audio data with low-frequency enhancement are superimposed to obtain target left channel audio data; the obtained second superimposed audio data is subjected to high-frequency enhancement and low-frequency enhancement respectively to obtain second superimposed audio data with high-frequency enhancement and second superimposed audio data with low-frequency enhancement, and the second superimposed audio data, the second superimposed audio data with high-frequency enhancement and the second superimposed audio data with low-frequency enhancement are superimposed to obtain target right channel audio data.
[0089] It should be noted that high-frequency enhancement can be understood as extracting high-frequency signals from a signal, which is achieved through a high-pass filter, while low-frequency enhancement can be understood as extracting low-frequency signals from a signal, which is achieved through a low-pass filter.
[0090] Through the above method, by extracting the high-frequency and low-frequency components of the audio data, and superimposing the extracted high-frequency and low-frequency components with the original audio data (the first superimposed audio data or the second superimposed audio data), the high and low-frequency components of the sound are enhanced, the shocking effect and the sense of surround when listening are enhanced, and the audio playback quality is improved.
[0091] In a possible manner, according to the left channel audio frame and the right channel audio frame corresponding to the audio frame, obtaining the background sound audio frame corresponding to the audio frame can be: subtracting the left channel audio frame and the right channel audio frame of the audio frame to obtain the background sound audio frame corresponding to the audio frame.
[0092] Since the background sound is the remaining part after removing the same or related parts of the left channel and the right channel, the left channel audio frame and the right channel audio frame of the audio frame can be subtracted to obtain the different parts of the left channel and the right channel.
[0093] Based on the same inventive concept, an embodiment of the present disclosure also provides a differential surround audio signal generating device. Figure 3 is a block diagram of a differential surround audio signal generating device according to an exemplary embodiment of the present disclosure. Figure 3 , the differential surround audio signal generating device 300 comprises:
[0094] The acquisition module 301 is used to acquire an audio signal and divide the audio signal into a plurality of audio frames to obtain an audio frame sequence.
[0095] The separation module 302 is used to separate the audio frames in the audio frame sequence to obtain a left channel audio frame and a right channel audio frame of each audio frame.
[0096] The delay module 303 is used to perform the following steps for each of the audio frames:
[0097] Obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame;
[0098] Input the left channel audio frame of the audio frame to the first delay device, delay it for the first time and output it; input the right channel audio frame of the audio frame to the second delay device, delay it for the second time and output it; input the background sound audio frame of the audio frame to the third delay device, delay it for the third time and output it; input the background sound audio frame of the audio frame to the fourth delay device, delay it for the fourth time and output it;
[0099] The device further includes a superposition module 304, which is used to superimpose the audio data output by the first delay device and the audio data output by the third delay device at the same time to obtain target left channel audio data; and,
[0100] Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain target right channel audio data;
[0101] The target left channel audio data and the target right channel audio data are used to generate a differential surround audio signal, and a time difference between the first duration and the second duration is smaller than a time difference between the third delay and the fourth delay.
[0102] Optionally, the first duration, the second duration, the third duration and the fourth duration have the following relationship:
[0103] TD1=T A -T B ;
[0104] TD2=T L -T R ;
[0105]
[0106]
[0107] Wherein, TD1 is the first preset parameter, TD2 is the second preset parameter, and T A is the third duration, the T B is the fourth duration, the T L is the first duration, the T RIt is the second duration, and the first preset parameter is greater than the second preset parameter.
[0108] Optionally, the superposition module 304 includes:
[0109] The first superposition submodule is used to superimpose the audio data output by the first delay device and the audio data output by the third delay device to obtain first superimposed audio data.
[0110] The second superposition submodule is used to perform high-frequency filtering and low-frequency filtering on the first superimposed audio data respectively, and superimpose the first superimposed audio data, the first superimposed audio data after high-frequency filtering, and the first superimposed audio data after low-frequency filtering to obtain target left channel audio data.
[0111] Optionally, the superposition module 304 includes:
[0112] The third superposition submodule is used to superimpose the audio data output by the second delay device and the audio data output by the fourth delay device to obtain second superimposed audio data.
[0113] The fourth superposition submodule is used to perform high-frequency filtering and low-frequency filtering on the second superimposed audio data respectively, and superimpose the second superimposed audio data, the second superimposed audio data after high-frequency filtering, and the second superimposed audio data after low-frequency filtering to obtain a target right channel audio frame.
[0114] Optionally, the delay module 303 includes:
[0115] The background sound acquisition submodule subtracts the left channel audio frame and the right channel audio frame of the audio frame to obtain a background sound audio frame corresponding to the audio frame.
[0116] Optionally, the differential surround audio signal generating device 300 further includes:
[0117] A generating module is used to superimpose the target left channel audio data and the target right channel audio data to generate a differential surround audio signal.
[0118] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0119] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the differential surround audio signal generating method described in the above differential surround audio signal generating method embodiment are implemented.
[0120] Based on the same inventive concept, an embodiment of the present disclosure further provides an electronic device, comprising: a first delay device, a second delay device, a third delay device, a fourth delay device, a memory, and a processor;
[0121] The memory is used to store a computer program executed by the processor;
[0122] The processor is used to execute the computer program in the memory to implement the steps of the differential surround audio signal generating method in the above differential surround audio signal generating method embodiment.
[0123] Figure 4 FIG. 4 is a block diagram of an electronic device 400 according to an exemplary embodiment. Figure 4 As shown, the electronic device 400 may include: a processor 401, a memory 402. The electronic device 400 may also include one or more of a multimedia component 403, an input / output (I / O) interface 404, and a communication component 405, and the electronic device also includes a first delay 406, a second delay 407, a third delay 408, and a fourth delay 409.
[0124] The processor 401 is used to control the overall operation of the electronic device 400 to complete all or part of the steps in the above-mentioned differential surround audio signal generation method. The memory 402 is used to store various types of data to support the operation of the electronic device 400, and these data may include, for example, instructions for any application or method operated on the electronic device 400, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 403 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 402 or sent through the communication component 405. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 404 provides an interface between the processor 401 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 405 may include: Wi-Fi module, Bluetooth module, NFC module. The first delay 406, the second delay 407, the third delay 408, and the fourth delay 409 are devices for delaying the output of audio signals.
[0125] In an exemplary embodiment, the electronic device 400 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned differential surround audio signal generation method.
[0126] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned differential surround audio signal generation method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 402 including program instructions, and the above-mentioned program instructions can be executed by the processor 401 of the electronic device 400 to complete the above-mentioned differential surround audio signal generation method.
[0127] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0128] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0129] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A method for generating a differential surround audio signal, characterized in that: The method comprises: Acquire an audio signal, and divide the audio signal into a plurality of audio frames to obtain an audio frame sequence; Separating the audio frames in the audio frame sequence to obtain a left channel audio frame and a right channel audio frame of each audio frame; For each of the audio frames, perform the following steps: Obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame; Input the left channel audio frame of the audio frame to the first delay device, delay it for the first time and output it; input the right channel audio frame of the audio frame to the second delay device, delay it for the second time and output it; input the background sound audio frame of the audio frame to the third delay device, delay it for the third time and output it; input the background sound audio frame of the audio frame to the fourth delay device, delay it for the fourth time and output it; The method further comprises: At the same time, the audio data output by the first delay device and the audio data output by the third delay device are superimposed to obtain target left channel audio data; and, Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain target right channel audio data; The target left channel audio data and the target right channel audio data are used to generate a differential surround audio signal, and a time difference between the first duration and the second duration is smaller than a time difference between the third delay and the fourth delay.
2. The method according to claim 1, characterized in that The first duration, the second duration, the third duration and the fourth duration have the following relationship: TD1=T A -T B ; TD2=T L -T R ; Wherein, TD1 is the first preset parameter, TD2 is the second preset parameter, and T A is the third duration, the T B is the fourth duration, the T L is the first duration, the T R This is the second duration.
3. The method according to claim 1, characterized in that At the same time, the audio data output by the first delay device and the audio data output by the third delay device are superimposed to obtain target left channel audio data, including: Superimposing the audio data output by the first delay device and the audio data output by the third delay device to obtain first superimposed audio data; The first superimposed audio data is respectively subjected to high-frequency filtering and low-frequency filtering, and the first superimposed audio data, the first superimposed audio data after the high-frequency filtering, and the first superimposed audio data after the low-frequency filtering are superimposed to obtain target left channel audio data.
4. The method according to claim 3, characterized in that The audio data output by the second delay device and the audio data output by the fourth delay device are superimposed to obtain target right channel audio data, including Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain second superimposed audio data; The second superimposed audio data is respectively subjected to high-frequency filtering and low-frequency filtering, and the second superimposed audio data, the second superimposed audio data after the high-frequency filtering, and the second superimposed audio data after the low-frequency filtering are superimposed to obtain a target right channel audio frame.
5. The method according to any one of claims 1 to 4, characterized in that: The step of obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame comprises: The left channel audio frame and the right channel audio frame of the audio frame are subtracted to obtain a background sound audio frame corresponding to the audio frame.
6. The method according to claim 5, characterized in that The method further comprises: The target left channel audio data and the target right channel audio data are superimposed to generate a differential surround audio signal.
7. A differential surround audio signal generating device, characterized in that: The device comprises: An acquisition module, used for acquiring an audio signal, and dividing the audio signal into a plurality of audio frames to obtain an audio frame sequence; A separation module, used for separating the audio frames in the audio frame sequence to obtain a left channel audio frame and a right channel audio frame of each audio frame; The delay module is used to perform the following steps for each of the audio frames: Obtaining a background sound audio frame corresponding to the audio frame according to a left channel audio frame and a right channel audio frame corresponding to the audio frame; Input the left channel audio frame of the audio frame to the first delay device, delay it for the first time and output it; input the right channel audio frame of the audio frame to the second delay device, delay it for the second time and output it; input the background sound audio frame of the audio frame to the third delay device, delay it for the third time and output it; input the background sound audio frame of the audio frame to the fourth delay device, delay it for the fourth time and output it; The device further includes a superposition module, which is used to superimpose the audio data output by the first delay device and the audio data output by the third delay device at the same time to obtain target left channel audio data; and Superimposing the audio data output by the second delay device and the audio data output by the fourth delay device to obtain target right channel audio data; The target left channel audio data and the target right channel audio data are used to generate a differential surround audio signal, and a time difference between the first duration and the second duration is smaller than a time difference between the third delay and the fourth delay.
8. The device according to claim 7, characterized in that The first duration, the second duration, the third duration and the fourth duration have the following relationship: TD1=T A -T B ; TD2=T L -T R ; Wherein, TD1 is the first preset parameter, TD2 is the second preset parameter, and T A is the third duration, the T B is the fourth duration, the T L is the first duration, the T R It is the second duration, and the first preset parameter is greater than the second preset parameter.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
10. An electronic device, characterized in that: include: A first delay device, a second delay device, a third delay device, a fourth delay device, a memory and a processor; The memory is used to store a computer program executed by the processor; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Three-dimensional around sound effect technology aiming at double-track audio signal
CN101155440A
Method and apparatus for processing double-track audio signals
CN104010264A
Inter-channel bandwidth extension
CN110447072A
Method and a circuit for decoding four channel signals which are coded in a matrix and available in the form of a two-channel signal
US4850021A
Voice converter
US5963907A
