Audio file analysis method and device and vehicle

By determining the quality of audio source data in the in-vehicle entertainment system and performing lossless analysis and transmission, the problem of sound quality is solved, a high-fidelity and clear audio playback experience is achieved, and the user's hearing experience is improved.

CN120299462APending Publication Date: 2025-07-11ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510401089.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

When analyzing and playing high-quality music files, the existing in-vehicle entertainment system is limited by the system architecture, hardware performance and transmission mechanism, resulting in a degradation of sound quality and cannot meet users' needs for high-quality sound quality.

Method used

By determining the quality of the audio source data to be played, analytical resources are allocated in a targeted manner for lossless analysis, and a lossless transmission method with high fidelity and low latency is adopted to transmit the lossless audio stream data to the audio playback device to ensure that the sound quality is not lost throughout the process.

Benefits of technology

It realizes sound quality fidelity from the source to the playback end, maximizes the details and quality of audio source data, improves the user's auditory experience, and optimizes the audio performance of the in-car entertainment system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120299462A_ABST
    Figure CN120299462A_ABST
Patent Text Reader

Abstract

The invention provides an audio file analysis method and device and a vehicle, and relates to the technical field of vehicles. The method is based on a vehicle-mounted entertainment system, and comprises the following steps: determining the quality of acquired to-be-played audio source data for the vehicle-mounted entertainment system; allocating analysis resources for the to-be-played audio source data based on the quality, performing lossless analysis on the played audio source data based on the analysis resources, and determining lossless audio stream data; and transmitting the lossless audio stream data to audio playing equipment of the vehicle-mounted entertainment system in a lossless manner for playing. According to the invention, the quality of the to-be-played audio source data is determined, and the analysis resources are distributed to the to-be-played audio source data in a targeted manner based on the quality, so that the accuracy and efficiency of analysis are ensured; and through lossless analysis and lossless transmission, it is ensured that the original data of the audio source data to be played are reserved in the analysis process and the data transmission process, so that the audio content finally played through the audio playing device keeps the original tone quality, and the hearing enjoyment of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicles, and more particularly, to an audio file parsing method, an apparatus, and a vehicle. Background Art

[0002] With the development of technologies related to in-vehicle entertainment systems, users' demand for the quality of in-vehicle music playback is increasing day by day, and characteristics such as high-fidelity and lossless of music playback sound quality also affect the product competitiveness of vehicles.

[0003] However, when existing in-vehicle entertainment systems parse and play high-quality music files, they are often restricted by system architectures, hardware performance, and transmission mechanisms, resulting in a decline in sound quality and being unable to meet users' demands for high-quality sound. Specifically, for in-vehicle entertainment systems using the Android system, the audio file will automatically reduce the bit rate during the processes of transmission and processing to optimize system resources and power consumption, but this will lead to a decline in sound quality and affect users' auditory enjoyment. Summary of the Invention

[0004] The problem solved by the present invention is: how to improve users' auditory experience.

[0005] To solve the above problems, the present invention provides an audio file parsing method, an apparatus, and a vehicle.

[0006] In a first aspect, the present invention provides an audio file parsing method based on an in-vehicle entertainment system. The audio file parsing method includes:

[0007] Determine the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system;

[0008] Allocate parsing resources for the to-be-played audio source data based on the quality, perform lossless parsing on the to-be-played audio source data based on the parsing resources, and determine lossless audio stream data;

[0009] Transmit the lossless audio stream data to an audio playback device of the in-vehicle entertainment system for lossless playback.

[0010] Optionally, the determining the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system includes:

[0011] Extract audio feature information from the to-be-played audio source data; wherein the audio feature information includes a sampling rate and a bit depth;

[0012] Determine the quality of the to-be-played audio source data according to the audio feature information.

[0013] Optionally, the audio source data to be played includes at least one of audio source data from local storage, the audio source data from local wireless transmission, and the audio source data from cloud wireless transmission;

[0014] The extracting of audio feature information from the audio source data to be played includes:

[0015] Extracting audio feature information from each of the audio source data of the audio source data to be played;

[0016] The determining of the quality of the audio source data to be played according to the audio feature information includes:

[0017] Determining the quality of each of the audio source data of the audio source data to be played according to the audio feature information of each of the audio source data of the audio source data to be played;

[0018] The allocating of parsing resources for the audio source data to be played based on the quality, and the lossless parsing of the played audio source data based on the parsing resources to determine the lossless audio stream data includes:

[0019] Allocating the parsing resources corresponding to their respective qualities for each of the audio source data of the audio source data to be played;

[0020] Respectively parsing each of the audio source data based on the parsing resources corresponding to each of the audio source data to determine the lossless parsed audio data corresponding to each of the audio source data;

[0021] Mixing the lossless parsed audio data corresponding to all the audio source data to determine the lossless audio stream data.

[0022] Optionally, after determining the lossless audio stream data and before losslessly transmitting the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback, the audio file parsing method further includes:

[0023] Extracting the audio feature information from the lossless audio stream data;

[0024] Performing path transmission matching processing on the lossless audio stream data based on the audio feature information of the lossless audio stream data.

[0025] Optionally, the performing of path transmission matching processing on the lossless audio stream data based on the audio feature information of the lossless audio stream data includes:

[0026] Determine a channel for lossless transmission of the lossless audio stream data based on the audio playback device and a preset audio transmission protocol; wherein, the number of channels is at least one;

[0027] Determine target audio stream data for transmission on each of the channels based on the channel and the audio feature information of the lossless audio stream data;

[0028] The lossless transmission of the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback includes:

[0029] Transmit the corresponding target audio stream data to the audio playback device through each of the channels for playback.

[0030] Optionally, the determining a channel for lossless transmission of the lossless audio stream data based on the audio playback device and a preset audio transmission protocol includes;

