Audio player control method and system, storage medium and vehicle

By adjusting the loudness of the audio data to be played in the audio player to get it close to the target loudness, the problem of unstable audio data loudness under streaming loading mode is solved, and the stability of audio data loudness and efficient utilization of resources are achieved.

CN120066446APending Publication Date: 2025-05-30GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510070485.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When the audio player uses streaming loading to play audio data, the loudness may occur.

Method used

By obtaining the target loudness and the audio data to be played, the loudness of the audio data is adjusted so that the difference between it and the target loudness is smaller than the difference between the original audio data and the target loudness, and the adjusted audio data is played.

Benefits of technology

The audio data loudness of the audio player is realized, reducing the number of times the vehicle adjusts the audio data, saving the computing resources of the on-board computer, and improving the availability of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066446A_ABST
    Figure CN120066446A_ABST
Patent Text Reader

Abstract

The invention provides an audio player control method and system, a storage medium and a vehicle, and belongs to the technical field of vehicles, and the audio player control method comprises the steps: obtaining target loudness and to-be-played first audio data in a storage module; based on the target loudness, adjusting the loudness of the first audio data to obtain second audio data, the difference value between the loudness of the second audio data and the target loudness being smaller than the difference value between the loudness of the first audio data and the target loudness; and playing the second audio data. After the first audio data is acquired, the loudness of the first audio data is adjusted to obtain the second audio data, and then the second audio data is played, so that the loudness of the second audio data is closer to the target loudness than the first audio data, the variation amplitude of the loudness of sound played by the audio player is reduced, and the user experience is improved. And finally, the loudness of the audio data played by the audio player is kept stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicles, and more particularly, to a control method, system, storage medium, and vehicle for an audio player. Background Art

[0002] An audio player is a device for playing audio data. Before playing audio data, the audio player needs to load the audio data first. Common loading methods include streaming loading and preloading. Streaming loading means that the audio player downloads audio data from a cloud server or other external devices while playing the audio data, and preloading means that the audio player plays the audio data after downloading all the audio data.

[0003] In the related art, when the audio player uses the streaming loading method to play audio data, the loudness of the audio data played by the audio player may vary greatly. Summary of the Invention

[0004] Based on this, the present application provides a control method, system, storage medium, and vehicle for an audio player to solve the problem of how to keep the loudness of the audio data played by the audio player stable. In a first aspect of an embodiment of the present application, a control method for an audio player is provided. The audio player is connected to a storage module, and the method includes: Obtaining a target loudness and first audio data to be played in the storage module; Adjusting the loudness of the first audio data based on the target loudness to obtain second audio data, where the difference between the loudness of the second audio data and the target loudness is less than the difference between the loudness of the first audio data and the target loudness; Playing the second audio data.

[0005] In some exemplary embodiments, before adjusting the loudness of the first audio data based on the target loudness to obtain second audio data, the method further includes: Determining whether the difference between the loudness of the first audio data and the target loudness is greater than a preset loudness; Adjusting the loudness of the first audio data based on the target loudness to obtain second audio data includes: When the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, adjusting the loudness of the first audio data based on the target loudness to obtain second audio data.

[0006] In this embodiment, when the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, the loudness of the first audio data is adjusted, which can reduce the number of times the vehicle adjusts the first audio data, thereby saving the computing resources of the in-vehicle computer and improving the availability of vehicle resources.

[0007] In some exemplary embodiments, the step of obtaining the loudness of the first audio data includes: Determine the loudness of multiple time frames in the first audio data respectively; Determine the average value of the loudness of multiple time frames as the loudness of the first audio data.

[0008] In this embodiment, the loudness of the first audio data is determined by the average value of the loudness of multiple time frames in the first audio data, which can improve the accuracy of determining the loudness of the first audio data, thereby ensuring the accuracy of audio player control.

[0009] In some exemplary embodiments, adjusting the loudness of the first audio data based on the target loudness to obtain second audio data includes: Judge whether the expected playing duration of the first audio data is greater than the preset duration; When the expected playing duration of the first audio data is less than or equal to the preset duration, adjust the loudness of all data in the first audio data based on the target loudness to obtain second audio data; When the expected playing duration of the first audio data is greater than the preset duration, extract the third audio data with the earliest playing order from the first audio data, and adjust the loudness of the third audio data based on the target loudness to obtain the second audio data.

[0010] In this embodiment, when the expected playing duration of the first audio data is less than or equal to the preset duration, the loudness of all data in the first audio data is adjusted, and when the expected playing duration of the first audio data is greater than the preset duration, only the loudness of the third audio data extracted from the first audio data is adjusted, thereby improving the working efficiency of the audio controller.

