Method and apparatus for audio fault detection

By embedding control bits in audio data and using CRC checksums or multi-bit redundancy checks, the problem of warning sound playback fault detection in audio output monitoring is solved, ensuring the correctness and stability of the sound.

CN111949435BActive Publication Date: 2024-10-22MEDIATEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010376289.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-17
Filing Date
2020-05-07
Publication Date
2024-10-22
Estimated Expiration
2040-05-07

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively detect and solve the problem of warning sound playback failure in audio output monitoring, resulting in sound mismatch or damage.

Method used

By embedding control bits in the audio data, integrity checks are performed to ensure the correctness of the sound samples, faults in the data are detected using CRC checksums or multi-bit redundancy checks, and the sound played back matches the intended sound.

Benefits of technology

It realizes the integrity check of audio data, can detect and correct faults in time, ensures the correct playback of warning sounds, and improves the reliability and stability of audio output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111949435B_ABST
    Figure CN111949435B_ABST
Patent Text Reader

Abstract

The present invention provides methods and apparatus for audio fault detection, and also discloses various examples and schemes for fault detection of audio output monitoring for warning sound playback. In one aspect, audio data is obtained from a data storage device, and the audio data may include a first sound sample of multiple bits and one or more control bits for integrity check. The audio data is processed in the following manner: (i) performing an integrity check on the first sound sample based on the one or more control bits; and (ii) playing back the first sound using the first sound sample. The first sound may be a warning sound in an automotive application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to audio output monitoring and, more particularly, to audio output monitoring for fault detection of warning sound playback. Background Art

[0002] Unless otherwise indicated herein, the approaches described in this section are not prior art to the claims listed below and are not admitted to be prior art by inclusion in this section.

[0003] Currently, with the popularity of various electronic devices and smart devices, the devices can output different audio sounds to provide different types of notifications to users. In the context of automobiles (interchangeably referred to as "vehicles" in this article), electric vehicle warning sounds are intended to warn pedestrians about approaching vehicles (e.g., electric vehicles or hybrid electric vehicles). As another example, a vehicle can play a special sound to warn or remind the driver of a certain condition (e.g., the turn signal is on, the fuel level is too low, the vehicle is too close to an object, the seat belt is not fastened, etc.). Summary of the invention

[0004] The following summary of the invention is merely illustrative and is not intended to be limiting in any way. That is, the following summary of the invention is provided to introduce the concepts, highlights, benefits, and advantages of the novel and non-obvious technologies described herein. Selected implementations are further described in the detailed description below. Therefore, the following summary of the invention is not intended to identify the essential features of the claimed subject matter, nor is it intended to be used to determine the scope of the claimed subject matter.

[0005] To solve the above problems, the present disclosure provides solutions, schemes, concepts, designs, techniques and examples related to audio output monitoring for fault detection of warning sound playback. Therefore, an integrity check of the audio data being played can be enabled to detect any faults therein (e.g., corrupted data bits) to ensure that a given sound to be played back matches the expected sound.

[0006] In one aspect, a method of audio fault detection may involve obtaining first audio data from a data storage. The first audio data may include a first sound sample of a plurality of bits and one or more control bits for integrity checking. The method may also involve processing the first audio data by: (i) performing an integrity check on the first sound sample based on the one or more control bits; and (ii) playing back a first sound using the first sound sample.

[0007] In one aspect, an apparatus for audio fault detection may include a data memory and a circuit coupled to the data memory. The data memory may store first audio data and second audio data different from the first audio data. The first audio data may include a first sound sample of multiple bits and one or more control bits for integrity checking. During operation, the circuit may retrieve the first audio data from the data memory and process the first audio data in the following manner: (i) perform an integrity check on the first sound sample based on the one or more control bits; (ii) play back the first sound using the first sound sample.

[0008] By means of the integrity check of the audio data in the present invention, any faults therein can be easily detected, thereby ensuring that a given sound to be played back matches the expected sound.

[0009] It is worth noting that although the description provided herein may be in the context of certain error detection techniques, such as cyclic redundancy check (CRC), the proposed concepts, schemes and any variants / derivatives thereof may be implemented in, for and by other types of error detection techniques as applicable. Therefore, the scope of the present disclosure is not limited to the examples described herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are included to provide a further understanding of the present disclosure, are incorporated into the present disclosure and constitute a part of the present disclosure. The accompanying drawings illustrate implementations of the present disclosure and together with the description are used to explain the principles of the present disclosure. It is understood that the drawings are not necessarily to scale, as some components may be shown out of proportion to the size in the actual implementation in order to clearly illustrate the concept of the present invention.

[0011] Figure 1 is a schematic diagram of an example scheme of an implementation according to the present disclosure.

[0012] Figure 2 is a schematic diagram of an example design according to an implementation of the present disclosure.

[0013] Figure 3 is a schematic diagram of an example scheme of an implementation according to the present disclosure.

[0014] Figure 4 is a schematic diagram of an example design according to an implementation of the present disclosure.

[0015] Figure 5 is a schematic diagram of an example scheme of an implementation according to the present disclosure.

[0016] Figure 6 is a schematic diagram of an example design according to an implementation of the present disclosure.

[0017] Figure 7 is a block diagram of an example apparatus according to an implementation of the present disclosure.

[0018] Figure 8 is a schematic diagram of an example operation according to an implementation of the present disclosure.

[0019] Fig. 9 is a schematic diagram of an example operation according to an implementation of the present disclosure.

[0020] Fig.10 is a schematic diagram of an example scenario of a hardware implementation of various proposed solutions according to the present disclosure.

[0021] Fig.11 is a flow chart of an example process according to an implementation of the present disclosure. DETAILED DESCRIPTION

[0022] Detailed embodiments and implementations of the claimed subject matter are disclosed herein. However, it should be understood that the disclosed detailed embodiments and implementations are only for the purpose of illustrating the claimed subject matter embodied in various forms. However, the present disclosure can be embodied in a variety of different forms and should not be understood as being limited to the exemplified embodiments and implementations. These exemplified embodiments and implementations are provided to make the description of the present disclosure comprehensive and complete and to be able to fully convey the scope of the present disclosure to those skilled in the art. In the following description, details of known features and technologies are omitted to avoid unnecessarily obscuring the embodiments and implementations of the present invention.

[0023] Overview

[0024] Under various proposed schemes according to the present disclosure, control bits (e.g., enable bit, reset bit, and transfer bit) can be embedded in audio data to be played back as a warning sound. Under various proposed schemes, an expected inspection result (e.g., CRC checksum result) can be provided in-band or out-of-band to a component for verifying the checksum result. That is, safety-related audio data with checksum control bits can be calculated and / or accumulated, and then compared with a predetermined correct (or golden) CRC checksum value for fault detection.

