Audio quality testing methods, systems and vehicles
By splitting and amplitude analyzing the audio data inside the vehicle, the problem of time-consuming audio quality analysis in existing technologies is solved, and fast and accurate audio quality detection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
- Filing Date
- 2024-09-29
- Publication Date
- 2026-05-26
AI Technical Summary
Existing technologies present significant challenges in analyzing vehicle audio quality, requiring professionals to dedicate substantial time and making audio quality verification difficult.
By acquiring audio data from inside the vehicle, breaking it down into channel data and dividing it into segments of preset length, the audio quality is determined using the amplitude of the segment data, including different processing methods for music and microphone audio data.
It simplifies the audio quality verification process by allowing professionals to quickly and accurately determine the quality of audio data without spending a lot of time on it.
Smart Images

Figure CN119252286B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to an audio quality detection method, system, and vehicle. Background Technology
[0002] During vehicle operation, certain audio data is generated inside the vehicle, such as noise levels, music playback, and the voices of the driver and passengers. The audio quality of this data directly impacts the user experience. For example, during a phone call, substandard audio quality may prevent the transmission of effective information.
[0003] When acquiring audio data from inside a vehicle, the analysis of this data requires inputting it into a computer server or similar device. Then, highly skilled professionals analyze the audio data to determine its quality. Due to the scarcity of people knowledgeable in audio analysis and the time-consuming nature of the analysis, confirming the audio quality is challenging.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide an audio quality detection method and vehicle, aiming to solve the technical problem of the great difficulty in audio quality analysis in the prior art.
[0006] To achieve the above objectives, the present invention proposes an audio quality detection method, the audio quality detection method comprising:
[0007] The audio quality detection method includes:
[0008] Acquire audio data from inside the vehicle;
[0009] The audio data is split to obtain data for each channel;
[0010] The data from each channel is divided into segments of a preset length;
[0011] The audio quality of the audio data is determined based on the amplitude of the segment data.
[0012] Optionally, the audio data includes: music audio data and microphone audio data; acquiring the audio data inside the vehicle includes:
[0013] Detect the vehicle's audio operating mode;
[0014] When the audio working mode is music playback mode, acquire the music audio data output by the music player;
[0015] When the audio working mode is microphone mode, the microphone audio data collected by the microphone is acquired.
[0016] Optionally, determining the audio quality of the audio data based on the amplitude of the segment data includes:
[0017] When the audio data is music audio data, the average amplitude of the segment data is calculated based on the amplitude of the segment data.
[0018] When the average amplitude is within a preset music amplitude range, the audio quality of the audio data is considered to be qualified; otherwise, the audio quality of the audio data is considered to be unqualified.
[0019] Optionally, determining the audio quality of the audio data based on the amplitude of the segment data further includes:
[0020] When the audio data is microphone audio data, a first proportion of the segment data whose amplitude is greater than a preset lower limit audio amplitude is calculated based on the amplitude of each segment data.
[0021] When the first proportion is greater than the preset lower limit amplitude proportion, a second proportion is calculated based on the amplitude of each segment data, where the amplitude of the segment data is less than the preset upper limit audio amplitude.
[0022] When the second proportion is not greater than the preset upper limit amplitude proportion, Fourier transform is performed on each of the segment data to obtain segment frequency domain data;
[0023] The frequency domain data of the segments are filtered to obtain high-frequency segment data and low-frequency segment data;
[0024] The audio quality of the audio data is determined based on the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data.
[0025] Optionally, determining the audio quality of the audio data based on the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data includes:
[0026] The high-frequency average amplitude of the high-frequency segment is calculated based on the amplitude of the high-frequency segment data, and the low-frequency average amplitude of the low-frequency segment is calculated based on the amplitude of the low-frequency segment data.
[0027] When the average amplitude of the high frequency is greater than the preset high frequency amplitude and the average amplitude of the low frequency is greater than the preset low frequency amplitude, the audio quality of the audio data is deemed to be qualified.
[0028] Optionally, after calculating the high-frequency average amplitude of the high-frequency segment based on the amplitude of the high-frequency segment data, and calculating the low-frequency average amplitude of the low-frequency segment based on the amplitude of the low-frequency segment data, the method further includes:
[0029] If the average amplitude of the high frequency is not greater than a preset high frequency amplitude and / or the average amplitude of the low frequency is not greater than a preset low frequency amplitude, the audio quality of the audio data is deemed unqualified.
[0030] Optionally, when the audio data is microphone audio data, after calculating the first proportion of segments whose amplitude is greater than a preset lower limit audio amplitude based on the amplitude of each segment data, the method further includes:
[0031] When the first proportion is not greater than the preset lower limit amplitude value proportion, the audio quality of the audio data is deemed unqualified;
[0032] Accordingly, after calculating a second percentage where the amplitude of each segment data is less than the preset upper limit audio amplitude when the first percentage is greater than the preset lower limit amplitude percentage, the method further includes:
[0033] When the second percentage is greater than the preset upper limit amplitude percentage, the audio quality of the audio data is deemed unqualified.
[0034] Optionally, acquiring the audio data inside the vehicle further includes:
[0035] The effective acquisition duration of audio data;
[0036] Record the data acquisition duration when starting audio data acquisition;
[0037] When the data acquisition time reaches the effective acquisition time, audio data inside the vehicle is acquired.
[0038] In addition, to achieve the above objectives, the present invention also provides an audio quality detection system for performing the audio quality detection method.
[0039] In addition, to achieve the above objectives, the present invention also provides a vehicle, the vehicle comprising: the aforementioned audio quality detection system.
[0040] This invention provides an audio quality detection method, system, and vehicle. The audio quality detection method includes: acquiring audio data within the vehicle; splitting the audio data to obtain data for each channel; dividing each channel data into segments of a preset length; and determining the audio quality of the audio data based on the amplitude of each segment. By splitting the audio data to obtain data for each channel, and then dividing each channel data into segments of a preset length, the audio data quality can be directly determined using the amplitude of each data segment, eliminating the need for professionals to spend significant time analyzing and determining the audio data quality. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0042] Figure 1 A flowchart illustrating the first embodiment of the audio quality detection method proposed in this invention;
[0043] Figure 2 A schematic diagram of the first process of the second embodiment of the audio quality detection method proposed in the invention;
[0044] Figure 3 A schematic diagram of the second process of the second embodiment of the audio quality detection method proposed in the invention;
[0045] Figure 4 A flowchart illustrating the third embodiment of the audio quality detection method proposed in this invention;
[0046] Figure 5 This is a flowchart illustrating the fourth embodiment of the audio quality detection method proposed in the invention.
[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0048] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0050] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0051] Furthermore, the use of terms such as "first" and "second" in this invention is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.
[0052] Reference Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the audio quality detection method proposed in the invention. Based on Figure 1 The first embodiment of the audio quality detection method of the present invention is presented.
[0053] In this embodiment, the audio quality detection method includes:
[0054] Step S10: Acquire audio data inside the vehicle.
[0055] It should be understood that in this embodiment and the following embodiments, an audio quality detection system can be used as the execution subject, which can perform processes such as data collection, processing, analysis, and model building.
[0056] It's understandable that vehicles generate a significant amount of audio data, including audio from users inside the vehicle, audio from internal components, and audio transmitted from outside. Analyzing and adjusting this audio data can effectively improve driving comfort. However, audio data analysis typically requires technicians to use specialized audio acquisition equipment to collect audio from inside the vehicle. The audio data is then output to external devices for analysis by professionals to determine if the audio quality meets standards.
[0057] It should be noted that the audio data refers to the audio data that needs to be analyzed during normal vehicle operation. This audio data can be data output from the in-vehicle player, data input through the microphone, or noise data within the vehicle, etc.
[0058] Before analyzing the audio data, it is necessary to acquire the audio data inside the vehicle. In the specific acquisition process, the audio data inside the vehicle can be recorded in real time using a recording device installed in the vehicle. Alternatively, pre-recorded audio data can be extracted from the memory.
[0059] Step S20: The audio data is split to obtain data for each channel.
[0060] It's understandable that channel data refers to audio data transmitted through channels; the more channels used to transmit audio data, the more channel data is generated. After acquisition, the complete audio data typically needs to be transmitted through multiple channels. During data transmission, the audio data transmitted through different channels is the channel data corresponding to each channel. During audio data transmission, there may be instances of audio data loss or other anomalies that lead to substandard audio quality. To determine the audio quality, the audio data needs to be broken down into individual channel data. Standard audio data can be arranged in channel order, and different channel orders correspond to different audio data.
[0061] In practice, audio data can be split according to the specific data channels used to transmit the audio data. During the splitting process, data for each channel can be extracted according to the order of the channels. After all channels have been extracted, the channel data corresponding to each channel in the audio data can be obtained.
[0062] Step S30: Divide the data of each channel into segments of a preset length.
[0063] It's important to note that segmented data refers to short data units obtained by dividing channel data. Segmented data can be divided by time units, such as every 10ms of channel data as a segment, or by size units, such as every 10kb of data as a segment. The preset length is a pre-defined length used to divide the channel data. For example, if the preset length is 10ms, then a segment can be created every 10ms.
[0064] Understandably, during the audio quality verification process, a comprehensive analysis of the audio data is insufficient to accurately determine its quality due to the large volume of data. However, by dividing the channel data into multiple segments, the overall audio quality of the channel data can be determined by analyzing a certain number of these segments.
[0065] In practice, a preset length can be determined first, and then the channel data can be divided into multiple segments based on the preset length to obtain the channel data. Then, the other channel data can be divided until each channel data is completely divided to obtain all the segment data.
[0066] Step S40: Determine the audio quality of the audio data based on the amplitude of the segment data.
[0067] It should be understood that audio quality includes both acceptable and unacceptable audio quality. Given specific data segments, the quality of each segment can be assessed based on whether it meets the acceptable data quality requirements. Amplitude is a detailed parameter of the data segment, and its amplitude directly reflects whether the segment's quality is acceptable. For example, if the amplitude of a data segment falls within the required amplitude range, the data quality of that segment can be considered acceptable.
[0068] In practice, we can first determine whether the data quality of each individual data segment is acceptable. Then, based on the acceptable data quality of the data segments belonging to a channel, we can determine the acceptable data quality of the channel data. Finally, based on the acceptable data quality of the channel data, we can determine the acceptable data quality of the entire audio data, thus completing the audio data quality analysis. Alternatively, we can directly determine the acceptable data quality of the audio data based on the acceptable data quality of each individual data segment. For example, if the data quality of most data segments is acceptable, the audio data can be directly considered acceptable.
[0069] In this embodiment, the audio quality detection method includes: acquiring audio data from inside a vehicle; splitting the audio data to obtain data for each channel; dividing each channel data into segments of a preset length; and determining the audio quality of the audio data based on the amplitude of each segment. By splitting the audio data to obtain data for each channel, and then dividing each channel data into segments of a preset length, the audio data quality can be directly determined using the amplitude of each data segment. This eliminates the need for professionals to spend significant time analyzing and determining the audio data quality.
[0070] Based on the first embodiment described above, a second embodiment of the audio quality detection method of the present invention is proposed. (Refer to...) Figure 2 , Figure 2 This is a schematic diagram of the first process of the second embodiment of the audio quality detection method proposed in the invention.
[0071] In this embodiment, step S10 includes:
[0072] Step S11: Detect the audio operating mode of the vehicle.
[0073] It should be understood that the audio operating mode refers to the mode of audio output inside the vehicle at the time of audio acquisition. Different audio output sources correspond to different audio operating modes. For example, when a music player is turned on, the audio operating mode inside the vehicle is music playback mode; when a microphone is turned on, the audio operating mode inside the vehicle is microphone mode.
[0074] It should be noted that the audio data collected differs depending on the audio operating mode, and the standards for judging the quality of the audio data may vary. For example, music audio data and microphone audio data differ; one is music output from the car's player, and the other is the sound output from the occupants. During vehicle recording, the focus of recording also differs depending on the mode. For instance, in music playback mode, recording can be performed on the audio player.
[0075] When detecting the operating mode, the vehicle's audio operating mode can be determined based on the on / off status of the devices inside the vehicle. If an audio player is detected to be on and playing music, the audio operating mode can be determined to be music playback mode; similarly, if a microphone is detected to be on and picking up sound, the audio operating mode can be determined to be microphone mode.
[0076] Step S12: When the audio working mode is music playback mode, acquire the music audio data output by the music player.
[0077] It should be understood that music audio data refers to the audio data presented inside the vehicle when music is playing. The majority of the music audio data comes from the music itself. When the audio operating mode is detected as music playback mode, the music audio data can be recorded using a recording device located on the side of the music player; alternatively, the recording device can be used to focus on recording the music data, thereby obtaining the music audio data from the music player.
[0078] Step S13: When the audio working mode is microphone mode, acquire the microphone audio data collected by the microphone.
[0079] It's understandable that microphone audio data refers to the audio data displayed inside the vehicle when the microphone is picking up sound. The majority of this microphone audio data comes from the voices emitted by the occupants. When the microphone is detected to be in music playback mode, the microphone audio data can be recorded using a recording device located on the side of the microphone; alternatively, the recording device can be used to focus on recording the microphone data itself, thus obtaining the microphone audio data picked up by the microphone.
[0080] In addition, refer to Figure 3 , Figure 3 This is a second flowchart illustrating a second embodiment of the audio quality detection method proposed in this invention. In this embodiment, step S10 further includes:
[0081] Step S101: Obtain the effective acquisition duration of the audio data.
[0082] It should be understood that during the audio data acquisition process, the validity of the acquired audio data must be guaranteed in order to accurately determine its quality. The effective acquisition duration refers to the shortest possible duration sufficient to accurately assess the audio data's quality. If the acquired audio data is less than the effective duration, the amount of audio data is considered too small to accurately determine its quality. The effective acquisition duration can be set according to the accuracy requirements of the audio data's quality; in practical use, a 10-second effective acquisition duration is suitable.
[0083] Step S102: When starting to acquire audio data, record the data acquisition duration.
[0084] It should be noted that the data acquisition duration refers to the length of time from the start of acquiring in-vehicle audio data to the end of acquisition; when the acquisition of in-vehicle audio data begins, the timer can be started directly, and the timer duration is the data acquisition duration.
[0085] Step S103: When the data acquisition time reaches the effective acquisition time, acquire the audio data inside the vehicle.
[0086] Understandably, to ensure that the amount of audio data is sufficient to determine its quality, a judgment can be made based on whether the data acquisition time meets the valid acquisition duration. If the data acquisition time does not meet the valid acquisition duration, the audio data can be considered invalid and cannot be used to determine its quality. Conversely, if the data acquisition time meets or exceeds the valid acquisition duration, the amount of audio data acquired is sufficient, and the audio data acquired within the specified time can be directly considered valid for quality analysis, thus more accurately determining whether the audio data meets quality standards.
[0087] In addition, refer to Figure 4 Based on the first or second embodiment described above, a third embodiment of the audio quality detection method of the present invention is proposed. In this embodiment, step S40 specifically includes:
[0088] Step S41: When the audio data is music audio data, calculate the average amplitude of the segment data based on the amplitude of the segment data.
[0089] It should be understood that, given specific segment data, the overall audio data quality can be effectively assessed by examining the amplitude values reflected in each segment.
[0090] It should be noted that, given that each segment of data is known, the average amplitude of the segment data can be calculated by calculating the amplitude of all segments. When assessing the quality of audio data, if the data quality of the channel data is assessed first, the average amplitude of the specified segments within a channel can be calculated first. Conversely, if the data quality of the channel data does not need to be determined, the average amplitude of all segments within the audio data can be calculated directly.
[0091] Step S42: When the average amplitude is within the preset music amplitude range, the audio quality of the audio data is deemed to be qualified; otherwise, the audio quality of the audio data is deemed to be unqualified.
[0092] It should be noted that the preset music amplitude range is a pre-defined amplitude range used to determine whether audio data is acceptable. Typically, this preset music amplitude range can be set between 55 dB and 65 dB. When the average amplitude of the audio clip falls within this preset music amplitude range, the audio quality of the audio data can be considered acceptable; conversely, when the average amplitude of the audio clip does not fall within this preset amplitude range, the audio quality of the audio data can be considered unacceptable.
[0093] In practice, the average amplitude of the segment data in the music audio data can be compared with the minimum and maximum values of the preset music amplitude range. If the average amplitude is less than the minimum value of the preset music amplitude range, the data quality of the music audio data can be considered as having too low data strength; if the average amplitude is greater than the maximum value of the preset music amplitude range, the data quality of the music audio data can be considered as having too high data strength.
[0094] A fourth embodiment of the audio quality detection method of the present invention is proposed based on the first to third embodiments described above. (Refer to...) Figure 5 , Figure 5 This is a flowchart illustrating the fourth embodiment of the audio quality detection method proposed in the invention.
[0095] In this embodiment, step S40 further includes:
[0096] Step S401: When the audio data is microphone audio data, calculate the first percentage of segment data whose amplitude is greater than a preset lower limit audio amplitude based on the amplitude of each segment data.
[0097] It should be noted that the preset lower limit audio amplitude is the lowest pre-defined audio amplitude that meets the acceptable data quality standard. If the amplitude of a segment of microphone audio data is lower than the preset lower limit audio amplitude, then the amplitude of that segment is considered too low or that the audio data contains empty frames, and is therefore considered unacceptable audio. This preset lower limit audio amplitude can be 55dB, the lowest audio value for normal sound pickup. The first proportion is the ratio of segment data whose amplitude does not contain excessively low values or empty frames to all segment data.
[0098] In practice, the amplitude of each data segment can be compared with a preset lower limit audio amplitude to determine the data segments with amplitudes greater than the preset lower limit audio amplitude. Then, the actual number of data segments with amplitudes greater than the preset lower limit audio amplitude can be compared with the total number of data segments to determine the first proportion of data segments with amplitudes greater than the preset lower limit audio amplitude.
[0099] Step S402: When the first proportion is greater than the preset lower limit amplitude proportion, calculate the second proportion of the segment data whose amplitude is less than the preset upper limit audio amplitude based on the amplitude of each segment data.
[0100] It should be understood that the preset lower limit amplitude percentage is a pre-set percentage used to determine whether the overall audio data has an excessively low amplitude or missing audio frames. When a large number of data segments have excessively low amplitudes or numerous missing audio frames, the percentage of segments with amplitudes exceeding the preset lower limit will be very low. If this percentage is greater than the preset lower limit amplitude percentage, it can be determined that the audio data will not be of substandard quality due to excessively low amplitude or missing frames. If this percentage is not greater than the preset lower limit amplitude percentage, it can be determined that the audio data is of substandard quality due to excessively low amplitude or missing frames. For example, if 900 out of 1000 data segments have an audio amplitude less than the calibrated threshold of 55dB, then 90% of the data segments have substandard audio amplitudes, indicating that the overall audio amplitude is too low or there are missing frames.
[0101] It should be noted that the preset upper limit audio amplitude is the highest audio amplitude that is pre-set to be acceptable for data quality. If the amplitude of a segment of microphone audio data exceeds the preset upper limit audio amplitude, then the amplitude of that segment is considered too large. An excessively large amplitude can easily lead to clipping, resulting in unacceptable audio. This preset upper limit audio amplitude can be 65dB of the highest audio value for normal sound pickup. The second ratio is the ratio of segment data amplitudes that do not contain excessively large amplitudes to all segment data.
[0102] In practice, the amplitude of each data segment can be compared with a preset upper limit audio amplitude to determine the data segments with amplitudes less than the preset upper limit audio amplitude. Then, the actual number of data segments with amplitudes less than the preset upper limit audio amplitude can be compared with the total number of data segments to determine the second proportion of data segments with amplitudes less than the preset upper limit audio amplitude.
[0103] Step S403: When the second proportion is not greater than the preset upper limit amplitude proportion, perform Fourier transform on each segment data to obtain segment frequency domain data.
[0104] It should be understood that the preset upper limit amplitude percentage is a pre-defined percentage used to determine whether the amplitude of the entire audio data is excessively high. When a large number of audio segments have excessively high amplitudes, the percentage of segments exceeding the preset upper limit amplitude will be very high. If this second percentage is not greater than the preset upper limit amplitude percentage, it can be determined that the audio data will not be of substandard quality due to high amplitude; conversely, if the second percentage is greater than the preset upper limit amplitude percentage, it can be determined that the audio data is of substandard quality due to high amplitude.
[0105] It should be noted that microphone audio data typically includes both high-frequency and low-frequency audio data. To determine whether the audio quality of the microphone audio data is acceptable, the quality of both the high-frequency and low-frequency audio data needs to be assessed. Therefore, a Fourier transform is required to extract the high-frequency and low-frequency audio data from the microphone audio data.
[0106] It is understandable that the frequency domain data of a segment is simply the frequency domain data obtained after performing a Fourier transform on the segment data. In practice, a Fourier transform can be performed on each segment data to obtain the segment frequency domain data corresponding to all segment data.
[0107] Step S404: Filter the frequency domain data of the segment to obtain high-frequency segment data and low-frequency segment data.
[0108] It should be noted that high-frequency segment data refers to audio data with frequencies in the high-frequency range collected by the microphone; low-frequency segment data refers to audio data with frequencies in the low-frequency range collected by the microphone.
[0109] Understandably, after performing a Fourier transform on the segment data, in order to ensure the high-frequency audio data and low-frequency audio data, it is necessary to filter the segment frequency domain data to obtain the high-frequency segment data and low-frequency segment data.
[0110] In the specific filtering process, high-pass and low-pass filters can be directly selected to pass all the frequency domain data of the segments through the high-pass and low-pass filters respectively to obtain the corresponding high-frequency segment data and low-frequency segment data.
[0111] Step S405: Determine the audio quality of the audio data based on the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data.
[0112] Understandably, given the high-frequency and low-frequency data segments, the quality of each segment can be assessed separately to determine whether it meets the standards, thereby determining the overall audio quality of the audio data.
[0113] In practice, one can first determine whether the audio quality of the high-frequency segment data is acceptable, and then determine whether the audio quality of the low-frequency segment data is acceptable; alternatively, one can first determine whether the audio quality of the low-frequency segment data is acceptable, and then determine whether the audio quality of the high-frequency segment data is acceptable. The data quality of the high-frequency and low-frequency segment data is determined by checking whether their amplitudes are within acceptable ranges, thereby determining the overall audio data quality.
[0114] Step S405 specifically includes:
[0115] Step S4051: Calculate the high-frequency average amplitude of the high-frequency segment based on the amplitude of the high-frequency segment data, and calculate the low-frequency average amplitude of the low-frequency segment based on the amplitude of the low-frequency segment data.
[0116] Understandably, given that high-frequency and low-frequency data segments are defined, the data quality of the high-frequency and low-frequency data segments can be determined by the amplitude values reflected in each segment.
[0117] It should be noted that, given the specific high-frequency and low-frequency data segments, the average amplitude of the high-frequency and low-frequency data segments can be calculated by evaluating the amplitudes of all high-frequency and low-frequency data segments. When assessing the quality of microphone audio data, if the quality of the channel data is assessed first, the average amplitude of a specific segment of high-frequency and low-frequency data within that channel can be calculated first. Alternatively, if the quality of the channel data does not need to be determined, the average amplitude of all segments within the microphone audio data can be calculated directly.
[0118] Step S4052: When the average amplitude of the high frequency is greater than the preset high frequency amplitude and the average amplitude of the low frequency is greater than the preset low frequency amplitude, the audio quality of the audio data is deemed to be qualified.
[0119] It should be noted that the preset high-frequency amplitude is a pre-set amplitude value used to determine whether high-frequency segment data is acceptable. If the average amplitude of the high-frequency segment data is greater than the preset high-frequency amplitude, the audio quality of the high-frequency segment data can be considered acceptable; conversely, if the average amplitude of the high-frequency segment data is not greater than the preset high-frequency amplitude, the audio quality of the high-frequency audio data can be considered unacceptable. Similarly, the preset low-frequency amplitude is a pre-set amplitude value used to determine whether low-frequency segment data is acceptable. If the average amplitude of the low-frequency segment data is greater than the preset low-frequency amplitude, the audio quality of the low-frequency segment data can be considered acceptable; conversely, if the average amplitude of the low-frequency segment data is not greater than the preset high-frequency amplitude, the audio quality of the high-frequency audio data can be considered unacceptable. The preset high-frequency amplitude and preset low-frequency amplitude are audio intensity amplitudes between 55dB and 65dB.
[0120] In practice, the average amplitude of high-frequency segment data can be compared with a preset high-frequency amplitude. If the average amplitude is greater than the preset high-frequency amplitude, the data quality of the high-frequency segment data can be considered acceptable. Similarly, the average amplitude of low-frequency segment data can be compared with a preset low-frequency amplitude. If the average amplitude is greater than the preset low-frequency amplitude, the data quality of the low-frequency segment data can be considered acceptable. When both the average amplitude of the high-frequency segment and the average amplitude of the low-frequency segment are greater than the preset high-frequency amplitude, the audio quality of the audio data is considered acceptable.
[0121] Step S4053: When the average amplitude of the high frequency is not greater than the preset high frequency amplitude and / or the average amplitude of the low frequency is not greater than the preset low frequency amplitude, the audio quality of the audio data is deemed unqualified.
[0122] Furthermore, if the average amplitude of the high frequency segment is not greater than the preset high frequency amplitude, the audio quality of the high frequency segment data can be considered unqualified; if the average amplitude of the low frequency segment is not greater than the preset low frequency amplitude, the audio quality of the low frequency segment data can be considered unqualified; if the data quality of either the high frequency segment data or the low frequency segment data is unqualified, the microphone audio data can be directly considered unqualified.
[0123] In addition, to achieve the above objectives, the present invention also provides an audio quality detection system, which is used to execute the audio quality detection method described in any of the above embodiments. The audio quality detection system includes an audio acquisition device and an audio processing device. The audio acquisition device can acquire audio data in the vehicle, and the audio processing device can process the acquired audio data and determine whether the data quality of the audio data is qualified based on the processed audio data.
[0124] In addition, to achieve the above objectives, the present invention also provides a vehicle, the vehicle comprising: the aforementioned audio quality detection system.
[0125] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. An audio quality detection method, characterized in that, The audio quality detection method includes: Acquire audio data from inside the vehicle; the audio data includes: microphone audio data; The audio data is split to obtain data for each channel; The data from each channel is divided into segments of a preset length; The audio quality of the audio data is determined based on the amplitude of the segment data; The step of determining the audio quality of the audio data based on the amplitude of the segment data further includes: When the audio data is microphone audio data, a first proportion of the segment data whose amplitude is greater than a preset lower limit audio amplitude is calculated based on the amplitude of each segment data. When the first proportion is greater than the preset lower limit amplitude proportion, a second proportion is calculated based on the amplitude of each segment data, where the amplitude of the segment data is less than the preset upper limit audio amplitude. When the second proportion is not greater than the preset upper limit amplitude proportion, Fourier transform is performed on each of the segment data to obtain segment frequency domain data; The frequency domain data of the segments are filtered to obtain high-frequency segment data and low-frequency segment data; The audio quality of the audio data is determined based on the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data.
2. The audio quality detection method as described in claim 1, characterized in that, The audio data also includes: music audio data; acquiring the audio data inside the vehicle includes: Detect the vehicle's audio operating mode; When the audio working mode is music playback mode, acquire the music audio data output by the music player; When the audio working mode is microphone mode, the microphone audio data collected by the microphone is acquired.
3. The audio quality detection method as described in claim 2, characterized in that, Determining the audio quality of the audio data based on the amplitude of the segment data includes: When the audio data is music audio data, the average amplitude of the segment data is calculated based on the amplitude of the segment data. When the average amplitude is within a preset music amplitude range, the audio quality of the audio data is considered to be qualified; otherwise, the audio quality of the audio data is considered to be unqualified.
4. The audio quality detection method as described in claim 1, characterized in that, Determining the audio quality of the audio data based on the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data includes: The high-frequency average amplitude of the high-frequency segment is calculated based on the amplitude of the high-frequency segment data, and the low-frequency average amplitude of the low-frequency segment is calculated based on the amplitude of the low-frequency segment data. When the average amplitude of the high frequency is greater than the preset high frequency amplitude and the average amplitude of the low frequency is greater than the preset low frequency amplitude, the audio quality of the audio data is deemed to be qualified.
5. The audio quality detection method as described in claim 4, characterized in that, After calculating the high-frequency average amplitude of the high-frequency segment based on the amplitude of the high-frequency segment data, and calculating the low-frequency average amplitude of the low-frequency segment based on the amplitude of the low-frequency segment data, the method further includes: If the average amplitude of the high frequency is not greater than a preset high frequency amplitude and / or the average amplitude of the low frequency is not greater than a preset low frequency amplitude, the audio quality of the audio data is deemed unqualified.
6. The audio quality detection method as described in claim 1, characterized in that, When the audio data is microphone audio data, after calculating the first percentage of segments whose amplitude is greater than a preset lower limit audio amplitude based on the amplitude of each segment data, the method further includes: When the first proportion is not greater than the preset lower limit amplitude value proportion, the audio quality of the audio data is deemed unqualified; Accordingly, after calculating the second proportion where the amplitude of the segment data is less than the preset upper limit audio amplitude based on the amplitude of each segment data when the first proportion is greater than the preset lower limit amplitude proportion, the method further includes: When the second percentage is greater than the preset upper limit amplitude percentage, the audio quality of the audio data is deemed unqualified.
7. The audio quality detection method according to any one of claims 1-6, characterized in that, The acquisition of audio data inside the vehicle also includes: The effective acquisition duration of audio data; Record the data acquisition duration when starting audio data acquisition; When the data acquisition time reaches the effective acquisition time, audio data inside the vehicle is acquired.
8. An audio quality detection system, characterized in that, The audio quality detection system is used to perform the audio quality detection method according to any one of claims 1-7.
9. A vehicle, characterized in that, The vehicle includes: the audio quality detection system as described in claim 8.