[0011] In some exemplary embodiments, the step of obtaining the target loudness includes: Obtain the loudness of the sound in the environment where the audio player is located; Determine the target loudness based on the loudness of the sound in the environment.

[0012] Based on the loudness of the sound in the environment where the audio player is located, this embodiment determines the target loudness, so that the loudness of the second audio data can vary with the different environments where the audio player is located, thereby improving the user's perception of the sound played by the audio player and enhancing the user's auditory experience.

[0013] In some exemplary embodiments, before obtaining the target loudness and the first audio data to be played in the storage module, the method further includes: Determine whether the download speed of the first audio data is less than a first preset speed; The obtaining of the target loudness and the first audio data in the storage module includes: In the case where the download speed is less than the first preset speed, obtain the target loudness and the first audio data.

[0014] This embodiment determines whether directly playing the first audio data by the audio player may cause the user to feel that the sound is suddenly loud or small based on the magnitude relationship between the download speed of the first audio data and the first preset speed. Thus, when directly playing the first audio data by the audio player may cause the user to feel that the sound is suddenly loud or small, the loudness of the first audio data is adjusted, thereby reducing the use of the computing resources of the in-vehicle computer and improving the working efficiency of the in-vehicle computer.

[0015] In some exemplary embodiments, before obtaining the target loudness and the first audio data in the storage module, the method further includes: Determine whether the storage module is in a current-limiting mode, and the storage module downloads data at a speed less than a second preset speed in the current-limiting mode; The obtaining of the target loudness and the first audio data in the storage module includes: In the case where the storage module is not in the current-limiting mode, obtain the target loudness and the first audio data.

[0016] This embodiment adjusts the loudness of the first audio data when the storage module is not in the current-limiting mode, thereby improving the effectiveness of the audio controller in controlling the audio player.

[0017] In a second aspect of the embodiments of the present application, there is provided a control system for an audio player, the audio player is connected to a storage module, and the control system includes: An obtaining module, configured to obtain a target loudness and the first audio data to be played in the storage module; An adjustment module, configured to adjust the loudness of the first audio data based on the target loudness to obtain second audio data, wherein the difference between the loudness of the second audio data and the target loudness is less than the difference between the loudness of the first audio data and the target loudness; A playback module, configured to play the second audio data.

[0018] In some exemplary embodiments, the adjustment module is further configured to determine whether the difference between the loudness of the first audio data and the target loudness is greater than a preset loudness; when the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, adjust the loudness of the first audio data based on the target loudness to obtain second audio data.

[0019] In some exemplary embodiments, the acquisition module is further configured to respectively determine the loudness of multiple time frames in the first audio data; and determine the average value of the loudness of the multiple time frames as the loudness of the first audio data.

[0020] In some exemplary embodiments, the adjustment module is further configured to determine whether the expected playback duration of the first audio data is greater than a preset duration; when the expected playback duration of the first audio data is greater than the preset duration, extract the third audio data with the earliest playback order from the first audio data, and adjust the loudness of the third audio data based on the target loudness to obtain the second audio data.

[0021] In some exemplary embodiments, the acquisition module is further configured to acquire the loudness of the sound in the environment where the audio player is located; and determine the target loudness based on the loudness of the sound in the environment.

[0022] In some exemplary embodiments, the acquisition module is further configured to determine whether the download speed of the first audio data is less than a first preset speed; when the download speed is less than the first preset speed, acquire the target loudness and the first audio data.

[0023] In some exemplary embodiments, the acquisition module is further configured to determine whether the storage module is in a flow-limiting mode, and the speed of the storage module for downloading data in the flow-limiting mode is less than a second preset speed; when the storage module is not in the flow-limiting mode, acquire the target loudness and the first audio data.

[0024] In a third aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the control method of the audio player described in the second aspect of the present application are implemented.

[0025] In the fourth aspect of the embodiments of the present application, a vehicle is provided, which includes the control system of the audio player described in the second aspect of the embodiments of the present application, or includes a control module, and the control module is used to implement the steps of the control method of the audio player described in the first aspect of the embodiments of the application.

[0026] The present application provides a control method, system, storage medium and vehicle for an audio player. The method includes: obtaining a target loudness and first audio data to be played in the storage module; adjusting the loudness of the first audio data based on the target loudness to obtain second audio data, and the difference between the loudness of the second audio data and the target loudness is less than the difference between the loudness of the first audio data and the target loudness; playing the second audio data.

