Audio processing method, device, electronic device and storage medium
By adjusting the physical characteristics of the audio data and based on the positional relationship between the sound source device and the listening area, multi-channel audio data is generated, which solves the problem of insufficient spatial sense of audio files when the speakers are fixed, and achieves a higher spatial sense of audio files and Auditory experience.
Patent Information
- Application Number
- CN202310572969.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-05-19
AI Technical Summary
The existing technology cannot effectively improve the spatial sense of audio files when the position and number of speakers are fixed.
By determining multiple target sound emission channels according to the received audio processing instructions, and adjusting the physical characteristics of the audio data according to the relative position of the sound source device and the listening area, multi-channel audio data is generated to increase the spatial sense of the audio file.
When the number and position of speakers are fixed, the spatial sense of audio files can be improved, so that the multi-channel audio data played by the sound source device can be transmitted to the designated listening area, enhancing the user's listening experience.
Smart Images

Figure CN116389982B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of signal processing technology, and in particular, to an audio processing method, device, electronic device and storage medium. Background Art
[0002] Currently, the audio source files are mainly mono and dual-channel files. Mono files have only one channel and do not contain any spatial information. The sound position is consistent with the speaker position. Dual-channel files contain left and right channels. The sound data can include the information of the left and right spaces through a certain algorithm, so that the listening user can feel the existence of the space. However, according to the current development of demand, the audio files played are required to have a higher sense of space.
[0003] Currently, in order to solve the above problem, a common method is to adjust the number and position of various types of speakers, and play the audio file through the adjusted speakers, so that the played audio file can have a certain sense of space.
[0004] However, in most sound generation scenarios, the positions and number of speakers are relatively fixed. With existing methods, when the speakers are fixed, it is impossible to make the played audio files have a sense of space.
[0005] Application Contents
[0006] In view of this, embodiments of the present application provide an audio processing method, device, electronic device and storage medium to at least partially solve the above problems.
[0007] According to a first aspect of an embodiment of the present application, an audio processing method is provided, comprising: determining a plurality of target sound emission channels according to a received audio processing instruction, wherein each of the target sound emission channels corresponds to at least one sound source device; adjusting the physical characteristics of first audio data according to the relative position of the sound source device corresponding to each of the target sound emission channels and a listening area, to obtain second audio data corresponding to each of the target sound emission channels, wherein the physical characteristics of the first audio data include at least one of frequency response, energy intensity, number of channels and phase, and the number of channels corresponding to the first audio data is less than 3; generating multi-channel audio data according to the second audio data corresponding to each of the target sound emission channels, wherein the number of channels corresponding to the multi-channel audio data is greater than or equal to 2.
[0008] According to a second aspect of an embodiment of the present application, an audio processing device is provided, comprising: a determination module, for determining the number of target sound channels according to parameters of a sound source device in a target area, wherein each of the target sound channels corresponds to at least one sound source device; an adjustment module, for adjusting the physical characteristics of first audio data according to the relative position of the sound source device corresponding to each of the target sound channels and a listening area, to obtain second audio data corresponding to each of the target sound channels, wherein the physical characteristics of the first audio data include at least one of frequency response, energy intensity, number of channels and phase, and the number of channels corresponding to the first audio data is less than 3; a generation module, for generating multi-channel audio data according to the second audio data corresponding to each of the target sound channels, wherein the number of channels corresponding to the multi-channel audio data is greater than or equal to 2.
[0009] According to the third aspect of the embodiments of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the audio processing method described in the first aspect of the embodiments.
[0010] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the audio processing method as described in the first aspect of the embodiment is implemented.
[0011] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising computer instructions, wherein the computer instructions instruct a computing device to perform operations corresponding to the audio processing method described in the first aspect of the embodiment.
[0012] According to the above technical solution, multiple target sound channels are determined according to the audio processing instruction, and the number of sound source devices that emit sound can be controlled when the number and position of the sound source devices are fixed, so as to improve the spatial sense of the played audio file. The physical characteristics of the audio data are adjusted according to the relative position of the sound source device and the target listening area, so that the multi-channel audio data played by the sound source device can be transmitted to the designated listening area, and at the same time, the played audio file can have a higher spatial sense. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0014] Figure 1 A schematic diagram of an exemplary system applicable to the audio processing method of an embodiment of the present application;
[0015] Figure 2 is a flowchart of the steps of an audio processing method according to an embodiment of the present application;
[0016] Figure 3 is a structural block diagram of an audio processing device according to an embodiment of the present application;
[0017] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0019] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0020] Exemplary Systems
[0021] Figure 1 An exemplary system for the audio processing method of the present application is shown. Figure 1 As shown, the system 100 may include a user device 102 , a multi-channel sound card 104 , a power amplifier unit 106 , and a communication network 108 .
[0022] User device 102 may include any suitable type of device. For example, in some embodiments, user device 102 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, a wearable computer, a game console, a media player, a vehicle entertainment system, and / or any other suitable type of user device.
[0023] The multi-channel sound card 104 can support the playback of single-channel or multi-channel audio files.
[0024] The power amplifier unit 106 can support amplification of audio signals. In some embodiments, the power amplifier unit 106 can be a sound-generating device such as a closed speaker, a bass reflex speaker, a labyrinth speaker, a sonic tube speaker, and a multi-resonance speaker.
[0025] In some embodiments, the communication network 108 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 108 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN) and / or any other suitable communication network. The user device 102 can be connected to the communication network 108 via one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the multi-channel sound card 104 via one or more communication links (e.g., communication link 114). The communication link can be any communication link suitable for transmitting data between the user device 102 and the multi-channel sound card 104, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link or any suitable combination of such links.
[0026] Based on the above system, an embodiment of the present application provides an audio processing method, which is described below through multiple embodiments.
[0027] Audio Processing Methods
[0028] Figure 2 is a flowchart of the steps of an audio processing method according to an embodiment of the present application, such as Figure 2 As shown, the audio processing method includes:
[0029] Step 201: Determine multiple target sound channels according to the received audio processing instruction.
[0030] In order to process the audio and ultimately make the played audio file have a sense of space, firstly, a plurality of target sound emission channels are determined according to the received audio processing instruction, and each target sound emission channel corresponds to at least one sound source device.
[0031] The audio processing instruction may be an instruction issued to trigger a certain audio playback mode in the current sound environment. For example, the sound environment may be the interior environment of a car. When the audio playback mode for playing audio to the main driving position is triggered, an audio processing instruction is generated to determine multiple target sound channels. The target sound channels may correspond to one sound source device or multiple sound source devices. The sound source devices corresponding to the target sound channels may play the audio data transmitted by the target sound channels. The audio file finally played has a sense of space of the main driving position in the interior environment of the car. Users in the interior environment of the car can feel that the sound area of the audio file is the main driving position.
[0032] It should be noted that the audio processing instruction can silence some sound channels and thus silence some sound source devices.
[0033] Step 202: According to the relative position of the sound source device corresponding to each target sound emission channel and the target listening area, the physical characteristics of the first audio data are adjusted to obtain the second audio data corresponding to each target sound emission channel.
[0034] Since the audio processing instruction is generated according to the audio playback mode, the target listening area can be determined according to the audio playback mode. After determining the target sound emission channel, the physical characteristics of the first audio data are adjusted according to the relative position of the sound source device corresponding to each target sound emission channel and the target listening area to obtain the second audio data. The number of channels corresponding to the first audio data is less than 3, that is, the first audio data can be a mono file or a dual-channel file, and the physical characteristics of the first audio data include at least one of frequency response, energy intensity, number of channels and phase.
[0035] It should be noted that, in the process of adjusting the physical characteristics of the first audio data, depending on the relative position of the sound source device and the listening area, only one of the physical characteristics of part of the first audio data may be adjusted, multiple physical characteristics may be adjusted, or part of the first audio data may not be adjusted.
[0036] Step 203: Generate multi-channel audio data according to the second audio data corresponding to each target sound emission channel.
[0037] After obtaining the second audio data, the second audio data corresponding to each target sound channel are fused so that each second audio data occupies one channel to generate multi-channel audio data, and the number of channels corresponding to the multi-channel audio data is greater than or equal to 2.
[0038] In the embodiment of the present application, multiple target sound channels are determined according to the audio processing instruction, and the number of sound source devices that emit sound can be controlled when the number and position of the sound source devices are fixed, so as to improve the spatial sense of the played audio file. The physical characteristics of the audio data are adjusted according to the relative position of the sound source device and the listening area, so that the multi-channel audio data played by the sound source device can be transmitted to the designated listening area, and at the same time, the played audio file can have a higher spatial sense.
[0039] In a feasible manner, the audio processing process may further include: obtaining audio data to be processed, and then adjusting the physical characteristics of the audio data to be processed according to the relative physical positions of each sound source device to obtain first audio data.
[0040] In the process of processing audio, you can also first obtain the audio data to be processed that needs to be played, and adjust the physical characteristics of the audio data to be processed according to the relative physical positions of each sound source device, such as the height, angle and distance relative to the target listening area. The physical characteristics of the audio data to be processed include frequency response, number of channels, dry-wet ratio in spectral energy, early reflection and at least one of decay time. After adjusting the physical characteristics of the audio data, the first audio data is obtained.
[0041] In the embodiment of the present application, the physical characteristics of the audio data to be processed that needs to be played later are adjusted by the relative physical positions of the sound source devices, so that the first audio data obtained after the adjustment can have a certain sense of space.
[0042] In one feasible manner, the physical characteristics of the first audio data are adjusted according to the relative positions of the sound source devices corresponding to each target sound emission channel and the target listening area, and the process of obtaining the second audio data corresponding to each target sound emission channel may also include:
[0043] According to the relative position of the sound source device corresponding to each target sound channel and the target listening area, the transfer function corresponding to each target sound channel is determined, and then the first audio data is processed by each transfer function respectively to obtain the second audio data for each target sound channel.
[0044] In the process of adjusting the first audio data, the relative position of the sound source device and the target listening area corresponding to each target sound channel can be obtained first. The relative position can include parameters such as the straight-line distance, angle and height between the sound source device and the target listening area. Then, according to the relative position, the transfer function corresponding to each target sound channel is determined respectively. The transfer function is used to indicate the relationship between the input signal and the output signal of the target sound channel. The transfer function is adjusted, and then the first audio data is processed by each transfer function respectively, that is, the physical characteristics of the input first audio data can be adjusted to obtain the second audio data output by each transfer function, and the sound source corresponding to the second audio data is located in the target listening area.
[0045] In the embodiment of the present application, the first audio data is processed by the transfer function corresponding to each target sound emission channel, so that the sound source corresponding to the adjusted second audio data is located within the required listening area, further improving the spatial sense of the output audio data.
[0046] For example, in the process of determining the transfer function corresponding to each target sound channel, the transfer function of each sound source device can be dynamically adjusted. The transfer function can be adjusted by adjusting the physical properties of the input audio data. After each adjustment, a virtual sound source can be reconstructed to increase the surround spatial sense of the sound through different virtual sound source positions.
[0047] In the embodiment of the present application, the spatial distance sense of the sound can be increased by dynamically changing the physical characteristics of the audio data of each group of channels according to the relative positions of the sound source devices corresponding to each target sound emission channel and the target listening area.
[0048] In one feasible method, the audio processing process may also include: playing multi-channel audio data through each sound source device, and collecting the output audio data of each sound source device through a receiving device, then generating a filter group according to each output audio data, and finally updating the parameters of the transfer function corresponding to each target sound channel according to the filter group.
[0049] In order to further adjust the output audio data, the multi-channel audio data can be played through each sound source device first. In order to reduce the complexity of execution, this multi-channel audio data can be the second audio data. It should be noted that any other multi-channel audio data can also be used for playback. At the same time, the output audio data of each sound source device is collected through the sound receiving device. According to the data of the output audio data, a filter group can be generated to update the parameters of the transfer function corresponding to each target sound channel respectively. The audio data output by each target sound channel after the update can meet business needs or other needs.
[0050] In an embodiment of the present application, by generating a filter group and updating the parameters of the transfer function corresponding to each target sound emission channel, the spatial sense or sound quality of the output audio data can be further improved, thereby improving the quality of the output audio data.
[0051] In one feasible embodiment, the process of generating multi-channel audio data based on the second audio data corresponding to each target sound channel may also include: according to a pre-set compensation mode, compensating the audio data of different frequency bands in the second audio data through an equalizer to obtain third audio data corresponding to the second audio data, and then fusing each third audio data to obtain multi-channel audio data.
[0052] In order to further improve the quality of the output audio data, in the process of generating multi-channel audio data according to the second audio data, the audio data of different frequency bands in the second audio data may be compensated by an equalizer according to a preset compensation mode.
[0053] For example, the equalizer may be an EQ (Equalizer) module, which can adjust the frequency of the output audio data according to the configuration parameters. The preset compensation mode may be frequency response compensation of each channel, increase bass, highlight human voice, reduce treble, etc., and the audio data of different frequency bands in the second audio data may be compensated through different mode requirements.
[0054] In the embodiment of the present application, in the process of generating multi-channel audio data, the second audio data is compensated by an equalizer, so that the sound quality of the second audio data can be further improved and the user experience can be improved.
[0055] In one feasible embodiment, the process of generating multi-channel audio data based on the second audio data corresponding to each target sound channel may also include: adding a delay parameter to at least one second audio data to obtain corresponding fourth audio data, and then fusing the second audio data to which the delay parameter is not added and each fourth audio data to obtain multi-channel audio data.
[0056] In order to further improve the quality of the output audio data, in the process of generating multi-channel audio data based on the second audio data, a delay parameter can be added to at least one second audio data to obtain corresponding fourth audio data, so that the sound time of some target sound channels has a certain delay relative to the occurrence time of other target occurrence channels, and then the second audio data to which the delay parameter is not added and the fourth audio data are fused to obtain multi-channel audio data.
[0057] In the embodiment of the present application, by adding a delay parameter to at least one second audio data, the diversity of audio playback can be improved, and the spatial sense of the output audio data can be further improved by using a partial delayed sound mode.
[0058] It should be noted that the operations of compensating the second audio data through an equalizer and adding a delay parameter to at least one second audio data can be performed successively. Specifically, the process of generating multi-channel audio data can also include: according to a pre-set compensation mode, compensating the audio data of different frequency bands in the second audio data through an equalizer to obtain the third audio data corresponding to the second audio data, and then adding a delay parameter to at least one third audio data to obtain the corresponding fourth audio data; finally, the third audio data to which the delay parameter is not added and the fourth audio data are merged to obtain multi-channel audio data.
[0059] In one feasible method, the sound sources are divided into different sound source groups according to the sound source devices corresponding to each target sound channel, the relative position of each sound source device and the target listening area, and the sound position to be simulated, and the physical characteristics of the second audio data corresponding to each group of sound sources are dynamically changed.
[0060] For example, the distance change parameter can be calculated based on the sound source device corresponding to each target sound channel, the relative position of each sound source device and the target listening area, and the sound position to be simulated, and then the distance change parameter is added to the second audio data. This parameter can make the physical characteristics of the second audio data change accordingly when it is played, so that the listening area can be changed, thereby generating a sense of distance change. It is also possible to calculate the relevant gain based on the sound source device corresponding to each target sound channel, the relative position of each sound source device and the target listening area, and the sound position to be simulated, and then add the relevant gain to the second audio data through the filter group, so that the second audio data has a sense of distance change when it is played.
[0061] In the embodiment of the present application, by adding a distance change parameter to the second audio data, the listening area can be changed, thereby generating a sense of distance change.
[0062] Audio processing device
[0063] Figure 3 is a structural block diagram of an audio processing device according to an embodiment of the present application, such as Figure 3 As shown, the audio processing device 300 may include: a determination module 301 , an adjustment module 302 and a generation module 303 .
[0064] The determination module 301 is used to determine a plurality of target sound emission channels according to the received audio processing instruction, wherein each of the target sound emission channels corresponds to at least one sound source device.
[0065] In order to process the audio and finally make the played audio file have a sense of space, the determination module 301 first determines a plurality of target sound emission channels according to the received audio processing instruction, and each target sound emission channel corresponds to at least one sound source device.
[0066] The audio processing instruction may be an instruction issued to trigger a certain audio playback mode in the current sound environment. For example, the sound environment may be the interior environment of a car. When the audio playback mode for playing audio to the main driving position is triggered, an audio processing instruction is generated to determine multiple target sound channels. The target sound channels may correspond to one sound source device or multiple sound source devices. The sound source devices corresponding to the target sound channels may play the audio data transmitted by the target sound channels. The audio file finally played has a sense of space of the main driving position in the interior environment of the car. Users in the interior environment of the car can feel that the sound area of the audio file is the main driving position.
[0067] It should be noted that the audio processing instruction can silence some sound channels and thus silence some sound source devices.
[0068] The adjustment module 302 is used to adjust the physical characteristics of the first audio data according to the relative position of the sound source device corresponding to each target sound channel and the target listening area, so as to obtain the second audio data corresponding to each target sound channel, wherein the number of channels corresponding to the first audio data is less than 3.
[0069] Since the audio processing instruction is generated according to the audio playback mode, the target listening area can be determined according to the audio playback mode. After the determination module 301 determines the target sound channel, the adjustment module 302 adjusts the physical characteristics of the first audio data according to the relative position of the sound source device corresponding to each target sound channel and the target listening area to obtain the second audio data. The number of channels corresponding to the first audio data is less than 3, that is, the first audio data can be a mono file or a dual-channel file.
[0070] It should be noted that in the process of adjusting the physical characteristics of the first audio data, depending on the relative position of the sound source device and the listening area, only one of the physical characteristics of part of the first audio data may be adjusted, multiple physical characteristics may be adjusted, or part of the first audio data may not be adjusted.
[0071] The generating module 303 is configured to generate multi-channel audio data according to the second audio data corresponding to each of the target sound emission channels, wherein the number of channels corresponding to the multi-channel audio data is greater than or equal to 2.
[0072] After the adjustment module 302 obtains the second audio data, the generation module 303 merges the second audio data corresponding to each target sound channel so that each second audio data occupies one channel, thereby generating multi-channel audio data.
[0073] In the embodiment of the present application, the determination module 301 determines multiple target sound channels according to the audio processing instruction, and can control the number of sound source devices that emit sound when the number and position of the sound source devices are fixed, so as to improve the spatial sense of the played audio file. The adjustment module 302 adjusts the physical characteristics of the audio data according to the relative position of the sound source device and the listening area, so that the multi-channel audio data played by the sound source device can be transmitted to the specified listening area, and at the same time, the played audio file can have a higher spatial sense.
[0074] It should be noted that, since the information interaction, execution process, etc. between the modules in the above-mentioned audio processing device are based on the same concept as the above-mentioned audio processing method embodiment, the specific contents can be found in the description of the above-mentioned audio processing method embodiment and will not be repeated here.
[0075] Electronic devices
[0076] In this embodiment, an electronic device 400 is provided, such as Figure 4 As shown, the electronic device 400 may include: a processor 401, a communications interface 402, a memory 403, and a communication bus 404. Among them:
[0077] The processor 401 , the communication interface 402 , and the memory 403 communicate with each other via the communication bus 404 .
[0078] The communication interface 402 is used to communicate with other electronic devices or servers.
[0079] The processor 401 is used to execute the program 405, and specifically can execute the relevant steps in the above-mentioned audio processing method embodiment.
[0080] Specifically, the program 405 may include program codes, which include computer operation instructions.
[0081] The processor 401 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0082] The memory 403 is used to store the program 405. The memory 403 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0083] The program 405 may be specifically used to enable the processor 401 to execute the audio processing method in the aforementioned embodiment.
[0084] The specific implementation of each step in program 405 can refer to the corresponding description of the corresponding steps and units in the above-mentioned audio processing method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0085] The electronic device of the embodiment of the present application determines multiple target sound channels according to the audio processing instruction, and can control the number of sound source devices that emit sound when the number and position of the sound source devices are fixed, so as to improve the spatial sense of the played audio file. The physical characteristics of the audio data are adjusted according to the relative position of the sound source device and the listening area, so that the multi-channel audio data played by the sound source device can be transmitted to the designated listening area, and at the same time, the played audio file can have a higher spatial sense.
[0086] Computer storage media
[0087] In this embodiment, a computer-readable storage medium is provided, which stores instructions for causing a machine to execute the audio processing method as described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0088] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.
[0089] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0090] Computer program product
[0091] In this embodiment, a computer program product is provided, including computer instructions, which instruct a computing device to perform any corresponding operation in the above-mentioned multiple method embodiments.
[0092] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0093] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown here.
[0094] It should be noted that in the description of this application, the terms "first" and "second" are only used to facilitate the description of different components or names, and cannot be understood as indicating or implying a sequential relationship, relative importance, or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0095] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0096] It should be noted that although the specific embodiments of the present application are described in detail in conjunction with the accompanying drawings, this should not be construed as limiting the scope of protection of the present application. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still fall within the scope of protection of the present application.
[0097] The examples of the embodiments of the present application are intended to concisely illustrate the technical features of the embodiments of the present application so that those skilled in the art can intuitively understand the technical features of the embodiments of the present application, and are not intended to be improper limitations of the embodiments of the present application.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An audio processing method, It is characterized in that include: Determine a plurality of target sound emission channels according to the received audio processing instruction, wherein each of the target sound emission channels corresponds to at least one sound source device; Adjusting the physical characteristics of the first audio data according to the relative position of the sound source device corresponding to each of the target sound emission channels and the target listening area to obtain second audio data corresponding to each of the target sound emission channels, wherein the physical characteristics of the first audio data include at least one of frequency response, energy intensity, number of channels and phase, and the number of channels corresponding to the first audio data is less than 3; Generate multi-channel audio data according to the second audio data corresponding to each of the target sound emission channels, wherein the number of channels corresponding to the multi-channel audio data is greater than or equal to 2, and the listening area in which the multi-channel audio data is played in the sound source device is the target listening area; The method further comprises: Calculate the distance change parameter or gain according to the sound source device corresponding to each target sound channel, the relative position of each sound source device and the target listening area, and the sound position to be simulated; The sound source devices are divided into different sound source device groups, and the distance change parameter or the gain is added to the second audio data corresponding to the target sound emission channel corresponding to each group of sound source devices, so that the processed second audio data produces a sense of distance change when being played.
2. The method according to claim 1, It is characterized in that The method further comprises: Get the audio data to be processed; According to the relative physical positions of the sound source devices, the physical characteristics of the audio data to be processed are adjusted to obtain the first audio data, wherein the relative physical positions of the sound source devices at least include the height, angle and distance of the sound source devices relative to the target listening area, and the physical characteristics of the audio data to be processed include at least one of the frequency response, the number of channels, the dry-wet ratio in the spectrum energy, the early reflection and the decay time.
3. The method according to claim 1, It is characterized in that The adjusting the physical characteristics of the first audio data according to the relative positions of the sound source devices corresponding to the target sound emission channels and the target listening area to obtain the second audio data corresponding to the target sound emission channels includes: Determine a transfer function corresponding to each of the target sound emission channels according to the relative position of the sound source device corresponding to each of the target sound emission channels and the target listening area, wherein the transfer function is used to adjust the physical characteristics of the input audio data; The first audio data is processed respectively by using each of the transfer functions to obtain the second audio data for each of the target sound emission channels, wherein the sound image corresponding to the second audio data is located within the target listening area.
4. The method according to claim 3, It is characterized in that The method further comprises: Play the multi-channel audio data through each sound source device, and collect the output audio data of each sound source device through a sound receiving device; generating a filter bank according to each of the output audio data; The transfer function corresponding to each of the target vocalization channels is updated with parameters according to the filter group.
5. The method according to any one of claims 1 to 4, It is characterized in that The generating multi-channel audio data according to the second audio data corresponding to each of the target sound emission channels includes: According to a preset compensation mode, the audio data of different frequency bands in the second audio data are compensated by an equalizer to obtain third audio data corresponding to the second audio data; The third audio data are merged to obtain the multi-channel audio data.
6. The method according to any one of claims 1 to 4, It is characterized in that The generating multi-channel audio data according to the second audio data corresponding to each of the target sound emission channels includes: adding a delay parameter to at least one of the second audio data to obtain corresponding fourth audio data; The second audio data without adding the delay parameter and each of the fourth audio data are merged to obtain the multi-channel audio data.
7. An audio processing device, It is characterized in that include: A determination module, configured to determine a plurality of target sound emission channels according to the received audio processing instruction, wherein each of the target sound emission channels corresponds to at least one sound source device; an adjustment module, configured to adjust the physical characteristics of the first audio data according to the relative position of the sound source device corresponding to each of the target sound emission channels and the target listening area, to obtain the second audio data corresponding to each of the target sound emission channels, wherein the physical characteristics of the first audio data include at least one of frequency response, energy intensity, number of channels and phase, and the number of channels corresponding to the first audio data is less than 3; A generating module, configured to generate multi-channel audio data according to the second audio data corresponding to each of the target sound emission channels, wherein the number of channels corresponding to the multi-channel audio data is greater than or equal to 2, and the listening area in which the multi-channel audio data is played in the sound source device is the target listening area; The adjustment module is further used to calculate the distance change parameter or gain according to the sound source devices corresponding to each target sound channel, the relative position of each sound source device and the target listening area, and the sound position to be simulated, divide the sound source devices into different sound source device groups, and add the distance change parameter or the gain to the second audio data corresponding to the target sound channel corresponding to each group of sound source devices, so that the processed second audio data produces a sense of distance change when being played.
8. An electronic device, It is characterized in that include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the audio processing method according to any one of claims 1 to 6.
9. A computer storage medium, It is characterized in that A computer program is stored thereon, and when the program is executed by a processor, the audio processing method according to any one of claims 1 to 6 is implemented.
10. A computer program product, It is characterized in that The method comprises computer instructions, wherein the computer instructions instruct a computing device to execute operations corresponding to the audio processing method according to any one of claims 1 to 6.