[0031] Determine the configuration parameters of the channel corresponding to the audio playback device based on the number and type of the audio playback devices and the preset parameters of the preset audio transmission protocol;

[0032] The determining target audio stream data for transmission on each of the channels based on the channel and the audio feature information of the lossless audio stream data includes:

[0033] Perform disassembly processing on the lossless audio stream data based on the audio feature information and the configuration parameters of the channel to determine the target audio stream data for transmission on each of the channels.

[0034] Optionally, the transmitting the corresponding target audio stream data to the audio playback device through each of the channels for playback includes:

[0035] Transmit the corresponding target audio stream data to the audio playback device through each of the channels for digital-to-analog conversion processing to generate an analog audio signal corresponding to the target audio stream data;

[0036] Output the analog audio signal to a speaker of the corresponding audio playback device for playback.

[0037] Optionally, before determining the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system, the audio file parsing method further includes:

[0038] In response to an operation instruction regarding audio playback, update the audio source data corresponding to the operation instruction to the to-be-played audio source data.

[0039] Second aspect, the present invention provides an audio file parsing device based on an in-vehicle entertainment system. The audio file parsing device includes:

[0040] A sound source quality determination unit, configured to determine the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system;

[0041] An audio lossless parsing unit, configured to allocate parsing resources to the to-be-played audio source data based on the quality, perform lossless parsing on the played audio source data based on the parsing resources, and determine lossless audio stream data;

[0042] An audio lossless transmission unit, configured to losslessly transmit the lossless audio stream data to an audio playback device of the in-vehicle entertainment system for playback.

[0043] Third aspect, the present invention provides a vehicle, including a memory and a processor;

[0044] The memory is configured to store a computer program;

[0045] The processor is configured to implement the audio file parsing method as described in the first aspect when executing the computer program.

[0046] Fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, and when the computer program is read and run by a processor, the audio file parsing method as described in the first aspect is implemented.

[0047] The beneficial effects of the audio file parsing method and apparatus of the present invention and the vehicle are as follows: The present invention improves the audio playback quality of the in-vehicle entertainment system through lossless parsing and lossless transmission to achieve higher sound quality fidelity and user auditory experience. Specifically, by determining the quality of the audio source data to be played for the in-vehicle entertainment system, parsing resources are allocated specifically for the audio source data to be played based on the quality to ensure the accuracy and efficiency of lossless parsing of the audio source data with corresponding quality, and to optimize the utilization of parsing resources of the in-vehicle entertainment system, etc.; and by performing lossless parsing on the audio source data to be played, it is ensured that the original data of the audio source data to be played is retained during the parsing process, avoiding sound quality loss caused by factors such as format conversion, bit rate adjustment, or resource limitation; through lossless transmission, the parsed lossless audio stream data is transmitted to the audio playback device of the in-vehicle entertainment system, avoiding sound quality degradation during data transmission, ensuring that the audio data is not affected by processing such as compression and format conversion during transmission, and avoiding problems such as delay or bottleneck. In this way, the fidelity of the sound quality is guaranteed throughout the process from the source to the playback end, maximizing the retention of the details and quality of the audio source data to be played, so that the audio content finally played through the audio playback device maintains the original sound quality, can provide users with high-fidelity, clear, and rich auditory experience, enhance the users' auditory enjoyment, and optimize the audio performance of the in-vehicle entertainment system. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic flowchart of a method for parsing an audio file in an embodiment of the present invention;

[0049] Figure 2 It is a schematic sub-flowchart of step 100 in an embodiment of the present invention;

[0050] Figure 3 It is a partial schematic flowchart of a method for parsing an audio file in an embodiment of the present invention;

[0051] Figure 4 It is a structural block diagram of an audio file parsing apparatus in an embodiment of the present invention;

[0052] Figure 5 It is a schematic structural diagram of communication connection between a memory and a processor of a vehicle in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0053] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the following detailed description of the specific embodiments of the present invention will be given with reference to the accompanying drawings.

[0054] It should be noted that the terms "first", "second", etc. in the description, claims and the above drawings of the present invention are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.

[0055] Combined with Figure 1 As shown, an embodiment of the present invention provides an audio file parsing method. Based on an in-vehicle entertainment system, the audio file parsing method includes:

[0056] Step 100: Determine the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system;

[0057] Step 200: Allocate parsing resources for the to-be-played audio source data based on the quality, and perform lossless parsing on the played audio source data based on the parsing resources to determine lossless audio stream data.

[0058] The method of this embodiment is applied to the in-vehicle entertainment system of a vehicle, and is used to optimize the processes such as parsing and playing of music files (or audio files) by the in-vehicle entertainment system, so as to achieve higher audio quality fidelity and improve the user's auditory experience.

[0059] In the method of this embodiment, through step 100 and step 200, the audio source data required to be played currently (denoted as the audio source data to be played) is obtained, and the obtained audio source data to be played currently for the in-vehicle entertainment system is parsed losslessly (such as parsing and retaining the complete audio data, which is a lossless or low-loss parsing of the audio source data to be played), and the lossless audio stream data is determined (obtained), so as to avoid sound quality loss caused by reasons such as format conversion, bit rate adjustment or system resource limitation during the parsing process, and improve the parsing rate of the audio source data to be played. Specifically, considering that the audio source data to be played in the in-vehicle entertainment system may come from different storage media (such as local storage, USB flash drive, Bluetooth device, network streaming media, etc.), and its quality (which can be determined by audio characteristic information such as sampling rate, bit depth, encoding format, number of channels, etc.) may be different. Therefore, to ensure that the audio source data to be played with different qualities can be parsed losslessly and efficiently, first, through step 100, the quality of the obtained audio source data to be played for the in-vehicle entertainment system is determined, and then, through step 200, according to the determined quality of the audio source data to be played, parsing resources capable of parsing it losslessly are allocated to the audio source data to be played. In this way, the targeted and efficient allocation of the parsing resources of the in-vehicle entertainment system is realized to ensure the accuracy and efficiency of the lossless parsing of the audio source data to be played with corresponding quality, and optimize the utilization of the parsing resources of the in-vehicle entertainment system, etc. In addition, the method of this embodiment allocates parsing resources to the audio source data to be played based on quality, and can also effectively avoid problems that may occur when the same parsing resources are used for all audio files in the related art. For example, high-quality audio files may suffer from lossy parsing due to insufficient parsing resources, while low-quality audio files occupy high-efficiency resources during parsing, resulting in resource waste. The method of this embodiment can effectively improve the parsing efficiency through reasonable parsing resource allocation and ensure the optimal presentation of audio quality.