[0027] After the audio player in the present application obtains the first audio data from the storage module, it first adjusts the loudness of the first audio data based on the target loudness to obtain second audio data with a difference between the loudness and the target loudness less than the difference between the loudness of the first audio data and the target loudness, and then plays the second audio data. After obtaining the first audio data in the present application, it first adjusts the loudness of the first audio data to obtain second audio data, and then plays the second audio data, so that the loudness of the second audio data is closer to the target loudness than the first audio data, so as to maintain a relatively stable state, and finally achieve the technical effect of keeping the loudness of the audio data played by the audio player stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0029] Figure 1 It is a flowchart of the steps of a control method for an audio player provided by an embodiment of the present application; Figure 2 It is a flowchart of the steps of a method for obtaining the loudness of first audio data provided by an embodiment of the present application; Figure 3 It is a flowchart of the steps of a method for adjusting the loudness of first audio data provided by an embodiment of the present application; Figure 4 It is a flowchart of the steps of a method for obtaining a target loudness provided by an embodiment of the present application; Figure 5 It is a flowchart of a control method for an audio player provided by an embodiment of the present application; Figure 6 It is a schematic structural diagram of a control system of an audio player provided by an embodiment of the present application. Specific implementation manners

[0030] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0031] An audio player is a device for playing audio data. Before playing audio data, the audio player needs to load the audio data first. Common loading methods include streaming loading and preloading. Streaming loading means that the audio player downloads audio data from a cloud server or other external devices while playing the audio data. Preloading means that the audio player plays the audio data after downloading all the audio data.

[0032] In the related art, when the audio player uses the streaming loading method to play audio data, due to factors such as network traffic, the audio data may have a problem of insufficient bit rate, which may lead to a decrease in the loudness of the audio data, resulting in a situation where the loudness of the audio data played by the audio player is sometimes large and sometimes small.

[0033] Based on this, to solve the problem of how to keep the loudness of the audio data played by the audio player stable, the present application provides a control method, system, storage medium and vehicle for an audio player. After the audio player in the present application obtains the first audio data from the storage module, it first adjusts the loudness of the first audio data based on the target loudness to obtain the second audio data whose difference between the loudness and the target loudness is less than the difference between the loudness of the first audio data and the target loudness, and then plays the second audio data. After the present application obtains the first audio data, it first adjusts the loudness of the first audio data to obtain the second audio data, and then plays the second audio data, so that the loudness of the second audio data is closer to the target loudness than the first audio data, so as to maintain a relatively stable state, and finally achieve the technical effect of keeping the loudness of the audio data played by the audio player stable. The specific method is as follows: A first aspect of the present application proposes an embodiment, as Figure 1 shown in the step diagram of a control method of an audio player. The method is applied to the in-vehicle computer of a vehicle. The in-vehicle computer includes an audio player, an audio controller and a storage module. The audio player is respectively connected to the audio controller and the storage module. The method described in the present application is specifically applied to the audio controller of the in-vehicle computer.

[0034] The audio player can specifically be a software audio player or a hardware audio player. A software audio player can be understood as a program installed on a personal computer, smartphone, tablet, or in-vehicle computer. A hardware audio player is a physical device specifically designed to play audio data.

[0035] The storage module can specifically be the memory module or cache module of the in-vehicle computer. The storage module is connected to the cloud server and is used to download the first audio data from the cloud server and store it. The information in the first audio data can be a piece of music, natural sound, or speech.

[0036] The main steps of the control method described in this application include: Step S101, obtain the target loudness and the first audio data to be played in the storage module.

[0037] Loudness refers to the human ear's perception of the intensity of sound, and can also be called volume, which is used to describe the size and strength of sound. The larger the value of loudness, the stronger the intensity of the sound; the smaller the value of loudness, the weaker the intensity of the sound. The target loudness can be set by the user himself, or determined by the vehicle based on some operating condition parameters or environmental information.

[0038] The first audio data in the storage module is data that the storage module has previously obtained from the cloud server or other devices and stored in it. The audio player can obtain the first audio data from the storage module through a communication transmission channel connected to the storage module.

[0039] Step S102, based on the target loudness, adjust the loudness of the first audio data to obtain the second audio data.

[0040] The difference between the loudness of the second audio data and the target loudness is smaller than the difference between the loudness of the first audio data and the target loudness.

[0041] The loudness of audio data is mainly determined by its signal amplitude, frequency distribution, and dynamic range. The signal amplitude directly affects the loudness when the audio data is played. The higher the peak and average values of the signal amplitude, the greater the loudness when the audio data is played; the lower the peak and average values of the signal amplitude, the smaller the loudness when the audio data is played.

[0042] At the same time, because the human ear's perception of sounds with different frequencies is non-linear, sounds in the middle frequency band are usually more easily perceived as loud, while sounds in the high frequency band and low frequency band are not easily perceived as loud. Therefore, the loudness of audio data is also affected by its frequency distribution. The more components in the middle frequency band of the audio data, the higher its loudness.

