AUDIO PLAYBACK SYSTEM FAULT DETECTION METHOD AND APPARATUS
20220369055 · 2022-11-17
Inventors
Cpc classification
H04R2420/05
ELECTRICITY
International classification
Abstract
There is disclosed an audio playback system including a loudspeaker, a microphone and a means for implementing a method of detecting a fault which includes the generation and analysis of a specific ultrasound reference signal. The presence of the ultrasound reference signal can be detected on the microphone signal, and the signal-to-noise ratio can be estimated during the reference signal playback so that the volume of the reference signal can be adapted if necessary. The reference signal is a multi-sinusoidal signal which, when averaged over time increases the expected signal-to-noise ratio, and hence, the power of the detector.
Claims
1. A method of detecting a fault in an audio playback system, the method comprising: generating a reference signal comprising a plurality of sinusoidal waveforms with frequencies in the ultrasound region for output via the audio playback system as a non-audible reference signal; receiving an audio signal via at least one sensor; determining a presence level of the reference signal in the received audio signal; and outputting a fault indication dependent on the presence level.
2. The method of claim 1, further comprising outputting a fault indication in response to the reference signal not being present in the received audio signal.
3. The method of claim 1, wherein each waveform of the plurality of sinusoidal waveforms has a frequency in the range of 19 KHz to 96 KHz.
4. The method of claim 1, wherein determining the presence level of the reference signal in the received audio signal includes determining a signal-to-noise ratio value of the received audio signal and comparing the signal-to-noise ratio value to a threshold value.
5. The method of claim 2, wherein the amplitude of the generated reference signal is varied as a function of the presence level.
6. The method of claim 5, wherein the amplitude of the generated reference signal increases if the presence level is below a first threshold value, and wherein the amplitude of the generated reference signal decreases if the presence level is above one of the first threshold value and a second threshold value.
7. The method of claim 1, wherein generating the reference signal includes repeating an N-samples segment, the generation of the N-samples segment comprising the steps of: defining a set of frequency bins between a first and second ultrasound frequency; defining a magnitude spectrum of length N/2+1, the magnitude spectrum comprising a plurality of active bins having a magnitude greater than zero and a plurality of zero-bins having a magnitude equal to zero; converting the magnitude spectrum to a complex-valued spectrum by adding a phase value to each magnitude value of the active bins; and generating the N-samples segment of the reference signal by applying an N-points inverse fast Fourier transform (iFFT) to the complex-valued spectrum.
8. The method of claim 7, wherein determining the presence level of the reference signal in the received signal comprises the steps of: determining the fast Fourier transform (FFT) of an N-samples segment of the received signal; and determining a signal-to-noise ratio value from a ratio of signal power of the active bins and signal power of the zero-bins.
9. The method of claim 8, wherein generating the N-samples segment of the received signal comprises the steps of: dividing the received signal into segments of N consecutive samples; and averaging across the segments to obtain an N-samples segment.
10. The method of claim 1, wherein the amplitudes of the plurality of sinusoidal waveforms are approximately equal.
11. The method of claim 10, further comprising mixing the reference signal with an audio signal for output via a loudspeaker of the audio playback system.
12. A non-transitory computer readable media comprising a computer program comprising computer-executable instructions which, when executed by a computer, causes the computer to perform a method of detecting a fault in an audio playback system, the method comprising: generating a reference signal comprising a plurality of sinusoidal waveforms with frequencies in the ultrasound region for output via the audio playback system as a non-audible reference signal; receiving an audio signal via at least one sensor; determining a presence level of the reference signal in the received audio signal; and outputting a fault indication dependent on the presence level.
13. An audio playback system comprising: a reference signal generator having a reference signal output configured to be coupled to a loudspeaker; an audio analyser having an audio analyser input configured to be coupled to an acoustic sensor and an audio analyser output; wherein the reference signal generator is configured to output a reference signal comprising a plurality of sinusoidal waveforms in ultrasound frequency range for output via the loudspeaker; and the audio analyser is configured to: receive an audio input signal; determine a presence level of the reference signal in the received audio input signal; and output a fault indication dependent on the presence level.
14. The audio playback system of claim 13, wherein the audio analyser is further configured to determine the presence level of the reference signal in the received audio signal by determining a signal-to-noise ratio value of the reference signal for a first sample segment.
15. The audio playback system of claim 14, wherein the audio analyser is further configured to determine the presence level of the reference signal by determining a further signal-to-noise ratio value of the reference signal from a further sample segment and determining an average signal-to-noise ratio value from the signal-to-noise ratio value and the further signal-to-noise ratio value.
16. The audio playback system of claim 15, further comprising a controller having a controller input coupled to a second audio analyser output and a controller output coupled to a reference signal generator input, wherein the controller is configured to control the reference signal generator to adjust the amplitude of the reference signal dependent on at least one of the signal-to-noise ratio value and the further signal-to-noise ratio value.
17. The audio playback system of claim 15, wherein controller is further configured to control the reference signal generator to increase the amplitude of the generated reference signal if the signal-to-noise ratio value is below a first threshold value, and decrease the amplitude of the generated reference signal if the signal-to-noise ratio value is above one of the first threshold value and a second threshold value.
18. The audio playback system of claim 15, wherein the reference signal generator is configured to generate the reference signal by repeating an N-samples segment, and to generate the N-samples segment by: defining a set of frequency bins between a first and second ultrasound frequency; defining a magnitude spectrum of length N/2+1, the magnitude spectrum comprising a plurality of active bins having a magnitude greater than zero and a plurality of zero bins having a magnitude equal to zero; converting the magnitude spectrum to a complex-valued spectrum by adding a phase value to each magnitude value of the active bins; and generating the N-samples segment of the reference signal by applying an N-points inverse fast Fourier transform (iFFT) to the complex-valued spectrum.
19. The audio playback system of claim 18, wherein the audio analyser is configured to determine the presence level of the reference signal by: determining the fast Fourier transform (FFT) of an N-samples segment of the received signal; and determining a signal-to-noise ratio value from a ratio of signal power of the active bins and signal power of the zero-bins.
20. The audio playback system of claim 19, wherein the audio analyser is further configured to generate the N-samples segment of the received signal by: dividing the received signal into segments of N consecutive samples; and averaging across the segments to obtain an N-samples segment.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In the figures and description like reference numerals refer to like features. Embodiments are now described in detail, by way of example only, illustrated by the accompanying drawings in which:
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
DETAILED DESCRIPTION OF EMBODIMENTS
[0034]
[0035] The inventor of the present disclosure has appreciated that by using a multi-sine signal (i.e., a signal including a number of sinusoidal waveforms), a fault in the audio playback system may be reliably detected. A multi-sine signal is typically used for (non-) linear system identification. Furthermore, because the signal is inaudible, the method may be used to continuously detect whether or not there is a fault. This fault may be due to example a faulty connection to a loudspeaker, a fault in an amplifier driving the loudspeaker, or some other fault in the audio playback system which prevents the reference signal being transmitted.
[0036] An example method 150 for generating a multi-sine signal in the frequency domain is shown in
[0037] This generated signal can be repeated a number of times in accordance with the FFT assumption of periodicity. The reference signal can be passed through a system, and the response can be used to analyse the linear frequency response function (FRF) and the distortion components. For the generated multi-sine signal, when the response is analysed using an N-points FFT, the zero-bins should still be zero in the absence of noise and distortions. If the positions of the zero-bins are appropriately chosen, two subsets of frequency bins will contain odd and even harmonic distortion components.
[0038]
where N.sub.A.sub.
[0039] In step 206 the received signal may be divided into segments of N consecutive samples. In step 208 the determined signal-to-noise ratio value may be averaged across the segments to obtain an N samples segment. The inventor of the present disclosure has further appreciated that by averaging segments of N samples, i.e., dividing a time segment into smaller chunks of N samples and averaging the smaller segments, has a positive effect on the SNR measure. This is because the reference signal and its echo in the received signal are by design periodic over N samples (a segment of N samples is repeated). The phase of the reference signal and, because of linearity, also of the echo, is the same across different repetitions. Therefore, averaging several segments will not substantially decrease the resulting magnitude of the active bins. The other bins, on the other hand, will not have identical phases across repetitions, due to which the averaging operation will decrease the amplitude. Each bin is complex-valued, and averaging complex-valued numbers with identical magnitudes but different phases will decrease the magnitude, whereas the magnitude remains the same if the phases are identical (as is the case in the echo of the reference signal in the active bins).
[0040]
[0041] The analyser 306 may have an input 322 for receiving a signal Z1. The analyser 306 may have a first output 308 connected to an input of the controller 304. Analyser 306 may have a pass/fail indicator output 320.
[0042] In operation, the audio mixer output 330 may be connected to an input of a speaker amplifier 332. The speaker amplifier output 334 may be connected to a speaker 336 (sometimes referred to as “loudspeaker 336”). In operation, a microphone 328 may have an output 326 connected to an input of microphone amplifier 324. The microphone amplifier output may be connected to the analyser input 322. An audio signal s1 may be provided at the input, and a reference multi-sine ultrasound signal with a certain gain (gain1) may be output by reference signal generator 302 for example using method 150 and linearly added to the audio signal s1 by the mixer 316. The combined signal is sent to the speaker amplifier 332 and loudspeaker 336. The acoustical output from the speaker 336 together with any ambient noise is recorded using a microphone 328 which outputs microphone signal z1. This microphone signal z1 may be analysed by analyser 306 for example using method 200 and an audio system status (i.e., ok or failure), is indicated at the pass/fail indicator output 320. The output of the analysis is input to a control block, which controls the reference signal generator 302 to generate the reference signal. The controller 304 may for example control the reference signal generator 302 to adapt the gain of the reference signal depending on the signal-to-noise-ratio determined by the analyser 306.
[0043] The audio playback system 300 may be implemented in hardware or a combination of hardware and software for example software executed by a microprocessor, microcontroller or other processor such as a digital signal processor.
[0044]
[0045] In some examples, the audio play back system 300 may evaluate the generated signal within a predetermined time frame to determine whether there is a fault. This is illustrated for example in
[0046] Following from step 460 in step 462 the system is indicated to be functional. The method may then return to step 452.
[0047] Returning to step 456, a number of received samples may be added to internal buffer B. In step 458, if the SNR.sub.thresh is not exceeded, the method proceeds to step 464 and determines whether the maximum time period t.sub.max has been exceeded. If t.sub.max is exceeded then the method proceeds to step 466 and a system failure is indicated. If t.sub.max is not exceeded the playback of the reference signal continues and the method returns to step 452.
[0048] In some examples an audio playback system may include multiple loudspeakers which may need to be checked. In this case, the reference signal can be designed differently such that each loudspeaker has its own distinct set of active bins. When the loudspeakers play their proper reference signals, a single microphone may record the acoustical outputs. The signal spectra for two loudspeakers 500 is illustrated in
The set of zero-bins, Z, is common for all reference signals.
[0049] The detection of the reference signal does not use a cross-correlation, which is the usual way of detecting the presence of a signal. Detecting a reference signal as described may give a more accurate presence detection than cross-correlation since both a poor signal correlation and a low signal-to-noise ratio would lead to lower correlation values. The acoustical path between loudspeaker and microphone may also influence the correlation value.
[0050] The audio system may have multiple microphones. In that case, presence level criteria may be computed for each received signal (one from each microphone), and a decision for pass/fail can be made if at least one of the received signals meets the criterion.
[0051] In general, embodiments described can be used for monitoring an actuator/sensor system where the actuator can be used for generating actions that can be measured by the sensor, but not perceived by the user. In some examples the method may be applied for haptic systems.
[0052] There is disclosed an audio playback system including a loudspeaker, a microphone and a means for implementing a method of detecting a fault which includes the generation and analysis of a specific ultrasound reference signal. The presence of the ultrasound reference signal can be detected on the microphone signal, and the signal-to-noise ratio can be estimated during the reference signal playback so that the volume of the reference signal can be adapted if necessary. The reference signal is a multi-sinusoidal signal which, when averaged over time increases the expected signal-to-noise ratio, and hence, the sensitivity of the detector.
[0053] Apparatus and methods described herein allow for a detection of the reference signal in the microphone signal, and an estimation of the signal-to-noise ratio during the playback of the reference signal without requiring a separate silent segment for measuring the noise level. Embodiments may be included in systems that require continuous and inaudible monitoring of audio systems. This may be used for example in automotive safety-critical systems, where the audio is used to notify the user in case of a system failure. The audio system used for sending this notification may diagnose its own system failure, preferably before attempting to send out the notification to the user, since user notifications are often time-critical in these applications.
[0054] In some example embodiments the set of instructions/method steps described above are implemented as functional and software instructions embodied as a set of executable instructions which are effected on a computer or machine which is programmed with and controlled by said executable instructions. Such instructions are loaded for execution on a processor (such as one or more CPUs). The term processor includes microprocessors, microcontrollers, processor modules or subsystems (including one or more microprocessors or microcontrollers), or other control or computing devices. A processor can refer to a single component or to plural components.
[0055] In other examples, the set of instructions/methods illustrated herein and data and instructions associated therewith are stored in respective storage devices, which are implemented as one or more non-transient machine or computer-readable or computer-usable storage media or mediums. Such computer-readable or computer usable storage medium or media is (are) considered to be part of an article (or article of manufacture). An article or article of manufacture can refer to any manufactured single component or multiple components. The non-transient machine or computer usable media or mediums as defined herein excludes signals, but such media or mediums may be capable of receiving and processing information from signals and/or other transient mediums.
[0056] Example embodiments of the material discussed in this specification can be implemented in whole or in part through network, computer, or data-based devices and/or services. These may include cloud, internet, intranet, mobile, desktop, processor, look-up table, microcontroller, consumer equipment, infrastructure, or other enabling devices and services. As may be used herein and in the claims, the following non-exclusive definitions are provided.
[0057] In one example, one or more instructions or steps discussed herein are automated. The terms automated or automatically (and like variations thereof) mean controlled operation of an apparatus, system, and/or process using computers and/or mechanical/electrical devices without the necessity of human intervention, observation, effort and/or decision.
[0058] Although the appended claims are directed to particular combinations of features, it should be understood that the scope of the disclosure of the present invention also includes any novel feature or any novel combination of features disclosed herein either explicitly or implicitly or any generalisation thereof, whether or not it relates to the same invention as presently claimed in any claim and whether or not it mitigates any or all of the same technical problems as does the present invention.
[0059] Features which are described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, various features which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable sub combination.
[0060] The applicant hereby gives notice that new claims may be formulated to such features and/or combinations of such features during the prosecution of the present application or of any further application derived therefrom.
[0061] For the sake of completeness it is also stated that the term “comprising” does not exclude other elements or steps, the term “a” or “an” does not exclude a plurality, a single processor or other unit may fulfil the functions of several means recited in the claims and reference signs in the claims shall not be construed as limiting the scope of the claims.