[0060] Exemplarily, during the lossless parsing process, based on the key parameters such as the quality parameters (or audio feature information) of the audio source data to be played, corresponding parsing resources are allocated, and the audio source data to be played is parsed based on these parsing resources, so as to efficiently parse and retain the complete audio data, achieve lossless parsing, and thus facilitate restoring the original sound quality of the audio source data to be played when the audio source data to be played is played, that is, play the audio content with the original quality of the sound source file (or high quality closest to the original quality of the sound source file), avoid sound quality deterioration caused by the parsing process, and thus ensure that users can obtain a high-fidelity auditory experience and enhance the users' auditory perception. For example, for the allocation of parsing resources, for high-quality (such as 192kHz / 24bit / multi-channel) audio source data to be played, a high-performance DSP (Digital Signal Processor) or GPU acceleration is allocated for decoding; for low-quality (such as 44.1kHz / 16bit / stereo) audio source data to be played, only the CPU is used for decoding to save computing power resources. In this way, while ensuring the effective and lossless parsing of the audio source data to be played corresponding to the quality, the resource allocation is optimized to ensure the normal and stable operation of the in-vehicle entertainment system.

[0061] Step 300: Losslessly transmit the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback.

[0062] Specifically, in step 300, considering that the communication protocol, transmission method, and hardware architecture involved in the communication transmission link between the audio parsing end and the playback end (such as the speaker of the audio playback device) of the in-vehicle entertainment system may cause sound quality deterioration during the audio data transmission. To ensure that the lossless audio stream data obtained in step 200 can be completely and accurately transmitted to the audio playback device of the in-vehicle entertainment system for playback, a high-fidelity and low-latency lossless transmission method is adopted to transmit the lossless audio stream data. Exemplarily, a communication protocol that adapts to the in-vehicle audio system and supports high bandwidth, low latency, and high-quality transmission can be selected, such as a communication protocol based on A2B (Automotive Audio Bus, an in-vehicle audio bus technology), Ethernet, or LVDS (Low-Voltage Differential Signaling), to reduce the impact of signal attenuation, data loss, or latency on the sound quality and avoid bottlenecks or delay problems in audio data transmission, etc.; and to ensure that the lossless audio stream data will not cause sound quality loss due to compression or format conversion during the transmission process, a data integrity detection mechanism can also be introduced, such as CRC check for detecting data transmission errors or frame synchronization mechanism for ensuring the continuity of the audio data stream and reducing data loss, etc., to ensure the integrity of the data in the entire transmission link and ensure the lossless transmission of the audio data. In this way, it is ensured that the audio content finally played through the audio playback device maintains the original quality and can be perfectly presented, enhancing the users' auditory perception.

[0063] In summary, the method of this embodiment improves the audio playback quality of the in-vehicle entertainment system through lossless parsing and lossless transmission to achieve higher audio fidelity and user auditory experience. Specifically, by determining the quality of the audio source data to be played for the in-vehicle entertainment system, parsing resources are allocated specifically for the audio source data to be played based on the quality to ensure the accuracy and efficiency of lossless parsing of the corresponding quality audio source data to be played, and to optimize the utilization of parsing resources of the in-vehicle entertainment system, etc.; and by performing lossless parsing on the audio source data to be played, it is ensured that the original data of the audio source data to be played is retained during the parsing process, avoiding audio quality loss caused by factors such as format conversion, bit rate adjustment, or resource limitations; the parsed lossless audio stream data is transmitted to the audio playback device of the in-vehicle entertainment system through lossless transmission, avoiding audio quality degradation during data transmission, ensuring that the audio data is not affected by processing such as compression and format conversion during transmission, and avoiding problems such as delay or bottleneck. In this way, the audio fidelity is guaranteed throughout the process from the source to the playback end, maximizing the retention of the details and quality of the audio source data to be played, so that the audio content finally played through the audio playback device maintains the original audio quality, can provide users with high-fidelity, clear, and rich auditory experience, enhance the users' auditory enjoyment, and optimize the audio performance of the in-vehicle entertainment system.

[0064] Optionally, as shown in Figure 1 、 Figure 2 Step 100 includes:

[0065] Step 110: Extract audio feature information from the audio source data to be played; wherein, the audio feature information includes sampling rate and bit depth;

[0066] Step 120: Determine the quality of the audio source data to be played according to the audio feature information.

[0067] In the method of this embodiment, the quality of the audio source data to be played is determined through Step 100, so as to reasonably allocate parsing resources for audio data of different qualities subsequently, ensuring the efficiency and losslessness of the audio parsing process. Specifically, through Step 100, first, the audio source data to be played is analyzed (or parsed) to extract audio feature information for determining the quality of the audio source data to be played, where the audio feature information at least includes sampling rate and bit depth. Then, through Step 120, according to the audio feature information of the audio source data to be played determined in Step 110, the quality level of the audio source data to be played is determined, providing a reliable basis for the subsequent targeted and efficient allocation of parsing resources, ensuring that the parsing process can not only meet the lossless restoration requirements of high-quality audio but also optimize the reasonable utilization of resources of the in-vehicle entertainment system, avoiding unnecessary computing power or bandwidth occupation, thereby improving the overall audio processing efficiency and playback experience of the in-vehicle entertainment system.