[0043] In addition, the dynamic range of the audio data determines the loudness fluctuation of the sound. A larger dynamic range will cause a greater change in loudness between different segments, so the dynamic range will also affect the loudness of the audio data.

[0044] From this, it can be seen that to adjust the loudness of the first audio data, specifically, parameters such as the signal amplitude, frequency distribution, and dynamic range of the first audio data can be adjusted. Thus, by changing parameters such as the signal amplitude, frequency distribution, and dynamic range, the loudness of the first audio data can be changed. In an optional implementation manner, only the signal amplitude of the first audio data can be adjusted, or the signal amplitude, frequency distribution, and dynamic range can be adjusted simultaneously.

[0045] For example, when the target loudness is 40 LU, if the loudness of the first audio data is 20 LU, then the difference between the loudness of the first audio data and the target loudness is 20 LU. Thus, based on the target loudness, after adjusting the loudness of the first audio data, the difference between the loudness of the second audio data obtained and the target loudness can be 10 LU, that is, the loudness of the second audio data is 30 LU; if the loudness of the first audio data is 10 LU, then the difference between the loudness of the first audio data and the target loudness is 30 LU. Thus, based on the target loudness, after adjusting the loudness of the first audio data, the difference between the loudness of the second audio data obtained and the target loudness can be 20 LU, that is, the loudness of the second audio data is 20 LU. Therefore, regardless of the value of the loudness of the first audio data, the loudness of the second audio data obtained after the adjustment in step S102 can be closer to the target loudness than the first audio data, thereby improving the stability level of the sound loudness of the audio player.

[0046] It should be noted that the loudness described in the technical solution of this application can be the integrated loudness specified in the EBU (European Broadcasting Union) R 128 standard. The integrated loudness refers to the average loudness of the entire program or audio segment and can be calculated based on the long-term average value of the entire audio content. Among them, the EBU R 128 standard is an international standard proposed by the European Broadcasting Union for audio loudness measurement and standardization. The main purpose of this standard is to provide a unified method for measuring audio loudness to solve the problem of inconsistent hearing caused by large differences in the loudness of broadcast content.

[0047] Step S103, play the second audio data.

[0048] After obtaining the second audio data, the audio player decodes the second audio data according to the encoding format of the second audio data through its built-in decoder, so as to restore the original PCM (Pulse Code Modulation) data stream. Then, the audio player processes the PCM data stream through its built-in DSP (Digital Signal Processor). The processed PCM data stream is sent to a DAC (Digital-to-Analog Converter) to convert the digital signal into an analog signal, and further sends the analog signal to output devices such as speakers or headphones. Finally, the drive unit in the speaker or headphone converts the analog signal into a sound wave that can be perceived by the human ear, realizing the playback of the second audio data.

[0049] In this embodiment, after the audio player obtains the first audio data from the storage module, it first adjusts the loudness of the first audio data based on the target loudness to obtain the second audio data whose difference between the loudness and the target loudness is less than the difference between the loudness of the first audio data and the target loudness, and then plays the second audio data. In this embodiment, after obtaining the first audio data, the loudness of the first audio data is first adjusted to obtain the second audio data, and then the second audio data is played, so that the loudness of the second audio data is closer to the target loudness than the first audio data, so as to maintain a relatively stable state, and finally achieve the technical effect of keeping the loudness of the audio data played by the audio player stable.

[0050] In some exemplary embodiments, before adjusting the loudness of the first audio data based on the target loudness to obtain the second audio data in step S102, the method further includes: Step S104, determining whether the difference between the loudness of the first audio data and the target loudness is greater than a preset loudness.

[0051] Step S102, adjusting the loudness of the first audio data based on the target loudness to obtain the second audio data, which can be specifically implemented in the following manner: In the case where the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, adjust the loudness of the first audio data based on the target loudness to obtain the second audio data.

[0052] When the difference between the loudness of the first audio data and the target loudness is large, it indicates that if the audio player directly plays the first audio data, the user will feel that the sound is sometimes loud and sometimes soft. When the difference between the loudness of the first audio data and the target loudness is small, it indicates that if the audio player directly plays the first audio data, the user will not feel that the sound is sometimes loud and sometimes soft.