[0025] Figure 1 An example scheme 100 according to an implementation of the present disclosure is shown. Specifically, Figure 1Part (A) shows the audio pulse code modulation (PCM) data of a normal sound sample, Figure 1 Part (B) shows the audio PCM data of a special sound sample under the proposed scheme according to the implementation of the present disclosure. Figure 1 In part (A), for audio PCM data containing normal sound samples for playing back normal sound, each 32-bit (32-bit) frame of the audio PCM data can be filled, wherein 16 (represented as 16B in the figure) or 24 (represented as 24B in the figure) most significant bits (MSB) represent normal sound samples, and the remaining 16 or 8 bits (represented as 16B or 8B in the figure) are filling bits (e.g., bit "0"). Normal sound can be played back via one of a plurality of audio output channels (e.g., channel 3 (CH3) among channel 1 (CH1) to channel 8 (CH8)).

[0026] Reference Figure 1 Part (B) of the audio PCM data containing special sound samples for playing back special sounds (e.g., warning sounds) may fill each 32-bit frame of the audio PCM data, wherein the 16 or 24 MSBs representing the special sound samples are sent through the I2S / TDM interface for processing and playback. The remainder of the 32 bits may include 3 (represented as 3B in the figure) control bits (e.g., bit "0" or "1") and 13 or 5 bits of padding bits (e.g., bit "0"). In Figure 1 In the example shown, the three control bits may include the following: the first bit of the LSB is a checksum enable bit, the second bit of the LSB is a checksum transfer bit, and the third bit of the LSB is a checksum reset bit. Normal sound may be played back via one of a plurality of audio output channels (e.g., channel 3 among channels 1 to 8). Therefore, playback of normal sound and playback of special sound may be via the same channel (e.g., channel 3). It is worth noting that although in Figure 1 The illustrated example shows that 3 control bits replace the 3 LSBs of the padding bits, but in an actual implementation, the 3 control bits may be interspersed among or mixed with the data bits instead of replacing the padding bits.

[0027] In scheme 100, for normal sound samples, the checksum enable bit can be "0", and the checksum reset bit can also be "0". In addition, when a frame containing a special sound sample is followed by a frame containing a normal sound sample, the checksum enable bit can be "0". This causes the counter of the checksum result to be reset. In addition, when a frame containing a special sound sample is followed by another frame containing another special sound sample, the checksum enable bit can be "1", and the checksum reset bit can be "0". This causes the checksum result to be updated, and the CRC calculation value of the checksum result to be accumulated. In addition, when the frame to be played back contains the last special sound sample in a series of special sound samples, the checksum enable bit can be "1", and the checksum transmission bit can be "1". This causes the checksum result to be reported for comparison or determination of faults or damage in audio PCM data. Alternatively, in the case where the checksum enable bit is "1" and the checksum reset bit is "1", this causes the checksum to not be accumulated and reset to the initial value.

[0028] Figure 2 An exemplary design 200 is shown according to various proposed schemes of the present disclosure, which can implement the scheme 100 for audio output monitoring, which is used for fault detection of warning sound playback. The design 200 can be implemented in a device such as an electronic control unit (ECU) 205 in an automobile. In the design 200, audio PCM data containing special sound samples of special sounds (e.g., warning sounds) can be stored in a data storage (e.g., a memory or a register). A correct or golden cyclic redundancy check (CRC) checksum can also be stored in the data storage. In operation, the audio driver can obtain audio PCM data and buffer special sound samples in the audio PCM data in a circular buffer or a ring buffer to be amplified for playback through an audio output interface.

[0029] In design 200, a security mechanism including a CRC calculator can obtain a processed special sound sample (e.g., output from an audio output interface) to calculate a CRC checksum of the special sound sample. A comparator can obtain a correct or golden CRC checksum from a data memory and receive a calculated CRC checksum from a CRC calculator for comparison to determine whether there is a fault or corruption in the audio PCM data. For example, if the calculated CRC checksum is not equal to the correct or golden CRC checksum, the comparator can determine that there is a fault / corruption in the audio PCM data and can therefore send a signal to an error response module (ERM) for further action (e.g., causing a previous special sound sample to replace a current special sound sample that is considered corrupted). In addition, the comparator can input a report back to the audio driver to indicate whether the calculated CRC checksum is correct or incorrect.

[0030] Figure 3 An example scheme 300 according to an implementation of the present disclosure is shown. Specifically, Figure 3 Part (A) shows the audio PCM data of a normal sound sample, Figure 3 Part (B) shows the audio PCM data of a special sound sample under the proposed scheme according to the implementation of the present disclosure. Figure 3 In part (A), for audio PCM data containing normal sound samples for playing back normal sound, each 32-bit (32-bit) frame of the audio PCM data may be filled, wherein 16 or 24 most significant bits (MSB) represent normal sound samples, and the remaining 16 or 8 bits are filling bits (e.g., bit "0"). Normal sound may be played back via one of a plurality of audio output channels (e.g., channel 3 among channels 1 to 8).

[0031] Reference Figure 3 Part (B), for audio PCM data containing special sound samples for playing back special sounds (e.g., warning sounds), each 32-bit frame of the audio PCM data may be filled, wherein the 16 or 24 MSBs representing the special sound samples are sent over the I2S / TDM interface for processing and playback. The remainder of the 32 bits may include 5 bits of CRC bits, 3 control bits (e.g., bits "0" or "1"), and optionally padding bits (e.g., bits "0"). In Figure 3In the example shown, the three control bits may include the following: the first bit of the LSB is a checksum enable bit, the second bit of the LSB is a checksum transfer bit, and the third bit of the LSB is a checksum reset bit. Normal sound may be played back via one of a plurality of audio output channels (e.g., channel 3 among channels 1 to 8). Therefore, playback of normal sound and playback of special sound may be via the same channel (e.g., channel 3). It is worth noting that although in Figure 3 The example shown shows that 5 bits of CRC bits and 3 control bits replace the 8 LSBs of the padding bits, but in an actual implementation, the 5 bits of CRC bits and / or the 3 control bits can be interspersed among or mixed with the data bits instead of replacing the padding bits.

[0032] In scheme 300, the 32-bit CRC value can be split and filled into 7 frames of audio PCM data containing special sound samples. For example, every 5 bits of the 32 bits of the CRC value can be filled into 7 frames of audio PCM data containing special sound samples. Therefore, by extracting or otherwise obtaining the corresponding 5 bits of the 32-bit CRC value from each of the 7 frames, the 32-bit CRC value can be obtained and used to determine the integrity or validity of the calculated checksum result (e.g., the checksum result calculated from the 7 frames of audio PCM data containing the special sound sample). Therefore, there is no need to obtain the correct or golden CRC checksum from a data storage (e.g., a storage storing audio PCM data).