[0068] For determining the quality of the audio source data to be played according to the audio feature information, exemplarily, different quality levels can be preset according to different sampling rates and bit depths. For example, audio data with a sampling rate < a first preset value and a bit depth < a second preset value is set as low quality, audio data with a first preset value ≤ sampling rate < a third preset value and a second preset value ≤ bit depth < a fourth preset value is set as standard quality (or medium quality), and audio data with a sampling rate ≥ a third preset value and a bit depth ≥ a fourth preset value is set as high quality. Moreover, the corresponding relationship between different quality levels and different parsing resources can be preset in advance to improve the accuracy and efficiency of allocating parsing resources according to the quality of the audio source data to be played, and improve the practicability of the method in this embodiment, etc.

[0069] Optionally, in combination with Figure 3 As shown, the audio source data to be played includes at least one of the audio source data from local storage, the audio source data from local wireless transmission, and the audio source data from cloud wireless transmission;

[0070] Step 110 includes:

[0071] Extract audio feature information from each audio source data of the audio source data to be played;

[0072] Step 120 includes:

[0073] According to the audio feature information of each audio source data of the audio source data to be played, determine the quality of each audio source data of the audio source data to be played.

[0074] Specifically, considering that there are many sources of audio source data to be played, which may come from local files (such as audio files stored in in-vehicle storage devices or USB drives externally connected to the in-vehicle entertainment system), local wireless transmission files (such as audio files directly transmitted to the in-vehicle entertainment system from mobile devices or other local devices through wireless transmission methods such as Bluetooth and Wi-Fi), or cloud wireless transmission files (such as audio files obtained through online music streaming media or cloud storage services). In this regard, in step 110, for each audio source data of the audio source data to be played, audio feature information extraction is performed respectively to obtain key parameters for determining audio quality, and to determine the quality of each audio source data of the audio source data to be played. Exemplarily, for local storage files, the metadata of the file is parsed or the audio data is directly read to extract audio feature information such as sampling rate, bit depth, and encoding format; for local wireless transmission files, parsing is performed while receiving the data to extract its audio feature information, and the possible data compression or format conversion situations during the wireless transmission process are considered to ensure the accuracy of the obtained feature information; for cloud wireless transmission files, the audio feature information is extracted by analyzing the transmission protocol of the data stream (such as HLS, DASH) or decoding the stream data, and the parameters finally applicable to audio quality evaluation are determined according to the real-time transmission status (such as bitrate adaptive adjustment situation). After determining the audio feature information of each audio source data of the audio source data to be played, through step 120, the quality of each audio source data can be determined according to the audio feature information of each audio source data. For example, according to the preset correspondence between audio feature information and quality level, the quality level of each audio source data is determined, thereby providing a reliable basis for subsequent parsing resource allocation.

[0075] Step 200 includes:

[0076] Step 210: Allocate parsing resources corresponding to their respective qualities for each audio source data of the audio source data to be played;

[0077] Step 220: Based on the parsing resources corresponding to each audio source data, parse each audio source data respectively to determine the lossless parsed audio data corresponding to each audio source data;

[0078] Step 230: Perform mixing processing on the lossless parsed audio data corresponding to all audio source data to determine lossless audio stream data.

[0079] Specifically, based on the quality of each audio source data determined in step 100 for the audio source data to be played, through step 210, parsing resources corresponding (or matching, adapting) to their respective qualities are allocated to each audio source data, so as to ensure that each audio source data can be parsed efficiently and losslessly through the corresponding parsing resources, realizing the reasonable and efficient utilization of the resources of the in-vehicle entertainment system. Through step 220, based on the parsing resources corresponding to each audio source data, each audio source data is parsed respectively, realizing the lossless and efficient parsing of each audio source data, so as to determine (obtain) the lossless parsed audio data corresponding to each audio source data. To ensure that different audio source data (or lossless parsed audio data) of the audio source data to be played that need to be played at the same moment can be smoothly fused and ensure the fidelity of the sound quality, through step 230, the lossless parsed audio data corresponding to each audio source data of the audio source data to be played is mixed to integrate the audio data that needs to be played simultaneously currently, so as to determine (generate) the mixed audio data (denoted as lossless audio stream data). In this way, the determination of the mixed audio data facilitates the subsequent unified processing and transmission of the mixed audio data, improves the subsequent processing efficiency of the mixed audio data, thus improving the response efficiency of the audio source data to be played, ensuring the timeliness of the playback of the audio source data to be played, and improving the user's auditory experience. Exemplarily, lossless parsing includes the recognition of the format of the audio source data, the parsing of the bit rate, the extraction and processing of key parameters such as the sampling rate, etc., to ensure that the audio data can be restored completely and accurately; through the recognition and parsing of these key parameters, without loss of sound quality, it can be ensured that each part of the audio source data can be accurately restored to its original state (or close to the original state), avoiding or reducing data loss and sound quality loss caused by format conversion, bit rate adjustment or other factors.