[0053] Therefore, by determining whether the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, it is possible to predict whether the user will feel that the sound is sometimes loud and sometimes soft when the audio player plays the first audio data. When the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, it indicates that the user will feel that the sound is sometimes loud and sometimes soft. Furthermore, based on the target loudness, the loudness of the first audio data should be adjusted to obtain the second audio data. When the difference between the loudness of the first audio data and the target loudness is less than or equal to the preset loudness, it indicates that the user will not feel that the sound is sometimes loud and sometimes soft. Therefore, the first audio data can be directly played, or in order to further improve the stability of the sound, the loudness of the first audio data can also be adjusted.

[0054] In an alternative embodiment, the preset loudness can be 6LU.

[0055] In this embodiment, the loudness of the first audio data is adjusted only when the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, which can reduce the number of times the vehicle adjusts the first audio data, thereby saving the computing resources of the in-vehicle computer and improving the available degree of resources of the vehicle.

[0056] In some exemplary embodiments, referring to Figure 2 the method step diagram for obtaining the loudness of the first audio data shown, the steps for obtaining the loudness of the first audio data are as follows: Step S11, respectively determine the loudness of multiple time frames in the first audio data.

[0057] Step S12, determine the average value of the loudness of multiple time frames as the loudness of the first audio data.

[0058] A time frame of audio data refers to the segmentation of audio data in time and is the basic unit in audio processing. Usually, the data volume between 2.5 ms and 60 ms is taken as one time frame of audio data. In an alternative embodiment, the loudness of a time frame can be determined by the amplitude of the sound information in the time frame.

[0059] In this embodiment, the loudness of the first audio data is determined by the average value of the loudness of multiple time frames in the first audio data, which can improve the accuracy of determining the loudness of the first audio data, thereby ensuring the accuracy of audio player control.

[0060] In some exemplary embodiments, FIG. 3 shows a flowchart of a method for adjusting the loudness of first audio data. Adjusting the loudness of the first audio data based on the target loudness to obtain second audio data in step S102 specifically includes the following steps: Step S21, determine whether the expected playback duration of the first audio data is greater than a preset duration.

[0061] If the expected playback duration of the first audio data is less than or equal to the preset duration, proceed to step S22; if the expected playback duration of the first audio data is greater than the preset duration, proceed to step S23.

[0062] Step S22, adjust the loudness of all data in the first audio data based on the target loudness to obtain second audio data.

[0063] Step S23, extract third audio data from the first audio data, and adjust the loudness of the third audio data based on the target loudness to obtain the second audio data.

[0064] The expected playback duration of the first audio data refers to the time length that the first audio data lasts under normal playback conditions, usually expressed in seconds or minutes. The longer the expected playback duration of the first audio data, the greater the amount of data to be adjusted when the audio controller adjusts the first audio data; the shorter the expected playback duration of the first audio data, the smaller the amount of data to be adjusted when the audio controller adjusts the first audio data.

[0065] At the same time, the longer the expected playback duration of the first audio data, the higher the possibility that the user will interrupt the playback during the playback of the audio player. If the user interrupts the playback during the playback of the audio player, the previous adjustment actions of the audio controller for the first audio data will lose their meaning, reducing the working efficiency of the audio controller.

[0066] Taking the preset duration as 30 seconds as an example, this embodiment is illustrated. After obtaining the first audio data, first determine the expected playback duration of the first audio data. If the expected playback duration of the first audio data is 40 seconds, the first 30 seconds of the first audio data can be intercepted as the third audio data, and then the loudness of the third audio data is adjusted based on the target loudness to obtain the second audio data. If the expected playback duration of the first audio data is 20 seconds, the loudness of the total 20 seconds of the first audio data can be adjusted based on the target loudness to obtain the second audio data.

[0067] Therefore, in this embodiment, when the expected playing duration of the first audio data is less than or equal to the preset duration, the loudness of all the data in the first audio data is adjusted. When the expected playing duration of the first audio data is greater than the preset duration, only the loudness of the third audio data intercepted from the first audio data is adjusted, thereby improving the working efficiency of the audio controller.

[0068] In an alternative embodiment, the preset duration may be 30 seconds.

[0069] In some exemplary embodiments, referring to Figure 4 the method step diagram for obtaining the target loudness shown, the steps of obtaining the target loudness specifically include the following: Step S31, obtain the loudness of the sound in the environment where the audio player is located.

[0070] Step S32, determine the target loudness based on the loudness of the sound in the environment.

[0071] In this embodiment, the audio player is set in a vehicle. Therefore, the environment where the audio player is located specifically may refer to the cab of the vehicle. Step S31 may specifically be to obtain the loudness of the sound in the vehicle cab. In some other embodiments, the audio player may also be placed in a relatively enclosed space, and step S31 may specifically be to obtain the loudness of the sound in this space.

