WO2020073562A1 - 音频处理方法和装置 - Google Patents

音频处理方法和装置 Download PDF

Info

Publication number
WO2020073562A1
WO2020073562A1 PCT/CN2019/072946 CN2019072946W WO2020073562A1 WO 2020073562 A1 WO2020073562 A1 WO 2020073562A1 CN 2019072946 W CN2019072946 W CN 2019072946W WO 2020073562 A1 WO2020073562 A1 WO 2020073562A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
adjustment
reverberation
processed
adjusted
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.)
Ceased
Application number
PCT/CN2019/072946
Other languages
English (en)
French (fr)
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Publication of WO2020073562A1 publication Critical patent/WO2020073562A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/18Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being spectral information of each sub-band
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers
    • H04R3/04Circuits for transducers for correcting frequency response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control

Definitions

  • the embodiments of the present disclosure relate to the field of computer technology, and in particular to audio processing methods and devices.
  • the embodiments of the present disclosure propose an audio processing method and device.
  • an embodiment of the present disclosure provides an audio processing method, which includes: acquiring audio to be processed; performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain first adjusted audio; and adjusting sound field for the first adjusted audio To obtain the second adjusted audio; in response to determining that the difference between the loudness of the audio to be processed and the second adjusted audio is greater than or equal to the preset loudness difference threshold, adjust the loudness of the second adjusted audio to obtain the processed audio.
  • performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain the first adjusted audio includes: based on the performance of the current device, performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain the first adjusted audio.
  • performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain the first adjusted audio includes: receiving an algorithm category list sent by the server, and the algorithm category list is used to characterize device information and mixing Correspondence between categories of reverberation algorithms, where device information is used to characterize device performance, and reverberation algorithm category is used to characterize the category to which the reverberation algorithm belongs; query the reverberation algorithm corresponding to device information of the current device in the algorithm category list The category and the algorithm corresponding to the reverberation algorithm category obtained from the query perform reverberation adjustment on the audio to be processed to obtain the reverberation adjusted audio; perform equalization adjustment on the audio to be processed after the reverberation adjustment to obtain the first adjusted audio.
  • performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain the first adjusted audio includes: determining a reverberation algorithm corresponding to the reverberation category based on the reverberation category selected by the user; and based on the determined reverberation algorithm Perform reverberation adjustment on the audio to be processed to obtain the reverberation adjusted audio; perform equalization adjustment on the audio to be processed after the reverberation adjustment to obtain the first adjusted audio.
  • the method before performing reverberation adjustment and equalization adjustment on the to-be-processed audio to obtain the first adjusted audio, the method further includes: extracting the frequency spectrum of the to-be-processed audio; and for the to-be-processed audio after the reverberation adjustment Performing equalization adjustment to obtain the first adjusted audio includes: in response to determining that the energy difference between two frequency points in the spectrum is greater than a preset first energy difference threshold, reducing the gain of the frequency band where the two frequency points in the first adjusted audio are located; In response to determining that the energy difference between two frequency points in the frequency spectrum is less than a preset second energy difference threshold, the gain of the frequency band where the two frequency points in the first adjustment are increased is increased.
  • an embodiment of the present disclosure provides an audio processing device, including: an audio acquisition unit configured to acquire audio to be processed; a first adjustment unit configured to perform reverberation adjustment and equalization adjustment on the audio to be processed to obtain The first adjusted audio; the second adjusted unit configured to perform sound field adjustment on the first adjusted audio to obtain the second adjusted audio; the third adjusted unit configured to respond to determining the difference in loudness between the audio to be processed and the second adjusted audio The value is greater than or equal to the preset loudness difference threshold, and the loudness of the second adjusted audio is adjusted to obtain processed audio.
  • the first adjustment unit is further configured to perform reverberation adjustment and equalization adjustment on the audio to be processed based on the performance of the current device to obtain the first adjusted audio.
  • the first adjustment unit is further configured to: receive an algorithm category list sent by the server, the algorithm category list is used to characterize the correspondence between the device information and the reverb algorithm category, wherein the device information is used to characterize Equipment performance, the reverberation algorithm category is used to characterize the category of the reverberation algorithm; in the algorithm category list, query the reverberation algorithm category corresponding to the device information of the current device, and the algorithm corresponding to the reverberation algorithm category obtained from the query to be processed Adjust the reverberation of the audio to obtain the reverberation adjusted audio; perform equalization adjustment on the to-be-processed audio after the reverberation adjustment to obtain the first adjusted audio.
  • the first adjustment unit is further configured to: determine a reverberation algorithm corresponding to the reverberation category based on the reverberation category selected by the user; perform reverberation adjustment on the audio to be processed based on the determined reverberation algorithm to obtain a reverberation Adjusted audio; adjust the balance of the reverberation adjusted audio to obtain the first adjusted audio.
  • the apparatus further includes: an extraction unit configured to extract the frequency spectrum of the audio to be processed; and the first adjustment unit is further configured to: in response to determining that the energy difference between two frequency points in the spectrum is greater than a preset The first energy difference threshold reduces the gain of the frequency band where the two frequency points in the first adjusted audio frequency; in response to determining that the energy difference between the two frequency points in the spectrum is less than the preset second energy difference threshold, increases the first adjustment The gain of the frequency band where the two frequency points are located.
  • an extraction unit configured to extract the frequency spectrum of the audio to be processed
  • the first adjustment unit is further configured to: in response to determining that the energy difference between two frequency points in the spectrum is greater than a preset The first energy difference threshold reduces the gain of the frequency band where the two frequency points in the first adjusted audio frequency; in response to determining that the energy difference between the two frequency points in the spectrum is less than the preset second energy difference threshold, increases the first adjustment The gain of the frequency band where the two frequency points are located.
  • an embodiment of the present disclosure provides a terminal device, the terminal device includes: one or more processors; a storage device, on which one or more programs are stored; Or executed by multiple processors, so that the above one or more processors implement the method described in any one of the implementation manners of the first aspect.
  • an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored.
  • the program is executed by a processor, the method described in any one of the implementation manners of the first aspect is implemented.
  • the method and device provided by the embodiments of the present disclosure first perform reverberation adjustment and balance adjustment on the acquired audio to be processed to obtain first adjusted audio. After that, the sound field is adjusted for the first adjusted audio to obtain the second adjusted audio. In response to determining that the difference between the loudness of the audio to be processed and the second adjusted audio is greater than or equal to a preset loudness difference threshold, the loudness of the second adjusted audio is adjusted to obtain processed audio.
  • the loudness of the second adjusted audio is adjusted to obtain processed audio.
  • various environmental effects can be added and the frequency spectrum of the audio can be finely adjusted.
  • the sound field of the audio may be destroyed, causing the sound field to collapse. Sound field adjustment can compensate for sound field damage.
  • by adjusting the loudness of the second adjusted audio it is avoided that the change in loudness due to the processing of the audio is too large.
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present disclosure can be applied;
  • FIG. 2 is a flowchart of an embodiment of an audio processing method according to the present disclosure
  • FIG. 3 is a schematic diagram of an application scenario of an audio processing method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an embodiment of an audio processing device according to the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device suitable for implementing embodiments of the present disclosure.
  • FIG. 1 shows an exemplary system architecture 100 to which an audio processing method or apparatus of an embodiment of the present disclosure can be applied.
  • the system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105.
  • the network 104 is a medium used to provide a communication link between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
  • the user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, and so on.
  • Various communication client applications such as singing applications, video recording and sharing applications, and audio processing applications, can be installed on the terminal devices 101, 102, and 103.
  • the terminal devices 101, 102, and 103 may be hardware or software.
  • the terminal devices 101, 102, and 103 are hardware, they may be various electronic devices that have a display screen and support audio processing.
  • the terminal devices 101, 102, and 103 are software, they can be installed in the above electronic device. It can be implemented as multiple software or software modules, or as a single software or software module. There is no specific limit here.
  • the server 105 may be a server that provides various services, for example, a back-end server that supports applications installed on the terminal devices 101, 102, and 103.
  • the audio processing method provided by the embodiments of the present disclosure is generally executed by the terminal devices 101, 102, and 103.
  • the audio processing device is generally provided in the terminal devices 101, 102, 103.
  • the server can be hardware or software.
  • the server can be implemented as a distributed server cluster composed of multiple servers or as a single server.
  • the server is software, it can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. There is no specific limit here.
  • terminal devices, networks, and servers in FIG. 1 are only schematic. According to the implementation needs, there can be any number of terminal devices, networks and servers.
  • the audio processing method includes:
  • Step 201 Acquire audio to be processed.
  • the execution subject of the audio processing method can acquire the audio to be processed in various ways.
  • the above-mentioned execution subject can record the voice of the user singing through the recording device to obtain the audio to be processed.
  • the recording device may be integrated on the above-mentioned executive body, or may be in communication connection with the executive body, which is not limited in this disclosure.
  • the above-mentioned execution subject may also obtain pre-stored audio from the local or other storage device connected as the audio to be processed.
  • the audio to be processed may be any audio.
  • the audio to be processed can be specified by a technician or can be filtered according to certain conditions.
  • the audio to be processed may be a complete audio sung by the user or an audio segment sung by the user.
  • the audio to be processed may also be an audio segment with a short singing time (for example, 30 milliseconds) by the user.
  • Step 202 Perform reverberation adjustment and balance adjustment on the audio to be processed to obtain first adjusted audio.
  • the execution subject may first perform reverberation adjustment and balance adjustment on the audio to be processed to obtain first adjusted audio.
  • the above-mentioned execution subject may adjust the reverberation and the balance of the audio to be processed in various ways.
  • the above-mentioned execution subject may perform reverberation adjustment and balance adjustment on the audio to be processed through existing audio adjustment software.
  • the above-mentioned execution subject may also adjust the audio to be processed according to the existing equalization adjustment and reverb adjustment algorithms.
  • existing reverb adjustment algorithms include: Muller Moorer reverb adjustment algorithm, Schroeder Schroeder reverb adjustment algorithm, and so on.
  • Existing equalization algorithms include: linear equalization, decision feedback equalization LMS algorithm and so on.
  • performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain the first adjusted audio includes: based on the performance of the current device, performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain Adjust audio first.
  • the reverberation algorithm and the equalization algorithm can be selected according to the performance of the current device. Based on the selected reverberation algorithm and equalization algorithm, the reverberation adjustment and equalization adjustment of the audio to be processed are performed to obtain the first adjusted audio.
  • the above-mentioned execution subject may obtain the performance parameters of the current device, for example, the number of computing cores in the CPU (Central Processing Unit), the size of the memory, and so on.
  • the performance parameter table can store the correspondence between the performance parameters of the device and whether it supports adding reverberation, whether it supports equalization adjustment, the supported reverb type, and the supported equalization adjustment method.
  • reverberation adjustment and balance adjustment are performed on the audio to be processed to obtain the first adjusted audio, including: receiving an algorithm category list sent by the server, and an algorithm category list Used to characterize the correspondence between device information and reverberation algorithm category, where device information is used to characterize device performance, and reverberation algorithm category is used to characterize the category to which the reverberation algorithm belongs; query the list of algorithms with the current device in the algorithm category list The type of reverberation algorithm corresponding to the device information, and the algorithm corresponding to the type of reverberation algorithm obtained from the query, adjusts the reverberation of the audio to be processed, and obtains the adjusted audio of the reverb; adjusts the audio to be processed after the reverberation is adjusted, Get the first adjusted audio.
  • the reverberation algorithm can be classified according to certain indexes in advance.
  • the algorithm can be divided according to the system overhead required by the algorithm or the complexity of the algorithm to obtain different algorithm categories.
  • reverberation algorithms can be divided into three categories based on the system overhead required by the algorithm.
  • the system overhead of the first category is relatively small, which can be achieved by including comb filters, all-pass filters, Schroeder filters, or a combination of these filters.
  • the second category has a large system overhead, which can be combined with a delay filter through high and low pass filtering, or an existing filter system, such as a Muller Moorer reverberator.
  • the third category has medium system overhead, which can be realized by a combination of a feedback network and an all-pass filter.
  • performing reverberation adjustment and equalization adjustment on the audio to be processed to obtain the first adjusted audio includes: determining a reverberation algorithm corresponding to the reverberation category based on the reverberation category selected by the user; and based on the determined reverberation algorithm Perform reverberation adjustment on the audio to be processed to obtain the reverberation adjusted audio; perform equalization adjustment on the audio to be processed after the reverberation adjustment to obtain the first adjusted audio.
  • the corresponding relationship between the reverb category and the reverb algorithm can be pre-configured. After the user selects the reverb category, the reverb algorithm used can be determined according to the configuration, and then the audio to be processed can be mixed according to the determined reverb algorithm Ring adjustment.
  • Step 203 Perform sound field adjustment on the first adjusted audio to obtain the second adjusted audio.
  • the above-mentioned execution subject may perform sound field adjustment on the first adjustment audio in various ways to obtain the second adjustment audio.
  • the sound field of the audio will be destroyed.
  • the above-mentioned executive body may stretch the sound field of the first adjusted audio through some audio processing software to obtain the second adjusted audio.
  • Step 204 In response to determining that the difference between the loudness of the audio to be processed and the second adjusted audio is greater than or equal to the preset loudness difference threshold, adjust the loudness of the second adjusted audio to obtain the processed audio.
  • the above-mentioned execution subject may determine the loudness difference between the second adjusted audio and the audio to be processed, and compare the loudness difference with the set loudness difference threshold. On this basis, if the loudness difference is greater than or equal to the preset loudness difference threshold, the loudness of the second adjusted audio is adjusted. As an example, the overall loudness of the second adjusted audio may be reduced proportionally. As an example, the loudness of the partial segment of the second adjusted audio may also be reduced.
  • FIG. 3 is a schematic diagram of an application scenario of the audio processing method according to this embodiment.
  • the execution subject of the audio processing method may be the smartphone 301.
  • the smartphone 301 can first obtain the audio 3011 to be processed. After that, reverberation adjustment and balance adjustment are performed on the audio to be processed, to obtain the first adjusted audio 3012. Perform sound field adjustment on the first adjusted audio 3012 to obtain a second adjusted audio 3013.
  • the loudness of the second adjusted audio 3013 is adjusted to obtain processed audio 3011 ′.
  • the method provided by the above embodiment of the present disclosure first performs reverberation adjustment and balance adjustment on the acquired audio to be processed to obtain first adjusted audio. After that, the sound field is adjusted for the first adjusted audio to obtain the second adjusted audio. In response to determining that the difference between the loudness of the audio to be processed and the second adjusted audio is greater than or equal to a preset loudness difference threshold, the loudness of the second adjusted audio is adjusted to obtain processed audio.
  • the loudness of the second adjusted audio is adjusted to obtain processed audio.
  • various environmental effects can be added and the frequency spectrum of the audio can be finely adjusted.
  • the sound field of the audio may be destroyed, causing the sound field to collapse. Sound field adjustment can compensate for sound field damage.
  • by adjusting the loudness of the second adjusted audio it is avoided that the change in loudness due to the processing of the audio is too large.
  • FIG. 4 shows a flow 400 of yet another embodiment of an audio processing method.
  • the process 400 of the audio processing method includes the following steps:
  • Step 401 Acquire audio to be processed.
  • step 401 for the specific implementation of step 401 and the technical effects it brings, reference may be made to step 201 in the embodiment corresponding to FIG. 2, and details are not described herein again.
  • Step 402 Extract the frequency spectrum of the audio to be processed.
  • the above-mentioned execution subject may extract the frequency spectrum of the audio to be processed through some audio processing software or algorithms.
  • Step 403 Based on the reverb category selected by the user, determine a reverb algorithm corresponding to the reverb category.
  • the execution subject may determine the reverb algorithm corresponding to the reverb category according to the reverb category selected by the user.
  • the reverberation algorithm can be divided into different reverberation categories according to the simulated environmental effects.
  • the reverb category can have hall effects, studio effects, valley effects, and so on.
  • category information (such as name, picture, etc.) of each category can be displayed on the above-mentioned executive body.
  • Each category information is associated with the reverb category indicated by the category information. Therefore, the user can perform some operations on the category information (for example, click operation) to select the reverb category.
  • the reverberation algorithm corresponding to each reverberation category can be preset, so that the above-mentioned execution subject can determine the reverberation algorithm according to the reverberation category selected by the user.
  • Step 404 Perform reverberation adjustment on the audio to be processed based on the determined reverberation algorithm to obtain the reverberation adjusted audio.
  • the above-mentioned execution subject may adjust the reverberation of the audio to be processed based on the determined reverberation algorithm to obtain the reverberation adjusted audio.
  • Step 405 Perform equalization adjustment on the to-be-processed audio after reverberation adjustment to obtain first adjusted audio, including:
  • Step 4051 In response to determining that the energy difference between two frequency points in the spectrum is greater than a preset energy difference threshold, reduce the gain of the frequency band where the two frequency points in the first adjusted audio are located. After such processing, the energy change of different frequency points in the spectrum can be made more gentle.
  • Step 4052 in response to determining that the energy difference between the two frequency points in the frequency spectrum is less than the preset energy difference threshold, increase the gain of the frequency band where the two frequency points in the first adjusted audio are located. After such processing, the energy change of different frequency points in the spectrum can be made more gentle.
  • the above two frequency points may be two frequency points designated by a technician, or two frequency points determined by certain conditions. As an example, there may be two frequency points that are located on a certain frequency band and the distance is less than a preset threshold.
  • Step 406 Perform sound field adjustment on the first adjusted audio to obtain the second adjusted audio.
  • Step 407 in response to determining that the loudness difference between the audio to be processed and the second adjusted audio is greater than or equal to a preset loudness difference threshold, adjust the loudness of the second adjusted audio to obtain processed audio.
  • steps 406-407 for the specific implementation of steps 406-407 and the technical effects brought by it, reference may be made to steps 203-204 in the embodiment corresponding to FIG. 2, which will not be repeated here.
  • the audio processing method in this embodiment increases the frequency spectrum of the audio to be processed, and equalizes the audio to be processed after the reverberation is adjusted according to the spectrum Adjustment steps.
  • the audio to be processed is different, its frequency spectrum is also different, thereby achieving more targeted adjustment to the audio to be processed.
  • the present disclosure provides an audio processing device.
  • the device embodiment corresponds to the method embodiment shown in FIG. 2.
  • the device can be specifically applied to various In electronic equipment.
  • the audio processing device 500 of this embodiment includes an audio acquisition unit 501, a first adjustment unit 502, a second adjustment unit 503, and a third adjustment unit 504. Among them, it is configured to obtain audio to be processed.
  • the first adjustment unit 502 is configured to perform reverberation adjustment and equalization adjustment on the audio to be processed to obtain first adjusted audio.
  • the second adjustment unit 503 is configured to perform sound field adjustment on the first adjusted audio to obtain the second adjusted audio.
  • the third adjusting unit 504 is configured to adjust the loudness of the second adjusted audio in response to determining that the loudness difference between the audio to be processed and the second adjusted audio is greater than or equal to a preset loudness difference threshold to obtain processed audio.
  • the first adjustment unit 502 may be further configured to perform reverberation adjustment and equalization adjustment on the audio to be processed based on the performance of the current device to obtain the first adjusted audio.
  • the first adjustment unit 502 may be further configured to: receive an algorithm category list sent by the server, and the algorithm category list is used to characterize the correspondence between the device information and the reverberation algorithm category Relationship, where device information is used to characterize device performance, and reverberation algorithm category is used to characterize the category to which the reverberation algorithm belongs; query the algorithm category list for the reverberation algorithm category corresponding to the device information of the current device, and the The algorithm corresponding to the reverberation algorithm category performs reverberation adjustment on the audio to be processed to obtain the reverberation adjusted audio; and performs equalization adjustment on the audio to be processed after the reverberation adjustment to obtain the first adjusted audio.
  • the first adjustment unit 502 may be further configured to: determine a reverb algorithm corresponding to the reverb category based on the reverb category selected by the user; treat based on the determined reverb algorithm Process the audio for reverberation adjustment to obtain the reverberation adjusted audio; perform equalization adjustment on the to-be-processed audio after the reverberation adjustment to obtain the first adjusted audio.
  • the apparatus 500 may further include: an extraction unit (not shown in the figure).
  • the extraction unit is configured to extract the frequency spectrum of the audio to be processed.
  • the first adjustment unit 502 may be further configured to: in response to determining that the energy difference between two frequency points in the spectrum is greater than a preset first energy difference threshold, reduce the gain of the frequency band where the two frequency points in the first adjusted audio are located; In response to determining that the energy difference between two frequency points in the frequency spectrum is less than a preset second energy difference threshold, the gain of the frequency band where the two frequency points in the first adjustment are increased is increased.
  • the first adjustment unit 502 may perform reverberation adjustment and balance adjustment on the acquired audio to be processed to obtain first adjusted audio.
  • the second adjustment unit 503 may perform sound field adjustment on the first adjusted audio to obtain the second adjusted audio.
  • the third adjustment unit 504 adjusts the loudness of the second adjusted audio, thereby obtaining processed audio. In this process, by performing reverberation adjustment and equalization adjustment on the audio to be processed, various environmental effects can be added and the frequency spectrum of the audio can be finely adjusted.
  • the sound field of the audio may be destroyed, causing the sound field to collapse.
  • Sound field adjustment can compensate for sound field damage.
  • the loudness of the second adjusted audio it is avoided that the change in loudness due to the processing of the audio is too large.
  • FIG. 6 shows a schematic structural diagram of an electronic device (for example, the terminal device in FIG. 1) 600 suitable for implementing the embodiments of the present disclosure.
  • the terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals ( For example, mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, and so on.
  • the electronic device shown in FIG. 6 is just an example, and should not bring any limitation to the functions and use scope of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into random access according to a program stored in a read-only memory (ROM) 602 or from the storage device 608
  • the program in the memory (RAM) 603 performs various appropriate operations and processes.
  • various programs and data necessary for the operation of the electronic device 600 are also stored.
  • the processing device 601, ROM 602, and RAM 603 are connected to each other via a bus 604.
  • An input / output (I / O) interface 605 is also connected to the bus 604.
  • the following devices can be connected to the I / O interface 605: including input devices 606 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc .; including, for example, liquid crystal display (LCD), speaker, vibration
  • An output device 607 such as a storage device; a storage device 608 including, for example, a magnetic tape, a hard disk, etc .; and a communication device 609.
  • the communication device 609 may allow the electronic device 600 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 609, or from the storage device 608, or from the ROM 602.
  • the processing device 601 the above-described functions defined in the method of the embodiments of the present disclosure are executed.
  • the computer-readable medium described in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer diskettes, hard drives, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device .
  • the program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: electric wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the computer-readable medium may be included in the electronic device; or it may exist alone without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device is caused to: obtain audio to be processed; perform reverberation adjustment and balance adjustment to the audio to be processed An adjusted audio; adjusting the sound field for the first adjusted audio to obtain the second adjusted audio; in response to determining that the difference between the loudness of the audio to be processed and the second adjusted audio is greater than or equal to the preset loudness difference threshold, the loudness of the second adjusted audio Make adjustments to get processed audio.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages such as Java, Smalltalk, C ++, and also including conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, through an Internet service provider Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider Internet connection for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession can actually be executed in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved.
  • each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts can be implemented with dedicated hardware-based systems that perform specified functions or operations Or, it can be realized by a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present disclosure may be implemented in software or hardware.
  • the name of the unit does not constitute a limitation on the unit itself.
  • the audio acquisition unit can also be described as "a unit that acquires audio to be processed.”

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种音频处理方法和装置,方法包括:获取待处理音频(201);对待处理音频进行混响调节和均衡调节,得到第一调节音频(202);对于第一调节音频进行声场调节,得到第二调节音频(203);响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频(204)。实现了对于音频的混响调节和均衡调节,通过进行声场调节可以弥补声场损坏,以及通过响度调节避免由于对于音频的处理造成响度的变化过大。

Description

音频处理方法和装置
本专利申请要求于2018年10月12日提交的、申请号为201811190947.8、申请人为北京微播视界科技有限公司、发明名称为“音频处理方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。
技术领域
本公开实施例涉及计算机技术领域,具体涉及音频处理方法和装置。
背景技术
随着电子设备的普及,人们对电子设备的智能化、人性化的要求也越来越高。以手机为代表的携式电子终端的使用普及度越来越高,多媒体功能是用户使用最多的应用之一。
发明内容
本公开实施例提出了音频处理方法和装置。
第一方面,本公开实施例提供了一种音频处理方法,该方法包括:获取待处理音频;对待处理音频进行混响调节和均衡调节,得到第一调节音频;对于第一调节音频进行声场调节,得到第二调节音频;响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频。
在一些实施例中,对待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:基于当前设备的性能,对待处理音频进行混响调节和均衡调节,得到第一调节音频。
在一些实施例中,基于当前设备的性能,对待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:接收服务端发送的算法类 别列表,算法类别列表用于表征设备信息与混响算法类别之间的对应关系,其中,设备信息用于表征设备性能,混响算法类别用于表征混响算法所属的类别;在算法类别列表中查询与当前设备的设备信息对应的混响算法类别,以及根据查询得到的混响算法类别对应的算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在一些实施例中,对待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:基于用户选取的混响类别,确定混响类别对应的混响算法;基于所确定的混响算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在一些实施例中,在对所述待处理音频进行混响调节和均衡调节,得到第一调节音频之前,该方法还包括:提取待处理音频的频谱;以及对于混响调节后的待处理音频进行均衡调节,得到第一调节音频,包括:响应于确定频谱中两个频率点的能量差大于预设的第一能量差阈值,减小第一调节音频中两个频率点所在频带的增益;响应于确定频谱中两个频率点的能量差小于预设的第二能量差阈值,增大第一调节中两个频率点所在频带的增益。
第二方面,本公开实施例提供了一种音频处理装置,包括:音频获取单元,被配置成获取待处理音频;第一调节单元,被配置成对待处理音频进行混响调节和均衡调节,得到第一调节音频;第二调节单元,被配置成对于第一调节音频进行声场调节,得到第二调节音频;第三调节单元,被配置成响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频。
在一些实施例中,第一调节单元进一步被配置成:基于当前设备的性能,对待处理音频进行混响调节和均衡调节,得到第一调节音频。
在一些实施例中,第一调节单元进一步被配置成:接收服务端发送的算法类别列表,算法类别列表用于表征设备信息与混响算法类别之间的对应关系,其中,设备信息用于表征设备性能,混响算法类别 用于表征混响算法所属的类别;在算法类别列表中查询与当前设备的设备信息对应的混响算法类别,以及根据查询得到的混响算法类别对应的算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在一些实施例中,第一调节单元进一步被配置成:基于用户选取的混响类别,确定混响类别对应的混响算法;基于所确定的混响算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在一些实施例中,该装置还包括:提取单元,被配置成提取待处理音频的频谱;以及第一调节单元进一步被配置成:响应于确定频谱中两个频率点的能量差大于预设的第一能量差阈值,减小第一调节音频中两个频率点所在频带的增益;响应于确定频谱中两个频率点的能量差小于预设的第二能量差阈值,增大第一调节中两个频率点所在频带的增益。
第三方面,本公开实施例提供了一种终端设备,该终端设备包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当上述一个或多个程序被上述一个或多个处理器执行,使得上述一个或多个处理器实现如第一方面中任一实现方式描述的方法。
第四方面,本公开实施例提供了一种计算机可读介质,其上存储有计算机程序,上述程序被处理器执行时实现如第一方面中任一实现方式描述的方法。
本公开实施例提供的方法和装置,首先对获取的待处理音频进行混响调节和均衡调节,得到第一调节音频。之后,对于第一调节音频进行声场调节,得到第二调节音频。响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,从而得到处理后的音频。在此过程中,通过对待处理音频进行混响调节和均衡调节,可以添加各种环境效果并对音频的频谱实现精细调节。在此基础上,由于进行混响调节和均衡调节后,可能会对音频的声场造成破坏,造成声场坍塌。进行声场调节可以弥补声场损坏。此外,通过对第二调节音频的响度进行调节,避免由于对于音频的处理造成响度的变化过大。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:
图1是本公开的一个实施例可以应用于其中的示例性系统架构图;
图2是根据本公开的音频处理方法的一个实施例的流程图;
图3是根据本公开实施例的音频处理方法的一个应用场景的示意图;
图4是根据本公开的音频处理方法的又一个实施例的流程图;
图5是根据本公开的音频处理装置的一个实施例的结构示意图;
图6是适于用来实现本公开实施例的电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关公开,而非对该公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关公开相关的部分。
需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。
图1示出了可以应用本公开的实施例的音频处理方法或装置的示例性系统架构100。
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如唱歌类应用、视频录制分享类应用、音频 处理类应用等。
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏并且支持音频处理的各种电子设备。当终端设备101、102、103为软件时,可以安装在上述电子设备中。其可以实现成多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上安装的应用提供支持的后台服务器。
需要说明的是,本公开的实施例所提供的音频处理方法一般由终端设备101、102、103执行。相应的,音频处理装置一般设置于终端设备101、102、103中。
需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。
继续参考图2,示出了根据本公开的音频处理方法的一个实施例的流程200。该音频处理方法包括:
步骤201,获取待处理音频。
在本实施例中,音频处理方法的执行主体(例如图1所示的终端设备101、102、103)可以通过各种方式获取待处理音频。例如,上述执行主体可以通过录音设备录制用户演唱的声音,得到待处理音频。其中,录音设备可以集成于上述执行主体上,也可以与执行主体通信连接,本公开对此不做限制。又如,上述执行主体也可以从本地或通信连接的其他存储设备中获取预先存储的音频作为待处理音频。
在本实施例中,待处理音频可以是任意的音频。待处理音频可以是由技术人员指定,也可以根据一定的条件进行筛选得到。例如,用 户通过终端设备(例如,智能手机)录制演唱的音频时,待处理音频可以是用户演唱的完整的音频,也可以是用户演唱的一个音频片段。在实时监听的场景下,待处理音频也可以是用户演唱的时间较短(例如30毫秒)的一个音频片段。
步骤202,对待处理音频进行混响调节和均衡调节,得到第一调节音频。
在本实施例中,上述执行主体可以首先对待处理音频进行混响调节和均衡调节,得到第一调节音频。实践中,可以根据需要,选择混响调节和均衡调节的顺序。具体来说,可以首先对待处理音频进行混响调节,之后对混响调节后的音频进行均衡调节。也可以是对待处理音频进行均衡调节,自后对均衡调节后的音频进行混响调节。
在本实施例中,上述执行主体可以通过多种方式对待处理音频进行混响调节和均衡调节。作为示例,上述执行主体可以通过现有的音频调节软件对待处理音频进行混响调节和均衡调节。作为示例,上述执行主体也可以根据现有的均衡调节和混响调节算法,对待处理音频进行调节。例如,现有的混响调节算法包括:穆勒Moorer混响调节算法、施洛德Schroeder混响调节算法等等。现有的均衡算法包括:线性均衡、判决反馈均衡LMS算法等等。
在本实施例的一些可选的实现方式中,对待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:基于当前设备的性能,对待处理音频进行混响调节和均衡调节,得到第一调节音频。
在这些实现方式中,由于各种电子设备的性能各不相同,可以根据当前设备的性能,选取混响算法和均衡算法。并基于所选取的混响算法和均衡算法,对待处理音频进行混响调节和均衡调节,得到第一调节音频。作为示例,上述执行主体可以获取当前设备的性能参数,例如,CPU(中央处理器,Central Processing Unit)中的运算核心的数量、内存的大小等等。之后,可以根据预先设定的处理逻辑或查询预设的性能参数表,从而根据当前设备的性能参数,确定当前设备是否支持对待处理音频添加混响。其中,性能参数表中可以存储设备的性能参数与是否支持添加混响、是否支持均衡调节以及所支持的混响类 型、所支持的均衡调节方式之间的对应关系。
在本实施例的一些可选的实现方式中,基于当前设备的性能,对待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:接收服务端发送的算法类别列表,算法类别列表用于表征设备信息与混响算法类别之间的对应关系,其中,设备信息用于表征设备性能,混响算法类别用于表征混响算法所属的类别;在算法类别列表中查询与当前设备的设备信息对应的混响算法类别,以及根据查询得到的混响算法类别对应的算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在这些实现方式中,根据实际需要,可以预先对混响算法按照一定的指标进行分类。作为示例,可以按照算法所需的系统开销或算法的复杂度,对算法进行划分,得到不同的算法类别。每个算法类别下可以包括多个算法。作为示例,可以根据算法所需的系统开销将混响算法分为三个类别。第一类别系统开销较小,其可以通过包括梳状滤波器、全通滤波器、施洛德Schroeder滤波器或者这些滤波器的组合而实现。第二类别系统开销较大,可以通过高低通滤波其与延时滤波器的组合,也可以现有的滤波器系统,例如穆勒Moorer混响器。第三种类别系统开销中等,其可以通过反馈网络与全通滤波器的组合实现。
在一些实施例中,对待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:基于用户选取的混响类别,确定混响类别对应的混响算法;基于所确定的混响算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。可以预先配置混响类别与混响算法之间的对应关系,则在用户选取混响类别之后,可以根据该配置确定所采用的混响算法,进而根据确定出的混响算法对待处理音频进行混响调节。
步骤203,对于第一调节音频进行声场调节,得到第二调节音频。
在实施例中,上述执行主体可以通过多种方式对于第一调节音频进行声场调节,得到第二调节音频。实践中,由于对处理音频进混响调节和均衡调节后,音频的声场会被破坏。具体来说,上述执行主体可以通过一些音频处理软件对第一调节音频的声场进行拉伸,得到第二调节音 频。
步骤204,响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频。
在本实施例中,上述执行主体可以确定第二调节音频和待处理音频的响度差,并将响度差与设响度差阈值进行比较。在此基础上,如果响度差大于或等于预设响度差阈值,对第二调节音频的响度进行调节。作为示例,可以对于第二调节音频的整体的响度进行等比例减小。作为示例,也可以对于第二调节音频的部分片段的响度进行减小。
继续参见图3,图3是根据本实施例的音频处理方法的应用场景的一个示意图。在图3的应用场景中,音频处理方法的执行主体可以是智能手机301。智能手机301可以首先获取待处理音频3011。之后,对待处理音频进行混响调节和均衡调节,得到第一调节音频3012。对于第一调节音频3012进行声场调节,得到第二调节音频3013。响应于确定待处理音频3011和第二调节音频3013的响度差值大于或等于预设响度差阈值,对第二调节音频3013的响度进行调节,得到处理后的音频3011'。
本公开的上述实施例提供的方法,首先对获取的待处理音频进行混响调节和均衡调节,得到第一调节音频。之后,对于第一调节音频进行声场调节,得到第二调节音频。响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,从而得到处理后的音频。在此过程中,通过对待处理音频进行混响调节和均衡调节,可以添加各种环境效果并对音频的频谱实现精细调节。在此基础上,由于进行混响调节和均衡调节后,可能会对音频的声场造成破坏,造成声场坍塌。进行声场调节可以弥补声场损坏。此外,通过对第二调节音频的响度进行调节,避免由于对于音频的处理造成响度的变化过大。
进一步参考图4,其示出了音频处理方法的又一个实施例的流程400。该音频处理方法的流程400,包括以下步骤:
步骤401,获取待处理音频。
在本实施例中,步骤401的具体实现及其所带来的技术效果可以参考图2对应的实施例中的步骤201,在此不再赘述。
步骤402,提取待处理音频的频谱。
在本实施例中,上述执行主体可以通过一些音频处理软件或算法提取待处理音频的频谱。
步骤403,基于用户选取的混响类别,确定混响类别对应的混响算法。
在本实施例中,上述执行主体可以根据用户选取的混响类别,确定混响类别对应的混响算法。
实践中,可以根据所模拟的环境效果的不同,将混响算法划分为不同的混响类别。例如,混响类别可以有大厅效果、录音棚效果、山谷效果等等。对于各种混响类别,可以将各个类别的类别信息(例如名称、图片等信息)在上述执行主体上进行展示。其中,每个类别信息都与该类别信息所指示的混响类别相关联。从而用户可以对这些类别信息执行一些操作(例如点击操作)以选取混响类别。
在本实施例中,可以预先设定每个混响类别所对应的混响算法,从而上述执行主体可以根据用户选取的混响类别,确定混响算法。
步骤404,基于所确定的混响算法对待处理音频进行混响调节,得到混响调节后的音频。
在本实施例中,上述执行主体可以基于所确定的混响算法对待处理音频进行混响调节,得到混响调节后的音频。
步骤405,对于混响调节后的述待处理音频进行均衡调节,得到第一调节音频,包括:
步骤4051,响应于确定频谱中两个频率点的能量差大于预设的能量差阈值,减小第一调节音频中两个频率点所在频带的增益。经过这样的处理,可以使频谱中不同频点的能量变化更平缓。
步骤4052,响应于确定频谱中两个频率点的能量差小于预设的能量差阈值,增大第一调节音频中两个频率点所在频带的增益。经过这样的处理,可以使频谱中不同频点的能量变化更平缓。
在本实施例中,上述两个频率点可以是技术人员指定的两个频率点,也可以是通过一定的条件确定的两个频率点。作为示例,可以是位于某个频带上且间距小于预设阈值的两个频率点。
步骤406,对于第一调节音频进行声场调节,得到第二调节音频。
步骤407,响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频。
在本实施例中,步骤406-407的具体实现及其所带来的技术效果可以参考图2对应的实施例中的步骤203-204,在此不再赘述。
从图4中可以看出,与图2对应的实施例相比,本实施例中的音频处理方法增加了提取待处理音频的频谱,以及根据频谱对于混响调节后的述待处理音频进行均衡调节的步骤。在此过程中,由于随着待处理音频的不同,其频谱也不同,从而实现了对于待处理音频的更具针对性的调节。
进一步参考图5,作为对上述各图所示方法的实现,本公开提供了一种音频处理装置,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。
如图5所示,本实施例的音频处理装置500包括:音频获取单元501、第一调节单元502、第二调节单元503和第三调节单元504。其中,被配置成获取待处理音频。第一调节单元502被配置成对待处理音频进行混响调节和均衡调节,得到第一调节音频。第二调节单元503被配置成对于第一调节音频进行声场调节,得到第二调节音频。第三调节单元504被配置成响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频。
在本实施例中,音频处理装置500中的音频获取单元501、第一调节单元502、第二调节单元503和第三调节单元504的具体处理及其所带来的技术效果可以参考图2对应的实施例中的步骤201-204,在此不再赘述。
在本实施例的一些可选的实现方式中,第一调节单元502可以进一步被配置成:基于当前设备的性能,对待处理音频进行混响调节和均衡调节,得到第一调节音频。
在本实施例的一些可选的实现方式中,第一调节单元502可以进一步被配置成:接收服务端发送的算法类别列表,算法类别列表用于表征设备信息与混响算法类别之间的对应关系,其中,设备信息用于表征设备性能,混响算法类别用于表征混响算法所属的类别;在算法类别列表中查询与当前设备的设备信息对应的混响算法类别,以及根据查询得到的混响算法类别对应的算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在本实施例的一些可选的实现方式中,第一调节单元502可以进一步被配置成:基于用户选取的混响类别,确定混响类别对应的混响算法;基于所确定的混响算法对待处理音频进行混响调节,得到混响调节后的音频;对于混响调节后的待处理音频进行均衡调节,得到第一调节音频。
在本实施例的一些可选的实现方式中,该装置500还可以包括:提取单元(图中未示出)。其中,提取单元被配置成提取待处理音频的频谱。以及第一调节单元502可以进一步被配置成:响应于确定频谱中两个频率点的能量差大于预设的第一能量差阈值,减小第一调节音频中两个频率点所在频带的增益;响应于确定频谱中两个频率点的能量差小于预设的第二能量差阈值,增大第一调节中两个频率点所在频带的增益。
在本实施例中,第一调节单元502可以对获取的待处理音频进行混响调节和均衡调节,得到第一调节音频。之后,第二调节单元503可以对于第一调节音频进行声场调节,得到第二调节音频。响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,第三调节单元504对第二调节音频的响度进行调节,从而得到处理后的音频。在此过程中,通过对待处理音频进行混响调节和均衡调节,可以添加各种环境效果并对音频的频谱实现精细调节。在此基础上,由于进行混响调节和均衡调节后,可能会对音频的声场造成破坏,造成声 场坍塌。进行声场调节可以弥补声场损坏。此外,通过对第二调节音频的响度进行调节,避免由于对于音频的处理造成响度的变化过大。
下面参考图6,其示出了适于用来实现本公开的实施例的电子设备(例如图1中的终端设备)600的结构示意图。本公开的实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从 存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开的实施例的方法中限定的上述功能。
需要说明的是,本公开所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取待处理音频;对待处理音频进行混响调节和均衡调节,得到第一调节音频;对于第一调节音频进行声场调节,得到第二调节音频;响应于确定待处理音频和第二调节音频的响度差值大于或等于预设响度差阈值,对第二调节音频的响度进行调节,得到处理后的音频。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开 的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,音频获取单元还可以被描述为“获取待处理音频的单元”。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (12)

  1. 一种音频处理方法,包括:
    获取待处理音频;
    对所述待处理音频进行混响调节和均衡调节,得到第一调节音频;
    对于所述第一调节音频进行声场调节,得到第二调节音频;
    响应于确定所述待处理音频和所述第二调节音频的响度差值大于或等于预设响度差阈值,对所述第二调节音频的响度进行调节,得到处理后的音频。
  2. 根据权利要求1所述的方法,其中,所述对所述待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:
    基于当前设备的性能,对所述待处理音频进行混响调节和均衡调节,得到第一调节音频。
  3. 根据权利要求2所述的方法,其中,所述基于当前设备的性能,对所述待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:
    接收服务端发送的算法类别列表,所述算法类别列表用于表征设备信息与混响算法类别之间的对应关系,其中,设备信息用于表征设备性能,混响算法类别用于表征混响算法所属的类别;
    在所述算法类别列表中查询与当前设备的设备信息对应的混响算法类别,以及根据查询得到的混响算法类别对应的算法对所述待处理音频进行混响调节,得到混响调节后的音频;
    对于混响调节后的所述待处理音频进行均衡调节,得到第一调节音频。
  4. 根据权利要求1所述的方法,其中,所述对所述待处理音频进行混响调节和均衡调节,得到第一调节音频,包括:
    基于用户选取的混响类别,确定所述混响类别对应的混响算法;
    基于所确定的混响算法对所述待处理音频进行混响调节,得到混响调节后的音频;
    对于混响调节后的所述待处理音频进行均衡调节,得到第一调节音频。
  5. 根据权利要求4所述的方法,其中,在所述对所述待处理音频进行混响调节和均衡调节,得到第一调节音频之前,所述方法还包括:
    提取所述待处理音频的频谱;以及
    所述对于混响调节后的所述待处理音频进行均衡调节,得到第一调节音频,包括:
    响应于确定所述频谱中两个频率点的能量差大于预设的第一能量差阈值,减小所述第一调节音频中两个频率点所在频带的增益;
    响应于确定所述频谱中两个频率点的能量差小于预设的第二能量差阈值,增大所述第一调节音频中两个频率点所在频带的增益。
  6. 一种音频处理装置,包括:
    音频获取单元,被配置成获取待处理音频;
    第一调节单元,被配置成对所述待处理音频进行混响调节和均衡调节,得到第一调节音频;
    第二调节单元,被配置成对于所述第一调节音频进行声场调节,得到第二调节音频;
    第三调节单元,被配置成响应于确定所述待处理音频和所述第二调节音频的响度差值大于或等于预设响度差阈值,对所述第二调节音频的响度进行调节,得到处理后的音频。
  7. 根据权利要求6所述的装置,其中,所述第一调节单元进一步被配置成:
    基于当前设备的性能,对所述待处理音频进行混响调节和均衡调节,得到第一调节音频。
  8. 根据权利要求7所述的装置,其中,所述第一调节单元进一步被配置成:
    接收服务端发送的算法类别列表,所述算法类别列表用于表征设备信息与混响算法类别之间的对应关系,其中,设备信息用于表征设备性能,混响算法类别用于表征混响算法所属的类别;
    在所述算法类别列表中查询与当前设备的设备信息对应的混响算法类别,以及根据查询得到的混响算法类别对应的算法对所述待处理音频进行混响调节,得到混响调节后的音频;
    对于混响调节后的所述待处理音频进行均衡调节,得到第一调节音频。
  9. 根据权利要求6所述的装置,其中,所述第一调节单元进一步被配置成:
    基于用户选取的混响类别,确定所述混响类别对应的混响算法;
    基于所确定的混响算法对所述待处理音频进行混响调节,得到混响调节后的音频;
    对于混响调节后的所述待处理音频进行均衡调节,得到第一调节音频。
  10. 根据权利要求9所述的装置,其中,所述装置还包括:
    提取单元,被配置成提取所述待处理音频的频谱;以及
    所述第一调节单元进一步被配置成:
    响应于确定所述频谱中两个频率点的能量差大于预设的第一能量差阈值,减小所述第一调节音频中两个频率点所在频带的增益;
    响应于确定所述频谱中两个频率点的能量差小于预设的第二能量差阈值,增大所述第一调节音频中两个频率点所在频带的增益。
  11. 一种终端设备,包括:
    一个或多个处理器;
    存储装置,其上存储有一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。
  12. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-5中任一所述的方法。
PCT/CN2019/072946 2018-10-12 2019-01-24 音频处理方法和装置 Ceased WO2020073562A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811190947.8A CN111048108B (zh) 2018-10-12 2018-10-12 音频处理方法和装置
CN201811190947.8 2018-10-12

Publications (1)

Publication Number Publication Date
WO2020073562A1 true WO2020073562A1 (zh) 2020-04-16

Family

ID=70163695

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/072946 Ceased WO2020073562A1 (zh) 2018-10-12 2019-01-24 音频处理方法和装置

Country Status (2)

Country Link
CN (1) CN111048108B (zh)
WO (1) WO2020073562A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116249065A (zh) * 2023-03-06 2023-06-09 Oppo广东移动通信有限公司 音频信号处理方法与装置、音频播放设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113936676A (zh) * 2021-09-30 2022-01-14 北京搜狗科技发展有限公司 声音调节方法、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421781A (zh) * 2006-04-04 2009-04-29 杜比实验室特许公司 音频信号的感知响度和/或感知频谱平衡的计算和调整
US20110066438A1 (en) * 2009-09-15 2011-03-17 Apple Inc. Contextual voiceover
CN105393560A (zh) * 2013-07-22 2016-03-09 哈曼贝克自动系统股份有限公司 自动音色、响度以及均衡控制
CN105704597A (zh) * 2014-11-28 2016-06-22 南京青衿信息科技有限公司 一种设有音效处理系统的智能耳机
CN107820711A (zh) * 2015-06-17 2018-03-20 弗劳恩霍夫应用研究促进协会 用于音频编码系统中用户交互性的响度控制
CN108305603A (zh) * 2017-10-20 2018-07-20 腾讯科技(深圳)有限公司 音效处理方法及其设备、存储介质、服务器、音响终端

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3935010B2 (ja) * 2002-07-17 2007-06-20 ローランド株式会社 楽音制御装置
JP5232480B2 (ja) * 2008-01-16 2013-07-10 ローランド株式会社 効果装置
JP5035090B2 (ja) * 2008-04-18 2012-09-26 ヤマハ株式会社 制御装置
WO2010044439A1 (ja) * 2008-10-17 2010-04-22 シャープ株式会社 音声信号調整装置及び音声信号調整方法
CN103457559B (zh) * 2013-08-26 2017-07-28 Tcl通力电子(惠州)有限公司 音频调节方法及系统
CN104637488B (zh) * 2013-11-07 2018-12-25 华为终端(东莞)有限公司 声音处理的方法和终端设备
CN105405448B (zh) * 2014-09-16 2019-09-03 科大讯飞股份有限公司 一种音效处理方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421781A (zh) * 2006-04-04 2009-04-29 杜比实验室特许公司 音频信号的感知响度和/或感知频谱平衡的计算和调整
US20110066438A1 (en) * 2009-09-15 2011-03-17 Apple Inc. Contextual voiceover
CN105393560A (zh) * 2013-07-22 2016-03-09 哈曼贝克自动系统股份有限公司 自动音色、响度以及均衡控制
CN105704597A (zh) * 2014-11-28 2016-06-22 南京青衿信息科技有限公司 一种设有音效处理系统的智能耳机
CN107820711A (zh) * 2015-06-17 2018-03-20 弗劳恩霍夫应用研究促进协会 用于音频编码系统中用户交互性的响度控制
CN108305603A (zh) * 2017-10-20 2018-07-20 腾讯科技(深圳)有限公司 音效处理方法及其设备、存储介质、服务器、音响终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116249065A (zh) * 2023-03-06 2023-06-09 Oppo广东移动通信有限公司 音频信号处理方法与装置、音频播放设备

Also Published As

Publication number Publication date
CN111048108A (zh) 2020-04-21
CN111048108B (zh) 2022-06-24

Similar Documents

Publication Publication Date Title
US11270690B2 (en) Method and apparatus for waking up device
WO2021057595A1 (zh) 信息推送方法、装置、电子设备和计算机可读介质
WO2023211369A2 (zh) 语音识别模型的生成方法、识别方法、装置、介质及设备
WO2021114979A1 (zh) 视频页面显示方法、装置、电子设备和计算机可读介质
CN112188342B (zh) 均衡参数确定方法、装置、电子设备和存储介质
WO2021203906A1 (zh) 自动音量调整方法、装置、介质和设备
CN114121050B (zh) 音频播放方法、装置、电子设备和存储介质
US20180060021A1 (en) Wireless speaker connection management
WO2020073562A1 (zh) 音频处理方法和装置
US11783865B2 (en) Method and apparatus for displaying video playback page, and electronic device and medium
CN113360117B (zh) 电子设备的控制方法、装置、终端和存储介质
CN111045634A (zh) 音频处理方法和装置
CN113495712A (zh) 自动音量调整方法、装置、介质和设备
WO2020073564A1 (zh) 用于检测音频信号的响度的方法和装置
CN112307161B (zh) 用于播放音频的方法和装置
CN116597801A (zh) 主动降噪方法、装置、电子设备和计算机可读介质
CN111048107B (zh) 音频处理方法和装置
CN111028848B (zh) 压缩语音处理方法、装置及电子设备
CN111145770B (zh) 音频处理方法和装置
CN111045635B (zh) 音频处理方法和装置
CN113709506A (zh) 基于云手机的多媒体播放方法、装置、介质及程序产品
CN111145776B (zh) 音频处理方法和装置
CN111210837B (zh) 音频处理方法和装置
CN111145793B (zh) 音频处理方法和装置
CN109445873B (zh) 显示设置界面的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19872088

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.07.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19872088

Country of ref document: EP

Kind code of ref document: A1