The present disclosure relates generally to the field of speech recognition. More particularly, the present disclosure relates to the field of automatic speech recognition systems, and pertains to a technique that allows detecting audio adversarial attack on such systems.
The present section is intended to introduce the reader to various aspects of art, which may be related to various aspects of the present disclosure that are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present disclosure. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.
More and more devices, including general public consumer devices—such as smartphones, tablets, set-top box, speakers, television set—are now provided with speech recognition features, allowing their users to use voice commands to make these devices perform various tasks. For example, voice commands may be used to search the Internet, initiate a phone call, play a specific song on a speaker, control home automation devices such as connected lightning, connected door lock, etc.
The implementation of these speech recognition features, sometimes gathered under the name of “voice assistants” (among which stand out Apple's Siri, Microsoft's Cortana, Amazon's Alexa, Google Assistant, etc.), relies mostly on automatic speech recognition systems using machine-learning-based systems (such as, for example, neural networks or deep neural networks, which have demonstrated their effectiveness in this field) as computational core. An audio signal corresponding to the voice command is provided as an input of the machine-learning-based system, which has been trained so as to be able to output a transcript expected to be a word for word transcript of the voice command as originally spoken by the user.
However, it has been demonstrated that machine learning systems such as deep neural networks may be vulnerable to adversarial perturbations: for example, by intentionally adding specific but imperceptible perturbations on an input of a deep neural network, an attacker is able to generate an adversarial example specifically designed to mislead the neural network. In the context of automatic speech recognition systems, an original voice command may be hacked by being mixed with a more or less imperceptible malicious noise, without the user noticing it: the hacked speech sounds exactly the same to the user. Such a malicious noise may have been specifically constructed by the attacker so that the transcript outputted by the machine-learning-based system corresponds to a target command significantly different than the original one. This gives rise to serious security issues, since such audio adversarial attacks may be used to cause a device to execute malicious and unsolicited tasks, such as unwanted internet purchasing, unwanted control of connected objects acting on front door, windows, central heating unit, etc.
Some solutions have been proposed in an attempt to counter these audio adversarial attacks. A first approach consists of enriching the training set of the automatic speech recognition system with sample phrases which are known to be hacked, so that the system can learn to reject them. A major drawback of this solution is that it engages the automatic speech recognition system designers in a never-ending race against hackers. A second approach consists of requiring an authentication of the user before an automatic speech recognition system accepts any commands from him. However, this solution has limitations. For example, once the user is authenticated, this technique doesn't allow determining whether the voice commands which are received afterwards are hacked or not. Another solution based on user authentication consists of training the automatic speech recognition system to recognize and accept only voice commands spoken with a specific voice, i.e. the user's voice. It then becomes harder for someone with a non-trained voice to take control over the device. However, this technique requires the user to train his new device before being able to use it, which may appear too constraining. A third approach consists of applying some transformations (e.g. mp3 compression, bit quantization, filtering, down-sampling, adding noise, etc.) on the audio input data in order to disrupt the adversarial perturbations before passing it to the machine-learning-based automatic speech recognition system. However, the transformations applied sometimes remain insufficient to counteract the attack. Furthermore, they may affect performance on benign samples. A fourth approach, focused on neural-network-based machine learning systems, is based on the assumption that adversarial noised samples produce anomalous activations in a neural network, and consists of searching for such anomalous activations in internal layers of the neural network in order to detect adversarial attacks. However, this solution is highly-dependent on the neural network architecture used to train the automatic speech recognition model. Furthermore, implementing such a solution may cause a significant increase of computational cost, which may affect the overall performance of the system.
It would hence be desirable to provide a technique that would avoid at least some of these drawbacks of the prior art, and that would notably allow an efficient detection of audio adversarial attacks, making it possible to reject hacked speech while maintaining the highest possible accuracy of recognition of non-hacked speech. Furthermore, it would be desirable that the provided technique does not depend on the machine learning architecture used to train the automatic speech recognition model, and that it doesn't rely either on systems likely to be themselves the target of adversarial attack.
According to the present disclosure, a method for detecting an audio adversarial attack with respect to a voice input processed by an automatic speech recognition system is proposed. The method, implemented by a detection device connected to the automatic speech recognition system, includes: obtaining an input audio signal associated with the voice input; obtaining a transcript resulting from the processing, by the automatic speech recognition system, of the input audio signal; converting the transcript into a synthesized audio signal associated with a target text-to-speech voice; extracting, at a sampling time interval, at least one acoustic feature of a same type, respectively from the input audio signal and from the synthesized audio signal, delivering a first sequence of features vectors associated with the input audio signal and a second sequence of features vectors associated with the synthesized audio signal; converting the acoustic features of the first sequence of features vectors and the acoustic features of the second sequence of features vectors to corresponding acoustic features associated with a target reference voice, respectively delivering a first sequence of converted features vectors associated with the input audio signal and a second sequence of converted features vectors associated with the synthesized audio signal; computing a dynamic time warping distance between the first sequence of converted features vectors and the second sequence of converted features vectors; and delivering a piece of data representative of a detection of an audio adversarial attack, as a function of a result of a comparison between the dynamic time warping distance and a predetermined threshold. The proposed technique thus makes it possible to detect an audio adversarial attack in an efficient manner, which is furthermore not dependent on the machine learning architecture used by the automatic speech recognition system.
According to an embodiment the at least one acoustic feature belongs to the group of mel-cepstrum coefficients and the dynamic time warping distance is a mel-cepstral-distortion-based dynamic time warping distance.
According to an embodiment, the method includes normalizing the input audio signal and the synthesized audio signal, before extracting the at least one acoustic feature from the signals.
According to a particular feature of this embodiment, normalizing the input audio signal and the synthesized audio signal includes performing power normalization and/or silence part elimination on the signals.
According to an embodiment, the target text-to-speech voice and the target reference voice correspond to a same voice.
According to an embodiment, the method includes normalizing the dynamic time warping distance before comparing the dynamic time warping distance with the predetermined threshold, by dividing the computed dynamic time warping distance by the number of features vectors of the longest sequence, among the first sequence of converted features vectors and the second sequence of converted features vectors.
According to an embodiment, the method includes identifying a gender associated with the input audio signal, and the gender of the target text-to-speech voice and the gender of the target reference voice are configured to be the same as the identified gender.
According to another embodiment, converting the transcript, extracting at least one acoustical feature, converting the extracted acoustical features and computing a dynamic time warping distance are carried out twice, once with a first target text-to-speech voice and a first target reference voice associated with a male gender, delivering a first dynamic time warping distance associated with a male gender, and once with a second target text-to-speech voice and a second target reference voice associated with a female gender, delivering a second dynamic time warping distance associated with a female gender; and delivering a piece of data representative of a detection of an audio adversarial attack is carried out as a function of a result of a comparison between the predetermined threshold and the minimum dynamic time warping distance between the first and second dynamic time warping distances.
According to an embodiment, the method further includes transmitting the piece of data representative of a detection of an audio adversarial attack to a communication device in charge of executing an action associated with the voice input.
The present disclosure also relates to a detection device for detecting an audio adversarial attack with respect to a voice input processed by an automatic speech recognition system. The detection device, connected to directly or indirectly to the automatic speech recognition system, includes at least one processor configured for: obtaining an input audio signal associated with the voice input; obtaining a transcript resulting from the processing, by the automatic speech recognition system, of the input audio signal; converting the transcript into a synthesized audio signal associated with a target text-to-speech voice; extracting, at a sampling time interval, at least one acoustic feature of a same type, respectively from the input audio signal and from the synthesized audio signal, delivering a first sequence of features vectors associated with the input audio signal and a second sequence of features vectors associated with the synthesized audio signal; converting the acoustic features of the first sequence of features vectors and the acoustic features of the second sequence of features vectors to corresponding acoustic features associated with a target reference voice, respectively delivering a first sequence of converted features vectors associated with the input audio signal and a second sequence of converted features vectors associated with the synthesized audio signal; computing a dynamic time warping distance between the first sequence of converted features vectors and the second sequence of converted features vectors; and delivering a piece of data representative of a detection of an audio adversarial attack, as a function of a result of a comparison between the dynamic time warping distance and a predetermined threshold.
According to an embodiment, the detection device is connected to or embedded into a communication device configured to process the voice input together with the automatic speech recognition system.
According to another embodiment, the detection device is located on a cloud infrastructure service, alongside with the automatic speech recognition system.
According to one implementation, the different steps of the method for detecting an audio adversarial attack with respect to a voice input processed by an automatic speech recognition system as described here above are implemented by one or more software programs or software module programs including software instructions intended for execution by at least one data processor of a detection device connected to directly or indirectly to the automatic speech recognition system.
Thus, another aspect of the present disclosure pertains to at least one computer program product downloadable from a communication network and/or recorded on a medium readable by a computer and/or executable by a processor, including program code instructions for implementing the method as described above. More particularly, this computer program product includes instructions to command the execution of the different steps of a method for detecting an audio adversarial attack with respect to a voice command processed by an automatic speech recognition system, as mentioned here above.
This program can use any programming language whatsoever and be in the form of source code, object code or intermediate code between source code and object code, such as in a partially compiled form or any other desirable form whatsoever.
According to one embodiment, the methods/apparatus may be implemented by means of software and/or hardware components. In this respect, the term “module” or “unit” can correspond in this document equally well to a software component and to a hardware component or to a set of hardware and software components.
A software component corresponds to one or more computer programs, one or more sub-programs of a program or more generally to any element of a program or a piece of software capable of implementing a function or a set of functions as described here below for the module concerned. Such a software component is executed by a data processor of a physical entity (terminal, server, etc.) and is capable of accessing hardware resources of this physical entity (memories, recording media, communications buses, input/output electronic boards, user interfaces, etc.).
In the same way, a hardware component corresponds to any element of a hardware unit capable of implementing a function or a set of functions as described here below for the module concerned. It can be a programmable hardware component or a component with an integrated processor for the execution of software, for example an integrated circuit, a smartcard, a memory card, an electronic board for the execution of firmware, etc.
In addition, the present disclosure also concerns a non-transitory computer-readable medium including a computer program product recorded thereon and capable of being run by a processor, including program code instructions for implementing the above-described method for detecting an audio adversarial attack with respect to a voice command processed by an automatic speech recognition system.
The computer readable storage medium as used herein is considered a non-transitory storage medium given the inherent capability to store the information therein as well as the inherent capability to provide retrieval of the information therefrom. A computer readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. It is to be appreciated that the following, while providing more specific examples of computer readable storage mediums to which the present principles can be applied, is merely an illustrative and not exhaustive listing as is readily appreciated by one of ordinary skill in the art: a portable computer diskette, a hard disk, a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the disclosure, as claimed.
It must also be understood that references in the specification to “one embodiment” or “an embodiment”, indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
Embodiments of the present disclosure can be better understood with reference to the following description and drawings, given by way of example and not limiting the scope of protection, and in which:
The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the disclosure.
The present disclosure relates to a method for detecting an audio adversarial attack with respect to a voice input processed by an automatic speech recognition system. As it will be described more fully hereafter with reference to the accompanying figures, the proposed technique is easy to implement, machine-learning-system-agnostic (i.e. Independent of the machine learning architecture on which the automatic speech recognition system is based) and it makes it possible to determine in an effective way whether or not a voice input has been hacked and turned into an adversarial example. The detection may be achieved within a short period of time, thus allowing preventing a malicious command associated with an adversarial example from being executed. This objective is reached, according to the general principle of the disclosure, by comparing acoustical features extracted from a voice input, before and after it has been processed by an automatic speech recognition system.
This disclosure may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein. Accordingly, while the disclosure is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit the disclosure to the particular forms disclosed, but on the contrary, the disclosure is to cover all modifications, equivalents, and alternatives falling within the scope of the disclosure as defined by the claims. In the drawings, like or similar elements are designated with identical reference signs throughout the several views thereof.
While not explicitly described, the present embodiments and variants may be employed in any combination or sub-combination.
At step 11, the detection device obtains an input audio signal IAS associated with the voice input VI. The input audio signal IAS corresponds to the signal provided as an input of the automatic speech recognition system ASR for the processing of the voice input VI. The input audio signal IAS may, for example, be obtained from a microphone connected to or embedded in the detection device itself, or it may be received from a communication device intended to process the voice input VI along with the automatic speech recognition system ASR. By “input audio signal associated with the voice input”, it is meant here that the generation of the input audio signal IAS is linked to the voice input VI. In the typical case where the voice input VI is not subjected to an audio adversarial attack, the input audio signal LAS corresponds to a recording of the voice input VI (along with possible presence of a benign background noise). However, in case of an audio adversarial attack, the input audio signal IAS corresponds to a mix between the voice input VI and a more or less imperceptible malicious noise (perturbation PT on
At step 12, the detection device obtains a transcript T resulting from the processing, by the automatic speech recognition system, of the input audio signal IAS. Depending on where the detection device is located, the transcript T may be obtained directly from the automatic speech recognition system, or it may be received through a communication device. In the case where the voice input VI is not the target of an audio adversarial attack, the output of the automatic speech recognition system is normally representative of a word for word transcript (or at least of a rather dose word for word transcript) of the voice input VI as originally spoken by the user of the automatic speech recognition system. However, in case of an audio adversarial attack, the deep neural network ruling the automatic speech recognition system is misled and outputs a transcript T that is not representative of the voice input VI. Depending on the attack, the transcript T may even be representative of a totally different command than the original one.
At step 13, a text-to-speech operation is performed on the text transcript T delivered by the automatic speech recognition system. This operation may be carried out by the detection device alone. Alternatively, the detection device may rely on a third-party text-to-speech service (such as Google text-to-speech service for example) to carry out this operation. The text-to-speech operation results in the conversion of transcript T into a synthesized audio signal SAS associated with a target text-to-speech voice TV.
According to the proposed technique, the input audio signal IAS and the synthesized audio signal SAS are then processed independently, but through a similar processing chain including normalizing the audio signal (at optional step 14 for the input audio signal, respectively optional step 14′ for the synthesized audio signal), extracting acoustic features from the audio signal (at step 15 for the input audio signal, respectively step 15′ for the synthesized audio signal), and converting the extracted acoustic features (at step 16 for the input audio signal, respectively step 16′ for the synthesized audio signal). The different steps of this processing chain are further detailed hereafter.
Before further processing, an optional normalization process may be carried out on both the input audio signal IAS and the synthesized audio signal SAS, respectively at steps 14 and 14′. According to an embodiment, such a normalization process includes power normalization and/or silence part elimination.
The power normalization process aims at reducing as much as possible the signal level difference related to the two audio signals—the input audio signal IAS and the synthesized audio signal SAS—being considered that the input audio signal IAS is a recorded human voice signal while the synthesized audio signal SAS is an artificially generated synthesized voice signal. According to an embodiment, to impact as less as possible the two audio signals, it is proposed to carry out a peak normalization including adjusting the highest sample value of each signal to an identical given value, e.g. the 0 dBFS (Decibels relative to Full Scale) value.
The silence part elimination process aims at reducing the differences regarding the position and duration of the silence parts in the input audio signal and in the synthesized audio signal. Furthermore, this process enable saving processing resources by deactivating speech processing whenever audio signal does not contain speech. The silence part elimination process includes filtering the input audio signal IAS and the synthesized audio signal SAS through a silence detection algorithm that eliminates the segments of the signals with lowest energy. According to an embodiment, Voice Activity Detection (VAD) techniques may be used to detect and eliminate such segments of lowest energy. According to another embodiment, less sophisticated techniques such as a simple energy thresholding may also be used: for example, a short-time energy obtained over a sliding window may first be computed for the entire signal, and all energy values below a predetermined threshold (e.g. below a given percentage of the overall energy range) may then be eliminated from the audio signal. Eventually, according to a particular feature, such thresholding techniques may be consolidated by taking into account other features of the analysed audio signal. For example, a zero-crossing rate may be taken into account to differentiate voiced speech sounds from other sounds within the signal (zero-crossing rate being known as a way to measure the smoothness of a signal, and voiced speech sounds being smoother than un-voiced sounds).
At step 15, a features extraction is performed on the input audio signal IAS (or on the normalized input audio signal). This operation aims at creating a parametric representation of the content of the input audio signal at a relatively lesser data rate, for subsequent processing. More particularly, at least one acoustic feature is extracted from the input audio signal, at a given sampling time interval. The at least one acoustic feature extracted at a given time (i.e. a sample) may be represented in the form of an acoustic features vector. Step 15 thus delivers a first sequence of features vectors sFV1 associated with the input audio signal.
A similar features extraction process in performed at step 15′ with respect to the synthesized audio signal (or to the normalized synthesized audio signal), at the same sampling time interval, delivering a second sequence of features vectors sFV2 associated with the synthesized audio signal.
According to the disclosure, the acoustical features extracted at step 15 and 15′ are the same (i.e. of a same type). All the features vectors of the first and second sequences of features vectors sFV1 and sFV2 thus include a same number of acoustical features (and at least one). However, the number of features vectors within the first and second sequences of features vectors sFV1 and sFV2 may not be the same, since the input audio signal IAS and the synthesized audio signal SAS may correspond to speeches that differ in terms of duration and allocution speed.
The acoustic features of the first sequence of features vectors (sFV1) and the acoustic features of the second sequence of features vectors (sFV2) are then converted into corresponding acoustic features associated with a same target reference voice RV, respectively at steps 16 and 16′. Converting the acoustical features extracted from the input audio signal (corresponding to the input speech) and from the synthesized audio signal (corresponding to a synthesized speech) into those of a same reference voice allows reducing as much as possible the difference between the speech characteristics at the frequency level (e.g. voice height and timbre) while keeping the linguistic information. To perform this conversion, techniques referred to as “Source Independent many-to-one Voice Conversion” techniques, allowing converting any language uttered by an arbitrary source speaker into utterances of a specific target speaker, may be employed. According to their general principle, these techniques rely on a training process to generate a voice conversion model, by using multiple parallel data sets of many pre-stored source speakers and a single target speaker. The voice conversion model is then used to convert acoustic features of a source speech to corresponding acoustic features of a target voice, and finally generate a target waveform—i.e. a synthesized target speech—from the converted features. Only the part of the “Source Independent Many-to-one Voice Conversion” techniques dedicated to acoustic features conversion is implemented in the context of the present disclosure (the part dedicated to the generation of a target waveform from the converted feature is not necessary to implement the proposed technique, and thus not used).
Groups of steps 11, 14 (optional), 15 and 16 on the one hand and steps 12, 13, 14′ (optional), 15′ and 16′ on the other hand may be processed one after the other, whatever the order. However, according to an embodiment, considering the time needed by the automatic speech recognition system to process the input audio signal group of steps 12, 13, 14′, 15′ and 16′ may be processed after group of steps 11, 14, 15 and 16. According to a preferred embodiment, these two groups of steps (or at least some of their steps) are processed in parallel in order to save computing time.
At step 17, once both step 16 and 16′ have been carried out, a dynamic time warping distance (D) between the first sequence of converted features vectors (sCFV1) and the second sequence of converted features vectors (sCFV2) is computed. More particularly, applying a dynamic time warping algorithm makes it possible to align temporally the two converted sequences, which are representative of two speeches which may vary in duration and allocution speed. The computed dynamic time warping distance (D) is then compared to a predetermined threshold at step 17, and a piece of data representative of whether or not an audio adversarial attack is detected is delivered, at step 18, as a function of the result of this comparison.
According to a particular feature, a normalization step of the dynamic time warping distance may be carried out before the thresholding, by dividing the computed distance by the number of features vectors of the longest sequence, among the first sequence of converted features vectors (sCFV1) and the second sequence of converted features vectors (sCFV2). The length of the longest sequence of feature vectors is chosen as a normalization ratio since a dynamic time warping algorithm aims at matching every element from one sequence with one or more elements from the other sequence and vice versa. As a result, the dynamic time warping distance is calculated on a number of elements equivalent to the longest sequence. By normalizing the dynamic time warping distance that way, the predetermined threshold may thus be made more independent of the way the distance is computed.
According to the proposed technique, an audio adversarial attack with respect to the voice input is assumed to be going on if the computed dynamic time warping distance (possibly normalized) is above the predetermined threshold. Indeed, the dynamic time warping distance makes it possible to quantify or at least estimate how much the voice input has been altered when processed by the automatic speech recognition system ASR. When no audio adversarial attack is going on, the transcript outputted from the automatic speech recognition system ASR is normally a rather dose word for word transcript of the original voice input VI, and the input audio signal IAS and the synthesized audio signal SAS should then be quite similar from a linguistic point of view, i.e. in the sense of the meaning of what is said. On the contrary, in presence of an audio adversarial attack, the synthesized audio signal resulting from the text-to-speech conversion of the transcript outputted by the automatic speech recognition system has a high probability to be quite different from the input audio signal from the linguistic point of view, resulting in a dynamic time warping distance having a higher value. The piece of data representative of a detection of an audio adversarial attack may take the form of a boolean representing an attack status, which is set to true if an attack is detected and false otherwise.
According to an embodiment, the method further includes transmitting the piece of data representative of a detection of an audio adversarial attack to a communication device initially intended to execute an action associated with the original voice input. In that way, the communication device may be warned when an attack is detected, and therefore be in position to block the execution of the malicious command which has replaced the original command as an effect of the adversarial attack.
Some particular implementations of the above-described general principle are now detailed below, according to various embodiments of the disclosure.
According to an embodiment, the acoustic features extracted from the input audio signal (at step 15) and from the synthesized audio signal (at step 15′) belong to the group of mel-cepstrum coefficients, and the dynamic time warping distance computed at step 17 is a mel-cepstral-distortion-based dynamic time warping distance. Mel-cepstrum coefficients are commonly used features in the fields of speech recognition and speech synthesis, as they allow characterizing the spectral envelope of a signal in representing the acoustic filters formed by the resonant cavities of the vocal tract.
The Mel-Cepstral Distortion (MCD) may be defined as an extension of the simple Euclidian distance, such that:
where T is the number of timeframes of the utterance, D is the number of mel-cepstrum coefficients extracted by timeframe, vref and vtarg the vectors of mel-ceptrum coefficients associated with the input and synthesized audio signals respectively (i.e. the first sequence of converted features vectors sCFV1 associated with the input audio signal and the second sequence of converted features vectors sCFV2 associated with the synthesized audio signal), a is a scaling factor used mainly for historical reasons, and s is the starting dimension of the inner sum. According to the proposed technique, s is equal to 1, meaning that the zeroth cepstral dimension corresponding to an average audio signal power is excluded of the inner sum. In that way, the measure of the Mel-Cepstral Distortion is not influenced by the speaker's loudness of the signals to be compared.
Computing the mel-cepstral-distortion-based dynamic time warping distance corresponds to computing the minimum mel-cepstral-distortion obtainable by temporally aligning the first sequence of converted mel-cepstrum coefficients vectors sCFV1 associated with the input audio signal and the second sequence of converted mel-cepstrum coefficients vectors sCFV2 associated with the synthesized audio signal. In that way, the difference in the timing between the two sequences—corresponding to the difference between the two speech characteristics at the temporal level (duration and allocution speed)—impacts as little as possible the computed distance metric.
According to an embodiment, the conversion of some acoustic features into corresponding acoustic features associated with a target reference voice (RV), as carried out at steps 16 and 16′, relies on a statistical voice conversion approach based on a Gaussian Mixture Model. More particularly, a Gaussian Mixture Model representing joint probability density of the source and the target acoustic features is trained in advance using parallel data consisting of utterance pairs of the source and the target speakers. The trained Gaussian Mixture Model allows determining the target acoustic features from the given source acoustic features based on a criterion such as Maximum Likelihood Estimation (MLE) of a spectral feature trajectory (trajectory-based conversion), without any linguistic restrictions. For example, in the case where the acoustic features belong to the group of mel-cepstrum coefficients, the mel-cepstrum coefficients may be converted into those of the target reference voice by Maximum Likelihood Parameter Generation (MLPG), after constructing the static and delta feature vectors (without the zeroth order of the mel-cepstrum coefficients which is not used in the mel-ceptral distance calculation, as already presented).
Source independent Gaussian Mixture Models are known to be reasonably efficient in many-to-one voice conversion without any adaptation processes, simply by being trained using parallel data sets consisting of utterance pairs of several pre-stored source speakers and the single target speaker. However, it has been shown that the source independent conversion performance can be improved with an adaptation process of the conversion model based on the use of limited amount of some utterances of the new speaker to be converted. The building of a parallel dataset (utterance pairs of the source and the target speakers) for training the model may be considered as an important workload, insomuch as several tens of phoneme-balanced sentences are generally required to train the Gaussian Mixture Models sufficiently for conversion performance. To alleviate this problem, according to an embodiment, it is proposed to generate the parallel training dataset in synthesizing the target speaker utterances data set from the pre-stores source speakers' utterances dataset by using the same text-to-speech process than the one used to convert the transcript generated by the automatic speech recognition system.
According to an embodiment, the target text-to-speech voice TV used to convert the transcript into the synthesized audio signal at step 13 and the target reference voice RV used to convert the acoustics features extracted from the input audio signal at steps 16 are configured to correspond to a same voice. In that way, some computational time may be saved, since the synthesized audio signal delivered at step 13 is already and directly associated with the target reference voice RV: only the acoustic features extracted from the input audio signal have to be converted at step 16, and step 16′ for converting the acoustic features extracted from the synthesized audio signal is no more necessary.
According to other embodiments of the present disclosure, the above-described technique may be adapted to take into account cross-gender issues that may otherwise alter performance of the proposed audio adversarial attack detection method (due, for example, to differences between voices and timbers, when the voice associated with the input audio signal IAS, the voice associated with the synthesized audio signal SAS, and the target reference voice RV used to perform features conversion are not all of a same gender, i.e. some are male and others are female). To get around this difficulty, two main embodiments are proposed hereafter.
According to a first embodiment, the proposed technique includes automatically identifying a gender associated with the input audio signal (or with the voice input), at an early stage of the process. The target text-to-speech voice TV (used for the text-to-speech operation on the transcript at step 13) and the target reference voice RV (used for the acoustic features conversion at steps 16 and 16′) are then configured or selected to be of the same gender as the previously identified gender.
According to a second embodiment, illustrated in relation with
Referring back to
The processor 301 controls operations of the detection device DD. The storage unit 302 stores at least one program to be executed by the processor 301, and various data, including for example parameters used by computations performed by the processor 301, intermediate data of computations performed by the processor 301 such as the first sequence of features vectors associated with the input audio signal and the second sequence of features vectors associated with the synthesized audio signal, and so on. The processor 301 is formed by any known and suitable hardware, or software, or a combination of hardware and software. For example, the processor 301 is formed by dedicated hardware such as a processing circuit, or by a programmable processing unit such as a CPU (Central Processing Unit) that executes a program stored in a memory thereof.
The storage unit 302 is formed by any suitable storage or means capable of storing the program, data, or the like in a computer-readable manner. Examples of the storage unit 302 include non-transitory computer-readable storage media such as semiconductor memory devices, and magnetic, optical, or magneto-optical recording media loaded into a read and write unit. The program causes the processor 301 to perform a method for detecting an audio adversarial attack with respect to a voice input processed by an automatic speech recognition system according to an embodiment of the present disclosure as described previously. More particularly, the program causes the processor 301 to perform features extraction and conversion from the input audio signal provided as an input of the automatic speech recognition system on the one hand and from a synthesized audio signal resulting from a text-to-speech operation on the transcript delivered as an output of the automatic speech recognition system on the other hand, and to compute a dynamic time warping distance between the resulting first and second sequences of converted features vectors.
The input device 303 is formed for example by a microphone.
The output device 304 is formed for example by a processing unit configured to take decision regarding whether or not an audio adversarial attack is considered as detected, as a function of the result of the comparison between the computed dynamic time warping distance and a predetermined threshold.
The interface unit 305 provides an interface between the detection device DD and an external apparatus and/or system. The interface unit 305 is typically a communication interface allowing the detection device to communicate with an automatic speech recognition system and/or with a communication device, as already presented in relation with
Although only one processor 301 is shown on
While the disclosure has been described with reference to exemplary embodiments, it is to be understood that the disclosure can be embodied in various forms, and is not to be limited to the examples discussed above.
Number | Date | Country | Kind |
---|---|---|---|
EP20203448.4 | Oct 2020 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2021/076248 | 9/23/2021 | WO |