[0072] The loudness of the sound in the environment where the audio player is located affects the user's perception of the loudness of the sound played by the audio player. Therefore, the target loudness can be determined by the loudness of the sound in the environment where the audio player is located. In an alternative embodiment, the target loudness may increase as the loudness of the sound in the environment where the audio player is located increases.

[0073] In an alternative embodiment, the loudness of the sound in the environment where the audio player is located may be continuously obtained within a period of time, so as to determine the target loudness based on the average loudness of the sound in the environment during this period. The loudness of the sound in the environment where the audio player is located can be obtained through a radio connected to the audio controller.

[0074] This embodiment determines the target loudness based on the loudness of the sound in the environment where the audio player is located, so that the loudness of the second audio data can vary with the different environments where the audio player is located, thereby improving the user's perception of the sound played by the audio player and enhancing the user's auditory experience.

[0075] In some exemplary embodiments, before obtaining the target loudness in step S101 and the first audio data to be played in the storage module, the method further includes the following steps: Step S105, determine whether the download speed of the first audio data is less than a first preset speed.

[0076] The speed at which the storage module downloads data in the current limiting mode is less than a second preset speed.

[0077] Obtaining the target loudness and the first audio data to be played in the storage module in step S101 can be specifically implemented in the following manner: When the download speed is less than the first preset speed, obtain the target loudness and the first audio data.

[0078] The download speed of the first audio data specifically refers to the speed at which a cloud server or other device transmits the first audio data to the storage module. Since the transmission of the first audio data from the cloud server to the storage module is a continuous process, the download speed of the first audio data can be the quotient obtained by dividing the data volume of the first audio data by the duration consumed for downloading the first audio data.

[0079] When the in-vehicle computer is working properly, that is, when the download speed of the first audio data is greater than or equal to the first preset speed, there will be no problem of insufficient bitrate during the download of the first audio data, and its loudness can be maintained in a relatively stable range. In this case, even if the audio player directly plays the first audio data, the user will not feel the sound fluctuating. Therefore, when the download speed is less than the first preset speed, the audio player can directly play the first audio data.

[0080] When the download speed of the first audio data is less than the first preset speed, there may be a problem of insufficient bitrate during the download of the first audio data, which may lead to fluctuations in its loudness. Therefore, in this case, the target loudness and the first audio data should be obtained, and then the loudness of the first audio data should be adjusted based on the target loudness.

[0081] In an alternative embodiment, the first preset speed can be 1 MB / s.

[0082] In this embodiment, by comparing the download speed of the first audio data with the first preset speed, it is determined whether directly playing the first audio data by the audio player may cause the user to feel the sound fluctuating. Thus, when directly playing the first audio data by the audio player may cause the user to feel the sound fluctuating, the loudness of the first audio data is adjusted, thereby reducing the use of the computing resources of the in-vehicle computer and improving the working efficiency of the in-vehicle computer.

[0083] In some exemplary embodiments, before obtaining the target loudness and the first audio data to be played in the storage module in step S101, the method further includes the following steps: Step S106, determining whether the storage module is in a current limiting mode.

[0084] The speed at which the storage module downloads data in the current limiting mode is lower than a second preset speed.

[0085] The acquisition of the target loudness and the first audio data to be played in the storage module in step S101 can be specifically implemented in the following manner: When the storage module is not in the current limiting mode, the target loudness and the first audio data are obtained.

[0086] The current limiting mode is usually entered by the user to actively control the onboard computer to save traffic. In the current limiting mode, the speed at which the storage module downloads data is lower than the second preset speed, that is, the speed at which the storage module downloads the first audio data will also be lower than the second preset speed.

[0087] When the audio controller determines that the audio player directly plays the first audio data, which will cause the user to feel that the sound is loud and soft, if the storage module is in the current limiting mode, an alarm message is sent to the user to prompt the user to control the storage module to exit the current limiting mode; if the storage module is not in the current limiting mode, the target loudness and the first audio data are obtained to adjust the loudness of the first audio data.

[0088] In an optional implementation, the warning information may be an audio message or an image message. For example, when the warning information is an audio message, the content of the warning information may be a prompt tone, or a voice message similar to "The current vehicle is in the current limiting mode, and the sound may jitter during the audio playback. To avoid this, please control the vehicle to exit the current limiting mode."

[0089] In this embodiment, when the storage module is not in the current limiting mode, the loudness of the first audio data is adjusted, thereby improving the effectiveness of the audio controller controlling the audio player.