[0080] In some embodiments, in step 220, parsing each audio source data, and in step 230, performing mixing processing, are used to uniformly adjust the audio data from different sources in terms of channels, volume, frequency, time axis, etc., so as to avoid problems such as sound quality differences or inconsistent playback caused by different audio data sources, and enable the mixing results of all audio source data to obtain consistent and high-quality playback output in subsequent steps. For example, the process of parsing each audio source data in step 220 includes format conversion, sampling rate adjustment, bit depth conversion, etc., to ensure that all lossless parsed audio data has a unified format and strong compatibility to meet subsequent processing requirements; the process of performing mixing processing in step 230 includes channel mixing, volume balancing, frequency correction, time axis synchronization, etc., to ensure the precise matching of different audio source data on the time axis and achieve the best balance in volume and frequency, thereby realizing high-quality lossless audio stream output. Among them, to ensure the realization of lossless parsing, it is necessary to retain the original information of the audio to the greatest extent. Therefore, high-quality conversion methods need to be adopted in the processes of format conversion, sampling rate adjustment, bit depth conversion, etc. For example, in the process of format conversion, lossless compression format conversion can be used to ensure that audio details are not lost; when adjusting the sampling rate, a high-quality resampling algorithm (such as an anti-aliasing filter) can be used to avoid distortion introduced by changes in the sampling rate; when performing bit depth conversion, appropriate quantization methods can be adopted to avoid loss of precision and bit dropping, and ensure the integrity of the audio quality.

[0081] Optionally, after step 200 and before step 300, the audio file parsing method further includes:

[0082] Extracting audio feature information from the lossless audio stream data.

[0083] Considering that multiple audio sources (i.e., lossless parsed audio data) may be synthesized or adjusted in terms of time, frequency, channels, volume, etc. during the mixing process, resulting in changes in the original audio characteristics. In this regard, by extracting audio feature information from the lossless audio stream data obtained after mixing processing, the audio feature information of the lossless audio stream data is determined to ensure effective monitoring of audio characteristic changes; and the extracted audio feature information helps to select a suitable transmission channel for the lossless audio stream data, dynamically adjust processing parameters, optimize playback device adaptation, and ensure the sound quality in real time, etc., to ensure that the final audio experience is of high quality, balanced and natural.

[0084] Among them, the audio feature information includes the channel, sampling rate, bit depth, etc. The channel represents the number of channels of the audio data, such as mono or stereo, or more multi-channel configurations (such as 5.1 channels, etc.); the channel information is used to determine how to process the audio data to ensure that the output audio meets the requirements of the audio playback device. The sampling rate represents the number of times the audio signal is sampled per second, and this information is used to determine how to process the time resolution of the audio data and ensure the playback quality of the audio. The bit depth determines the precision of each sampling point, and the common bit depths are 16 bits, 24 bits, or 32 bits; the higher the bit depth, the larger the dynamic range and precision that the audio data can represent, and the higher the audio quality; by extracting the bit depth information, the audio data can be properly processed to ensure that the sound quality is not lost.

[0085] Based on the audio feature information of the lossless audio stream data, perform channel transmission matching processing on the lossless audio stream data.

[0086] Specifically, based on the audio feature information of the lossless audio stream data, performing channel transmission matching processing on the lossless audio stream data means selecting the most suitable transmission channel or adjusting the transmission method for the lossless audio stream data to ensure that the lossless audio stream data can maintain the best sound quality and stability in the corresponding transmission environment and conditions, optimize the transmission efficiency of the data stream and avoid sound quality loss, so as to achieve efficient transmission and playback of the audio while ensuring the audio quality and enhancing the overall auditory experience of the user.

[0087] Optionally, performing channel transmission matching processing on the lossless audio stream data based on the audio feature information of the lossless audio stream data includes:

[0088] Based on the audio playback device and the preset audio transmission protocol, determine the channels for lossless transmission of the lossless audio stream data; among them, the number of channels is at least one;

[0089] Based on the channels and the audio feature information of the lossless audio stream data, determine the target audio stream data for transmission on each channel.

[0090] Specifically, according to the audio playback device of the in-vehicle entertainment system and the corresponding parameters of the preset audio transmission protocol, determine the channel (audio data transmission channel) that can realize lossless transmission of lossless audio stream data, ensure the stability and reliability of lossless audio stream data when transmitting data through the corresponding channel, and avoid data loss and sound quality degradation during transmission. Among them, the number of channels is at least one, which is determined according to actual conditions, so as to dynamically realize efficient and stable audio data transmission. Exemplarily, according to the audio feature information of the lossless audio stream data and the performance of the audio playback device, the number of transmission channels and bandwidth allocation are intelligently adjusted. When the number of channels of the audio source data is large or the sound quality requirements are high, multiple transmission channels are used for parallel transmission to avoid data bottlenecks and sound quality degradation; when the audio source data is relatively simple, it can be transmitted through a single channel or a small number of channels. In this way, transmission efficiency and rational use of resources are ensured.

[0091] Thereafter, based on the audio feature information of the channel and the lossless audio stream data (such as sampling rate, bit depth, path, etc.), it is determined how to transmit the lossless audio stream data losslessly and efficiently through each channel. Exemplarily, according to the transmission capacity of each channel (such as bandwidth, delay, etc.) and the requirements of the lossless audio stream data (such as the number of channels, data volume, etc.), the lossless audio stream data is disassembled, allocated and scheduled, so as to determine the appropriate (or optimal) audio stream data (recorded as target audio stream data) for transmission on each channel.

[0092] Exemplarily, the preset audio transmission protocol includes one based on A2B (Automotive Audio Bus, a vehicle audio bus technology) or Ethernet communication protocol, etc., to support high bandwidth and high-quality transmission, to ensure that lossless audio stream data will not suffer sound quality loss due to compression or format conversion during transmission, and to avoid bottlenecks or delays in audio data transmission, thereby ensuring that the audio content ultimately played through the audio playback device maintains its original quality and can be perfectly presented, thereby enhancing the user's auditory experience.

[0093] Step 300 includes:

