Audio quality detection method and system and vehicle
By acquiring audio data in the vehicle and performing data splitting and amplitude analysis, the problem of difficulty in audio quality analysis is solved, and fast and accurate audio quality detection is achieved, reducing time cost.
Patent Information
- Application Number
- CN202411372244.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-29
AI Technical Summary
In the prior art, audio quality analysis is difficult and requires professionals to conduct time-consuming data analysis, which makes it difficult to confirm audio quality.
By acquiring the audio data in the vehicle, performing data splitting and amplitude analysis, determining the audio quality based on the amplitude of the segment data, different analysis standards in music and microphone modes are used, including average amplitude, proportion and Fourier transform and other methods to quickly judge the qualification of audio data.
No professionals need to spend a lot of time to determine the audio quality directly through the amplitude and frequency domain analysis of the audio data, improving the efficiency and accuracy of audio quality detection.
Smart Images

Figure CN119252286A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to an audio quality detection method, system and vehicle. Background Art
[0002] During the operation of the vehicle, there is certain audio data inside the vehicle, such as noise data, music data, voice data of the driver and passengers, etc. The audio quality of the audio data inside the vehicle directly affects the user experience. For example, during a call, if the audio data quality is not up to standard, it is likely that effective information cannot be delivered.
[0003] When obtaining audio data from inside a vehicle, the analysis of the audio data requires inputting the obtained audio data into a computer server or other device, and then having highly professional personnel perform data analysis on the audio data to determine the quality of the audio data. However, since there are few people who understand audio analysis and the analysis is time-consuming, it is difficult to confirm the audio quality.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide an audio quality detection method and a vehicle, aiming to solve the technical problem that audio quality analysis in the prior art is very difficult.
[0006] To achieve the above object, the present invention proposes an audio quality detection method, which comprises:
[0007] The audio quality detection method comprises:
[0008] Acquire audio data in the vehicle;
[0009] Splitting the audio data to obtain data of each channel;
[0010] Dividing each of the channel data into segment data of a preset length;
[0011] The audio quality of the audio data is determined according to the amplitude of the segment data.
[0012] Optionally, the audio data includes: music audio data and microphone audio data; the step of acquiring the audio data in the vehicle includes:
[0013] Detect the audio working mode of the vehicle;
[0014] When the audio working mode is a music playing mode, obtaining music audio data output by a music player;
[0015] When the audio working mode is the microphone mode, microphone audio data collected by the microphone is obtained.
[0016] Optionally, determining the audio quality of the audio data according to the amplitude of the segment data includes:
[0017] When the audio data is music audio data, calculating the average amplitude of the segment data according to 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 determined to be qualified; otherwise, the audio quality of the audio data is determined to be unqualified.
[0019] Optionally, the determining the audio quality of the audio data according to the amplitude of the segment data further includes:
[0020] When the audio data is microphone audio data, calculating, according to the amplitude of each segment data, a first proportion of the segment data amplitude being greater than a preset lower limit audio amplitude;
[0021] When the first proportion is greater than the preset lower limit amplitude proportion, a second proportion of the segment data amplitude less than the preset upper limit audio amplitude is calculated according to the amplitude of each segment data;
[0022] When the second proportion is not greater than the preset upper limit amplitude proportion, performing Fourier transform on each of the segment data to obtain segment frequency domain data;
[0023] Filtering the segment frequency domain data to obtain high-frequency segment data and low-frequency segment data;
[0024] The audio quality of the audio data is determined according to 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 according to the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data includes:
[0026] Calculating a high-frequency average amplitude of the high-frequency segment according to the amplitude of the high-frequency segment data, and calculating a low-frequency average amplitude of the low-frequency segment according to the amplitude of the low-frequency segment data;
[0027] When the high-frequency average amplitude is greater than a preset high-frequency amplitude and the low-frequency average amplitude is greater than a preset low-frequency amplitude, it is determined that the audio quality of the audio data is qualified.
[0028] Optionally, after calculating the high-frequency average amplitude of the high-frequency segment according to the amplitude of the high-frequency segment data, and calculating the low-frequency average amplitude of the low-frequency segment according to the amplitude of the low-frequency segment data, the method further includes:
[0029] When the high frequency average amplitude is not greater than a preset high frequency amplitude and / or the low frequency average amplitude is not greater than a preset low frequency amplitude, it is determined that the audio quality of the audio data is unqualified.
[0030] Optionally, when the audio data is microphone audio data, after calculating a first proportion of the amplitude of the segment data being greater than a preset lower limit audio amplitude according to the amplitude of each segment data, the method further includes:
[0031] When the first proportion is not greater than a preset lower limit amplitude proportion, determining that the audio quality of the audio data is unqualified;
[0032] Correspondingly, when the first proportion is greater than the preset lower limit amplitude proportion, after calculating the second proportion of the amplitude of the segment data less than the preset upper limit audio amplitude according to the amplitude of each segment data, the method further includes:
[0033] When the second proportion is greater than a preset upper limit amplitude proportion, it is determined that the audio quality of the audio data is unqualified.
[0034] Optionally, the acquiring of audio data in the vehicle further includes:
[0035] Get the effective acquisition time of audio data;
[0036] When starting to obtain audio data, record the data acquisition time;
[0037] When the data acquisition time reaches the effective acquisition time, the audio data in the vehicle is acquired.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides an audio quality detection system, and the audio quality detection system is used to execute the audio quality detection method.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a vehicle, which includes: the above-mentioned audio quality detection system.
[0040] The present invention provides an audio quality detection method, system and vehicle. The audio quality detection method comprises: obtaining audio data in a vehicle; performing data splitting on the audio data to obtain data of each channel; dividing each of the channel data into segment data of a preset length; and determining the audio quality of the audio data according to the amplitude of the segment data. The audio data is split to obtain data of each channel; then each channel data is divided into segment data of a preset length, and the audio data is analyzed using the amplitude of each data segment, so as to directly determine the data quality of the audio data, without professionals spending a lot of time and cost on audio data analysis to determine the data quality of the audio data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0042] Figure 1 A schematic diagram of the flow chart of the first embodiment of the audio quality detection method proposed by the invention;
[0043] Figure 2 A first flow chart of a second embodiment of the audio quality detection method proposed by the invention;
[0044] Figure 3 A second flow chart of the second embodiment of the audio quality detection method proposed by the invention;
[0045] Figure 4 A schematic diagram of a flow chart of a third embodiment of the audio quality detection method proposed by the invention;
[0046] Figure 5 This is a flow chart of a fourth embodiment of the audio quality detection method proposed in the invention.
[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0051] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0052] Reference Figure 1 , Figure 1 This is a flow chart of the first embodiment of the audio quality detection method proposed by the invention. Figure 1 The first embodiment of the audio quality detection method of the present invention is provided.
[0053] In this embodiment, the audio quality detection method includes:
[0054] Step S10: Acquire audio data in the vehicle.
[0055] It should be understood that in this embodiment and the following embodiments, the audio quality detection system can be used as the execution subject, and the audio quality detection system can execute processes such as data collection, processing, analysis, and model building.
[0056] It is understandable that there is a lot of audio data inside the vehicle, including audio generated by users inside the vehicle, audio generated by devices inside the vehicle, audio transmitted from outside the vehicle to the vehicle, etc. Analyzing and adjusting the audio data can effectively improve the user's driving comfort. However, the analysis of audio data often requires testers to use professional audio acquisition equipment to collect the audio inside the car, and then output the audio data to an external device for professionals to analyze the audio data to determine whether the audio quality is qualified.
[0057] It should be noted that the audio data is the audio data that needs to be analyzed during the normal operation of the vehicle. The audio data can be data output by a player in the vehicle, data input through a microphone, or noise data in the vehicle.
[0058] Before analyzing the audio data, the audio data inside the vehicle needs to be acquired. In the specific acquisition process, a recording device installed in the vehicle can be used to record the audio data inside the vehicle in real time. Of course, it is also possible to consider extracting pre-recorded audio data from a memory.
[0059] Step S20: splitting the audio data to obtain data of each channel.
[0060] It is understandable that channel data is audio data transmitted through channels, and the more channels used to transmit audio data, the more corresponding channel data there are. After acquisition, it is usually necessary to transmit the complete audio data through multiple channels. During the data transmission process, the audio data transmitted by different channels are the channel data corresponding to each channel. During the audio data transmission process, there may be audio data frame loss and other abnormalities in the data transmission process that cause the audio quality of the audio data to be unqualified. When determining the audio quality of audio data, it is necessary to split the audio data to obtain each channel data. Standard audio data can be arranged in channel order, and the audio data corresponding to different channel orders are also different.
[0061] In a specific implementation, the audio data can be split according to the data channel for transmitting the audio data. During the splitting process, each channel data can be extracted according to the arrangement order of the channels. After all channels are extracted, the channel data corresponding to each channel in the audio data can be obtained.
[0062] Step S30: Divide each of the channel data into segment data of a preset length.
[0063] It should be noted that the segment data is data with a very short data length obtained after dividing the channel data. The segment data can be divided by time unit, for example, every 10ms of channel data is a segment data, and can also be divided by size unit, for example, every 10kb of data is a segment data. The preset length is the data length pre-set for dividing the channel data. For example, if the preset length is a time length of 10ms, a segment data can be divided every 10ms.
[0064] It is understandable that, in the process of confirming the audio quality of audio data, the overall analysis of the audio data cannot accurately determine the data quality of the audio data due to the large amount of audio data. In the case where the channel data is divided into a plurality of segment data, the overall audio quality of the channel data can be determined by a certain number of segment data.
[0065] In a specific implementation, the preset length may be determined first, and then the channel data may be divided in units of the preset length to obtain multiple fragment data included in the channel data; and then other channel data may be divided until each channel data is completely divided to obtain all fragment data.
[0066] Step S40: Determine the audio quality of the audio data according to the amplitude of the segment data.
[0067] It should be understood that audio quality includes two situations: qualified audio quality and unqualified audio quality. In the case of determining the segment data, it can be determined based on whether each segment data meets the qualified data quality requirements. The amplitude is a detailed parameter of the segment data, and the amplitude of the segment data can directly reflect whether the quality of the segment data is qualified. For example, when the amplitude of the segment data is within the amplitude range of the amplitude requirement standard, the data quality of the segment data can be determined to be qualified.
[0068] In a specific implementation, it is possible to first determine whether the data quality of each segment data is qualified, and then determine the data quality of the channel data based on the data quality of the segment data belonging to a channel data, and finally determine the data quality of the entire audio data based on the data quality of the channel data, thereby completing the data quality analysis of the audio data. In addition, it is also possible to directly determine the data quality of the audio data based on the data quality of each segment data. For example, when the data quality of most of the segment data is qualified, the data quality of the audio data can be directly determined to be qualified.
[0069] In the present embodiment, the audio quality detection method includes: obtaining audio data in a vehicle; performing data splitting on the audio data to obtain data of each channel; dividing each of the channel data into segment data of a preset length; and determining the audio quality of the audio data according to the amplitude of the segment data. The audio data is split to obtain data of each channel; then each channel data is divided into segment data of a preset length, and the audio data is analyzed using the amplitude of each data segment, so as to directly determine the data quality of the audio data, without professionals spending a lot of time and cost on audio data analysis to determine the data quality of the audio data.
[0070] Based on the above first embodiment, a second embodiment of the audio quality detection method of the present invention is proposed. Figure 2 , Figure 2 This is a schematic diagram of a first flow chart of a 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 working mode of the vehicle.
[0073] It should be understood that the audio working mode refers to the mode of the audio output in the car when the audio inside the car is collected. Different audio output sources correspond to different audio working modes. For example, when the music player is turned on, the audio working mode in the car is the music playing mode, and when the microphone is turned on to pick up sound, the audio working mode in the car is the microphone mode.
[0074] It should be noted that, considering that the collected audio data is not the same in different audio working modes, there may be different standards for judging the quality of audio data. For example, music audio data and microphone audio data, one is the music output by the player in the car, and the other is the output sound of the driver and passengers in the car. During the vehicle recording process, the focus of recording in different modes is also different. For example, in the music playback mode, you can record the audio player.
[0075] When detecting the working mode, the audio working mode of the vehicle can be determined according to the device on state in the vehicle. When it is detected that the audio player is on and playing music, it can be determined that the audio working mode is the music playing mode; of course, when it is detected that the microphone is on and is picking up sound, it can be determined that the audio working mode is the microphone mode.
[0076] Step S12: when the audio working mode is the music playing mode, obtaining music audio data output by the music player.
[0077] It should be understood that music audio data is audio data presented in the car when music is played in the car. The main amount of music audio data comes from music. When it is detected that the audio working mode is the music playing mode, the music audio data can be recorded with emphasis by a recording device arranged on one side of the music player; of course, the music data can also be recorded with emphasis by a recording device; thereby obtaining the music audio data of the music player.
[0078] Step S13: when the audio working mode is the microphone mode, obtaining microphone audio data collected by the microphone.
[0079] It is understandable that microphone audio data is audio data presented in the car when the microphone in the car picks up sound. The main amount of microphone audio data comes from the sound emitted by the driver and passengers in the car. When it is detected that the microphone working mode is the music playback mode, the microphone audio data can be recorded with emphasis through the recording device set on one side of the microphone; of course, the microphone data can also be recorded with emphasis using the recording device; thereby obtaining the microphone audio data picked up by the microphone.
[0080] In addition, refer to Figure 3 , Figure 3 This is a second flow chart of the second embodiment of the audio quality detection method proposed in the invention. In this embodiment, step S10 also includes:
[0081] Step S101: Acquire the effective acquisition time length of the audio data.
[0082] It should be understood that in the process of audio data recording, the validity of the recorded audio data needs to be guaranteed in order to accurately judge the data quality of the audio data. The effective acquisition duration refers to the shortest duration that can accurately judge the data quality of the audio data. When the acquired audio data is lower than the effective duration, it can be determined that the amount of audio data is too small to accurately determine the data quality of the audio data. The effective acquisition duration of the audio data can be set according to the accurate requirements of the data quality of the audio data; in actual use, the effective acquisition duration can be 10 seconds.
[0083] Step S102: When starting to obtain audio data, record the data acquisition time.
[0084] It should be noted that the data acquisition duration refers to the length of time from the start of acquisition to the end of acquisition of the in-car audio data; when the acquisition of the in-car audio data starts, the timing can be started directly, and the timing duration is the data acquisition duration.
[0085] Step S103: When the data acquisition time reaches the effective acquisition time, the audio data in the vehicle is acquired.
[0086] It is understandable that in order to ensure that the amount of audio data can determine the data quality of the audio data, it can be determined based on whether the data acquisition time reaches the effective acquisition time. When the data acquisition time does not reach the effective acquisition time, the audio data can be determined as invalid audio data and cannot be used to determine the data quality of the audio data; of course, when the data acquisition time reaches the effective acquisition time, or even exceeds the effective acquisition time, the amount of audio data acquired at this time is sufficient, and the audio data acquired within the data acquisition time can be directly used as valid audio data for audio data quality analysis, so as to more accurately determine whether the data quality of the audio data is qualified.
[0087] In addition, refer to Figure 4 Based on the first embodiment or the second embodiment, a third embodiment of the audio quality detection method of the present invention is proposed. In this embodiment, the step S40 specifically includes:
[0088] Step S41: When the audio data is music audio data, the average amplitude of the segment data is calculated according to the amplitude of the segment data.
[0089] It should be understood that, in the case of determining segment data, the data quality of the entire audio data can be effectively evaluated by the amplitude reflected in each segment data.
[0090] It should be noted that, when determining each segment data, the average amplitude of the segment data can be calculated by calculating the amplitudes of all segments. In the process of determining the data quality of audio data, when the data quality of channel data is determined first, the average amplitude of the determined segment data of all segment data in a channel data can be calculated first; of course, when the data quality of channel data does not need to be determined, the average amplitude of all segment data in the audio data can also be directly calculated.
[0091] Step S42: When the average amplitude is within a preset music amplitude range, the audio quality of the audio data is determined to be qualified; otherwise, the audio quality of the audio data is determined to be unqualified.
[0092] It should be noted that the preset music amplitude range is a preset amplitude range for determining whether the audio data is qualified. Usually, the preset music amplitude range can be set between 55 decibels and 65 decibels. When the average amplitude of the segment data is within the preset music amplitude range, it can be determined that the audio quality of the music audio data is qualified; of course, when the average amplitude of the segment data is not within the preset amplitude range, it can be determined that the audio quality of the music audio data is unqualified.
[0093] In a specific implementation, the average amplitude of the fragment data in the music audio data can be compared with the minimum value and the maximum value of the preset music amplitude range respectively. When the average amplitude is smaller than the minimum value of the preset music amplitude range, it can be determined that the data quality of the music audio data is too low in data intensity; when the average amplitude is larger than the maximum value of the preset music amplitude range, it can be determined that the data quality of the music audio data is too high in data intensity.
[0094] Based on the above-mentioned first to third embodiments, a fourth embodiment of the audio quality detection method of the present invention is proposed. Figure 5 , Figure 5 This is a flow chart of a 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, a first proportion of the amplitude of the segment data being greater than a preset lower limit audio amplitude is calculated according to the amplitude of each segment data.
[0097] It should be noted that the preset lower limit audio amplitude is the preset minimum audio amplitude for qualified data quality. When the amplitude corresponding to the segment data of the microphone audio data is lower than the preset lower limit audio amplitude, it can be determined that the amplitude of the segment data is too small or there are empty frames in the audio data, which is unqualified audio. The preset lower limit audio amplitude can be 55dB of the lowest audio value of conventional sound pickup. The first ratio is the ratio of the segment data whose amplitude is not too small or the audio data does not have empty frames to all the segment data.
[0098] In a specific implementation, the amplitude of each segment data can be compared with the preset lower audio amplitude to determine the segment data with an amplitude greater than the preset lower audio amplitude; then the actual number of segment data with an amplitude greater than the preset lower audio amplitude can be compared with the total data of the segment data to determine the first proportion of the segment data with an amplitude greater than the preset lower audio amplitude.
[0099] Step S402: when the first proportion is greater than the preset lower limit amplitude proportion, a second proportion of the segment data whose amplitude is less than the preset upper limit audio amplitude is calculated according to the amplitude of each segment data.
[0100] It should be understood that the preset lower limit amplitude ratio is a ratio pre-set to determine whether the amplitude of the audio data is too low or there is a missing audio data frame. In the case where the amplitude of a large number of segment data is too low, or there are more missing audio data frames, the first ratio of the segment data amplitude greater than the preset lower limit audio amplitude is very low. When the first ratio is greater than the preset lower limit amplitude ratio, it can be determined that the audio data will not be unqualified due to the small amplitude or the presence of empty frames in the audio data; when the first ratio is not greater than the preset lower limit amplitude ratio, it can be determined that the audio data is unqualified due to the small amplitude or the presence of empty frames in the audio data. Assuming that among 1000 segment data, 900 segment data have an audio amplitude less than the calibration threshold of 55dB, that is, the audio amplitude values of 90% of the segment data do not meet the standard, indicating that the overall audio amplitude of the audio data is too small, or there is frame loss.
[0101] It should be noted that the preset upper limit audio amplitude is the highest audio amplitude of the pre-set data quality that meets the requirements. When the amplitude corresponding to the segment data of the microphone audio data is higher than the preset upper limit audio amplitude, it can be determined that the amplitude of the segment data is too large. When the amplitude is too large, it is easy to cause clipping, which is unqualified audio. The preset upper limit audio amplitude can be 65dB of the highest audio value of conventional sound pickup. The second ratio is the ratio of the segment data whose amplitude does not have too large an amplitude to all the segment data.
[0102] In a specific implementation, the amplitude of each segment data can be compared with the preset upper limit audio amplitude to determine the segment data whose amplitude is less than the preset upper limit audio amplitude; then the actual number of segment data whose amplitude is less than the preset upper limit audio amplitude is compared with the total data of the segment data to determine the second proportion of the segment data whose amplitude is 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, Fourier transform is performed on each of the segment data to obtain segment frequency domain data.
[0104] It should be understood that the preset upper limit amplitude ratio is a ratio pre-set to determine whether the amplitude of the entire audio data is too high. In the case where there are a large number of segment data with too high amplitudes, the second ratio that makes the amplitude of the segment data greater than the preset upper limit audio amplitude is very high. When the second ratio is not greater than the preset upper limit amplitude ratio, it can be determined that the audio data will not be unqualified due to the large amplitude; of course, when the second ratio is greater than the preset upper limit amplitude ratio, it can be determined that the audio data is unqualified due to the large amplitude.
[0105] It should be noted that the microphone audio data generally includes high-frequency audio data and low-frequency audio data. When determining whether the audio quality of the microphone audio data is qualified, it is necessary to determine the data quality of both the high-frequency audio data and the low-frequency audio data. Therefore, it is necessary to perform Fourier transform on the microphone audio data to extract the high-frequency audio data and the low-frequency audio data.
[0106] It is understandable that the segment frequency domain data is only the frequency domain data after Fourier transformation of the segment data. In a specific implementation, Fourier transformation can be performed on each segment data to obtain the segment frequency domain data corresponding to all the segment data.
[0107] Step S404: filtering the segment frequency domain data to obtain high-frequency segment data and low-frequency segment data.
[0108] It should be noted that the high-frequency segment data refers to the data whose frequency is in the high-frequency range among the audio data collected by the microphone; the low-frequency segment data refers to the data whose frequency is in the low-frequency range among the audio data collected by the microphone.
[0109] It can be understood that after Fourier transforming the segment data, in order to ensure high-frequency audio data and low-frequency audio data, the segment frequency domain data needs to be filtered to obtain high-frequency segment data and low-frequency segment data.
[0110] In the specific filtering process, a high-pass filter and a low-pass filter may be directly selected, and all the segment frequency domain data may be respectively passed through the high-pass filter and the low-pass filter to obtain corresponding high-frequency segment data and low-frequency segment data.
[0111] Step S405: determining the audio quality of the audio data according to the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data.
[0112] It can be understood that when the high-frequency segment data and the low-frequency segment data are determined, it is possible to judge whether the data quality of the high-frequency segment data and the low-frequency segment data is qualified respectively, thereby determining whether the audio quality of the entire audio data is qualified.
[0113] In a specific implementation, it is possible to first determine whether the audio quality of the high-frequency segment data is qualified, and then determine whether the audio quality of the low-frequency segment data is qualified; of course, it is also possible to first determine whether the audio quality of the low-frequency segment data is qualified, and then determine whether the audio quality of the high-frequency segment data is qualified. The data quality of the high-frequency segment data and the low-frequency segment data is determined by determining whether the amplitudes of the high-frequency segment data and the low-frequency segment data are within a qualified amplitude range, and then determining the data quality of the audio data.
[0114] The step S405 specifically includes:
[0115] Step S4051: calculating the high-frequency average amplitude of the high-frequency segment according to the amplitude of the high-frequency segment data, and calculating the low-frequency average amplitude of the low-frequency segment according to the amplitude of the low-frequency segment data.
[0116] It can be understood that, when determining the high-frequency segment data and the low-frequency segment data, the data quality of the high-frequency segment data and the low-frequency segment data can be determined by the amplitudes reflected in each of the high-frequency segment data and the low-frequency segment data.
[0117] It should be noted that, when determining each high-frequency segment data and low-frequency segment data, the average amplitude of the high-frequency segment data and the low-frequency segment data can be calculated by calculating the amplitudes of all high-frequency segment data and low-frequency segment data. In the process of determining the data quality of microphone audio data, when the data quality of channel data is first determined, the average amplitude of the determined segment data of all high-frequency segment data and low-frequency segment data in a channel data can be calculated first; of course, when the data quality of channel data does not need to be determined, the average amplitude of all segment data in the microphone audio data can also be directly calculated.
[0118] Step S4052: When the high-frequency average amplitude is greater than the preset high-frequency amplitude and the low-frequency average amplitude is greater than the preset low-frequency amplitude, it is determined that the audio quality of the audio data is qualified.
[0119] It should be noted that the preset high-frequency amplitude is a preset amplitude used to determine whether the high-frequency segment data is qualified. When the average amplitude of the high-frequency segment data is greater than the preset high-frequency amplitude, it can be determined that the audio quality of the high-frequency segment data is qualified; of course, when the average amplitude of the high-frequency segment data is not greater than the preset high-frequency amplitude, it can be determined that the audio quality of the high-frequency audio data is unqualified. Similarly, the preset low-frequency amplitude is a preset amplitude used to determine whether the low-frequency segment data is qualified. When the average amplitude of the low-frequency segment data is greater than the preset low-frequency amplitude, it can be determined that the audio quality of the low-frequency segment data is qualified; of course, when the average amplitude of the low-frequency segment data is not greater than the preset high-frequency amplitude, it can be determined that the audio quality of the high-frequency audio data is unqualified. The preset high-frequency amplitude and the preset low-frequency amplitude are audio intensity amplitudes between 55dB and 65dB.
[0120] In a specific implementation, the average amplitude of the high-frequency segment data can be compared with the preset high-frequency amplitude. When the average amplitude is greater than the preset high-frequency amplitude, the data quality of the high-frequency segment data can be determined to be qualified; the average amplitude of the low-frequency segment data can also be compared with the preset low-frequency amplitude. When the average amplitude is greater than the preset low-frequency amplitude, the data quality of the low-frequency segment data can be determined to be qualified; when the high-frequency average amplitude is greater than the preset high-frequency amplitude and the low-frequency average amplitude is greater than the preset low-frequency amplitude, the audio quality of the audio data is determined to be qualified.
[0121] Step S4053: When the high frequency average amplitude is not greater than a preset high frequency amplitude and / or the low frequency average amplitude is not greater than a preset low frequency amplitude, it is determined that the audio quality of the audio data is unqualified.
[0122] In addition, when the high-frequency average amplitude is not greater than the preset high-frequency amplitude, it can be determined that the audio quality of the high-frequency segment data is unqualified; when the low-frequency average amplitude is not greater than the preset low-frequency amplitude, it can be determined that the audio quality of the low-frequency segment data is unqualified; when the data quality of any of the high-frequency segment data and the low-frequency segment data is unqualified, it can be directly determined that the microphone audio data is unqualified.
[0123] In addition, to achieve the above-mentioned purpose, the present invention also provides an audio quality detection system, which is used to execute the audio quality detection method recorded in any of the above-mentioned 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 car, 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-mentioned purpose, the present invention also provides a vehicle, which includes: the above-mentioned audio quality detection system.
[0125] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An audio quality detection method, characterized in that: The audio quality detection method comprises: Acquire audio data in the vehicle; Splitting the audio data to obtain data of each channel; Dividing each of the channel data into segment data of a preset length; The audio quality of the audio data is determined according to the amplitude of the segment data.
2. The audio quality detection method according to claim 1, characterized in that: The audio data includes: music audio data and microphone audio data; the step of acquiring the audio data in the vehicle includes: Detect the audio working mode of the vehicle; When the audio working mode is a music playing mode, obtaining music audio data output by a music player; When the audio working mode is the microphone mode, microphone audio data collected by the microphone is obtained.
3. The audio quality detection method according to claim 2, characterized in that: The step of determining the audio quality of the audio data according to the amplitude of the segment data comprises: When the audio data is music audio data, calculating the average amplitude of the segment data according to 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 determined to be qualified; otherwise, the audio quality of the audio data is determined to be unqualified.
4. The audio quality detection method according to claim 2, characterized in that: The step of determining the audio quality of the audio data according to the amplitude of the segment data further includes: When the audio data is microphone audio data, calculating, according to the amplitude of each segment data, a first proportion of the segment data amplitude being greater than a preset lower limit audio amplitude; When the first proportion is greater than the preset lower limit amplitude proportion, a second proportion of the segment data amplitude less than the preset upper limit audio amplitude is calculated according to the amplitude of each segment data; When the second proportion is not greater than the preset upper limit amplitude proportion, performing Fourier transform on each of the segment data to obtain segment frequency domain data; Filtering the segment frequency domain data to obtain high-frequency segment data and low-frequency segment data; The audio quality of the audio data is determined according to the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data.
5. The audio quality detection method according to claim 4, characterized in that: The determining the audio quality of the audio data according to the amplitude of the high-frequency segment data and the amplitude of the low-frequency segment data comprises: Calculating a high-frequency average amplitude of the high-frequency segment according to the amplitude of the high-frequency segment data, and calculating a low-frequency average amplitude of the low-frequency segment according to the amplitude of the low-frequency segment data; When the high-frequency average amplitude is greater than a preset high-frequency amplitude and the low-frequency average amplitude is greater than a preset low-frequency amplitude, it is determined that the audio quality of the audio data is qualified.
6. The audio quality detection method according to claim 5, characterized in that: After calculating the high-frequency average amplitude of the high-frequency segment according to the amplitude of the high-frequency segment data, and calculating the low-frequency average amplitude of the low-frequency segment according to the amplitude of the low-frequency segment data, the method further includes: When the high frequency average amplitude is not greater than a preset high frequency amplitude and / or the low frequency average amplitude is not greater than a preset low frequency amplitude, it is determined that the audio quality of the audio data is unqualified.
7. The audio quality detection method according to claim 4, characterized in that: When the audio data is microphone audio data, after calculating the first proportion of the amplitude of the segment data being greater than the preset lower limit audio amplitude according to the amplitude of each segment data, the method further includes: When the first proportion is not greater than a preset lower limit amplitude proportion, determining that the audio quality of the audio data is unqualified; Correspondingly, when the first proportion is greater than the preset lower limit amplitude proportion, after calculating the second proportion of the amplitude of the segment data less than the preset upper limit audio amplitude according to the amplitude of each segment data, the method further includes: When the second proportion is greater than a preset upper limit amplitude proportion, it is determined that the audio quality of the audio data is unqualified.
8. The audio quality detection method according to any one of claims 1 to 7, characterized in that: The obtaining of audio data in the vehicle further includes: Get the effective acquisition time of audio data; When starting to obtain audio data, record the data acquisition time; When the data acquisition time reaches the effective acquisition time, the audio data in the vehicle is acquired.
9. An audio quality detection system, characterized in that: The audio quality detection system is used to execute the audio quality detection method according to any one of claims 1-8.
10. A vehicle, characterized in that: The vehicle comprises: the audio quality detection system according to claim 9.
Citation Information
Patent Citations
Acoustic fidelity identification method and system for audio files
CN102568470A
Voice acquiring method and device adopting plurality of microphones
CN108597498A
Audio abnormity detection method and device
CN112927720A
Objective evaluation method, system and equipment for sound quality of in-vehicle sound equipment and storage medium
CN114203197A
Audio detection method and device, computer equipment and storage medium
CN115731918A