[0090] Based on the above embodiments, reference Figure 5 A flowchart of a method for controlling an audio player is shown, and the following is an exemplary description of the method for controlling the audio player described in this application: The control method of the audio player described in this application is applied to the in-vehicle computer of a vehicle. The in-vehicle computer includes an audio player, an audio controller, and a storage module. The audio player is respectively connected to the audio controller and the storage module. The method described in this application is specifically applied to the audio controller of the in-vehicle computer. Among them, the storage module can specifically be a memory module or a cache module. Specifically, the following steps are included: Before the method starts, the storage module first downloads the first audio data from the cloud server to the storage module.

[0091] After the method starts, first determine whether the storage module is in a current-limiting mode. The speed at which the storage module downloads data in the current-limiting mode is less than the second preset speed. When the storage module is in the current-limiting mode, send an alarm signal to the user, thereby prompting the user to control the storage module to exit the current-limiting mode and end the method of this application.

[0092] When the storage module is not in the current-limiting mode, determine whether the download speed of the first audio data is less than the first preset speed. If the download speed is less than the first preset speed, obtain the loudness of the sound in the environment where the audio player is located, and based on the loudness of the sound in the environment, determine the target loudness, and at the same time obtain the first audio data from the storage module; if the download speed is greater than or equal to the first preset speed, end the method of this application.

[0093] After obtaining the first audio data, respectively determine the loudness of multiple time frames in the first audio data, and determine the average value of the loudness of the multiple time frames as the loudness of the first audio data. Then, determine whether the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness. If the difference between the loudness of the first audio data and the target loudness is less than or equal to the preset loudness, end the method of this application.

[0094] If the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, then determine whether the expected playback duration of the first audio data is greater than the preset duration. When the expected playback duration of the first audio data is less than or equal to the preset duration, based on the target loudness, adjust the loudness of all the data in the first audio data to obtain the second audio data; When the expected playback duration of the first audio data is greater than the preset duration, extract the third audio data with the earliest playback order from the first audio data, and based on the target loudness, adjust the loudness of the third audio data to obtain the second audio data.

[0095] After obtaining the second audio data, play the second audio data.

[0096] Based on the same inventive concept, this application also provides a control system for an audio player, as Figure 6As shown in the schematic structural diagram of a control system of an audio player, the audio player is connected to a storage module, and the control system includes: An acquisition module, configured to acquire a target loudness and first audio data to be played in the storage module; An adjustment module, configured to adjust the loudness of the first audio data based on the target loudness to obtain second audio data, and the difference between the loudness of the second audio data and the target loudness is less than the difference between the loudness of the first audio data and the target loudness; A playback module, configured to play the second audio data.

[0097] In some exemplary embodiments, the adjustment module is further configured to determine whether the difference between the loudness of the first audio data and the target loudness is greater than a preset loudness; when the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, adjust the loudness of the first audio data based on the target loudness to obtain second audio data.

[0098] In some exemplary embodiments, the acquisition module is further configured to respectively determine the loudness of multiple time frames in the first audio data; and determine the average value of the loudness of the multiple time frames as the loudness of the first audio data.

[0099] In some exemplary embodiments, the adjustment module is further configured to determine whether the expected playback duration of the first audio data is greater than a preset duration; when the expected playback duration of the first audio data is greater than the preset duration, extract third audio data with the earliest playback order from the first audio data, and adjust the loudness of the third audio data based on the target loudness to obtain the second audio data.

[0100] In some exemplary embodiments, the acquisition module is further configured to acquire the loudness of the sound in the environment where the audio player is located; and determine the target loudness based on the loudness of the sound in the environment.

[0101] In some exemplary embodiments, the acquisition module is further configured to determine whether the download speed of the first audio data is less than a first preset speed; when the download speed is less than the first preset speed, acquire the target loudness and the first audio data.

[0102] In some exemplary embodiments, the acquisition module is further configured to determine whether the storage module is in a current limiting mode, and the speed of the storage module for downloading data in the current limiting mode is less than a second preset speed; when the storage module is not in the current limiting mode, acquire the target loudness and the first audio data.

[0103] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program / instructions are stored. When the computer program / instructions are executed by a processor, a control method of an audio player as disclosed in the embodiment of the present application is implemented.

[0104] The embodiment of the present application also provides a vehicle, which includes a control system of an audio player provided by the present application, or includes a control module, and the control module is used to implement the steps of the control method of the audio player described in the embodiment of the present application.

[0105] The present application provides a control method, system, storage medium and vehicle of an audio player. The method includes: obtaining a target loudness and first audio data to be played in a storage module; adjusting the loudness of the first audio data based on the target loudness to obtain second audio data, and the difference between the loudness of the second audio data and the target loudness is less than the difference between the loudness of the first audio data and the target loudness; playing the second audio data.