[0033] In scheme 300, for normal sound samples, the checksum enable bit can be "0" and the checksum reset bit can also be "0". In addition, when a frame containing a special sound sample is followed by a frame containing a normal sound sample, the checksum enable bit can be "0". This causes the counter of the checksum result to be reset. In addition, when a frame containing a special sound sample is followed by another frame containing another special sound sample, the checksum enable bit can be "1" and the checksum reset bit can be "0". This causes the checksum result to be updated and the CRC calculation value of the checksum result to be accumulated. In addition, when the frame to be played back contains the last special sound sample in a series of special sound samples, the checksum enable bit can be "1" and the checksum transmission bit can be "1". This causes the checksum result to be reported for comparison or determination of faults or damage in audio PCM data. Alternatively, in the case where the checksum enable bit is "1" and the checksum reset bit is "1", this causes the checksum to not be accumulated and reset to the initial value.

[0034] Figure 4 An exemplary design 400 is shown according to various proposed schemes of the present disclosure, which can implement the scheme 300 for audio output monitoring, which is used for fault detection of warning sound playback. The design 400 can be implemented in a device such as an ECU 405 in an automobile. In the design 400, audio PCM data containing special sound samples of special sounds (e.g., warning sounds) can be stored in a data storage (e.g., a memory or a register). The stored audio PCM data may include CRC bits as described in the scheme 300. In operation, the audio driver can obtain the audio PCM data, buffer the special sound samples in the audio PCM data in a circular buffer or a ring buffer to be amplified for playback through the audio output interface.

[0035] In design 400, a security mechanism including a CRC checker can obtain a processed special sound sample (e.g., output from an audio output interface) to calculate a CRC checksum of the special sound sample. The CRC checker can also obtain a correct or golden CRC checksum by piecing together fragments (e.g., 5-bit fragments) of the correct CRC checksum contained in the audio PCM data (e.g., in 7 frames). The CRC checker can then compare the calculated CRC checksum with the correct CRC checksum to determine whether there is a fault or damage in the audio PCM data. If the calculated CRC checksum is not equal to the correct or golden CRC checksum, the CRC checker can determine that there is a fault / damage in the audio PCM data, and therefore can send a signal to the ERM for further action (e.g., causing the playback of a previous special sound sample to replace the current special sound sample that is considered to be damaged). For example, if the calculated CRC checksum is incorrect, the CRC checker can send a signal to the ERM; otherwise, if the calculated CRC checksum is correct, the CRC checker does not need to provide a signal to the ERM. Additionally, the CRC checker may report back to the audio driver to indicate whether the calculated CRC checksum was correct or incorrect.

[0036] Figure 5 An example solution 500 according to an implementation of the present disclosure is shown. Specifically, Figure 5 Part (A) shows the audio PCM data of a normal sound sample, Figure 5 Part (B) shows the audio PCM data of a special sound sample under the proposed scheme according to the implementation of the present disclosure. Figure 5In part (A), for audio PCM data containing normal sound samples for playing back normal sound, each 32-bit (32-bit) frame of the audio PCM data may be filled, wherein 16 or 24 MSBs represent normal sound samples, and the remaining 16 or 8 bits are filling bits (e.g., bit "0"). Normal sound may be played back via one of a plurality of audio output channels (e.g., channel 3 among channels 1 to 8).

