Users have access to a variety of different devices with which the user may capture sound, such as mobile phones, tablet computers, portable game devices, and so on. During this capture, however, artifacts may also be captured that interfere with sound from a desired source, such as noise from an audience during a concert, mechanical sounds made by the device during a lecture, and so on.
Techniques were developed in which sound data having a lower quality may be replaced with sound data having a higher quality. However, in some instances the higher quality sound data may also include artifacts. Consequently, users were forced to choose between sources when using these conventional techniques and thus were still faced with inclusion of the artifacts in the sound data.
Sound data identification techniques are described. In one or more implementations, common sound data and uncommon sound data are identified from a plurality of sound data from a plurality of recordings of an audio source using a collaborative technique. The identification may include recognition of spectral and temporal aspects of the plurality of the sound data from the plurality of the recordings and sharing of the recognized spectral and temporal aspects to identify the common sound data as common to the plurality of recordings and the uncommon sound data as not common to the plurality of recordings.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different instances in the description and the figures may indicate similar or identical items. Entities represented in the figures may be indicative of one or more entities and thus reference may be made interchangeably to single or plural forms of the entities in the discussion.
Sound alignment techniques were developed to replace sound data from one source with sound data from another source, which may be used to support a variety of different functionality, such as to remove noise, generate a foreign overdub, remove foul language, and so on. However, conventional techniques that were employed to perform this alignment could still include artifacts that interfere with sound data from a desired source, such as when higher quality sound data that is to be used to replace lower quality sound data also includes artifacts.
Sound data identification techniques are described. In one or more implementations, sound data from multiple recordings is processed to identify which audio components are common and which audio components are uncommon. The sound data for the common audio components may then be used to generate a “clean” version of the multiple recordings, which may include discarding or reducing an effect of the uncommon audio components. A variety of other examples are also contemplated, further discussion of which may be found in relation to the following sections.
In the following discussion, an example environment is first described that may employ the techniques described herein. Example procedures are then described which may be performed in the example environment as well as other environments. Consequently, performance of the example procedures is not limited to the example environment and the example environment is not limited to performance of the example procedures.
Example Environment
The computing device 102, for instance, may be configured as a desktop computer, a laptop computer, a mobile device (e.g., assuming a handheld configuration such as a tablet or mobile phone), and so forth. Thus, the computing device 102 may range from full resource devices with substantial memory and processor resources (e.g., personal computers, game consoles) to a low-resource device with limited memory and/or processing resources (e.g., mobile devices). Additionally, although a single computing device 102 is shown, the computing device 102 may be representative of a plurality of different devices, such as multiple servers utilized by a business to perform operations “over the cloud” as further described in relation to
The sound capture devices 104, 106 may also be configured in a variety of ways. Illustrated examples of one such configuration involves a standalone device but other configurations are also contemplated, such as part of a mobile phone, video camera, tablet computer, part of a desktop microphone, array microphone, and so on. Additionally, although the sound capture devices 104, 106 are illustrated separately from the computing device 102, the sound capture devices 104, 106 may be configured as part of the computing device 102, a single sound capture device may be utilized in each instance, and so on.
The sound capture devices 104, 106 are each illustrated as including respective sound capture modules 108, 110 that are representative of functionality to generate sound data from signals recorded from an audio source, examples of which include first and second sound data 112 captured as part of a video taken of an outdoor scene in the illustration. This data may then be obtained by the computing device 102 for processing by a sound processing module 116. Although illustrated as part of the computing device 102, functionality represented by the sound processing module 116 may be further divided, such as to be performed “over the cloud” via a network 118 connection, further discussion of which may be found in relation to
As previously described, the pervasiveness of sound capture devices 104, 106 is ever increasing. For example, the number of mobile communication devices such as mobile phones, tablet computers, gaming devices, and so on continues to increase and therefore sound capture devices included on these devices also continues to increase. The sound capture devices may be utilized to record a variety of different types of sound, such as from a recording of audio-visual scenes including concerts, talks, lectors, home video including sound, and so on. However, in some instances sound data generated from these captured signals may have undesirable characteristics, such as interference (e.g., another spectator talking close to the device), noise, disruptions, and so on.
Accordingly, conventional techniques were developed to replace lower-quality sound data with higher-quality sound data. The higher-quality sound data may be aligned to the lower-quality sound data using a variety of techniques, such as to align features (e.g., spectral characteristics) of the sound data. In this way, noise or other interference may be replaced.
However, the sound data from both sources may be contaminated, including instances in which the contamination is encountered in different ways. For example, an audience located close to a sound capture device and even a holder of the sound capture device itself may speak during capture of sound from a concert or lecture. Mechanical noises may also be encountered, such as from movement of a lens, “clicking” of buttons, and so on. Consequently, even though a generally higher-quality version may be available, that recording may still be undesirable using conventional techniques.
Accordingly, the sound processing module 116 may employ an identification module 120, which is representative of collaborative enhancement techniques to identify common sound data 112 from a plurality of sound data, such as the first and second sound data 112, 114 as illustrated. The identification module 120, for instance, may be configured to perform blind source separation (BSS) tasks in which an assumption is made that common sound data 122 in the first and second sound data 112, 114 (e.g., included in both recordings) includes the portions of the sound data that are desirable for output whereas uncommon sound data 124 (e.g., included in either recording but not both) includes noise or other interference. In this way, identification of the common and uncommon sound data 122, 124 through a collaborative technique may be used to generate processed sound data 126 as a “clean version” of the first and second sound data 112, 114.
For example, the identification module 120 may employ techniques to decompose the first and second sound data 112, 114 into three input matrixes. This may be performed by a probabilistic counterpart of NMF, which may be referred to a probabilistic latent component analysis (PLCA). The three input matrixes, for instance, may be used to support tri-factorization (e.g., via symmetric PLCA) and sound probabilistic interpretation of a model. Further, the identification module 120 may support sharing of the matrixes and thereby take advantage of a maximum a posterior (MAP) approach to leverage use of prior knowledge about bases which may be obtained in advance from a “cleaner” recording of signal mixtures. Further discussion of these examples may be found in the following discussion and corresponding figure.
The first and second sound data 112, 114, for instance, may be calculated as a time-frequency representation (e.g., spectrogram), such as through a short-time Fourier transform or other time-frequency transformation. This may be used to define input matrices “X(t,f,l)” where “t” and “f” are the index of time and frequency positions, respectively. The recordings index “l” is for the “l-th” recording from “L” total number of recordings in the following discussion.
The first and second sound data 112, 114, may then be received by an identification module 120. The identification module 120 may first employ a magnitude module 208 which is representative of functionality to take absolute values for the input matrices of the first and second sound data 112, 114 to generate magnitude spectrograms 210.
The magnitude spectrograms 210 may then be obtained by an analysis module 212 for processing to identify the common and uncommon sound data 122, 124 from the first and second sound data 112, 114. As previously described, this may support collaborative techniques to improve quality of multiple recordings from an audio scene. For example, the analysis module 212 may employ a branch of probabilistic latent component analysis (PLCA) in which desired sound data may be identified by sharing spectral and temporal aspects of the latent components that represent the source. In this way, collaboration in the analysis of the first and second sound data 112, 114 may be used to identify which portions of the sound data are common or recording specific.
The analysis module 212, for instance, may be configured to conduct PLCA on the input matrices of the magnitude spectrograms 210. However, during part of the PLCA learning process, parameters may be shared across the analyses of the first and second sound data 112, 114. Components that are relevant to the shared parameters as part of this learning process may be used to represent the desired source while the not-shared individual parameters capture the recording-specific interferences, i.e., the common and uncommon sound data 122, 124. This process may continue until convergence is reached, thereby forming enhanced spectrograms 214 as further described below in relation to the “PLCA” section and
Prior knowledge about the source may also be leveraged by the analysis module 212. For example, the prior knowledge about an audio source may be incorporated in a flexible way to affect the solution even though that knowledge may be obtained from sources that are not exactly the same, e.g., use of a studio recording to obtain prior knowledge for a live event. Further discussion of the use of prior knowledge may be found in the “Prior Knowledge” section below.
Additionally, a post processing module 216 may be employed to perform post processing on an output of the analysis module 212, e.g., the enhanced spectrograms 214. For example, post processing may be performed to consolidate recording-specific reconstructions (e.g., of the uncommon sound data 124) into a representative matrix. This may include use of a weight vectors taken from the magnitude spectrograms 210. This matrix may then be used with the common sound data 124 to generate processed sound data 126 from the first and second sound signals 202, 204. The processed sound data 126 may then be transformed by an inverse time/frequency transform module 218 to generate an output signal 220 that may be listened to by a user.
In this way, the system 200 may be employed to identify desired audio components, such as music, while discarding interference signals and unwanted artifacts. This may be done in a collaborative way of audio enhancement as the analysis module 212 may process multiple instances of damaged sound data to generate an enhanced version of that data.
PLCA, for instance, may be used to decompose an input matrix into pre-defined number of components, each of which can be further factorized into a spectral basis vector, a temporal excitation, and a weight for the component. By multiplying those factors, a component of the input matrix may be recovered. As a component is expressed with probability of getting it given the observed time-frequency point, PLCA is used to infer the posterior probability of the component given the magnitude observed at each of the time/frequency positions.
As common sound data 122 shares both frequency and time characteristics, by setting aside some basis vectors and temporal activations and by letting them be the same during the learning process performed by the analysis module 212, the components of the sound data (e.g., the first and second sound data 114) may be grouped into common sound data 122 and uncommon sound data 124 groups, e.g., from common audio sources and recording specific interferences.
PLCA
z
(1)
={z
c
,Z
I
(l)}
where “zc” is a subset that contains common sound data 112, i.e., source components that are shared across the sound data from each of the sources, and “ZI(l)” contains uncommon sound data 124, i.e other recording specific components.
An expression may then be built of a log-likelihood of getting “L” recordings in terms of the shared component models as follows:
It should be noted that “P(1)(z)” for each “1” are the same if “zεzc”.
Components of the “l-th” input may be divided into two groups, a shared group “zc” which contains the common sound data 122 and “ZI(l)” which contains uncommon sound data 124 as previously described. A sharing concept may employed in which “Pc(f|z)” and “Pc(t|z)” are the same across each input in which “zεzc”, even though each component “zεzc” has a distinctive topic distribution “P(l)(f,t|z)”, which can be regarded as an underlying distribution where “l-th” input was obtained. Therefore, common variables may be defined as “Pc(f|z)” and “Pc(t|z)”, which refer to common sound data 122.
On the other hand, latent variables in “ZI(l)” represent uncommon sound data 124 (e.g., recording-specific sound components), such as interferences, noise, mechanical noises, and so forth. The latent variables may also have their own individual distributions “PI(1)(f|z)” and “PI(1)(t|z)” if “zεZI(l)”.
By rearranging notations of latent variables as above, an energy step of PLCS as employed by the analysis module 212 may be defined having a new posterior probability of getting “zεz(l)” conditioned on time and frequency axes as follows:
Note that parameters “P(1)(f,z)” and “P(1)(t,z)” may refer to either common parameters “Pc(f,z)” and “Pc(t,z)” when “zεzc” or “PI(1)(f,z)” and “PI(1)(t,z)” if “zεzI(l)”, respectively.
An expected complete data log-likelihood may then be defined as follows:
With proper Lagrange multipliers that may be used to enforce parameter summation to one, the expected complete data log-likelihood may be maximized with the following update rules as M-step: For “zεzI(l)”.
For “zεzc”:
And, for ““zεz(l)”:
It should be noted that updates for “Pc(f|z)” and “Pc(t|z)” include summation over “l” to involve each of the reconstructions of the common components, i.e., “vf,t(l)P(l)(z|f,t) where zεzc”.
Incorporating Prior Knowledge
As previously described, prior knowledge may also be incorporated into the model. For example, a cleaner recording of a song recorded in a studio may be used as prior knowledge for the same song played in a live concert. However, the bases for those prior signals may not be simply learned and fixed as target parameters “Pc(f|z)” or “PI(1)(f|z)” in some instances as there is no guarantee that the signals from the prior source have the exact same spectral characters with components in the sound data to be analyzed.
Accordingly, the prior information may be used in the form of a MAP estimation in one or more implementations. First, the bases of the magnitude spectrograms are learned of the corresponding clean music signal and interference by directly applying PLCA update rules as described above. The learned bases vectors “Psource(f|Z)” and “Pinter f(l)(f|z)” may then be applied to the model to construct a new expected complete data log-likelihood, which may be expressed as follows:
where “α” and “β” are used to control an amount of influence of prior bases.
Once again, Lagange multipliers may be used to derive a final M-step priors, which is shown as follows:
For “zεzI(l)”:
For “zεzc”:
And, for ““zεz(l)”:
Each of the inputs 402, 404, 406 include uncommon sound data 124 (e.g., additional artifacts) and thus are not common to each of the inputs. The uncommon sound data 124 may be captured as individual components and thus identified as separate from the common components. As shown by the dashed line, the learned bases vectors may be obtained from the common parameters.
To recover the magnitudes of the desired audio sources, the sum of the posterior probabilities of “zεzc” are multiplied to the input sound data 112 and 114 as follows:
wherein Xf,t(l) is the “l-th” sound data of the full complex valued spectrogram, and Ŝf,t(l) is the spectrogram of the separated source in the “l-th” input.
Compensation of Band Limited Reconstructions
As shown in the example implementation 400 in
The post processing module 216, however, may employ collaborative techniques in post processing to address this issue. For example, although most of the recordings lost their high frequency area, it is possible that the rest of the recordings maintain this area in good spectral shape which can be utilized to generate processed sound data 126 that is enhanced.
For instance, suppose “L” recovered magnitude spectrograms 210 are obtained out of PLCS, which may be represented as follows:
|Ŝft(l)|
The post processing may begin with calculating a normalized average spectrum of those reconstructions as follows:
Global weights may then be drawn out of the normalized average spectra by considering differences among recordings in each particular frequency bin. The global weights are defined as follows:
For example, for a middle frequency bin “fm” where each of the reconstructions have the similar normalized average energy as follows:
y
fm
(1)
≈y
fm
(2)
≈y
fm
(3)
≈ . . . ≈y
fm
(L)
the global weight “wfm≈L,” which lets the compensation process be implemented as an ordinary average. However, an instance may be encountered in which two out of three recordings are low pass filtered at a high frequency bin “fh” while the other was not, so that yfh(l) have values such as:
Hence, “wfh” has the value 0.01/0.008=1.25, which is a lot less than L=3 (which is a maximum possible weight), and in turn boosts up the attenuated reconstruction at “fh” by dividing:
ΣtŜf,t(l)
with 1.25 than 3, the maximum possible weight.
Example Procedures
The following discussion describes sound data identification techniques that may be implemented utilizing the previously described systems and devices. Aspects of each of the procedures may be implemented in hardware, firmware, or software, or a combination thereof. The procedures are shown as a set of blocks that specify operations performed by one or more devices and are not necessarily limited to the orders shown for performing the operations by the respective blocks. In portions of the following discussion, reference will be made to
The collaborative technique may include recognition of spectral and temporal aspects of the plurality of sound data from the plurality of the recordings (block 704). These aspects are then shared to identify the common sound data as common to the plurality of recordings and the uncommon sound data as not common to the plurality of recordings (block 706). In this way, an intuition may be leveraged that common sound data shares both frequency and time characteristics, whereas uncommon sound data does not. This identification may be leveraged to support a variety of functionality.
For example, processed sound data may be generated from the sound data form the plurality of recordings based on the identification of the common sound data and the uncommon sound data such that an effect of at least a portion of the uncommon sound data is reduced (block 708). This may include extracting the uncommon sound data such that it is not included in the processed sound data. The generation may also be performed to leverage a collaborative technique, such as to calculate sub-band specific weights and apply those weights to respective said sub-bands in the sound data in instances in which the sound data from at least one of the plurality of recordings is frequency-band limited (block 710) as shown in
Example System and Device
The example computing device 802 as illustrated includes a processing system 804, one or more computer-readable media 806, and one or more I/O interface 808 that are communicatively coupled, one to another. Although not shown, the computing device 802 may further include a system bus or other data and command transfer system that couples the various components, one to another. A system bus can include any one or combination of different bus structures, such as a memory bus or memory controller, a peripheral bus, a universal serial bus, and/or a processor or local bus that utilizes any of a variety of bus architectures. A variety of other examples are also contemplated, such as control and data lines.
The processing system 804 is representative of functionality to perform one or more operations using hardware. Accordingly, the processing system 804 is illustrated as including hardware element 810 that may be configured as processors, functional blocks, and so forth. This may include implementation in hardware as an application specific integrated circuit or other logic device formed using one or more semiconductors. The hardware elements 810 are not limited by the materials from which they are formed or the processing mechanisms employed therein. For example, processors may be comprised of semiconductor(s) and/or transistors (e.g., electronic integrated circuits (ICs)). In such a context, processor-executable instructions may be electronically-executable instructions.
The computer-readable storage media 806 is illustrated as including memory/storage 812. The memory/storage 812 represents memory/storage capacity associated with one or more computer-readable media. The memory/storage component 812 may include volatile media (such as random access memory (RAM)) and/or nonvolatile media (such as read only memory (ROM), Flash memory, optical disks, magnetic disks, and so forth). The memory/storage component 812 may include fixed media (e.g., RAM, ROM, a fixed hard drive, and so on) as well as removable media (e.g., Flash memory, a removable hard drive, an optical disc, and so forth). The computer-readable media 806 may be configured in a variety of other ways as further described below.
Input/output interface(s) 808 are representative of functionality to allow a user to enter commands and information to computing device 802, and also allow information to be presented to the user and/or other components or devices using various input/output devices. Examples of input devices include a keyboard, a cursor control device (e.g., a mouse), a microphone, a scanner, touch functionality (e.g., capacitive or other sensors that are configured to detect physical touch), a camera (e.g., which may employ visible or non-visible wavelengths such as infrared frequencies to recognize movement as gestures that do not involve touch), and so forth. Examples of output devices include a display device (e.g., a monitor or projector), speakers, a printer, a network card, tactile-response device, and so forth. Thus, the computing device 802 may be configured in a variety of ways as further described below to support user interaction.
Various techniques may be described herein in the general context of software, hardware elements, or program modules. Generally, such modules include routines, programs, objects, elements, components, data structures, and so forth that perform particular tasks or implement particular abstract data types. The terms “module,” “functionality,” and “component” as used herein generally represent software, firmware, hardware, or a combination thereof. The features of the techniques described herein are platform-independent, meaning that the techniques may be implemented on a variety of commercial computing platforms having a variety of processors.
An implementation of the described modules and techniques may be stored on or transmitted across some form of computer-readable media. The computer-readable media may include a variety of media that may be accessed by the computing device 802. By way of example, and not limitation, computer-readable media may include “computer-readable storage media” and “computer-readable signal media.”
“Computer-readable storage media” may refer to media and/or devices that enable persistent and/or non-transitory storage of information in contrast to mere signal transmission, carrier waves, or signals per se. Thus, computer-readable storage media refers to non-signal bearing media. The computer-readable storage media includes hardware such as volatile and non-volatile, removable and non-removable media and/or storage devices implemented in a method or technology suitable for storage of information such as computer readable instructions, data structures, program modules, logic elements/circuits, or other data. Examples of computer-readable storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, hard disks, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or other storage device, tangible media, or article of manufacture suitable to store the desired information and which may be accessed by a computer.
“Computer-readable signal media” may refer to a signal-bearing medium that is configured to transmit instructions to the hardware of the computing device 802, such as via a network. Signal media typically may embody computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as carrier waves, data signals, or other transport mechanism. Signal media also include any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, and other wireless media.
As previously described, hardware elements 810 and computer-readable media 806 are representative of modules, programmable device logic and/or fixed device logic implemented in a hardware form that may be employed in some embodiments to implement at least some aspects of the techniques described herein, such as to perform one or more instructions. Hardware may include components of an integrated circuit or on-chip system, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a complex programmable logic device (CPLD), and other implementations in silicon or other hardware. In this context, hardware may operate as a processing device that performs program tasks defined by instructions and/or logic embodied by the hardware as well as a hardware utilized to store instructions for execution, e.g., the computer-readable storage media described previously.
Combinations of the foregoing may also be employed to implement various techniques described herein. Accordingly, software, hardware, or executable modules may be implemented as one or more instructions and/or logic embodied on some form of computer-readable storage media and/or by one or more hardware elements 810. The computing device 802 may be configured to implement particular instructions and/or functions corresponding to the software and/or hardware modules. Accordingly, implementation of a module that is executable by the computing device 802 as software may be achieved at least partially in hardware, e.g., through use of computer-readable storage media and/or hardware elements 810 of the processing system 804. The instructions and/or functions may be executable/operable by one or more articles of manufacture (for example, one or more computing devices 802 and/or processing systems 804) to implement techniques, modules, and examples described herein.
The techniques described herein may be supported by various configurations of the computing device 802 and are not limited to the specific examples of the techniques described herein. This functionality may also be implemented all or in part through use of a distributed system, such as over a “cloud” 820 via a platform 822 as described below.
The cloud 820 includes and/or is representative of a platform 822 for resources 824. The platform 822 abstracts underlying functionality of hardware (e.g., servers) and software resources of the cloud 820. The resources 824 may include applications and/or data that can be utilized while computer processing is executed on servers that are remote from the computing device 802. Resources 824 can also include services provided over the Internet and/or through a subscriber network, such as a cellular or Wi-Fi network.
The platform 822 may abstract resources and functions to connect the computing device 802 with other computing devices. The platform 822 may also serve to abstract scaling of resources to provide a corresponding level of scale to encountered demand for the resources 824 that are implemented via the platform 822. Accordingly, in an interconnected device embodiment, implementation of functionality described herein may be distributed throughout the system 800. For example, the functionality may be implemented in part on the computing device 802 as well as via the platform 822 that abstracts the functionality of the cloud 820.
Although the invention has been described in language specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claimed invention.