[0106] After the audio player in the present application obtains the first audio data from the storage module, it first adjusts the loudness of the first audio data based on the target loudness to obtain second audio data, and the difference between the loudness of the second audio data and the target loudness is less than the difference between the loudness of the first audio data and the target loudness, and then plays the second audio data. After the present application obtains the first audio data, it first adjusts the loudness of the first audio data to obtain second audio data, and then plays the second audio data, so that the loudness of the second audio data is closer to the target loudness than the first audio data, so as to maintain a relatively stable state, and finally achieve the technical effect of keeping the loudness of the audio data played by the audio player stable.

[0107] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other.

[0108] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, systems, electronic devices and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate for implementing in the process Figure 1 each process or multiple processes and / or blocks Figure 1means for the functions specified in one or more boxes.

[0109] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction means that implements in the process Figure 1 one process or multiple processes and / or boxes Figure 1 the functions specified in one box or multiple boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, such that a series of operation steps are performed on the computer or other programmable terminal device to produce a computer-implemented process. Thus, the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in Figure 1 one process or multiple processes and / or boxes Figure 1 the functions specified in one box or multiple boxes.

[0111] Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.

[0112] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or terminal device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or terminal device including the element.

[0113] The above has introduced in detail a control method, system, storage medium and vehicle of an audio player provided by the present application. Specific examples are used in this text to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A method for controlling an audio player, characterized in that: The audio player is connected to the storage module, and the method comprises: Acquire target loudness and first audio data to be played in the storage module; Based on the target loudness, adjusting the loudness of the first audio data to obtain second audio data, wherein a difference between the loudness of the second audio data and the target loudness is smaller than a difference between the loudness of the first audio data and the target loudness; The second audio data is played.

2. The control method of the audio player according to claim 1, characterized in that: Before adjusting the loudness of the first audio data based on the target loudness to obtain the second audio data, the method further includes: Determining whether a difference between the loudness of the first audio data and the target loudness is greater than a preset loudness; The step of adjusting the loudness of the first audio data based on the target loudness to obtain the second audio data includes: When the difference between the loudness of the first audio data and the target loudness is greater than the preset loudness, the loudness of the first audio data is adjusted based on the target loudness to obtain second audio data.

3. The control method of the audio player according to claim 2, characterized in that: The step of obtaining the loudness of the first audio data comprises: respectively determining loudness of a plurality of time frames in the first audio data; An average value of the loudness of the plurality of time frames is determined as the loudness of the first audio data.

4. The control method of the audio player according to claim 1, characterized in that: The step of adjusting the loudness of the first audio data based on the target loudness to obtain the second audio data includes: Determining whether the expected playback duration of the first audio data is greater than a preset duration; When the expected playback duration of the first audio data is less than or equal to the preset duration, adjusting the loudness of all data in the first audio data based on the target loudness to obtain second audio data; When the expected playing time of the first audio data is greater than the preset time, third audio data with the highest playing order is intercepted from the first audio data, and the loudness of the third audio data is adjusted based on the target loudness to obtain the second audio data.

5. The control method of the audio player according to claim 1, characterized in that: The step of obtaining the target loudness includes: Obtaining the loudness of the sound in the environment where the audio player is located; The target loudness is determined based on the loudness of the sounds in the environment.

6. The control method of the audio player according to claim 1, characterized in that: Before acquiring the target loudness and the first audio data to be played in the storage module, the method further includes: Determining whether a download speed of the first audio data is less than a first preset speed; The step of obtaining the target loudness and the first audio data to be played in the storage module includes: When the download speed is less than the first preset speed, the target loudness and the first audio data are obtained.

7. The control method of the audio player according to claim 1, characterized in that: Before acquiring the target loudness and the first audio data to be played in the storage module, the method further includes: Determine whether the storage module is in a current limiting mode, and the speed at which the storage module downloads data in the current limiting mode is less than a second preset speed; The step of obtaining the target loudness and the first audio data to be played in the storage module includes: When the storage module is not in the current limiting mode, the target loudness and the first audio data are obtained.

8. A control system for an audio player, characterized in that: The audio player is connected to the storage module, and the control system includes: An acquisition module, used for acquiring a target loudness and the first audio data to be played in the storage module; an adjusting module, configured to adjust the loudness of the first audio data based on the target loudness to obtain second audio data, wherein a difference between the loudness of the second audio data and the target loudness is smaller than a difference between the loudness of the first audio data and the target loudness; A playing module is used to play the second audio data.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for controlling an audio player according to any one of claims 1 to 7 are implemented.

10. A vehicle, characterized in that: A control system comprising the audio player as claimed in claim 8, or a control module, wherein the control module is used to implement the steps of the control method of the audio player as claimed in any one of claims 1-7.