[0037] Reference Figure 5 Part (B) of the audio PCM data containing special sound samples for playing back special sounds (e.g., warning sounds) may fill each 32-bit frame of the audio PCM data, wherein the 16 or 24 MSBs representing the special sound samples are sent through the I2S / TDM interface for processing and playback. The remaining 32 bits may include 1 control bit (e.g., bit "0" or "1") and 7 or 15 bits of multi-bit redundancy bits (e.g., in Figure 5 That is, for 24-bit data, there may be 7 bits of multi-bit redundant bits plus 1 control bit. Similarly, for 16-bit data, there may be 15 bits of multi-bit redundant bits plus 1 control bit. Figure 5 In the example shown, 1 control bit may include a checksum enable bit as the LSB. Normal sound may be played back via one of a plurality of audio output channels (e.g., channel 3 of channels 1 to 8). Therefore, playback of normal sound and playback of special sound may be via the same channel (e.g., channel 3). It is worth noting that although in Figure 5 In the example shown, 7 or 15 bits of multi-bit redundant bits and 1 control bit are shown to replace 8 or 16 LSBs of the padding bits, but in actual implementation, 7 or 15 bits of multi-bit redundant bits and / or 1 control bit can be interspersed among the data bits or mixed with the data bits instead of replacing the padding bits. It is also worth noting that in some implementations, one or more of the 7 or 15 bits of multi-bit redundant bits can be control bits such as those described above with respect to scheme 100 and / or scheme 300.

[0038] In scheme 500, for normal sound samples, the checksum enable bit can be "0". In addition, when a frame containing special sound samples is followed by a frame containing normal sound samples, the checksum enable bit can be "0". This causes the counter of the checksum result to be reset. In addition, when a frame containing special sound samples is followed by another frame containing another special sound sample, the checksum enable bit can be "1". This causes the checksum result to be updated and the CRC calculation value of the checksum result to be accumulated. In addition, when the frame to be played back contains the last special sound sample in a series of special sound samples, the checksum enable bit can be "1". This causes the checksum result to be reported for comparison or determination of faults or damage in the audio PCM data.

[0039] Figure 6 An exemplary design 600 according to various proposed schemes of the present disclosure is shown, which can implement scheme 500 for audio output monitoring, which is used for fault detection of warning sound playback. Design 600 can be implemented in a device such as an ECU 605 in an automobile. In design 600, audio PCM data containing special sound samples of special sounds (e.g., warning sounds) can be stored in a data storage (e.g., a memory or a register). The stored audio PCM data may contain multiple bits of redundant bits as described in scheme 500. In operation, the audio driver can obtain audio PCM data and buffer special sound samples in the audio PCM data in a circular buffer or a ring buffer to be amplified for playback through an audio output interface.

[0040] In design 600, a security mechanism including a multi-bit redundancy checker can obtain a processed special sound sample (e.g., an output from an audio output interface) to calculate a multi-bit redundancy checksum of the special sound sample. For example, the multi-bit redundancy checker can utilize a Hamming code when performing a multi-bit redundancy check. The difference between a Hamming code and a CRC is that the length of the input data for the multi-bit redundancy check utilizing a Hamming code can be less than 32 bits. Therefore, even if the input data is shorter than 32 bits, error detection can still be performed utilizing, for example, but not limited to, a 5-bit or 7-bit Hamming code. In the case where one or more bits of the multi-bit redundancy bits include one or more control bits, such control bits can be used as described above with respect to scheme 100 and / or scheme 300. Therefore, as opposed to performing integrity checks on a single piece of PCM data in a one-to-one manner, multiple pieces of PCM data can be concatenated together to more rigorously perform integrity checks on the multiple pieces of PCM data, thereby achieving higher efficiency and enhanced performance. In addition, the audio driver can ask the multi-bit redundancy checker for the number of integrity checks that have been performed (in Figure 6 If the calculated redundancy checksum is incorrect, the multi-bit redundancy checker can determine that there is a fault / corruption in the audio PCM data, and thus a signal can be sent to the ERM for further action (e.g., causing playback of a previous special sound sample to replace the current special sound sample that is deemed to be corrupted).

[0041] It is worth noting that the functionality of the security mechanism in each of designs 200 , 400 , and 600 may be expanded to include one or more other functions, such as, but not limited to, cross-correlation and / or spectrum analysis.

[0042] For example, the safety mechanism may include a cross-correlation / spectral analysis component configured to determine whether the audio data in the audio input buffer (e.g., a circular buffer or annular buffer) includes a reference signal. In this case, the cross-correlation / spectral analysis component may cross-correlate a copy of the reference signal (e.g., stored in a data storage such as a memory or a register) with the audio data, and the result of the cross-correlation algorithm indicates whether the audio data includes the reference signal. Alternatively or additionally, the cross-correlation / spectral analysis component may perform a spectral analysis of the audio data in the frequency domain and compare the spectrum of the audio data with the known spectrum of the reference signal. If the audio data includes a frequency component of the reference signal, the cross-correlation / spectral analysis component may determine that the audio data includes the reference signal; otherwise, the cross-correlation / spectral analysis component may determine that the audio data does not include the reference signal. When the cross-correlation / spectral analysis component determines that the audio data in the audio input buffer includes a reference signal, the functions of each ECU (e.g., ECU 205, ECU 405, and / or ECU 605) may continue as usual.

[0043] In the case where the cross-correlation / spectral analysis component determines that the audio data in the audio input buffer does not include the reference signal, the safety mechanism can send an indication to the ERM to start the fault process. Because in this case, due to some errors in the audio output path of the signal including the warning sound, these errors cause the combined signal along the audio output path to be damaged, resulting in the original reference signal not being included, and thus the special sound audio (e.g., the warning sound) cannot be played correctly. Similarly, the cross-correlation / spectral analysis component can also be configured to check whether the data quality of the audio data in the audio input buffer is distorted or damaged. In the case where the analysis of the audio indicates distortion or damage, the safety mechanism can send an indication to the ERM to start the fault process. This is because there are some errors in the audio output path of the special sound, and the error causes the combined signal including the special sound along the audio output path to be damaged, so that the special sound audio (e.g., the warning sound) cannot be played correctly.

[0044] Exemplary Implementations

[0045] Figure 7 An example device 700 according to an implementation of the present disclosure is shown. The device 700 may perform various functions and / or operations to implement the schemes, techniques, processes, and methods described herein related to audio output monitoring for fault detection of warning sound playback, including the above-mentioned references The various designs and schemes described and any variations thereof, including those referred to below The various scenarios and processes described and any variations thereof.

[0046] Reference Figure 7 , the device 700 may include an automotive safety integrity level (ASIL) microcontroller (MCU) 710, a system-on-chip (SoC) 720, and a digital-to-analog converter (DAC) 730. The SoC 720 may be coupled to the ASIL MCU 710 and the DAC 730 and communicate with each of the ASIL MCU 710 and the DAC 730. The SoC 720 may include an application processor (AP) 722, an audio subsystem circuit 724, a system control processor (SCP) 726, an audio diagnosis circuit 728, and a data memory 725. The AP 722 can be coupled to the ASIL MCU 710 and communicate with the ASIL MCU 710 via a first inter-processor communication (IPC) bus (in the ASIL MCU 710) using one or more suitable protocols, such as, but not limited to, a Serial Peripheral Interface (SPI) protocol and a Universal Asynchronous Receiver / Transmitter (UART) protocol. Figure 7 SCP 726 can be coupled to ASIL MCU 710 and communicate with ASIL MCU 710 via a second IPC bus (labeled as “IPC1” in FIG. 1 ) using one or more suitable protocols (such as, but not limited to, UART protocol). Figure 7The device 700 communicates with the ASIL MCU 710 (labeled as "IPC2" in FIG. 1 ). In the context of automotive applications, the device 700 can be implemented in an ECU or as a part of an ECU. Therefore, the device 700 can be an example implementation of the ECU 205, the ECU 405, and / or the ECU 605.

[0047] The apparatus 700 may include Figure 7 At least some of the components shown in FIG. 7 and one or more other components not related to the solution proposed in the present disclosure. Therefore, for the sake of simplicity and brevity, these components of the device 700 are shown in FIG. Figure 7 It is not shown in the figure and is not described below.

[0048] The device 700 may be implemented in the form of one or more integrated-circuit (IC) chips, such as, but not limited to, one or more single-core processors, one or more multi-core processors, or one or more complex-instruction-set-computing (CISC) processors. That is, even if the singular term "processor" is used here to refer to the device 700, according to the present disclosure, the device 700 may include multiple processors in some implementations and may include a single processor in other implementations. In one aspect, the device 700 may be implemented in the form of hardware (and optionally, firmware), and the electronic components of the hardware include, for example, but not limited to, one or more transistors, one or more diodes, one or more capacitors, one or more resistors, one or more inductors, one or more memristors, and / or one or more varactor diodes configured and arranged to achieve a specific purpose according to the present disclosure. In other words, in at least some implementations, the device 700 may be a dedicated device that is specially designed, arranged, and configured to perform specific tasks, including tasks related to audio output monitoring of fault detection of warning sound playback according to various implementations of the present disclosure.

[0049] According to various proposed schemes of the present disclosure, the audio diagnostic circuit 728 can calculate the checksum of each audio PCM data or selected audio PCM data to be output or played back via a specific audio output channel (e.g., I2S / TDM output port). The I2S / TDM output port and the specific channel for playing back special sounds (e.g., warning sounds) can be configured as a special monitor mode. According to various proposed schemes of the present disclosure (e.g., the above-mentioned schemes 100 and 300), the audio PCM data can be filled into 32 bits, where 16 or 24 MSBs represent special sound samples (e.g., warning sounds) and 3 LSBs of the control bits are used to enable the checksum calculation of the audio samples and for restarting the checksum calculation. According to various proposed schemes of the present disclosure, when a special sound sample is to be played back, the ASIL MCU 710 can receive the checksum result and counter of a given frame of the audio PCM data to be played back (e.g., from the audio diagnostic circuit 728 via SCP 726) to compare the checksum result with a predetermined golden or correct checksum value.

[0050] Under the proposed scheme of audio output monitoring for fault detection of warning sound playback according to the present disclosure, the device 700 (e.g., AP 722) can obtain first audio data from the data storage 725. The first audio data can include a first sound sample of multiple bits and one or more control bits for integrity check. In addition, the device 700 (e.g., AP 722, audio subsystem circuit 724, audio diagnostic circuit 728, SCP 726, and DAC 730) can process the first audio data. When processing the first audio data, the device 700 can perform some operations, including, for example, but not limited to: (i) performing an integrity check on the first sound sample based on one or more control bits; and (ii) playing back (e.g., through the audio subsystem circuit 724 and DAC 730) a first sound (e.g., a warning sound) using the first sound sample.

[0051] In some implementations, the first audio data may include 32 bits, which may include: (i) a 24-bit first sound sample, 5 bits of padding, and 3 control bits; or (ii) a 16-bit first sound sample, 13 bits of padding, and 3 control bits. In some implementations, the 24 or 16-bit first sound sample may include 24 or 16 MSBs of the first audio data. In addition, the 3 control bits may include 3 LSBs of the first audio data. In addition, the first audio data may include audio PCM data. In some implementations, the 3 control bits may include a checksum enable bit, a checksum transmission bit, and a checksum reset bit. In this case, when performing an integrity check on the first sound sample, the device 700 may perform some operations. For example, the device 700 (e.g., the audio diagnostic circuit 728) may use at least 24 or 16 bits of the first sound sample from the acquired first audio data to calculate a CRC checksum. In addition, the device 700 (e.g., the audio diagnostic circuit 728) may obtain a correct CRC checksum for the first sound sample from the data memory 725. In addition, the device 700 (e.g., ASIL MCU 710) can compare the calculated CRC checksum with the correct CRC checksum to determine whether the first sound sample is corrupted. In some implementations, the checksum algorithm used to calculate the CRC checksum can include CRC32 or modular sum.

[0052] Optionally, the first audio data may include 32 bits, which may include: (a) a 24-bit first sound sample, a 5-bit CRC bit, and 3 control bits; or (b) a 16-bit first sound sample, an 8-bit padding, a 5-bit CRC bit, and 3 control bits. In some implementations, the 24- or 16-bit first sound sample may include 24 or 16 MSBs of the first audio data. In addition, the 3 control bits may include 3 LSBs of the first audio data. In addition, the first audio data may include audio PCM data. In some implementations, the 3 control bits may include a checksum enable bit, a checksum transmission bit, and a checksum reset bit. In this case, when performing an integrity check on the first sound sample, the device 700 may perform some operations. For example, the device 700 (e.g., the audio diagnostic circuit 728) may use at least 24 or 16 bits of the first sound sample from the acquired first audio data to calculate a CRC checksum. In addition, the device 700 (e.g., the audio diagnostic circuit 728) can obtain a correct CRC checksum by piecing together the 5-bit CRC bit segments contained in the first audio data (e.g., in 7 frames). In addition, the device 700 (e.g., the ASIL MCU 710) can compare the calculated CRC checksum with the correct CRC checksum to determine whether the first sound sample is damaged. In some implementations, the checksum algorithm used to calculate the CRC checksum can include CRC32 or a modular sum.

[0053] In some implementations, the first audio data may include 32 bits, which may include: (i) a 24-bit first sound sample, 7 bits of multi-bit redundancy, and 1 control bit; or (ii) a 16-bit first sound sample, 15 bits of multi-bit redundancy, and 1 control bit. In some implementations, the 24 or 16-bit first sound sample may include 24 or 16 MSBs of the first audio data. In addition, the 7 or 15 bits of multi-bit redundancy and 1 control bit may include 8 or 16 LSBs of the first audio data. In addition, the first audio data may include audio PCM data. In some implementations, 1 control bit may include a checksum enable bit. In this case, when performing an integrity check on the first sound sample, the device 700 may perform some operations. For example, the device 700 may use 24 or 16 bits of the first sound sample from the acquired first audio data to calculate a multi-bit redundancy checksum through a Hamming code. In addition, the device 700 (e.g., the ASIL MCU 710) may determine whether the calculated multi-bit redundancy is correct to determine whether the first sound sample is damaged.

[0054] In some implementations, the device 700 may perform additional operations. For example, the device 700 (e.g., the AP 722) may obtain second audio data that is different from the first audio data from the data storage 725. The second audio data may include a second sound sample of multiple bits, which may or may not have padding. In addition, the device 700 (e.g., the AP 722, the audio subsystem circuit 724, the audio diagnostic circuit 728, the SCP 726, and the DAC 730) may process the second audio data to use the second sound sample to play back a second sound (e.g., a normal sound) that is different from the first sound. In this case, the device 700 (e.g., the audio subsystem circuit 724 and the DAC 730) may use the same channel (e.g., Channel 3) in the playback to play back the first sound and the second sound.

[0055] In some implementations, during playback of the first sound and the second sound using the same channel, when the first sound is being played back, the device 700 may adjust the playback of the second sound. In some implementations, when adjusting the playback of the second sound, the device 700 may perform at least one of the following: (a) pausing the playback of the second sound; (b) replacing the playback of the second sound with the playback of the first sound; (c) reducing the playback volume of the second sound.

[0056] It is worth noting that there may be a delay time in the audio ping-pong buffer. That is, using double buffering (e.g., using a first buffer and a second buffer) introduces a delay time. Typically, the amount of data buffered in the buffer can be equal to a playback time of approximately 40 milliseconds (ms). In the case where the channel is dedicated to playback of special sounds (e.g., warning sounds), there is no problem of head of line blocking. If the channel is also used to playback normal sounds (e.g., playing music) through double buffering, the maximum delay can be twice the playback time of two full buffers, which is approximately 80 milliseconds. In the device 700, the SCP 726 can report the delay time caused by sample timing to the ASIL MCU 710.

[0057] In order to avoid delay time, when playing back special sounds and normal sounds via the same channel, the playback of normal sounds can be adjusted. In some implementations, the playback of normal sounds can be paused with respect to adjusting the playback of normal sounds while playing back special sounds. Alternatively or additionally, the playback of normal sounds can be replaced with the playback of special sounds with respect to adjusting the playback of normal sounds while playing back special sounds. Still alternatively or additionally, the playback volume of normal sounds can be reduced (e.g., to minimize interference with the playback of special sounds) with respect to adjusting the playback of normal sounds while playing back special sounds.

[0058] Figure 8 An example operation 800 of the device 700 according to an implementation of the present disclosure is shown. Operation 800 may involve playback of a special sound (e.g., a warning sound). Operation 800 may begin with the ASIL MCU 710 sending (e.g., via an IPC1 bus) a trigger signal for playback of a special sound to the AP 722, which in turn may send a signal for audio playback to the audio subsystem circuit 724. Accordingly, from each of one or more frames of audio PCM data, the audio subsystem circuit 724 may obtain a special sound sample and provide the special sound sample to the DAC 730 for playback. In addition, the audio subsystem circuit 724 may also obtain a control bit (and optionally, a CRC bit) and provide the control bit (and optionally, a CRC bit) to the audio diagnostic circuit 728. The audio diagnostic circuit 728 may calculate a corresponding CRC checksum result for each frame of the audio PCM data, and the audio diagnostic circuit 728 may send each calculated CRC checksum result to the SCP 726. When the checksum reset bit in the control bit is 1, the audio diagnostic circuit 728 can reset the counter. SCP 726 can transmit the calculated CRC checksum result to ASIL MCU 710 (e.g., via IPC2 bus) for verification. That is, ASIL MCU 710 can compare the calculated CRC checksum result with the correct (golden) CRC checksum of the corresponding frame to determine whether the calculated CRC checksum result is valid or invalid. From start to finish, the duration of operation 800 can be less than the fault tolerant time interval (FTTI) of the operation.

[0059] Fig. 9An example operation 900 of the apparatus 700 according to an implementation of the present disclosure is shown. Operation 900 may involve an audio test mode (e.g., for testing the operation of the apparatus 700). Operation 900 may begin with the ASIL MCU 710 sending (e.g., via an IPC1 bus) a trigger signal for playback of a test (inaudible) sound to the AP 722, which in turn may send a signal for audio playback to the audio subsystem circuit 724. Accordingly, from each of one or more frames of audio PCM data, the audio subsystem circuit 724 may obtain a test sound sample and provide the test sound sample to the DAC 730 for playback. In addition, the audio subsystem circuit 724 may also obtain a control bit (and optionally, a CRC bit) and provide the control bit (and optionally, a CRC bit) to the audio diagnostic circuit 728. The audio diagnostic circuit 728 may calculate a corresponding CRC checksum result for each frame of the audio PCM data, and the audio diagnostic circuit 728 may send each calculated CRC checksum result to the SCP 726. When the checksum reset bit in the control bit is 1, the audio diagnostic circuit 728 can reset the counter. SCP 726 can transmit the calculated CRC checksum result to ASIL MCU 710 (e.g., via IPC2 bus) for verification. That is, ASIL MCU 710 can compare the calculated CRC checksum result with the correct (golden) CRC checksum of the corresponding frame to determine whether the calculated CRC checksum result is valid or invalid. From start to finish, the duration of operation 900 can be less than the FTTI of the operation.

[0060] Fig.10 An example scenario 1000 of hardware implementation according to various proposed schemes of the present disclosure is shown. In scenario 1000, when a special sound (e.g., a warning sound) is to be played, the ASIL MCU 710 of the device 700 can read the calculated CRC checksum result for the frame and the corresponding counter value at an appropriate time to compare the calculated CRC checksum result with a predetermined correct or golden CRC checksum.

[0061] Reference Fig.10 , when the checksum enable bit is set to "1", the hardware (e.g., the device 700) can update the checksum (represented as CS in the figure) result (e.g., the calculated checksum result) and automatically increment the counter. In some implementations, the checksum algorithm used can be CRC32 or a modular sum (e.g., adding all words and discarding overflow bits). When the checksum enable bit rises, the counter can be reset by the hardware. When the checksum transmission bit rises, the hardware can update the checksum result and the counter value of the counter.

[0062] Example Process

[0063] Fig.11 An example process 1100 according to an implementation of the present disclosure is shown. Process 1100 may represent an implementation of the above including An aspect of the various proposed designs, concepts, schemes, systems and methods, whether in part or in whole. More specifically, process 1100 can represent an aspect of the proposed concepts and schemes regarding audio output monitoring for fault detection of warning sound playback. Process 1100 can include one or more operations, actions or functions as shown in one or more of blocks 1110 and 1120 and sub-blocks 1122 and 1124. Although shown as discrete blocks, the various blocks of process 1100 can be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the desired implementation. In addition, the blocks / sub-blocks of process 1100 can be arranged as follows: Fig.11 1100, or may be performed in a different order. In addition, one or more blocks / subblocks of process 1100 may be performed iteratively. Process 1100 may be implemented by or in device 700 and any variation thereof. For illustrative purposes only and not intended to limit the scope, process 1100 is described below in the context of device 700. Process 1100 may begin at block 1110.

[0064] At 1110, process 1100 may involve apparatus 700 (eg, AP 722) obtaining first audio data from data storage 725. The first audio data may include a plurality of bits of a first sound sample and one or more control bits for integrity checking. Process 1100 may proceed from 1110 to 1120.

[0065] At 1120, process 1100 may involve apparatus 700 processing the first audio data. In processing the first data, process 1100 may involve apparatus 700 performing some operations as represented by 1122 and 1124.

[0066] At 1122 , process 1100 may involve audio diagnostic circuit 728 of device 700 performing an integrity check on the first sound sample based on the one or more control bits.

[0067] At 1124 , process 1100 may involve audio subsystem circuit 724 and DAC 730 of device 700 playing back a first sound (eg, a warning sound) using the first sound sample.

[0068] In some implementations, the first audio data may include 32 bits, which may include: (i) a 24-bit first sound sample, 5 bits of padding, and 3 control bits; or (ii) a 16-bit first sound sample, 13 bits of padding, and 3 control bits. In some implementations, the 24 or 16 bits of the first sound sample may include 24 or 16 MSBs of the first audio data. In addition, the 3 control bits may include 3 LSBs of the first audio data. In addition, the first audio data may include audio PCM data. In some implementations, the 3 control bits may include a checksum enable bit, a checksum transmission bit, and a checksum reset bit. In this case, when performing an integrity check on the first sound sample, process 1100 may involve the device 700 performing some operations. For example, process 1100 may involve the device 700 using at least 24 or 16 bits from the first sound sample of the acquired first audio data to calculate a CRC checksum. In addition, process 1100 may involve the device 700 obtaining a correct CRC checksum for the first sound sample from the data storage 725. In addition, process 1100 may involve device 700 (e.g., ASIL MCU 710) comparing the calculated CRC checksum with a correct CRC checksum to determine whether the first sound sample is corrupted. In some implementations, the checksum algorithm used to calculate the CRC checksum may include CRC32 or a modular sum.

[0069] Optionally, the first audio data may include 32 bits, which may include: (a) a 24-bit first sound sample, a 5-bit CRC bit, and 3 control bits; or (b) a 16-bit first sound sample, an 8-bit padding, a 5-bit CRC bit, and 3 control bits. In some implementations, the 24 or 16 bits of the first sound sample may include 24 or 16 MSBs of the first audio data. In addition, the 3 control bits may include 3 LSBs of the first audio data. In addition, the first audio data may include audio PCM data. In some implementations, the 3 control bits may include a checksum enable bit, a checksum transmission bit, and a checksum reset bit. In this case, when performing an integrity check on the first sound sample, process 1100 may involve device 700 performing some operations. For example, process 1100 may involve device 700 using at least 24 or 16 bits of the first sound sample from the acquired first audio data to calculate a CRC checksum. In addition, the process 1100 may involve the device 700 obtaining a correct CRC checksum by stitching together 5-bit CRC bit segments contained in the first audio data (e.g., in 7 frames). In addition, the process 1100 may involve the device 700 (e.g., the ASIL MCU 710) comparing the calculated CRC checksum with the correct CRC checksum to determine whether the first sound sample is corrupted. In some implementations, the checksum algorithm used to calculate the CRC checksum may include CRC32 or a modular sum.

[0070] Optionally, the first audio data may include 32 bits, which may include: (i) a 24-bit first sound sample, 7 bits of multi-bit redundancy, and 1 control bit; or (ii) a 16-bit first sound sample, 15 bits of multi-bit redundancy, and 1 control bit. In some implementations, the 24 or 16 bits of the first sound sample may include 24 or 16 MSBs of the first audio data. In addition, the 7 or 15 bits of multi-bit redundancy and 1 control bit may include 8 or 16 LSBs of the first audio data. In addition, the first audio data may include audio PCM data. In some implementations, 1 control bit may include a checksum enable bit. In this case, when performing an integrity check on the first sound sample, process 1100 may involve device 700 performing some operations. For example, process 1100 may involve device 700 using 24 or 16 bits of the first sound sample from the acquired first audio data to calculate a multi-bit redundancy checksum through a Hamming code. Additionally, process 1100 may involve apparatus 700 (eg, ASIL MCU 710 ) determining whether the calculated multi-bit redundant checksum is correct to determine whether the first sound sample is corrupted.

[0071] In some implementations, process 1100 may involve device 700 performing additional operations. For example, process 1100 may involve device 700 obtaining second audio data different from the first audio data from data storage 725. The second audio data may include a second sound sample of multiple bits, which may or may not have padding. In addition, process 1100 may involve device 700 processing the second audio data to use the second sound sample to play back a second sound different from the first sound (e.g., a normal sound). In this case, when playing back the first sound and playing back the second sound, process 1100 may involve device 700 using the same channel (e.g., Channel 3) in the playback to play back the first sound and the second sound.

[0072] In some implementations, during playback of the first sound and the second sound using the same channel, process 1100 may involve the device 700 adjusting playback of the second sound while the first sound is being played back. In some implementations, when adjusting playback of the second sound, process 1100 may involve the device 700 performing at least one of the following: (a) pausing playback of the second sound; (b) replacing playback of the second sound with playback of the first sound; (c) reducing playback volume of the second sound.

[0073] Additional Notes

[0074] The subject matter described herein sometimes illustrates different components contained in or connected to different other components.It is to be understood that these depicted architectures are only examples, and in fact many other architectures that realize the same function can be implemented.In a conceptual sense, any arrangement of components that realize the same function is effectively "associated" so that the desired function is realized.Therefore, independent of the architecture or intermediate components, any two components that are combined to realize a specific function herein can be regarded as "associated" to each other so that the desired function is realized.Similarly, any two components so associated can also be regarded as "operationally connected" or "operationally coupled" to each other to realize the desired function, and any two components that can be so associated can also be regarded as "operationally couplable" to each other to realize the desired function.Specific examples of operation that can be coupled include but are not limited to physically matching and / or physically interacting components and / or wirelessly interacting and / or wirelessly interacting components and / or logically interacting and / or logically interactive components.

[0075] In addition, with respect to the extensive use of any plural and / or singular terms herein, those skilled in the art may convert from the plural to the singular and / or from the singular to the plural as needed for context and / or application. For the sake of clarity, various singular / plural reciprocities may be explicitly set forth herein.

[0076] In addition, one of ordinary skill in the art will understand that, in general, the terms used herein and especially in the appended claims (e.g., the bodies of the appended claims) are generally intended to be "open" terms, for example, the term "comprising" should be interpreted as "including but not limited to", the term "having" should be interpreted as "having at least", the term "including" should be interpreted as "including but not limited to", etc. One of ordinary skill in the art will also understand that if a specific number of an introduced claim recitation is intended, such intent will be explicitly recited in the claim, and in the absence of such a recitation, no such intent is present. For example, to aid understanding, the appended claims may contain the introductory phrases "at least one" and "one or more" that introduce claim recitations. However, the use of such phrases should not be interpreted as implying that a claim recitation, through the introduction of "a" or "an", will limit any particular claim that includes such introduced claim recitation to implementations that include only one such recitation, even when the same claim includes the introductory phrases "one or more" or "at least one" and such as "a" or "an" (e.g., "a and / or an" should be interpreted to mean "at least one" or "one or more"). In addition, even if a specific number of introduced claim recitations is explicitly recited, one skilled in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., an uncensored recitation of "two recitations" means at least two recitations or two or more recitations without other modifiers). Furthermore, in those cases where a convention similar to “at least one of A, B, and C, etc.” is used, such an interpretation is generally intended in the sense that those skilled in the art will understand this convention (e.g., “a system having at least one of A, B, and C” would include but is not limited to systems having A alone, B alone, C alone, A and B together, A and C together, B and C together, and / or A, B, and C together, etc.). In those cases where a convention similar to “at least one of A, B, or C, etc.” is used, such an interpretation is generally intended in the sense that those skilled in the art will understand this convention (e.g., “a system having at least one of A, B, or C” would include but is not limited to systems having A alone, B alone, C alone, A and B together, A and C together, B and C together, and / or A, B, and C together, etc.). Those skilled in the art will also understand that any transitional words and / or phrases that actually present two or more alternatives, whether in the specification, claims, or drawings, should be understood to contemplate the possibility of including one, either, or both of these items. For example, the phrase "A or B" will be understood to include the possibilities of "A" or "B" or "A and B."

[0077] From the above, it will be appreciated that various implementations of the present disclosure have been described herein for illustrative purposes, and various modifications may be made without departing from the scope and spirit of the present disclosure. Therefore, the various implementations disclosed herein are not intended to be limiting, and the true scope and spirit are indicated by the appended claims.

Claims

1. A method for audio fault detection, comprising: Acquire first audio data from a data storage device, wherein the first audio data includes a first sound sample of a plurality of bits and one or more control bits for controlling whether to perform an integrity check; as well as Processing the first audio data, the processing comprising: performing an integrity check on the first sound sample based on the one or more control bits; as well as playing back the first sound using the first sound sample, The one or more control bits include a combination of one or more of a checksum enable bit, a checksum transfer bit, and a checksum reset bit.

2. The method according to claim 1, characterized in that: The first audio data includes 32 bits, and the 32 bits include: 24 bits of the first sound sample, 5 bits of padding and 3 control bits; or 16 bits of the first sound sample, 13 bits of padding and 3 control bits.

3. The method according to claim 2, characterized in that The 24 or 16 bits of the first sound sample include the 24 or 16 most significant bits (MSBs) of the first audio data, wherein the 3 control bits include the 3 least significant bits (LSBs) of the first audio data, and the first audio data includes audio pulse code modulation (PCM) data.

4. The method according to claim 2, characterized in that: The three control bits include a checksum enable bit, a checksum transmit bit, and a checksum reset bit.

5. The method according to claim 4, characterized in that Performing an integrity check on the first sound sample includes: Calculating a cyclic redundancy check (CRC) checksum using at least 24 or 16 bits of the first sound sample from the acquired first audio data; obtaining a correct CRC checksum of the first sound sample from the data storage; and The calculated CRC checksum is compared with the correct CRC checksum to determine whether the first sound sample is corrupted.

6. The method according to claim 1, characterized in that The first audio data includes 32 bits, and the 32 bits include: 24 bits of the first sound sample, 5 bits of CRC bits and 3 control bits; or 16 bits of the first sound sample, 8 bits of padding, 5 bits of CRC bits and 3 control bits.

7. The method according to claim 6, characterized in that The 24 or 16 bits of the first sound sample comprise 24 or 16 MSBs of the first audio data, wherein the 3 control bits comprise 3 LSBs of the first audio data, and the first audio data comprises audio PCM data.

8. The method according to claim 6, characterized in that The three control bits include a checksum enable bit, a checksum transmit bit, and a checksum reset bit.

9. The method according to claim 8, characterized in that Performing an integrity check on the first sound sample includes: calculating a CRC checksum using at least 24 or 16 bits of the first sound sample from the acquired first audio data; Obtaining a correct CRC checksum of the first sound sample according to the 5-bit CRC bits; and The calculated CRC checksum is compared with the correct CRC checksum to determine whether the first sound sample is corrupted.

10. The method according to claim 1, characterized in that The first audio data includes 32 bits, and the 32 bits include: 24 bits of the first sound sample, 7 bits of multi-bit redundancy and 1 control bit; or 16 bits of the first sound sample, 15 bits of multi-bit redundancy and 1 control bit.

11. The method according to claim 10, characterized in that The 24 or 16 bits of the first sound sample include 24 or 16 MSBs of the first audio data, the 7 or 15 bits of the multi-bit redundancy and 1 control bit include 8 or 16 LSBs of the first audio data, and the first audio data includes audio PCM data.

12. The method according to claim 1, characterized in that Performing an integrity check on the first sound sample includes: calculating a multi-bit redundant checksum using a Hamming code using at least 24 or 16 bits of the first sound sample from the acquired first audio data; and It is determined whether the calculated multi-bit redundancy checksum is correct to determine whether the first sound sample is damaged.

13. The method according to claim 1, further comprising: Acquire second audio data different from the first audio data from the data storage, the second audio data comprising a second sound sample of a plurality of bits; as well as processing the second audio data using the second sound samples to play back a second sound different from the first sound, The playback of the first sound and the playback of the second sound include playing back the first sound and the second sound using the same channel.

14. The method according to claim 13, characterized in that Playing back the first sound and the second sound using the same channel includes: adjusting playback of the second sound while the first sound is being played back, and wherein adjusting playback of the second sound includes performing at least one of the following: Pause the playback of the second sound; replacing playback of the second sound with playback of the first sound; and The playback volume of the second sound is lowered.

15. A device for audio fault detection, comprising: A data memory, used to store first audio data, wherein the first audio data includes a first sound sample of a plurality of bits and one or more control bits for controlling whether to perform an integrity check; as well as A circuit coupled to the data storage device such that during operation, the circuit performs operations including: Retrieving the first audio data from the data storage device; as well as processing the first audio data by: performing an integrity check on the first sound sample based on the one or more control bits; and playing back a first sound using the first sound sample, The one or more control bits include a combination of one or more of a checksum enable bit, a checksum transfer bit, and a checksum reset bit.

16. The device according to claim 15, characterized in that The first audio data includes 32 bits, and the 32 bits include: 24 bits of the first sound sample, 5 bits of padding and 3 control bits; or 16 bits of the first sound sample, 13 bits of padding and 3 control bits, The 24 or 16 bits of the first sound sample include 24 or 16 most significant bits (MSBs) of the first audio data, the three control bits include three least significant bits (LSBs) of the first audio data, and the first audio data includes audio pulse code modulation (PCM) data. The three control bits include a checksum enable bit, a checksum transmit bit, and a checksum reset bit. When performing integrity check on the first sound sample, the operations performed by the circuit include: Calculating a cyclic redundancy check (CRC) checksum using at least the 24 or 16 bits of the first sound sample from the acquired first audio data; obtaining a correct CRC checksum of the first sound sample from the data storage; and The calculated CRC checksum is compared with the correct CRC checksum to determine whether the first sound sample is corrupted.

17. The device according to claim 15, characterized in that The first audio data includes 32 bits, and the 32 bits include: 24 bits of the first sound sample, 5 bits of CRC bits and 3 control bits; or 16 bits of the first sound sample, 8 bits of padding, 5 bits of CRC bits and 3 control bits, wherein the 24 or 16 bits of the first sound sample include 24 or 16 MSBs of the first audio data, the 3 control bits include 3 LSBs of the first audio data, and the first audio data includes audio PCM data, The three control bits include a checksum enable bit, a checksum transmit bit, and a checksum reset bit. When performing integrity check on the first sound sample, the operations performed by the circuit include: calculating a CRC checksum using at least the 24 or 16 bits of the first sound sample from the acquired first audio data; Obtaining a correct CRC checksum of the first sound sample according to the 5-bit CRC bits; and The calculated CRC checksum is compared with the correct CRC checksum to determine whether the first sound sample is corrupted.

18. The device according to claim 15, characterized in that The first audio data includes 32 bits, and the 32 bits include: 24 bits of the first sound sample, 7 bits of multi-bit redundancy and 1 control bit; or 16 bits of the first sound sample, 15 bits of multi-bit redundancy and 1 control bit, wherein the 24 or 16 bits of the first sound sample include 24 or 16 MSBs of the first audio data, the 7 or 15 bits of the multi-bit redundancy and 1 control bit include 8 or 16 LSBs of the first audio data, and the first audio data includes audio PCM data, The 1 control bit includes a checksum enable bit, When performing integrity check on the first sound sample, the operations performed by the circuit include: calculating a multi-bit redundant checksum using a Hamming code using at least the 24 or 16 bits of the first sound sample from the acquired first audio data; and It is determined whether the calculated multi-bit redundancy checksum is correct to determine whether the first sound sample is damaged.

19. The device according to claim 15, characterized in that The data memory is further configured to store second audio data different from the first audio data. During operation, the circuit further performs the following operations: Acquire the second audio data from the data storage, the second audio data comprising a second sound sample of a plurality of bits; and processing the second audio data using the second sound samples to play back a second sound different from the first sound, wherein, when playing back the first sound and playing back the second sound, the circuit uses the same channel to play back the first sound and the second sound, wherein, when the first sound and the second sound are played back using the same channel, the circuit adjusts the playback of the second sound while the first sound is being played back, and When adjusting the playback of the second sound, the circuit performs at least one of the following: Pause the playback of the second sound; replacing playback of the second sound with playback of the first sound; and The playback volume of the second sound is lowered.