[0094] The corresponding target audio stream data is transmitted to the audio playback device through each channel for playback.

[0095] Specifically, the target audio stream data corresponding to each channel is transmitted to the audio playback device of the in-vehicle entertainment system through each channel for playback, so as to ensure the stability and reliability of the lossless audio stream data during data transmission through the corresponding channel, avoid data loss and sound quality degradation during the transmission process, and realize lossless transmission and playback of the target audio stream data.

[0096] Optionally, based on the audio playback device and a preset audio transmission protocol, determine the channels for lossless transmission of lossless audio stream data, including:

[0097] Based on the quantity and type of audio playback devices, and the preset parameters of the preset audio transmission protocol, determine the configuration parameters of the channels corresponding to the audio playback devices.

[0098] Considering the playback requirements of the audio playback devices and the impact of the preset audio transmission protocol on data transmission, based on the quantity and type of audio playback devices, and the preset parameters of the preset audio transmission protocol, determine the configuration parameters of the channels corresponding to each speaker of the audio playback devices. Exemplarily, according to the quantity and type of the audio playback devices (such as the channel type, power amplifier power, etc.) in the in-vehicle entertainment system that have been obtained, and the preset parameters of the preset audio transmission protocol (such as the sampling rate, bit depth, etc. of the supported audio data transmission channels), allocate the most suitable audio data transmission channels (i.e., channels) to each (or each type of) speaker of the audio playback devices.

[0099] In addition, based on the preset parameters of the audio transmission protocol, ensure that the configuration parameters of each transmission channel (such as the number of channels, and the maximum supported transmission bandwidth, latency, transmission rate, etc.) match the requirements of each speaker of the audio playback device.

[0100] Based on the channels and the audio feature information of the lossless audio stream data, determine the target audio stream data for transmission on each channel, including:

[0101] Based on the audio feature information and the configuration parameters of the channels, perform disassembling processing on the lossless audio stream data to determine the target audio stream data for transmission on each channel.

[0102] Specifically, according to parameters such as the audio feature information (such as the audio path, sampling rate, bit depth, etc.) and the configuration parameters of the channels, perform disassembling processing on the lossless audio stream data to be played, disassemble the lossless audio stream data into different target audio stream data for transmission on different channels, and each of the obtained target audio stream data after disassembly will be accurately allocated by each channel to the corresponding speaker of the audio playback device, so as to ensure that each speaker receives the target audio stream data suitable for its playback ability, thereby optimizing the audio performance of the in-vehicle entertainment system and enhancing the user's auditory experience on the premise of ensuring the lossless transmission of the lossless audio stream data (data is complete without loss).

[0103] Exemplarily, for an audio playback device adopting stereo, the lossless audio stream data is disassembled into two target audio stream data respectively corresponding to the left and right channels, and is respectively transmitted to the corresponding left and right speakers through the corresponding channels; for an audio playback device adopting multi-channel (such as 5.1 or 7.1 channels), each speaker of the audio playback device will receive the target audio stream data matching its position and function through the corresponding channel, ensuring the perfect restoration of spatial positioning and sound quality, effectively improving the audio playback quality, enabling the in-vehicle entertainment system to provide a high-fidelity and lossless audio experience, and at the same time avoiding the confusion or distortion of audio signals and enhancing the user's auditory perception.

[0104] Exemplarily, taking an in-vehicle entertainment system using the Android system as an example, it can analyze and disassemble each audio stream in the mixed audio data based on AudioHAL (Audio Hardware Abstraction Layer, which is an abstraction layer for audio hardware in the Android operating system, enabling the operating system to interact with various different audio hardware devices), and perform channel processing on the audio file (i.e., disassemble and process the lossless audio stream data). Specifically, AudioHAL obtains the mixed audio data, sends it to the codec for extracting source information (such as audio feature information), and obtains information related to the quality of the audio file, such as the number of channels (paths), sampling rate (Khz), bit depth (bit), etc.; then, information extraction (decoding) is performed on the number of channels, sampling rate, bit depth, etc., and the corresponding high-quality audio files (i.e., lossless audio stream data) are extracted. For example, high-quality audio files with 2.0 channels (paths), 192KHz (sampling rate), and 24bit (bit depth) are extracted; then, based on the preset audio transmission protocol, the requirements of the preset audio transmission protocol for path transmission (such as the number of supported channels) are obtained, and combined with the parameter information of the audio playback device (such as the number of speakers, power amplifier power, etc.), the channel corresponding to each speaker and the configuration parameters of the channel are determined, and it is ensured that the determined configuration parameters of the channel match the requirements of the audio playback device and the preset audio transmission protocol. For example, based on sampling rate matching, with the support of the A2B or Ethernet bus link (such as the highest support for a 48KHz sampling rate), an audio file with 1.0 channel and 48KHz sampling rate can be transmitted through a 48KHz channel; an audio file with 2.0 channels and 96KHz sampling rate can be transmitted through 2 * 2 = 4 48KHz audio channels because the increase in the number of channels will double the number of channels. Combining bit depth matching, with the support of the A2B or Ethernet bus link (such as the highest support for a 48KHz sampling rate and 16bits bit depth), the 2.0-channel 192KHz 24bit lossless audio stream data is disassembled (or matched, which includes sampling rate matching and bit depth matching), and the lossless audio stream data can be matched to 8 48KHz audio paths, and the sampling rate of each audio channel is 48KHz and the bit depth is 16bit; the 2.0-channel, 48KHz, 24bit lossless audio stream data is matched to 4 48KHz, 16bit audio channels (wherein, since 24bit audio data needs to be split into high 8bit and low 16bit, the 24bit audio data is transmitted through two data channels of high 8bit and low 16bit). In this way, the lossless audio stream data is disassembled according to audio features (such as the number of channels, sampling rate, bit depth, etc.) to ensure the matching between each channel and the speaker, etc.

