Audio playing method and system, vehicle machine and storage medium
Through the coordinated working of the master-slave operating system, the playback parameters of the audio data are determined, which solves the problem of multiple audio applications interfering with the driver's audio-visual when the physical sound card in the front row of the vehicle is played simultaneously, and the effect of reducing driving safety accidents is achieved.
Patent Information
- Application Number
- CN202411840112.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-11
Smart Images

Figure CN119806462A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent automobile technology, and in particular to an audio playback method, system, vehicle computer and storage medium. Background Art
[0002] With the development of science and technology, the functions of automobiles are showing a trend of diversification. For example, navigation applications, music applications, game applications, video applications, instrument applications, browsers and other applications can be installed on the car computer. Generally, due to the large number of applications installed in the car computer, more computing resources are required. In order to avoid the car computer from crashing during operation, the main operating system, namely HostVM and multiple slave operating systems GuestVM, can be run on the car computer. Among them, the on-board physical screen located at the main driving position of the car is used to display the desktop of the main operating system, and the on-board physical screen located at the co-pilot position and the back seat position of the car is used to display the desktop of the slave operating system. Exemplarily, different operating systems are used to install different sets of applications (understandably, the applications installed between different operating systems may partially overlap).
[0003] For applications associated with audio data, a physical sound card can be used to play the audio data. At present, when the audio data of multiple audio applications in different operating systems are played on the physical sound card located in the front row of the vehicle (i.e., the physical sound card located in the front row of the vehicle), the audio data of multiple audio applications are played simultaneously on the physical sound card located in the front row of the vehicle according to the pre-configured audio playback parameters. This is easy to interfere with the driver's audio-visual experience and cause driving safety accidents. Summary of the invention
[0004] The present application provides an audio playback method, system, vehicle computer and storage medium, which are used to solve the problem in the prior art that when the audio data of multiple audio applications are played simultaneously on a physical sound card located in the front row of the vehicle according to pre-configured audio playback parameters, it is easy to interfere with the driver's audio-visual experience and easily cause driving safety accidents.
[0005] In a first aspect, the present application provides an audio playback method, which is applied to an audio playback system, wherein the audio playback system includes a main operating system and a slave operating system, wherein the main operating system and the slave operating system are loaded on a central processing chip of a vehicle computer, wherein the central processing chip of the vehicle computer is respectively connected to a vehicle main screen and a plurality of vehicle sub-screens for communication, wherein audio data of a first application in the main operating system is being played by a physical sound card located in the front row of the vehicle, and the method provided by the present application includes:
[0006] When the slave operating system determines that there is audio data of the second application that needs to be played, the slave operating system obtains the position of the target vehicle-mounted secondary screen among the multiple vehicle-mounted secondary screens that responds to the user's operation and triggers the playing of the audio data of the second application;
[0007] The slave operating system transmits the position of the target vehicle-mounted secondary screen and the audio data of the second application to the master operating system;
[0008] When it is determined, based on the position of the target vehicle-mounted secondary screen, that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle, the main operating system determines, based on the type of the first application and the type of the second application, a first audio playback parameter of the audio data of the first application and a second audio playback parameter of the audio data of the second application;
[0009] The main operating system transmits the audio data of the first application and / or the audio data of the second application to the physical sound card located in the front row of the vehicle for playback according to the first audio playback parameter and the second audio playback parameter.
[0010] In some implementations, the audio data of the second application is determined to be played through a physical sound card located in the front row of the vehicle according to the position of the target vehicle-mounted secondary screen, including:
[0011] The main operating system determines whether the second application is associated with the physical sound card located in the front row of the vehicle according to the position of the target vehicle-mounted secondary screen and the pre-stored configuration file;
[0012] If there is an association, the main operating system determines that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle.
[0013] In some embodiments, the configuration file records that there is a corresponding relationship between the position of the target vehicle-mounted secondary screen located at the front row of the vehicle and the physical sound card located at the front row of the vehicle, and the main operating system determines whether the second application has an associated relationship with the physical sound card located at the front row of the vehicle according to the position of the target vehicle-mounted secondary screen and the pre-stored configuration file, including:
[0014] When the target vehicle-mounted secondary screen is located at the front row of the vehicle, the main operating system searches the pre-stored configuration file to find that there is an association between the target vehicle-mounted secondary screen located at the front row of the vehicle and the physical sound card located at the front row of the vehicle;
[0015] The main operating system determines that there is an association between the second application and a physical sound card located in the front row of the vehicle.
[0016] In some embodiments, the configuration file records a corresponding relationship between the position of the target vehicle-mounted secondary screen located at the rear row of the vehicle, the type of the second application, and the physical sound card located at the front row of the vehicle, and the main operating system determines whether the second application is associated with the physical sound card located at the front row of the vehicle according to the position of the target vehicle-mounted secondary screen and the pre-stored configuration file, including:
[0017] When the position of the target vehicle-mounted secondary screen is located at the rear row of the vehicle and the type of the second application is an application associated with the driving function, the main operating system searches from the pre-stored configuration file to find that there is a corresponding relationship between the position of the target vehicle-mounted secondary screen located at the rear row of the vehicle, the type of the second application, and the physical sound card located at the front row of the vehicle;
[0018] The main operating system determines that there is an association between the second application and a physical sound card located in the front row of the vehicle.
[0019] In some implementations, the central processing chip of the vehicle computer is also communicatively connected to a shared memory, and the slave operating system transmits the position of the target vehicle-mounted secondary screen and the audio data of the second application to the master operating system, including:
[0020] The slave operating system writes the position of the target vehicle-mounted secondary screen and the audio data of the second application into the shared memory via the virtual sound card front end of the slave operating system;
[0021] The main operating system reads the location of the target vehicle-mounted secondary screen in the shared memory and the audio data of the second application into the main operating system through the virtual sound card backend of the main operating system.
[0022] In some embodiments, the type of the first application is an application associated with a driving function, the first audio playback parameter is a first volume, the second audio playback parameter is a second volume, the type of the second application is an application associated with an entertainment function, then the first volume of the audio data of the first application is determined to be higher than the second volume of the audio data of the second application, or the second volume of the audio data of the second application is determined to be silent.
[0023] In some embodiments, the first audio playback parameter is a first volume, the second audio playback parameter is a second volume, the type of the first application is an application associated with an entertainment function, and the type of the second application is an application associated with a driving function, then the first volume of the audio data of the first application is determined to be lower than the second volume of the audio data of the second application.
[0024] In some embodiments, the method provided by the present application further comprises:
[0025] When the main operating system determines, based on the position of the target vehicle-mounted secondary screen and the type of the second application, that the audio data of the second application does not need to be played through the physical sound card located in the front row of the vehicle, the audio data of the first application is transferred to the physical sound card located in the front row of the vehicle for playback according to the third audio playback parameter preconfigured with the main operating system, and the audio data of the second application is transferred to the physical sound card located in the back row of the vehicle for playback according to the fourth audio playback parameter preconfigured with the slave operating system.
[0026] In a second aspect, the present application further provides an audio playback system, the audio playback system comprising a main operating system and a slave operating system, the main operating system and the slave operating system are loaded on a central processing chip of a vehicle computer, the central processing chip of the vehicle computer is respectively connected to a vehicle main screen and a plurality of vehicle sub-screens for communication, wherein the audio data of a first application in the main operating system is being played by a physical sound card located in the front row of the vehicle,
[0027] The slave operating system is used to, when determining that there is audio data of a second application that needs to be played, obtain the position of a target vehicle-mounted secondary screen among the multiple vehicle-mounted secondary screens that responds to a user's operation and triggers the playing of the audio data of the second application, and transmit the position of the target vehicle-mounted secondary screen and the audio data of the second application to the main operating system;
[0028] The main operating system is used to determine the first audio playback parameter of the audio data of the first application and the second audio playback parameter of the audio data of the second application according to the type of the first application and the second application when it is determined that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle according to the position of the target vehicle-mounted secondary screen; and transmit the audio data of the first application and / or the audio data of the second application to the physical sound card located in the front row of the vehicle for playback according to the first audio playback parameter and the second audio playback parameter.
[0029] In a third aspect, the present application further provides a vehicle computer, including:
[0030] processor;
[0031] a memory for storing processor-executable instructions;
[0032] Among them, the processor is configured to execute instructions to implement the audio playback method provided in the first aspect of the present application.
[0033] In a fourth aspect, the present application further provides a storage medium. When the instructions in the storage medium are executed by the processor of the vehicle computer, the vehicle computer can execute the audio playback method provided in the first aspect of the present application.
[0034] The present application provides an audio playback method, system, vehicle computer and storage medium, in which the audio data of the first application in the main operating system is being played by a physical sound card located in the front row of the vehicle. When it is determined that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle based on the position of the target vehicle-mounted secondary screen, the first audio playback parameter of the audio data of the first application and the second audio playback parameter of the audio data of the second application are determined based on the type of the first application and the type of the second application. Furthermore, based on the first audio playback parameter and the second audio playback parameter, the audio data of the first application and / or the audio data of the second application are transmitted to the physical sound card located in the front row of the vehicle for playback. Since the audio data of the first application is played with the first audio playback parameter, and / or the audio data of the second application is played with the second audio playback parameter, it is not easy to interfere with the driver's audio-visual experience, thereby reducing driving safety accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 A schematic diagram of the communication connection between the central processing chip of the vehicle computer provided in the embodiment of the present application and the vehicle main screen, the vehicle sub-screen and the shared memory;
[0037] Figure 2 A software architecture block diagram of the central processing chip of the vehicle computer provided in an embodiment of the present application;
[0038] Figure 3 A flowchart of an audio playback method provided in an embodiment of the present application;
[0039] Figure 4 A functional module block diagram of an audio playback device provided in an embodiment of the present application;
[0040] Figure 5 A block diagram of the circuit modules of the vehicle computer provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0042] Various structural schematic diagrams according to embodiments of the present disclosure are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may further design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0043] In the context of the present disclosure, when a layer / element is referred to as being "on" another layer / element, the layer / element may be directly on the other layer / element or an intervening layer / element may exist therebetween. In addition, if a layer / element is "on" another layer / element in one orientation, the layer / element may be "below" the other layer / element when the orientation is reversed.
[0044] First, the terms involved in this application are explained:
[0045] Host virtual machine (HVM): Most of the hardware resources of the vehicle computer are allocated to the host operating system, which is used to install applications related to driving functions (such as instrument applications and intelligent control applications).
[0046] A small part of the vehicle's hardware resources will be allocated to the slave operating system (GVM), which is used to install applications related to entertainment functions (such as navigation applications, music applications, browser applications, etc.).
[0047] The following is a detailed description of the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0048] The embodiment of the present application provides an audio playback method, which is applied to an audio playback system. The audio playback system includes a main operating system and a slave operating system. The main operating system and the slave operating system are loaded on a central processing chip 101 of a vehicle computer. Figure 1As shown, the central processing chip 101 of the vehicle computer is respectively communicated with the vehicle main screen 102, multiple vehicle sub-screens 103 and shared memory 104. The vehicle main screen 102 is usually a physical screen of the vehicle corresponding to the driver's position, and the vehicle sub-screen 103 is usually a physical screen of the vehicle corresponding to the co-pilot or the back seat of the vehicle. Among them, the main operating system can be but not limited to the Linux operating system, and the slave operating system can be but not limited to the Android operating system. Among them, the main operating system and the slave operating system are divided into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the main operating system can be divided into four layers, namely, the application layer (applications), the framework layer (application framework), the hardware abstract layer (hardware abstract layer, HAL) and the kernel layer (kernel).
[0049] Among them, Figure 2 As shown, the application layer of the main operating system is loaded with a first application, an instrument application, and an intelligent control application. The first application can be used to play audio data, the instrument application can be used to display vehicle speed information, fuel information, vehicle acceleration information, etc., and the intelligent control application can be used to display window control buttons, door control buttons, seat control buttons, etc. The framework layer of the main operating system includes a first audio manager and a virtual sound card backend, and the kernel layer of the main operating system includes a sound card driver. Figure 2 As shown, the application layer of the slave operating system is loaded with a second application, a browser application, etc. The second application can also be used to play audio data, and the browser application can be used to display web page information. The kernel layer of the slave operating system includes a second audio manager, and the kernel layer of the slave operating system includes a virtual sound card front end. It should be noted that the virtual sound card front end and the virtual sound card back end can communicate through the shared memory 104.
[0050] The audio data of the first application in the main operating system is being played by the physical sound card located in the front row of the vehicle. Figure 3 As shown, the method provided in the embodiment of the present application includes:
[0051] S301: When the slave operating system determines that there is audio data of the second application that needs to be played, it obtains the position of the target vehicle-mounted sub-screen 103 among the multiple vehicle-mounted sub-screens 103 that responds to the user's operation and triggers the playing of the audio data of the second application.
[0052] Exemplarily, when it is detected that the user triggers the playing of the audio data of the second application on one of the vehicle-mounted secondary screens 103, it is determined that the audio data of the second application that needs to be played exists in the slave operating system. For example, when the second application is a navigation application, in response to the user clicking to start navigation in the display window of the navigation application, the playing of the voice navigation audio data of the navigation application is triggered; for another example, when the second application is a music application, in response to the user clicking to play music in the display window of the music application, the playing of the audio data of the music application is triggered.
[0053] Furthermore, the position of the target vehicle-mounted secondary screen 103 can be determined according to the mark of the target vehicle-mounted secondary screen 103 that responds to the user's operation. For example, mark 1 corresponds to the co-pilot position, and mark 2 corresponds to the back seat position.
[0054] S302: The slave operating system transmits the position of the target vehicle-mounted secondary screen 103 and the audio data of the second application to the master operating system.
[0055] Specifically, the position of the target vehicle-mounted secondary screen 103 and the audio data of the second application can be written into the shared memory 104 via the virtual sound card front end of the slave operating system; the position of the target vehicle-mounted secondary screen 103 and the audio data of the second application located in the shared memory 104 can be read into the main operating system via the virtual sound card back end of the main operating system.
[0056] S303: When the main operating system determines, based on the position of the target vehicle-mounted secondary screen 103, that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle, the first audio playback parameter of the audio data of the first application and the second audio playback parameter of the audio data of the second application are determined based on the type of the first application and the type of the second application.
[0057] Among them, the first audio playback parameter can be but is not limited to the first volume, the first sound effect or the first playback path, etc., which is not limited here; the second audio playback parameter can be but is not limited to the second volume, the second sound effect or the second playback path, etc., which is not limited here.
[0058] It should be noted that the position of the target vehicle-mounted secondary screen 103 can be transmitted to the first audio manager through the virtual network card backend to execute S303.
[0059] In some implementations, S303 may include:
[0060] Step 1: The main operating system determines whether the second application is associated with the physical sound card located in the front row of the vehicle based on the position of the target vehicle-mounted secondary screen 103 and the pre-stored configuration file (ie, config file). If so, execute step 2.
[0061] Exemplarily, the configuration file records a corresponding relationship between the position of the target vehicle-mounted secondary screen 103 located at the front row of the vehicle and the physical sound card located at the front row of the vehicle. When the target vehicle-mounted secondary screen 103 is located at the front row of the vehicle, the main operating system searches the pre-stored configuration file to find that there is an association relationship between the target vehicle-mounted secondary screen 103 located at the front row of the vehicle and the physical sound card located at the front row of the vehicle; further, it is determined that there is an association relationship between the second application and the physical sound card located at the front row of the vehicle.
[0062] It can be understood that when the position of the target vehicle-mounted secondary screen 103 is located in the front row of the vehicle, it means that the user is located in the front passenger seat of the vehicle, and the physical sound card located in the front row of the vehicle is also located in the front row of the vehicle. In this way, when the physical sound card located in the front row of the vehicle plays audio data, the user located in the front passenger seat of the vehicle can also hear it more clearly, so the position of the target vehicle-mounted secondary screen 103 can be pre-associated with the physical sound card located in the front row of the vehicle. Furthermore, it can be determined that the second application triggered by the target vehicle-mounted secondary screen 103 is associated with the physical sound card located in the front row of the vehicle.
[0063] In other embodiments, the configuration file records the correspondence between the position of the target vehicle-mounted secondary screen 103 located in the rear row of the vehicle, the type of the second application, and the physical sound card located in the front row of the vehicle. When the position of the target vehicle-mounted secondary screen 103 is located in the rear row of the vehicle and the type of the second application is an application associated with the driving function, the main operating system searches the pre-stored configuration file to find the correspondence between the position of the target vehicle-mounted secondary screen 103 located in the rear row of the vehicle, the type of the second application, and the physical sound card located in the front row of the vehicle. Further, it is determined that there is an association between the second application and the physical sound card located in the front row of the vehicle.
[0064] It can be understood that when the position of the target vehicle-mounted secondary screen 103 is located in the back row of the vehicle, it means that the user is located in the back seat position of the vehicle, and because the physical sound card located in the front row of the vehicle is located in the front row of the vehicle; and the physical sound card located in the back row of the vehicle of the target vehicle-mounted secondary screen 103 is located in the back row of the vehicle. When the type of the second application is an application associated with the driving function (such as a navigation application), the driver in the front row also needs to clearly hear the audio data of the second application, so the main operating system needs to establish a corresponding relationship between the position of the target vehicle-mounted secondary screen 103 located in the back row of the vehicle, the type of the second application, and the physical sound card located in the front row of the vehicle. In this way, when the physical sound card located in the front row of the vehicle plays the audio data associated with the driving function of the second application, the driver in the driving position of the front row of the vehicle can also hear it more clearly. Furthermore, the main operating system can determine that there is an association between the position of the target vehicle-mounted secondary screen 103 located in the back row of the vehicle, the type of the second application, and the physical sound card located in the front row of the vehicle.
[0065] On the contrary, when the type of the second application is an application not associated with the driving function (such as a game application), the driver in the front row does not need to clearly hear the audio data of the second application to avoid interference to the driver. In this case, the main operating system establishes a correspondence between the position of the target vehicle-mounted secondary screen 103 located at the rear row of the vehicle, the type of the second application, and the physical sound card located at the rear row of the vehicle corresponding to the target vehicle-mounted secondary screen 103 located at the rear row of the vehicle. When the physical sound card located at the rear row of the vehicle corresponding to the target vehicle-mounted secondary screen 103 located at the rear row of the vehicle is used to play the audio data of the application not associated with the driving function, it will not interfere with the driver.
[0066] In some embodiments, the first audio playback parameter is the first volume, the second audio playback parameter is the second volume, the type of the first application is an application associated with the driving function, the type of the second application is an application associated with the entertainment function, then the first volume of the audio data of the first application is determined to be higher than the second volume of the audio data of the second application, or the second volume of the audio data of the second application is determined to be silent. It can be understood that in this case, when the first volume of the audio data of the first application is higher than the second volume of the audio data of the second application, the driver can clearly hear the audio data associated with the driving function to ensure safe driving of the vehicle; and the driver can also hear the audio data associated with the entertainment function being played, and it will not interfere with the driver's safe driving; or, the second volume of the audio data of the second application is determined to be silent, the driver will not hear the audio data associated with the entertainment function being played, and it will not further interfere with the driver's safe driving.
[0067] In other embodiments, the first audio playback parameter is the first volume, the second audio playback parameter is the second volume, the type of the first application is an application associated with the entertainment function, and the type of the second application is an application associated with the driving function, then the first volume of the audio data of the first application is determined to be lower than the second volume of the audio data of the second application. It can be understood that in this case, when the first volume of the audio data of the first application is lower than the second volume of the audio data of the second application, the driver and the passenger in the front passenger seat can clearly hear the audio data associated with the driving function, ensuring safe driving of the vehicle; and can also take into account the audio data associated with the entertainment function being played, and will not interfere with the driver's safe driving.
[0068] Similarly, when the first audio playback parameter is the first sound effect and the second audio playback parameter is the second sound effect, or the first audio playback parameter is the first playback path and the second audio playback parameter is the second playback path, the principle is similar to the principle that the first audio playback parameter is the first volume and the second audio playback parameter is the second volume, and will not be elaborated here.
[0069] Step 2: The main operating system determines that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle.
[0070] S304: The main operating system transmits the audio data of the first application and / or the audio data of the second application to the physical sound card located in the front row of the vehicle for playback according to the first audio playback parameter and the second audio playback parameter.
[0071] For example, when playing audio data of a first application and audio data of a second application at the same time, the playing strategy may be that the volume of the audio data of the first application is higher than the volume of the audio data of the second application, or that the volume of the audio data of the first application is lower than the volume of the audio data of the second application, which is specifically determined by arbitration in S303. Of course, when it is determined in S303 that the first audio playing parameter is muted, the audio data of the second application may be played alone, and when it is determined in S303 that the second audio playing parameter is muted, the audio data of the first application may be played alone, which is not limited here.
[0072] In summary, an audio playback method is provided in an embodiment of the present application, in which the audio data of the first application in the main operating system is being played by a physical sound card located in the front row of the vehicle. When it is determined that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle according to the position of the target vehicle-mounted secondary screen 103, the first audio playback parameter of the audio data of the first application and the second audio playback parameter of the audio data of the second application are determined according to the type of the first application and the type of the second application. Furthermore, according to the first audio playback parameter and the second audio playback parameter, the audio data of the first application and / or the audio data of the second application are transmitted to the physical sound card located in the front row of the vehicle for playback. Since the audio data of the first application is played with the first audio playback parameter and the audio data of the second application is played with the second audio playback parameter, it is not easy to interfere with the driver's audio-visual experience, thereby reducing driving safety accidents.
[0073] In addition, the method provided by the embodiment of the present application may also include: when the main operating system determines that the audio data of the second application does not need to be played through the physical sound card located in the front row of the vehicle based on the position of the target vehicle-mounted secondary screen 103 and the type of the second application, the audio data of the first application is transmitted to the physical sound card located in the front row of the vehicle for playback according to the third audio playback parameter associated with the preconfigured main operating system, and the audio data of the second application is transmitted to the physical sound card located in the back row of the vehicle for playback according to the fourth audio playback parameter associated with the preconfigured slave operating system.
[0074] Exemplarily, when the position of the target vehicle-mounted secondary screen 103 is located in the rear seat of the vehicle, it means that the user is located in the rear seat of the vehicle, and the type of the second application is an application associated with the entertainment function (such as a game application), which means that the driver does not need to clearly hear the audio data associated with the entertainment function of the second application, so as not to interfere with the driver's safe driving. In this way, the audio data associated with the entertainment function of the second application does not need to be played through the physical sound card located in the front row of the vehicle, but is directly played through the physical sound card located in the rear row of the vehicle with the target vehicle-mounted secondary screen 103. Therefore, according to the fourth audio playback parameter associated with the pre-configured slave operating system, the audio data of the second application is transferred to the physical sound card located in the rear row of the vehicle (i.e., the physical sound card located in the rear row of the vehicle with the target vehicle-mounted secondary screen 103) for playback. In this way, it will not interfere with the driver's safe driving. In addition, the audio data of the first application can also be directly transferred to the physical sound card located in the front row of the vehicle for playback according to the third audio playback parameter associated with the pre-configured main operating system, so that the driver can clearly hear the audio data of the first application.
[0075] It should be noted that the audio data of the first application can be directly transmitted to the physical sound card located in the back row of the vehicle for playback through the virtual network card backend; and the audio data of the second audio application can be directly transmitted to the physical sound card located in the back row of the vehicle through the virtual network card backend.
[0076] In addition, the embodiment of the present application also provides an audio playback system, the audio playback system includes a main operating system and a slave operating system, the main operating system and the slave operating system are loaded on the central processing chip of the vehicle computer, the central processing chip of the vehicle computer is respectively connected to the vehicle main screen and multiple vehicle sub-screens, wherein the audio data of the first application in the main operating system is being played by the physical sound card located in the front row of the vehicle. It should be noted that the basic principle and technical effects of the audio playback system provided in the embodiment of the present application are the same as those in the above embodiment. For the sake of brief description, for the parts not mentioned in the embodiment of the present application, please refer to the corresponding contents in the above embodiment.
[0077] The slave operating system is used to, when determining that there is audio data of a second application that needs to be played, obtain the position of a target vehicle-mounted secondary screen among the multiple vehicle-mounted secondary screens that responds to a user's operation and triggers the playing of the audio data of the second application, and transmit the position of the target vehicle-mounted secondary screen and the audio data of the second application to the main operating system;
[0078] The main operating system is used to determine the first audio playback parameter of the audio data of the first application and the second audio playback parameter of the audio data of the second application according to the type of the first application and the second application when it is determined that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle according to the position of the target vehicle-mounted secondary screen; and transmit the audio data of the first application and / or the audio data of the second application to the physical sound card located in the front row of the vehicle for playback according to the first audio playback parameter and the second audio playback parameter.
[0079] See also Figure 4 , the embodiment of the present application also provides an audio playback device 400, which is configured on the central processing chip 101 of the vehicle computer. The central processing chip 101 of the vehicle computer is respectively connected to the vehicle main screen 102 and multiple vehicle sub-screens 103. The central processing chip 101 of the vehicle computer is loaded with a main operating system and a slave operating system, wherein the audio data of the first application in the main operating system is being played by the physical sound card located in the front row of the vehicle. It should be noted that the basic principles and technical effects of the audio playback device 400 provided in the embodiment of the present application are the same as those in the above-mentioned embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the present application, reference can be made to the corresponding contents in the above-mentioned embodiment. The device 400 provided in the embodiment of the present application includes a data acquisition unit 401, a data transmission unit 402, an audio playback parameter determination unit 403, and an audio playback unit 404, wherein,
[0080] The data acquisition unit 401 is used to obtain the position of the target vehicle-mounted sub-screen 103 among multiple vehicle-mounted sub-screens 103 that responds to the user's operation and triggers the playing of the audio data of the second application when it is determined that the audio data of the second application that needs to be played exists in the slave operating system.
[0081] The data transmission unit 402 is used to transmit the position of the target vehicle-mounted secondary screen 103 and the audio data of the second application to the main operating system.
[0082] Exemplarily, the data transmission unit 402 is specifically used to write the position of the target vehicle-mounted secondary screen 103 and the audio data of the second application into the shared memory 104 via the virtual sound card front end of the slave operating system; and read the position of the target vehicle-mounted secondary screen 103 and the audio data of the second application located in the shared memory 104 into the main operating system via the virtual sound card back end of the main operating system.
[0083] The audio playback parameter determination unit 403 is used to determine the first audio playback parameters of the audio data of the first application and the second audio playback parameters of the audio data of the second application according to the type of the first application and the type of the second application when it is determined that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle based on the position of the target vehicle-mounted secondary screen 103.
[0084] In some embodiments, the audio playback parameter determination unit 403 is specifically used to determine whether the second application is associated with the physical sound card located in the front row of the vehicle based on the position of the target vehicle-mounted secondary screen 103 and a pre-stored configuration file; if there is an association, it is determined that the audio data of the second application needs to be played through the physical sound card located in the front row of the vehicle.
[0085] In some embodiments, the configuration file records a corresponding relationship between the position of the target vehicle-mounted secondary screen 103 located in the front row of the vehicle and the physical sound card located in the front row of the vehicle. The audio playback parameter determination unit 403 is specifically used to, when the target vehicle-mounted secondary screen 103 is located in the front row of the vehicle, find out from the pre-stored configuration file that there is an association relationship between the target vehicle-mounted secondary screen 103 located in the front row of the vehicle and the physical sound card located in the front row of the vehicle; and determine that there is an association relationship between the second application and the physical sound card located in the front row of the vehicle.
[0086] In some embodiments, the configuration file records the correspondence between the position of the target vehicle-mounted secondary screen 103 located in the rear row of the vehicle, the type of the second application, and the physical sound card located in the front row of the vehicle. The audio playback parameter determination unit 403 is specifically used to find out from the pre-stored configuration file that there is a correspondence between the position of the target vehicle-mounted secondary screen 103 located in the rear row of the vehicle, the type of the second application, and the physical sound card located in the front row of the vehicle when the position of the target vehicle-mounted secondary screen 103 is located in the rear row of the vehicle and the type of the second application is an application associated with the driving function; and determine that there is an association between the second application and the physical sound card located in the front row of the vehicle.
[0087] In a possible implementation, the first audio playback parameter is a first volume, the second audio playback parameter is a second volume, the type of the first application is an application associated with a driving function, the type of the second application is an application associated with an entertainment function, then the first volume of the audio data of the first application is determined to be higher than the second volume of the audio data of the second application, or the second volume of the audio data of the second application is determined to be silent.
[0088] In a possible implementation, the first audio playback parameter is a first volume, the second audio playback parameter is a second volume, the type of the first application is an application associated with an entertainment function, and the type of the second application is an application associated with a driving function, then the first volume of the audio data of the first application is determined to be lower than the second volume of the audio data of the second application.
[0089] The audio playback unit 404 is used to transmit the audio data of the first application and / or the audio data of the second application to the physical sound card located in the front row of the vehicle for playback according to the first audio playback parameter and the second audio playback parameter.
[0090] In one possible implementation, the audio playback unit 404 is also used to, when the audio data of the second application and the type of the second application are determined based on the position of the target vehicle-mounted secondary screen 103 and do not need to be played through the physical sound card located in the front row of the vehicle, transfer the audio data of the first application to the physical sound card located in the front row of the vehicle for playback according to the third audio playback parameter associated with the preconfigured main operating system, and transfer the audio data of the second application to the physical sound card located in the back row of the vehicle for playback according to the fourth audio playback parameter associated with the preconfigured slave operating system.
[0091] Figure 5 1 is a block diagram of a vehicle computer according to an exemplary embodiment. The vehicle computer may include one or more of the following components: a central processing chip 502 of the vehicle computer, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0092] The central processing chip 502 of the vehicle computer generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The central processing chip 502 of the vehicle computer may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. For example, the central processing chip of the vehicle computer may include a central processing unit CPU, a graphics processing unit GPU, and a display processor DPU. In addition, the central processing chip 502 of the vehicle computer may include one or more modules (such as physical transmission channels) to facilitate the interaction between the central processing chip 502 of the vehicle computer and other components. For example, the central processing chip 502 of the vehicle computer may include a multimedia module to facilitate the interaction between the multimedia component 508 and the central processing chip 502 of the vehicle computer.
[0093] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, data to be displayed, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0094] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0095] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In an embodiment of the present application, the screen includes multiple in-vehicle physical screens. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0096] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0097] The I / O interface 512 provides an interface between the central processing chip 502 of the vehicle computer and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0098] Sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for device 500. For example, sensor assembly 514 can detect the open / closed state of device 500, the relative positioning of components, such as the display and keypad of device 500, sensor assembly 514 can also detect changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500.
[0099] The communication component 516 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The apparatus 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel.
[0100] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0101] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a central processing chip 502 of a vehicle computer of the apparatus 500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. When the instructions in the non-transitory computer-readable storage medium are executed by a processor of the vehicle computer, the vehicle computer can execute Figure 3The audio playback method shown.
[0102] The present application also provides a computer program product, including a computer program, which, when executed by a processor, Figure 3 The audio playback method shown.
[0103] In the above description, the technical details such as the patterning of each layer are not described in detail. However, those skilled in the art should understand that various technical means can be used to form layers, regions, etc. of desired shapes. In addition, in order to form the same structure, those skilled in the art can also design methods that are not completely the same as the methods described above. In addition, although the various embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage.
[0104] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0105] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An audio playback method, characterized in that: Applied to an audio playback system, the audio playback system includes a master operating system and a slave operating system, wherein audio data of a first application in the master operating system is being played by a physical sound card located in the front row of a vehicle, the method includes: When determining that there is audio data of the second application that needs to be played, the slave operating system obtains the position of a target vehicle-mounted secondary screen among the multiple vehicle-mounted secondary screens that responds to a user's operation and triggers the playing of the audio data of the second application; The slave operating system transmits the position of the target vehicle-mounted secondary screen and the audio data of the second application to the master operating system; When it is determined, according to the position of the target vehicle-mounted secondary screen, that the audio data of the second application needs to be played through a physical sound card located in the front row of the vehicle, the main operating system determines, according to the type of the first application and the type of the second application, a first audio playback parameter of the audio data of the first application and a second audio playback parameter of the audio data of the second application; The main operating system transmits the audio data of the first application and / or the audio data of the second application to a physical sound card located in the front row of the vehicle for playback according to the first audio playback parameter and the second audio playback parameter.
2. The method according to claim 1, characterized in that The step of determining, according to the position of the target vehicle-mounted secondary screen, that the audio data of the second application needs to be played through a physical sound card located in the front row of the vehicle includes: The main operating system determines, according to the position of the target vehicle-mounted secondary screen and a pre-stored configuration file, whether the second application is associated with a physical sound card located in the front row of the vehicle; If there is an association, the main operating system determines that the audio data of the second application needs to be played through a physical sound card located in the front row of the vehicle.
3. The method according to claim 2, characterized in that The configuration file records a corresponding relationship between a position of a target vehicle-mounted secondary screen located at a front row of the vehicle and a physical sound card located at the front row of the vehicle, and the main operating system determines whether the second application has an associated relationship with the physical sound card located at the front row of the vehicle according to the position of the target vehicle-mounted secondary screen and the pre-stored configuration file, including: When the target vehicle-mounted secondary screen is located at the front row of the vehicle, the main operating system searches the pre-stored configuration file to find that there is an association between the target vehicle-mounted secondary screen located at the front row of the vehicle and the physical sound card located at the front row of the vehicle; The main operating system determines that there is an association between the second application and a physical sound card located in the front row of the vehicle.
4. The method according to claim 2, characterized in that: The configuration file records a corresponding relationship between the position of a target vehicle-mounted secondary screen located at a rear row of the vehicle, the type of the second application, and the physical sound card located at the front row of the vehicle, and the main operating system determines whether the second application is associated with the physical sound card located at the front row of the vehicle according to the position of the target vehicle-mounted secondary screen and the pre-stored configuration file, including: When the position of the target vehicle-mounted secondary screen is located at the rear row of the vehicle and the type of the second application is an application associated with a driving function, the main operating system searches from a pre-stored configuration file to find that there is a corresponding relationship between the position of the target vehicle-mounted secondary screen located at the rear row of the vehicle, the type of the second application, and the physical sound card located at the front row of the vehicle; The main operating system determines that there is an association between the second application and a physical sound card located in the front row of the vehicle.
5. The method according to claim 1, characterized in that The central processing chip of the vehicle computer is also communicatively connected to a shared memory, and the slave operating system transmits the position of the target vehicle-mounted secondary screen and the audio data of the second application to the main operating system, including: The slave operating system writes the position of the target vehicle-mounted secondary screen and the audio data of the second application into the shared memory via the virtual sound card front end of the slave operating system; The main operating system reads the position of the target vehicle-mounted secondary screen in the shared memory and the audio data of the second application into the main operating system through the virtual sound card backend of the main operating system.
6. The method according to claim 1, characterized in that The type of the first application is an application associated with a driving function, the first audio playback parameter is a first volume, the second audio playback parameter is a second volume, the type of the second application is an application associated with an entertainment function, then the determined first volume of the audio data of the first application is higher than the second volume of the audio data of the second application, or the determined second volume of the audio data of the second application is silent.
7. The method according to claim 1, characterized in that The first audio playback parameter is a first volume, the second audio playback parameter is a second volume, the type of the first application is an application associated with an entertainment function, and the type of the second application is an application associated with a driving function, then the first volume of the audio data of the first application is determined to be lower than the second volume of the audio data of the second application.
8. The method according to claim 1, characterized in that The method further comprises: When the main operating system determines, based on the position of the target vehicle-mounted secondary screen and the type of the second application, that the audio data of the second application does not need to be played through the physical sound card located in the front row of the vehicle, the audio data of the first application is transferred to the physical sound card located in the front row of the vehicle for playback according to the pre-configured third audio playback parameter associated with the main operating system, and the audio data of the second application is transferred to the physical sound card located in the back row of the vehicle for playback according to the pre-configured fourth audio playback parameter associated with the slave operating system.
9. An audio playback system, characterized in that: The audio playback system includes a main operating system and a slave operating system, wherein audio data of a first application in the main operating system is being played by a physical sound card located in the front row of the vehicle, The slave operating system is used to, when determining that there is audio data of a second application that needs to be played, obtain the position of a target vehicle-mounted secondary screen among the multiple vehicle-mounted secondary screens that responds to a user's operation and triggers the playing of the audio data of the second application, and transmit the position of the target vehicle-mounted secondary screen and the audio data of the second application to the main operating system; The main operating system is used to determine, based on the type of the first application and the type of the second application, a first audio playback parameter of the audio data of the first application and a second audio playback parameter of the audio data of the second application when it is determined, based on the position of the target vehicle-mounted secondary screen, that the audio data of the second application needs to be played through a physical sound card located in the front row of the vehicle; and transmit the audio data of the first application and / or the audio data of the second application to the physical sound card located in the front row of the vehicle for playback based on the first audio playback parameter and the second audio playback parameter.
10. A vehicle computer, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the audio playback method as described in any one of claims 1 to 8. 11 . A storage medium, when instructions in the storage medium are executed by a processor of a vehicle computer, the vehicle computer is enabled to execute the audio playback method according to any one of claims 1 to 8.