[0105] Optionally, before step 100, the audio file parsing method further includes:

[0106] In response to an operation instruction regarding audio playback, update the audio source data corresponding to the operation instruction to the audio source data to be played.

[0107] Specifically, the determination of the audio source data to be played and its playback through the audio playback device of the in-vehicle entertainment system are responses from the in-vehicle entertainment system to the corresponding operations of the vehicle user. When the user performs corresponding operations on the in-vehicle entertainment system or a device communicatively connected to the in-vehicle entertainment system, if an operation instruction regarding audio playback is generated due to the operation, then respond to the operation instruction and update the audio source data corresponding to the operation instruction to the audio source data to be played for playback. Exemplarily, if the user operates the in-vehicle entertainment system through an interactive method such as pressing a button or touching, and selects a specific audio file or audio source (from in-vehicle storage, a Bluetooth-connected device, or a cloud music platform) for playback, this operation will trigger a corresponding operation instruction. In response to this instruction, update the corresponding audio file to the audio source data to be played and perform subsequent steps to achieve the playback of the corresponding audio source data. In some embodiments, whenever there is an update to the audio source data to be played, at least process the updated audio source data to be played through steps 100 - 300 to ensure that different audio source data can be balanced and fused in terms of volume, frequency, timing, etc., to generate high-quality mixed audio data and ensure its consistency and sound quality stability during subsequent transmission and playback. In this way, ensure that each update of the audio source data to be played can obtain efficient and lossless processing and provide a high-quality audio experience to enhance the user's auditory perception.

[0108] Exemplarily, in this embodiment, the acquired audio source data to be played for the in-vehicle entertainment system is transmitted to the system layer (AudioFlinger) to be mixed by AudioFlinger for different audio source data to be played. Among them, the system layer is also used for Track (audio track or audio stream) preprocessing, that is, updating the active audio stream to be processed or output currently into the audio source data to be played (or creating it as the audio source data to be played). For example, based on the prepareTracks_l function (which is a function inside AudioFlinger for audio stream preparation work), AudioFlinger will update the active audio stream into the audio source data to be played, or create it as the audio source data to be played according to needs. This process ensures that multiple audio streams are properly processed during mixing and can maintain the integrity and consistency of the audio quality during subsequent playback. And the system layer can be based on the threadLoop_mix function (which is a function inside AudioFlinger for processing audio mixing). AudioFlinger mixes (or merges) all the active audio streams into a buffer (or called a temporary storage area) for subsequent unified output processing.

[0109] Optionally, transmitting the corresponding target audio stream data to the audio playback device through each channel for playback includes:

[0110] Transmitting the corresponding target audio stream data to the audio playback device through each channel for digital-to-analog conversion processing to generate an analog audio signal corresponding to the target audio stream data;

[0111] Outputting the analog audio signal to the speaker of the corresponding audio playback device for playback.

[0112] Transmitting each target audio stream data to the corresponding speaker of the audio playback device of the in-vehicle entertainment system through the corresponding channel for playback. Specifically, transmitting the corresponding target audio stream data to the audio playback device of the in-vehicle entertainment system through each channel. In the audio playback device, digital-to-analog conversion (DAC) processing is performed on the target audio stream data of the digital audio signal type to generate the corresponding analog audio signal; each analog audio signal will be further transmitted to the corresponding speaker in the in-vehicle entertainment system for output. Exemplarily, each speaker of the audio playback device of the in-vehicle entertainment system plays the corresponding analog audio signal according to its specific function (such as left, right, rear or surround sound channels, etc.), and finally generates sound through the vibration of the speaker to form a complete audio playback effect, ensuring that users can enjoy high-quality audio experience in the in-vehicle environment and enhancing the users' auditory feeling.

[0113] Optionally, for the matching of the target audio stream data with the corresponding speaker, the preset up / down channel position correspondence table on the bus can be combined, and according to the mapping relationship between the channels and the speakers in this table, the target audio stream data is allocated to its corresponding channel (or frequency channel), that is, the up / down channels for audio signal transmission are determined, and the target audio stream data corresponding to each channel is transmitted to the corresponding speaker for playback, so as to achieve accurate sound output and channel matching.

[0114] Combined with Figure 4 As shown in

[0115] A sound source quality determination unit, configured to determine the quality of the acquired audio source data to be played for the in-vehicle entertainment system;

[0116] An audio lossless parsing unit, configured to allocate parsing resources for the audio source data to be played based on the quality, perform lossless parsing on the played audio source data based on the parsing resources, and determine lossless audio stream data;

[0117] An audio lossless transmission unit, configured to losslessly transmit the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback.

[0118] The audio file parsing device of this embodiment is used to implement the above-mentioned audio file parsing method, and its advantages compared with the prior art are the same as those of the above-mentioned audio file parsing method compared with the prior art, which will not be elaborated here.

[0119] Optionally, the audio file parsing device further includes a data acquisition unit, configured to acquire the audio source data to be played for the in-vehicle entertainment system.

[0120] Combined with Figure 5 As shown in

[0121] A memory 501, configured to store a computer program;

[0122] A processor 502, configured to implement the above-mentioned audio file parsing method when executing the computer program.

[0123] Or, a vehicle includes a memory 501 and a processor 502 coupled to the memory 501; the memory 501 is configured to store a computer program; the processor 502 is configured to perform the following operations when executing the computer program:

[0124] Determine the quality of the acquired audio source data to be played for the in-vehicle entertainment system;

[0125] Allocate parsing resources for the audio source data to be played based on the quality, perform lossless parsing on the played audio source data based on the parsing resources, and determine the lossless audio stream data;

[0126] Transmit the lossless audio stream data losslessly to the audio playback device of the in-vehicle entertainment system for playback.

[0127] The vehicle in this embodiment can be used to implement the above audio file parsing method. Its advantages compared with the prior art are the same as those of the above audio file parsing method compared with the prior art, and will not be elaborated here.

[0128] Another embodiment of the present invention provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is read and run by a processor, the above audio file parsing method is implemented.

[0129] Or, a non-volatile computer-readable storage medium stores a computer program on the storage medium. When the computer program is executed by a processor, the processor performs the following operations:

[0130] Determine the quality of the audio source data to be played obtained for the in-vehicle entertainment system;

[0131] Allocate parsing resources for the audio source data to be played based on the quality, perform lossless parsing on the played audio source data based on the parsing resources, and determine the lossless audio stream data;

[0132] Transmit the lossless audio stream data losslessly to the audio playback device of the in-vehicle entertainment system for playback.

[0133] Essentially, or the part that contributes to the prior art, or all or part of the technical solution of the present invention can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method of the embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, external hard drives, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0134] The computer-readable storage medium in this embodiment can be used to implement the above audio file parsing method. Its advantages compared with the prior art are the same as those of the above audio file parsing method compared with the prior art, and will not be elaborated here.

[0135] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will all fall within the protection scope of the present invention.

Claims

1. An audio file parsing method, characterized in that, Based on the in-vehicle entertainment system, the audio file parsing method includes: Determine the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system; Allocate parsing resources for the to-be-played audio source data based on the quality, and perform lossless parsing on the played audio source data based on the parsing resources to determine lossless audio stream data; Losslessly transmit the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback.

2. The audio file parsing method according to claim 1, wherein The determining the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system includes: Extract audio feature information from the to-be-played audio source data; wherein, the audio feature information includes sampling rate and bit depth; Determine the quality of the to-be-played audio source data according to the audio feature information.

3. The audio file parsing method according to claim 2, wherein The to-be-played audio source data includes at least one of audio source data from local storage, the audio source data from local wireless transmission, and the audio source data from cloud wireless transmission; The extracting audio feature information from the to-be-played audio source data includes: Extract audio feature information from each of the audio source data of the to-be-played audio source data; The determining the quality of the to-be-played audio source data according to the audio feature information includes: Determine the quality of each of the audio source data of the to-be-played audio source data according to the audio feature information of each of the audio source data of the to-be-played audio source data; The allocating parsing resources for the to-be-played audio source data based on the quality, and performing lossless parsing on the played audio source data based on the parsing resources to determine lossless audio stream data includes: Allocate parsing resources corresponding to their respective qualities for each of the audio source data of the to-be-played audio source data; Based on the parsing resources corresponding to each of the audio source data, respectively parse each of the audio source data to determine the lossless parsed audio data corresponding to each of the audio source data; Perform mixing processing on the lossless parsed audio data corresponding to all the audio source data to determine the lossless audio stream data.

4. The audio file parsing method according to claim 2 or 3, wherein After determining the lossless audio stream data and before losslessly transmitting the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback, the audio file parsing method further includes: Extract the audio feature information from the lossless audio stream data; Perform path transmission matching processing on the lossless audio stream data based on the audio feature information of the lossless audio stream data.

5. The audio file parsing method according to claim 4, wherein The performing path transmission matching processing on the lossless audio stream data based on the audio feature information of the lossless audio stream data includes: Based on the audio playback device and a preset audio transmission protocol, determine the channel for lossless transmission of the lossless audio stream data; wherein, the number of channels is at least one; Based on the channel and the audio feature information of the lossless audio stream data, determine the target audio stream data for transmission on each channel; The losslessly transmitting the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback includes: Transmit the corresponding target audio stream data to the audio playback device through each of the channels for playback.

6. The audio file parsing method according to claim 5, wherein, The determining of the channels for lossless transmission of the lossless audio stream data based on the audio playback device and a preset audio transmission protocol includes; Based on the quantity and type of the audio playback devices, and the preset parameters of the preset audio transmission protocol, determine the configuration parameters of the channels corresponding to the audio playback devices; The determining of the target audio stream data for transmission through each of the channels based on the channels and the audio feature information of the lossless audio stream data includes: Based on the audio feature information and the configuration parameters of the channels, perform disassembly processing on the lossless audio stream data to determine the target audio stream data for transmission through each of the channels.

7. The audio file parsing method according to claim 5 or 6, characterized in that, The transmitting of the corresponding target audio stream data to the audio playback device through each of the channels for playback includes: Transmit the corresponding target audio stream data to the audio playback device through each of the channels for digital-to-analog conversion processing to generate an analog audio signal corresponding to the target audio stream data; Output the analog audio signal to the speaker of the corresponding audio playback device for playback.

8. The audio file parsing method according to claim 3, wherein, Before determining the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system, the audio file parsing method further includes: In response to an operation instruction regarding audio playback, update the audio source data corresponding to the operation instruction to the to-be-played audio source data.

9. An audio file parsing device, characterized in that, Based on the in-vehicle entertainment system, the audio file parsing device includes: A sound source quality determination unit for determining the quality of the to-be-played audio source data obtained for the in-vehicle entertainment system; An audio lossless parsing unit for allocating parsing resources to the to-be-played audio source data based on the quality, and performing lossless parsing on the played audio source data based on the parsing resources to determine lossless audio stream data; An audio lossless transmission unit for losslessly transmitting the lossless audio stream data to the audio playback device of the in-vehicle entertainment system for playback.

10. A vehicle, characterized in that, Includes a memory and a processor; The memory is used for storing computer programs; The processor, when executing the computer program, is used to implement the audio file parsing method according to any one of claims 1-8.