Vehicle audio playback method and device
By establishing a data channel between the electric vehicle's audio system and the audio playback module, and generating audio playback messages, the problem of low control efficiency of the electric vehicle's external speakers is solved, achieving intelligent control and efficient audio playback, and improving the user experience.
Patent Information
- Application Number
- CN202410787030.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Current electric vehicles lack an effective method for controlling the external horn, requiring users to manually turn on the horn to play music, which is inefficient and negatively impacts the user experience.
By establishing a data channel between the vehicle audio system and the audio playback module, audio playback messages are generated to control the playback of audio playback devices inside and outside the vehicle, thus achieving intelligent control.
It improves the playback efficiency of in-vehicle and external audio playback devices, enhancing the user experience.
Smart Images

Figure CN118618222B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a method and apparatus for playing vehicle audio. Background Technology
[0002] With increasing work pressure in modern society, people are increasingly enjoying outdoor camping and picnics to relax on weekends and holidays. To enhance comfort and atmosphere, people often play music during these picnics.
[0003] In response, people generally choose to carry outdoor Bluetooth speakers and other music playback devices. However, since there are no charging devices outdoors, and the power of Bluetooth speakers and other music playback devices is limited, this can easily lead to insufficient power and affect the music playback effect.
[0004] In response to this, existing technologies include electric vehicles equipped with external speakers. Compared to Bluetooth audio devices, playing music through the external speakers of electric vehicles is more popular. However, because existing electric vehicles lack an effective method for controlling the external speakers, users need to manually turn on the speakers and set them to play music, which is inefficient and negatively impacts the user experience. Summary of the Invention
[0005] This application provides a vehicle audio playback method and apparatus to solve the technical problems in the prior art of low processing efficiency when processing alarm messages sent by vehicles, especially the inability to process high-concurrency and high-frequency alarm messages in a timely manner, and the tendency to inaccurate processing of alarm messages and waste of system resources when alarm messages come from the same vehicle.
[0006] In a first aspect, this application provides a vehicle audio playback method applied to a vehicle audio system. The vehicle audio system is connected to an audio playback module via a first number of data channels. The audio playback module is used to control audio playback devices installed inside and / or outside the vehicle to play audio. The method includes:
[0007] Acquire the audio data to be played and generate an audio playback message corresponding to the audio data to be played. The audio playback message includes the playback settings of each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels.
[0008] Based on the type of audio data, a target data channel for transmitting the audio data is determined from the first number of data channels;
[0009] The audio playback message is sent to the audio playback module, and the audio data is transmitted to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data.
[0010] Secondly, this application provides a vehicle audio playback device applied to a vehicle audio system. The vehicle audio system is connected to an audio playback module via a first number of data channels. The audio playback module is used to control audio playback devices installed inside and / or outside the vehicle to play audio. The device includes:
[0011] The acquisition module is used to acquire audio data to be played and generate an audio playback message corresponding to the audio data to be played. The audio playback message includes the playback settings of each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels.
[0012] The determining module is configured to determine, from the first number of data channels, the target data channel for transmitting the audio data based on the type of the audio data;
[0013] The sending module is used to send the audio playback message to the audio playback module and transmit the audio data to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data.
[0014] The technical solution provided in this application embodiment acquires audio data to be played, generates an audio playback message corresponding to the audio data to be played, and the audio playback message includes playback settings for each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in a first number of data channels. According to the type of the audio data, a target data channel for transmitting the audio data is determined from the first number of data channels, the audio playback message is sent to the audio playback module, and the audio data is transmitted to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data. This technical solution establishes a first number of data channels between the vehicle audio system and the audio playback module, allowing different types of audio data to be transmitted through different data channels. Then, audio playback messages control the target audio playback device for each data channel, enabling the control of audio data playback inside or outside the vehicle, or simultaneously inside and outside the vehicle, by constructing audio playback messages. This achieves intelligent control of the vehicle's in-vehicle and / or external audio playback devices, improving the playback efficiency of in-vehicle and external audio playback devices and enhancing the user experience. Attached Figure Description
[0015] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0017] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0018] Figure 1 This is a schematic diagram of the structure of a vehicle audio playback system provided in an embodiment of this application;
[0019] Figure 2 A flowchart illustrating an embodiment of a vehicle audio playback method provided in this application;
[0020] Figure 3A flowchart illustrating another embodiment of a vehicle audio playback method provided in this application;
[0021] Figure 4 A flowchart illustrating another embodiment of a vehicle audio playback method provided in this application;
[0022] Figure 5 A flowchart illustrating another embodiment of a vehicle audio playback method provided in this application;
[0023] Figure 6 A flowchart illustrating another embodiment of a vehicle audio playback method provided in this application;
[0024] Figure 7 A flowchart illustrating another embodiment of a vehicle audio playback method provided in this application;
[0025] Figure 8 A block diagram illustrating an embodiment of a vehicle audio playback device provided in this application;
[0026] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0029] To address the technical problem that existing electric vehicles lack an effective method for controlling external horns, requiring users to manually turn on the horn and set it to play music—a process that is inefficient and negatively impacts user experience—this application provides a vehicle audio playback method and apparatus. By establishing a first number of data channels between the vehicle's audio system and the audio playback module, different types of audio data are transmitted through these channels. Then, audio playback messages control the target audio playback device for each data channel. This allows for control over audio data playback inside or outside the vehicle, as well as simultaneously inside and outside the vehicle, through the construction of audio playback messages. This achieves intelligent control of the vehicle's in-vehicle and / or external audio playback devices, improving playback efficiency and enhancing the user experience.
[0030] To facilitate understanding of the vehicle audio playback method provided in this application, the vehicle audio playback system involved in this application will be explained below.
[0031] See Figure 1 This is a schematic diagram of the structure of a vehicle audio playback system provided in an embodiment of this application. Figure 1 As shown, the vehicle audio playback system 10 may include: a vehicle audio system 11, an audio playback module 12, an audio playback device 13 and an audio playback device 14 located inside the vehicle, and an audio playback device 15 located outside the vehicle.
[0032] The aforementioned vehicle audio playback system 10 refers to a system used to control the playback of audio in a vehicle.
[0033] The aforementioned vehicle audio system 11 can be a built-in audio system for processing in-vehicle audio, such as an IVI system (In-Vehicle Infotainment). This system utilizes a dedicated in-vehicle central processor, based on the vehicle bus system and internet services, to form a comprehensive in-vehicle information processing system. IVI can realize a range of applications including 3D navigation, real-time traffic updates, IPTV, driver assistance, fault detection, vehicle information, vehicle control, mobile office, wireless communication, online entertainment functions, and TSP services, greatly enhancing the vehicle's electronic, networked, and intelligent levels.
[0034] The aforementioned audio playback module 12 refers to a module used to control the audio playback device of a vehicle to play audio. It can be connected to audio playback devices located inside and outside the vehicle, and control the audio data to be played to be played in the audio playback devices inside and outside the vehicle.
[0035] The aforementioned audio playback devices 13 and 14 are audio playback devices located inside the vehicle, such as speakers, which may be in-vehicle speakers and headrest speakers, respectively.
[0036] The aforementioned audio playback device 15 is an audio playback device located outside the vehicle, such as an external speaker installed outside the vehicle.
[0037] It is understood that the aforementioned audio playback devices can play any type of audio data, such as multimedia audio (e.g., music), voice navigation audio, system prompt audio, and voice assistant audio.
[0038] It should be noted that the embodiments of this application do not limit the number and location of the audio playback devices described above.
[0039] In this embodiment of the application, the vehicle audio system can be connected to the audio playback module through a first number of data channels, and use the vehicle audio playback method provided in this embodiment of the application to generate an audio playback message for controlling the playback of audio data, and send the generated audio playback message to the audio playback module. At the same time, the audio data to be played can be sent to the audio playback module using the first number of data channels.
[0040] After receiving the audio data to be played and the audio playback message, the audio playback module can select the target audio playback device from the connected in-vehicle and out-of-vehicle audio playback devices according to the audio playback message, and play the aforementioned audio data through the target audio playback device.
[0041] The vehicle audio playback method provided in this application will be further explained and described below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.
[0042] join Figure 2 This is a flowchart illustrating an embodiment of a vehicle audio playback method provided in this application. As an embodiment, this method can be applied to a vehicle audio system, for example... Figure 1 The vehicle audio system 11 in the vehicle audio playback system 10 shown. (As shown...) Figure 2 As shown, the process may include the following steps:
[0043] Step 201: Obtain the audio data to be played.
[0044] The aforementioned audio data is audio data to be played. In this embodiment of the application, the aforementioned audio data may include, but is not limited to: multimedia audio, voice audio, navigation audio, telephone audio, ringtone audio, intelligent driving prompt audio, system prompt audio, notification audio, device emergency alarm prompt audio, instrument prompt audio, radar prompt audio, etc.
[0045] In one embodiment, when the vehicle audio system detects that there is audio data to be played, it can directly acquire the audio data to be played.
[0046] As an exemplary implementation, the aforementioned audio data can be multimedia audio data, such as Bluetooth music, USB flash drive music, or online music. Therefore, when the vehicle audio system detects operations such as playing music via Bluetooth, inserting a USB flash drive, or playing music via the network within the vehicle, it can directly acquire the audio data to be played.
[0047] Step 202: Generate an audio playback message corresponding to the audio data to be played. The audio playback message includes the playback settings of each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels.
[0048] The aforementioned audio playback message refers to a message generated by the vehicle audio system based on user settings and other operations to control the playback of audio data. It can be used to instruct the audio playback device that plays the audio data, as well as to instruct the audio playback device that plays the audio data and the playback settings such as the volume when the audio playback device plays the audio data.
[0049] In this embodiment, the vehicle audio system can communicate with the audio playback module through a first number of data channels, wherein the data channels can be 16 channels, 32 channels, etc., and this embodiment does not limit this. The audio playback module can be used to control audio playback devices installed inside and / or outside the vehicle to play audio.
[0050] Furthermore, the aforementioned data channels can be used to transmit audio data. In order to ensure that the audio data can be transmitted efficiently and accurately, the vehicle audio system can pre-divide the first number of data channels according to the types of audio data, that is, each type of audio data is transmitted through a fixed data channel.
[0051] For example, assuming the first quantity is 16, the audio data may include the following types: multimedia audio, voice audio, navigation audio, telephone audio, ringtone audio, intelligent driving prompt audio, system prompt audio, notification audio, device emergency alarm prompt audio, instrument prompt audio, and radar prompt audio.
[0052] Based on this, the above-mentioned types of audio data can be divided into the following data channels: Multimedia audio: dual channels; Voice audio: 1 channel; Navigation audio: 1 channel; Telephone audio: 1 channel; Ringtone audio: 1 channel; Intelligent driving prompt audio: 1 channel; System prompt audio: 1 channel; Notification audio: 1 channel; Device emergency alarm prompt audio: 1 channel; Instrument panel prompt audio: dual channels; Radar prompt audio: 4 channels. This completes the division of all 16 channels. The division order can be from first to last or from last to first; this embodiment does not impose any limitation on this.
[0053] As described above, each type of audio data can have a unique corresponding data channel. This channel can be a fixed data channel (the division rules remain unchanged after the data channel is divided) or a non-fixed data channel (the data channel is divided periodically or before each transmission of audio data). In other words, different types of audio data have different corresponding data channels during transmission.
[0054] Based on the above, when controlling the playback of audio data, the vehicle audio system can instruct on the playback settings for the audio data by generating audio playback messages. These playback settings include the target audio playback device for playing the audio data, and / or the playback volume, etc.
[0055] Furthermore, the aforementioned audio playback messages can be configured for each data channel, thereby ensuring that the playback settings for each type of audio data are controlled.
[0056] As an optional implementation, the audio playback message can be composed of multiple bits. In this case, one or more bits can be set for each data channel in the audio playback message, and the value of the bit can correspond to one or more control commands.
[0057] As an exemplary implementation, each data channel may correspond to one or more bits, and the binary sequence of bits corresponding to each data channel may correspond to a playback setting.
[0058] For example, each data channel can correspond to two bits, and the binary sequence of the two bit values corresponds to a playback channel. For example, 11 indicates that the audio data is played on the first audio playback device in the car, 10 indicates that the audio data is played on the second audio playback device in the car, 01 indicates that the audio data is played on the audio playback device outside the car, and 00 indicates that the audio data is played on both the audio playback device inside the car and the audio playback device outside the car at the same time.
[0059] As another exemplary implementation, each data channel may correspond to one or more bits, and each bit corresponding to each data channel may correspond to a playback setting.
[0060] For example, suppose an audio playback message is used to instruct an audio playback device to play audio data. Further suppose the vehicle has two in-vehicle audio playback devices (headrest horns and interior speakers) and one external audio playback device (external speaker). Based on this, each data channel can correspond to three bits, with each bit corresponding to one audio playback device. When the bit value is the first value (e.g., 1), it indicates that the audio data is being played on that audio playback device; when the bit value is the second value (e.g., 0), it indicates that the audio data is not being played on that audio playback device.
[0061] In one embodiment, the aforementioned audio playback message may include a first audio playback message, which is a message that controls the playback of audio data in an audio playback device inside or outside the vehicle. Different types of audio data may correspond to different data channels during transmission, and the data channel corresponding to each type of audio data corresponds to a second number of bits in the first audio playback message. Each bit corresponds to a playback setting of an audio playback device.
[0062] As for the specifics of how the first audio playback message is generated, it can be explained below. Figure 3 The process shown will be explained in detail here.
[0063] In another embodiment, the aforementioned audio playback message may include a second audio playback message, which may be a message controlling the playback volume of audio data in an audio device. Different types of audio data correspond to different data channels at the time of transmission, and the data channel corresponding to each type of audio data corresponds to multiple bits in the second audio playback message.
[0064] As for the specifics of how the second audio playback message is generated, it can be explained below. Figure 4 The process shown will be explained in detail here.
[0065] In another embodiment, the audio playback message may include the first audio playback message and the second audio playback message.
[0066] As for the specifics of how the first and second audio playback messages are generated, these will be explained in detail below. Figure 3 and Figure 4 The process shown will be explained in detail here.
[0067] Step 203: Based on the type of audio data mentioned above, determine the target data channel for transmitting the audio data from the first number of data channels.
[0068] The above-mentioned audio data types refer to the types of audio data, such as multimedia audio types, in-vehicle navigation audio types, telephone audio types, etc.
[0069] As described in step 202 above, the vehicle audio system and the audio playback module are connected through a first number of data channels. When transmitting audio data, different data channels are pre-defined for different types of audio data, that is, different types of audio data are transmitted through different data channels.
[0070] Based on this, before transmitting the audio data to be played, the vehicle audio system can first determine the target data channel for transmitting the audio data from a first number of data channels according to the type of audio data.
[0071] As an alternative implementation, since different types of audio data come from different sources, the vehicle audio system can determine the type of audio data based on its source.
[0072] As another alternative implementation, the vehicle audio system can determine the type of audio data by inputting the audio data into a preset analysis model.
[0073] In one embodiment, the vehicle audio system may pre-store the correspondence between audio data types and data channels. Based on this, after determining the type of audio data to be played, the vehicle audio system can determine the target data channel corresponding to that audio data type according to the aforementioned correspondence.
[0074] Step 204: Send the above audio playback message to the audio playback module, and transmit the audio data to the audio playback module through the above target data channel, so that the audio playback module determines the target audio playback device corresponding to the above target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the above audio data.
[0075] The aforementioned audio playback module is used to control audio playback devices inside and / or outside the vehicle to play audio.
[0076] In this embodiment of the application, after the vehicle audio system determines the audio data to be played and the audio playback message to control the playback of the audio data, it can directly send the audio playback message to the audio playback module. At the same time, the audio data to be played can be sent to the audio playback module through a determined target data channel.
[0077] After receiving the aforementioned audio data and audio playback message, the audio playback module can determine the target audio playback device corresponding to the target data channel based on the playback settings in the audio playback message, and control the target audio playback device to play the audio data.
[0078] As for how the audio playback module specifically determines the target audio playback device based on the playback settings in the audio playback message, this will be explained in detail below. Figure 5 and Figure 6 The process shown will be explained in detail here.
[0079] In addition, before determining the target data channel for transmitting audio data from a first number of data channels based on the type of audio data, the vehicle audio system may first determine the target audio playback device for playing audio data based on user settings.
[0080] Optionally, if the target audio playback device is an external audio playback device, the vehicle's current gear and speed can be obtained. When the gear is a preset gear (e.g., parking gear) and the speed is a preset value (e.g., 0), it indicates that the vehicle is in a parked state and audio data can be played through the external audio playback device. Therefore, the step of determining the target data channel for transmitting audio data from a first number of data channels based on the type of audio data can continue to be executed.
[0081] Optionally, when the target audio playback device is an external audio playback device and audio data is played through the target audio playback device, the vehicle's current gear and speed can be obtained. When the gear is not a preset gear (e.g., starting gear or reverse gear) and the speed is not a preset value, i.e., the speed is greater than 0, it indicates that the vehicle is in a starting state and audio data cannot be played through the external audio playback device. Therefore, the external audio playback device can be controlled to stop playing audio data.
[0082] The technical solution provided in this application embodiment acquires audio data to be played, generates an audio playback message corresponding to the audio data to be played, and the audio playback message includes playback settings for each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in a first number of data channels. According to the type of the audio data, a target data channel for transmitting the audio data is determined from the first number of data channels, the audio playback message is sent to the audio playback module, and the audio data is transmitted to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data. This technical solution establishes a first number of data channels between the vehicle audio system and the audio playback module, allowing different types of audio data to be transmitted through different data channels. Then, audio playback messages control the target audio playback device for each data channel, enabling the control of audio data playback inside or outside the vehicle, or simultaneously inside and outside the vehicle, by constructing audio playback messages. This achieves intelligent control of the vehicle's in-vehicle and / or external audio playback devices, improving the playback efficiency of in-vehicle and external audio playback devices and enhancing the user experience.
[0083] See Figure 3 This is a flowchart of another embodiment of a vehicle audio playback method provided in this application. Figure 3 The process shown is in Figure 2 Based on the illustrated process, this section describes how an audio playback message is generated when the audio playback message is the first audio playback message. For example... Figure 3 As shown, the process may include the following steps:
[0084] Step 301: Obtain the user's playback settings for audio data through a visual interface.
[0085] The aforementioned playback settings refer to the audio playback devices that users set through a visual interface for playing audio data. For example, there may be a visual interface inside the vehicle with a button that allows users to switch between different audio playback devices. For instance, clicking the button once will play the audio data on the in-vehicle audio playback device, while clicking it again will switch the audio data to an external audio playback device.
[0086] In this embodiment of the application, the vehicle audio system can obtain the user's playback settings for audio data through a visual interface, and then generate a first audio playback message based on the playback settings.
[0087] Step 302: Based on the type of audio data, determine a second number of first target bits in the preset first initial message.
[0088] Depend on Figure 2 As can be seen from the description of step 202 in the illustrated process, the first audio playback message can be used to indicate the audio playback device corresponding to each type of audio data set by the user.
[0089] Furthermore, the audio data may include multiple types, and different types of audio data may be transmitted through different data channels. The data channel for transmitting each type of audio data may correspond to a second number of bits in the first audio playback message, and each bit may correspond to a playback setting of an audio playback device.
[0090] For example, multimedia audio corresponds to the first data channel, and the first data channel can correspond to the first three bits in the first audio playback message. The first bit is used to indicate whether the audio data of the data channel is played on the first audio playback device in the vehicle (e.g., 1 indicates playback, 0 indicates no playback), the second bit is used to indicate whether the audio data of the data channel is played on the second audio playback device in the vehicle (e.g., 1 indicates playback, 0 indicates no playback), and the third bit is used to indicate whether the audio data of the data channel is played on an audio playback device outside the vehicle (e.g., 1 indicates playback, 0 indicates no playback).
[0091] Based on this, the vehicle audio system can determine a second number of first target bits in a preset first initial message according to the type of audio data. The aforementioned first initial message refers to a message template that has not been modified in the initial state, such as a 64-bit message. This first initial message can be a message in which all bits are 0, and the aforementioned first audio playback message can be a message in which the first target bits have been modified.
[0092] As an exemplary implementation, the vehicle audio system can determine the target data channel for transmitting audio data based on the type of audio data. Then, a second number of first target bits corresponding to that target data channel can be determined in the first initial message.
[0093] For example, suppose the audio data is multimedia audio, and its target data channel in the first number of data channels is the first data channel. Continuing to assume that this first data channel corresponds to the first three bits in the first initial message, then these first three bits can be determined as the second number of first target bits corresponding to the type of audio data.
[0094] Step 303: Based on the above playback settings, set the first target bit to obtain the first audio playback message.
[0095] As described above, users can select the audio playback device from which they want to play audio data through a visual interface.
[0096] Based on this, the vehicle audio system can set the first target bit corresponding to the audio data according to the playback settings set by the user, thereby obtaining the first audio playback message.
[0097] As an optional implementation, the target audio playback device for playing the audio data can be determined based on the playback settings. Each of the aforementioned first target bits corresponds to a playback setting of an audio playback device; that is, the value of the first target bit can determine whether to play the audio data on the audio playback device corresponding to that first target bit.
[0098] Therefore, the vehicle audio system can set the value of the first target bit corresponding to the target audio playback device to a first preset value, and set the values of the other first target bits to a second preset value. The first preset value indicates that audio data is played in the corresponding audio playback device, for example, 1, and the second preset value indicates that audio data is not played in the corresponding audio playback device.
[0099] For example, suppose the first initial message is 64 bits, and the first target bits corresponding to the determined audio data are the first three bits, with the values of the first three bits being 0 in the first initial message. Further, the first bit corresponds to the playback settings of the first audio playback device inside the vehicle, the second bit corresponds to the playback settings of the second audio playback device inside the vehicle, and the third bit corresponds to the playback settings of the audio playback device outside the vehicle.
[0100] Continuing the assumption that the user-defined target audio playback device is an external audio playback device, and that 1 indicates playing audio data on the corresponding audio playback device, while 0 indicates not playing audio data on the corresponding audio playback device, then the value of the third bit in the first initial message can be set to 1 to obtain the first audio playback message. It is understood that the audio data can be of one type or include multiple types of audio data. When the audio data includes multiple types of audio data, the bits in the first initial message can be set for each type of audio data according to the method described above to obtain the first audio playback message corresponding to each type of audio data.
[0101] The technical solution provided in this application obtains the user's playback settings for audio data through a visual interface. Based on the type of audio data, a second number of first target bits are determined in a preset first initial message. According to the playback settings, the first target bits are set to obtain a first audio playback message. This technical solution achieves fast and accurate generation of audio playback messages by individually mapping the type of audio data to bits in the audio playback message and modifying the values of the corresponding bits according to the user's playback settings.
[0102] See Figure 4 This is a flowchart illustrating another embodiment of a vehicle audio playback method provided in this application. Figure 4 The process shown is in Figure 3 Based on the illustrated process, this section describes how the second audio playback message is specifically generated, given that the audio playback message includes both a first and a second audio playback message. For example... Figure 4 As shown, the process may include the following steps:
[0103] Step 401: Obtain the user's playback volume settings for audio data through a visual interface, or obtain pre-stored playback volume settings.
[0104] The above playback volume setting refers to the playback volume set for the target audio playback device when playing audio data.
[0105] The aforementioned second audio playback message is a message that controls the playback volume of audio data in the audio playback device. Different types of audio data correspond to different data channels during transmission, and each type of audio data corresponds to multiple bits in the second audio playback message.
[0106] In practical applications, when controlling audio playback devices to play audio data, different users have different volume requirements, so users need to set the playback volume during playback.
[0107] Therefore, a volume setting button can be present inside the vehicle to adjust the volume of audio playback. Users can use this button to set the desired playback volume. Consequently, the vehicle's audio system can obtain the user's audio playback volume settings through a visual interface.
[0108] Furthermore, since the user may not have set the corresponding playback volume when the audio playback device initially plays the audio data, the vehicle audio system can store the volume value of the played audio data into a preset database after each playback.
[0109] Based on this, the vehicle audio system can also access pre-stored playback volume settings.
[0110] Step 402: Based on the type of audio data, determine multiple second target bits in the preset second initial message.
[0111] In this embodiment, audio data may include multiple types, and different types of audio data may be transmitted through different data channels. Each data channel transmitting each type of audio data may correspond to multiple bits in the second audio playback message. The number of bits corresponding to different data channels in the second audio playback message may be the same or different. This embodiment does not impose any restrictions on this.
[0112] In this context, the bits corresponding to the data channel for each type of audio data in the second audio playback message can be used to represent the set volume value. For example, if the multimedia audio corresponds to the first data channel, and the first data channel corresponds to the first seven bits in the second audio playback message, then extracting the binary sequence of these seven bits will yield a volume value, such as 0011101, which corresponds to a value of 29. Therefore, when the multimedia audio is played, its playback volume value can be 29.
[0113] In addition, this bit can also represent the volume range. For example, if a certain audio data corresponds to three bits in the second audio playback message, then these three bits can represent the playback volume range, such as high, medium, and low.
[0114] Furthermore, when the first bit is 1, it indicates that the volume playback range is high; when the first bit is 0 and the second bit is 1, it indicates that the volume playback range is medium; when both bits are 0 and the third bit is 1, it indicates that the volume playback range is low; and when all three bits are 0, it indicates that the playback is muted.
[0115] Furthermore, the above three bits can be converted to decimal. When it is 0, it indicates mute; when it is 1, it indicates low volume; when it is 2, it indicates medium volume; and when it is 3, it indicates high volume.
[0116] As an exemplary implementation, the bit allocation in the second audio playback message described above can be shown in Table 1 below:
[0117] Table 1
[0118]
[0119]
[0120] Based on this, the vehicle audio system can determine multiple second target bits in a preset second initial message according to the type of audio data. The aforementioned second initial message refers to a message template that has not been modified in the initial state, such as a 64-bit message. This second initial message can be a message in which all bits are 0, and the aforementioned second audio playback message can be a message with the second target bits modified.
[0121] As an exemplary implementation, the vehicle audio system can determine the target data channel for transmitting audio data based on the type of audio data. Then, a plurality of second target bits corresponding to that target data channel can be determined in a second initial message.
[0122] For example, suppose the audio data is multimedia audio, and its target data channel in the first number of data channels is the first data channel. Continuing to assume that this first data channel corresponds to the first seven bits in the second initial message, then these first seven bits can be identified as multiple second target bits corresponding to the type of audio data.
[0123] Step 403: Based on the playback volume setting, set multiple second target bits to obtain the second audio playback message.
[0124] In this embodiment of the application, the vehicle audio system can pre-set the correspondence between the number of bits and the volume setting, such as the correspondence shown in Table 1 above. When the number of bits is 7, it represents the specific volume value, and when the number of bits is 3, it represents the volume playback range.
[0125] Based on this, once the vehicle audio system determines the second target bit that needs to be set, it can obtain the volume value corresponding to the playback volume setting and determine the number of bits of the second target bit.
[0126] Optionally, if the number of bits mentioned above is the third number, it means that the bits of the audio data corresponding to the second audio playback message are used to represent the specific volume value. Therefore, the volume value can be converted into a binary sequence of the third number of bits, and the value of this binary sequence can be mapped one-to-one with the value of the second target bit. Here, the third number is used to represent the number of specific volume values, for example, 7.
[0127] Optionally, when the number of bits mentioned above is the fourth number, it means that the bits of the audio data corresponding to the second audio playback message are used to indicate the volume playback range. Therefore, the target volume range to which the volume value set by the user belongs can be determined (e.g., high (70-100), medium (40-69), low (0-39)).
[0128] Then, based on the preset correspondence between volume ranges and binary sequences, the target binary sequence corresponding to the target volume range can be determined, and this target binary sequence can be matched one-to-one with the values of the second target bits. The target binary sequence may include a fourth number of bits. The aforementioned correspondence refers to the preset correspondence between volume ranges and binary sequences; for example, "high" corresponds to the binary sequence 011, "medium" corresponds to the binary sequence 010, and "low" corresponds to the binary sequence 001.
[0129] The technical solution provided in this application obtains the user's playback volume settings for audio data through a visual interface, or obtains pre-stored playback volume settings. Based on the type of audio data, multiple second target bits are determined in a preset second initial message. These second target bits are then set according to the playback volume settings to obtain a second audio playback message. This technical solution, by mapping the playback volume value of each type of audio data to the bits in the second audio playback message, allows for the direct determination and modification of the corresponding bits when generating the second audio playback message based on the pre-set volume values of the audio data. This enables the efficient and rapid generation of a second audio playback message for controlling the playback volume of audio data.
[0130] See Figure 5 This is a flowchart illustrating another embodiment of a vehicle audio playback method provided in this application. Figure 5 The process shown is in Figure 3Based on the illustrated process, this section describes how the audio playback module specifically determines the target audio playback device when the audio playback message includes a first audio playback message. For example... Figure 5 As shown, the process may include the following steps:
[0131] Step 501: Determine the first target data channel for receiving audio data.
[0132] Step 502: Determine the second number of third target bits corresponding to the first target data channel in the first audio playback message.
[0133] The following provides a unified explanation of steps 501 and 502:
[0134] pass Figure 2 and Figure 3 As shown in the flowchart, when transmitting audio data, the vehicle audio system can set up an independent data channel for each type of audio data, meaning that different types of audio data are transmitted through different data channels. Furthermore, the first audio playback message can correspond to a second number of bits for each data channel, and each bit can correspond to an audio playback device inside or outside the vehicle. Its bit value is used to indicate whether the audio data is played on the corresponding audio playback device.
[0135] Based on this, when the audio playback module receives audio data, it can determine the target data channel for receiving the audio data (hereinafter referred to as the first target data channel for ease of description). Then, it can determine the second number of target bits corresponding to the first target data channel in the first audio playback message (hereinafter referred to as the third target bits for ease of distinction).
[0136] Step 503: Determine the bit value of each third target bit.
[0137] Step 504: Determine the audio playback device corresponding to the third target bit with the bit value of the first preset value as the target audio playback device.
[0138] The following provides a unified explanation of steps 503 and 504:
[0139] Depend on Figure 3 As shown in the process, in the first audio playback message, when the bit value is the first preset value, it indicates that the audio data will be played in the audio playback device corresponding to that bit value.
[0140] Based on this, when the vehicle audio system determines the third target bit corresponding to the audio data in the first audio playback message, it can determine the bit value of each third target bit.
[0141] Optionally, if the bit value is a first preset value, it means that the audio data can be played in the audio playback device corresponding to the third target bit. Therefore, the audio playback device corresponding to the third target bit with the bit value of the first preset value can be determined as the target audio playback device.
[0142] Conversely, if the bit value is not the first preset value, it means that the audio data cannot be played on the audio playback device corresponding to the third target bit. Therefore, the audio playback device corresponding to the third target bit can not be determined as the target audio playback device.
[0143] The technical solution provided in this application provides a method for determining the target audio playback device by identifying a first target data channel for receiving audio data, determining a second number of third target bits corresponding to the first target data channel in a first audio playback message, determining the bit value of each third target bit, and identifying the audio playback device corresponding to the third target bit with a first preset value. This technical solution assigns a bit to each audio playback device in the first audio playback message, and when audio data needs to be played in that audio playback device, the value of the corresponding bit can be directly set to the first preset value. This allows for the direct determination of multiple bits corresponding to the audio data when identifying the target audio playback device, and the identification of the target bit with the first preset value, thereby identifying the audio playback device corresponding to that target bit as the target audio playback device. This achieves efficient and accurate identification of the target audio playback device.
[0144] See Figure 6 The following is a flowchart of an embodiment of a vehicle audio playback method provided in this application. Figure 6 The process shown is in Figure 4 Based on the illustrated process, this paper describes how the audio playback module specifically determines the target audio playback device and controls the target audio playback device to play audio data when the audio playback message includes a first audio playback message and a second audio playback message. For example... Figure 6 As shown, the process may include the following steps:
[0145] Step 601: Determine the target audio playback device for playing audio data from the first audio playback message.
[0146] For a description of step 601, please refer to [link / reference]. Figure 5 The detailed description of the process shown will not be repeated here.
[0147] Step 602: Determine the target playback volume of the audio data from the second audio playback message.
[0148] Step 603: Control the target audio playback device to play the audio data at the target playback volume.
[0149] The following provides a unified explanation of steps 602 and 603:
[0150] Depend on Figure 4 As shown in the flowchart, the second audio playback message is used to instruct the audio playback device on the playback volume when playing audio data. Furthermore, each type of audio data may correspond to multiple bits in the second audio playback message, and these multiple bits are used to represent the playback volume.
[0151] Based on this, the volume playback module can determine the target playback volume of the audio data from the second audio playback message, and control the target audio playback device to play the audio data according to the target playback volume.
[0152] As an optional implementation, the audio playback module can determine the target data channel for receiving audio data (hereinafter referred to as the second target data channel for ease of distinction). Then, the target bit position corresponding to the second target data channel in the second audio playback message can be determined (hereinafter referred to as the fourth target bit position for ease of description).
[0153] After that, by Figure 4 As shown in the flowchart, the meaning differs depending on the number of bits corresponding to each type of audio data in the second audio playback message. As an exemplary implementation, when the number of bits is the third number, it represents the specific volume value; when the number of bits is the fourth number, it represents the volume range. It is understood that, to reduce message length, the fourth number can be less than the third number.
[0154] Based on this, the audio playback module can determine the number of target bits for the fourth target bit.
[0155] Optionally, if the target number of bits is a third number, a target binary sequence consisting of a third number of fourth target bits can be obtained (hereinafter referred to as the first target binary sequence for ease of description). Then, the first target binary sequence can be converted into a specific volume value, thereby determining that volume value as the target playback volume.
[0156] Optionally, when the number of target bits is a fourth number, a target binary sequence consisting of the fourth number of target bits can be obtained (hereinafter referred to as the second target binary sequence for ease of description). Then, the second target binary sequence can be converted into a playback value, and the target playback volume range corresponding to the playback value can be determined according to the preset correspondence between the playback value and the playback volume range, so that the target playback volume can be determined from the target playback volume range.
[0157] As an exemplary implementation, the average or median value of the target playback volume range can be determined as the target playback volume.
[0158] As another exemplary implementation, a volume value can be randomly selected from the target playback volume range as the target playback volume.
[0159] As another exemplary implementation, the target playback volume can be determined from historical playback values within the target playback volume range.
[0160] For example, suppose a playback value of 3 corresponds to a high playback volume range, a playback value of 2 corresponds to a medium playback volume range, a playback value of 1 corresponds to a low playback volume range, and a playback value of 0 corresponds to mute playback. Continuing to assume the playback value is determined to be 3, then the target playback volume range can be determined to be high, which can be the preset volume value range (70, 100). Therefore, a target playback volume can be selected from this range (70, 100).
[0161] The technical solution provided in this application determines the target audio playback device for playing audio data from a first audio playback message and the target playback volume for playing audio data from a second audio playback message, and controls the target audio playback device to play the audio data at the target playback volume. This technical solution, by determining the target audio playback device from the first audio playback message and the target playback volume from the second audio playback message, enables the audio playback module to control the target audio playback device to play audio data at the target playback volume. This achieves efficient and rapid determination of the target audio playback device and the target playback volume for playing audio data, thereby quickly realizing the playback of audio data and improving the user experience.
[0162] See Figure 7 The following is a flowchart of an embodiment of a vehicle audio playback method provided in this application. Figure 7 The illustrated process, based on modules and combined with a vehicle audio playback system, describes specifically how the vehicle audio playback method is implemented. Figure 7 As shown, the process may include the following: audio module, system settings module, vehicle audio system module, and external power amplifier (audio playback module).
[0163] The audio module can be used to play music and other audio, such as Bluetooth music, USB flash drive music, and online music. Users can play any music to the car's external speakers to enable music playback outside the car.
[0164] In the system settings module, users can click the switch button on the system settings interface to switch the currently playing music to external music playback.
[0165] The vehicle audio system module is internally divided into a sound setting module and an audio routing module according to their functions. The sound setting module is responsible for providing specific buttons to switch the playback channel for external music, while the audio routing module assembles audio routing CAN messages based on the switches in the sound settings and sends them to the external power amplifier module.
[0166] The external power amplifier is divided into a TDM management module and a mixing module. The TDM management module is used to receive audio data sent by the IVI audio system. The IVI and the external power amplifier use the TDM16 format to transmit 16 channels of audio data. The mixing module mixes the audio according to the strategy based on the routing CAN message of the IVI.
[0167] The specific method is as follows:
[0168] 1) During product design, the 16 channels of the vehicle audio system and external amplifier are classified according to their uses: multimedia (two channels), voice, navigation, telephone, ringtone, intelligent driving prompt tone, system prompt tone, notification tone, equipment emergency alarm prompt tone, instrument prompt tone (two channels), and radar prompt tone (4 channels).
[0169] 2) The amplifier's speaker output channel is mixed according to the CAN message rules of the route issued by the IVI. The message rules are as follows: It is known that a CAN message frame is 64 bits. Each bit is represented by a flag bit with 0 or 1, which represents an output channel. The TDM channel is divided into 11 uses, each use corresponds to 3 bits, and each bit corresponds to one output channel (headrest speaker, interior speaker or exterior speaker), occupying a total of 33 bits, leaving 31 bits.
[0170] 3) Since the audio volume is controlled by an external power amplifier, a set of messages is needed to control the volume of each channel. Each set of messages is 64 bits. Since the emergency alarm, instrument and radar have similar uses, they generally only use high, medium and low. These three channels only occupy 6 bits, leaving a total of 58 bits. The other channels are 0-100, which are represented by 7 bits. One set of messages is just enough, as shown in Table 1 above.
[0171] 4) When the setting or scene mode calls the interface for opening the external music of the audio system, the audio system determines the current gear and vehicle speed. If the current gear is P and the vehicle speed is 0, the second bit of the music amplifier channel interface is set to 1, indicating that the external music channel is opened, and this frame of CAN signal is sent to the external amplifier.
[0172] 5) When the external amplifier receives the channel switching notification, it first uses the default volume of the external music playback. After the vehicle system sends the CAN signal for switching the external music channel, it saves the current volume as the in-vehicle volume to the IVI system, and immediately sends down the external music volume stored internally. The amplifier updates the external music volume upon receiving it, and the interface is simultaneously updated for the user to view.
[0173] 6) Furthermore, since the audio layout inside the car is different from that outside, the outside uses a fixed outdoor mode. When the outside music channel is turned on, the audio channel of the outside music will always use this sound effect mode.
[0174] 7) When the user starts in D gear or reverses in R gear, the audio system settings module will automatically turn off the external music switch and play music using the in-car speakers. It will also send the in-car music volume to the external amplifier, save the current volume as the external volume to the IVI system, and update the interface back to the in-car volume.
[0175] Specific implementation steps:
[0176] S1. The user connects to the car's Bluetooth system and plays Bluetooth music. The settings interface displays three music channels: in-car, out-of-car, and in-car and out-of-car. The user can manually select either the out-of-car or in-car and out-of-car options.
[0177] S2. The audio system determines the current gear and vehicle speed, and then plays music outside the vehicle.
[0178] S3. Furthermore, when the user activates the camping mode, the scene mode will automatically turn on the external music switch, and the music will automatically start playing outside the car. In camping mode, the music will not stop after the car is locked; the music will only be affected when the user manually disconnects the car from the power.
[0179] S4. Furthermore, when a user connects to the car's remote screen mirroring assistant, the owner can use their phone's voice assistant to inquire about the car's battery level, enabling remote human-vehicle dialogue. This is achieved simply by switching the voice assistant's channel to the external environment when changing scene modes; the audio system will provide the same channel and volume switching interface as the external channel. Moreover, when recording outside the car, the voice assistant can be used to increase the volume of music outside the car without having to return to the car to operate it.
[0180] join Figure 8 This is a block diagram illustrating an embodiment of a vehicle audio playback device provided in this application. As one embodiment, Figure 8 The device shown can be applied to a vehicle audio system, which is connected to an audio playback module via a first number of data channels. The audio playback module is used to control audio playback devices installed inside and / or outside the vehicle to play audio.
[0181] like Figure 8 As shown, the device may include:
[0182] The acquisition module 81 is used to acquire audio data to be played and generate an audio playback message corresponding to the audio data to be played. The audio playback message includes the playback settings of each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels.
[0183] The determining module 82 is used to determine, from the first number of data channels, the target data channel for transmitting the audio data according to the type of the audio data;
[0184] The sending module 83 is used to send the audio playback message to the audio playback module and transmit the audio data to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data.
[0185] like Figure 9 The diagram shown is a structural schematic of an electronic device according to an embodiment of this application, including a processor 91, a communication interface 92, a memory 93, and a communication bus 94. The processor 91, communication interface 92, and memory 93 communicate with each other via the communication bus 94.
[0186] Memory 93 is used to store computer programs;
[0187] In one embodiment of this application, when the processor 91 executes the program stored in the memory 93, it implements the vehicle audio playback method provided in any of the foregoing method embodiments, including:
[0188] Acquire the audio data to be played and generate an audio playback message corresponding to the audio data to be played. The audio playback message includes the playback settings of each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels.
[0189] Based on the type of audio data, a target data channel for transmitting the audio data is determined from the first number of data channels;
[0190] The audio playback message is sent to the audio playback module, and the audio data is transmitted to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data.
[0191] This application also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the vehicle audio playback method provided in any of the foregoing method embodiments.
[0192] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0193] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software and a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0194] It should be understood that the terminology used herein is for the purpose of illustrating specific embodiments of the text only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in the specific order described or illustrated unless the order is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0195] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for playing audio in a vehicle, characterized in that, An application to a vehicle audio system, wherein the vehicle audio system is connected to an audio playback module via a first number of data channels, the audio playback module being used to control audio playback devices installed inside and / or outside the vehicle to play audio, the method comprising: The system acquires audio data to be played and generates an audio playback message corresponding to the audio data. The audio playback message includes playback settings for each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels. The audio playback message includes a first audio playback message and a second audio playback message. The first audio playback message controls the playback of audio data in the in-vehicle or out-of-vehicle audio playback device, and different types of audio data correspond to different data channels during transmission. The second audio playback message controls the playback volume of the audio data in the audio playback device, and each type of audio data corresponds to multiple bits in the second audio playback message for each data channel. Based on the type of audio data, a target data channel for transmitting the audio data is determined from the first number of data channels; The audio playback message is sent to the audio playback module, and the audio data is transmitted to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data.
2. The method according to claim 1, characterized in that, Each type of audio data corresponds to a second number of bits in the first audio playback message, and each bit corresponds to a playback setting of an audio playback device. The generation of the audio playback message corresponding to the audio data to be played includes: The user's playback settings for the audio data can be obtained through a visual interface; Based on the type of audio data, the second number of first target bits are determined in a preset first initial message; According to the playback settings, the first target bit is set to obtain the first audio playback message.
3. The method according to claim 2, characterized in that, Setting the first target bit according to the playback settings includes: Based on the playback settings, determine the target audio playback device for playing the audio data; Set the value of the first target bit corresponding to the target audio playback device to a first preset value; Set the values of the other first target bits to the second preset value.
4. The method according to claim 1, characterized in that, The generation of the audio playback message corresponding to the audio data to be played includes: The user's playback volume settings for the audio data can be obtained through a visual interface, or pre-stored playback volume settings can be obtained. Based on the type of audio data, a plurality of second target bits are determined in a preset second initial message; Based on the playback volume setting, multiple second target bits are set to obtain the second audio playback message.
5. The method according to claim 4, characterized in that, The step of setting multiple second target bits according to the playback volume setting to obtain the second audio playback message includes: Obtain the volume value corresponding to the playback volume setting, and determine the number of bits in the second target bit. When the number of bits is a third number, the volume value is converted into a binary sequence of the third number of bits, and the value of the binary sequence is matched one-to-one with the value of the second target bit. When the number of bits is the fourth number, the target volume range to which the volume value belongs is determined; according to the preset correspondence between the volume range and the binary sequence, the target binary sequence corresponding to the target volume range is determined, and the target binary sequence is matched one-to-one with the value of the second target bit, wherein the target binary sequence includes the fourth number of bits.
6. The method according to claim 2, characterized in that, When the audio playback message includes a first audio playback message, the audio playback module determines the target audio playback device in the following manner: Determine the first target data channel for receiving the audio data; Determine the second number of third target bits corresponding to the first target data channel in the first audio playback message; Determine the bit value of each of the third target bits; The audio playback device corresponding to the third target bit with the bit value of the first preset value is determined as the target audio playback device.
7. The method according to claim 4, characterized in that, When the audio playback message includes a first audio playback message and a second audio playback message, the audio playback module determines the target audio playback device and controls the target audio playback device to play the audio data in the following manner: The target audio playback device for playing the audio data is determined from the first audio playback message; Determine the target playback volume for playing the audio data from the second audio playback message; Control the target audio playback device to play the audio data at the target playback volume.
8. The method according to claim 7, characterized in that, Determining the target playback volume for playing the audio data from the second audio playback message includes: Determine the second target data channel for receiving the audio data; Determine the fourth target bit corresponding to the second target data channel in the second audio playback message; Determine the target number of the fourth target bit; When the number of target bits is a third number, a first target binary sequence composed of a third number of fourth target bits is obtained; the first target binary sequence is converted into a target playback volume. When the number of target bits is a fourth number, a second target binary sequence composed of the fourth number of target bits is obtained; the second target binary sequence is converted into a playback value; according to the preset correspondence between the playback value and the playback volume range, the target playback volume range corresponding to the playback value is determined, and the target playback volume is determined from the target playback volume range.
9. The method according to claim 1, characterized in that, Before determining the target data channel for transmitting the audio data from the first number of data channels based on the type of the audio data, the method further includes: The target audio playback device for playing audio data is determined based on user settings. If the target audio playback device is an external audio playback device, obtain the vehicle's current gear and speed; When the gear is a preset gear and the vehicle speed is a preset value, the step of determining the target data channel for transmitting the audio data from the first number of data channels according to the type of the audio data is executed.
10. The method according to claim 1, characterized in that, The audio data is one or more of the following: multimedia audio, voice audio, navigation audio, telephone audio, ringtone audio, intelligent driving prompt audio, system prompt audio, notification audio, device emergency alarm prompt audio, instrument prompt audio, and radar prompt audio.
11. A vehicle audio playback device, characterized in that, An application to a vehicle audio system, wherein the vehicle audio system is connected to an audio playback module via a first number of data channels, the audio playback module being used to control audio playback devices installed inside and / or outside the vehicle to play audio, the device comprising: An acquisition module is used to acquire audio data to be played and generate an audio playback message corresponding to the audio data to be played. The audio playback message includes playback settings for each in-vehicle and / or out-of-vehicle audio playback device corresponding to different data channels in the first number of data channels. The audio playback message includes a first audio playback message and a second audio playback message. The first audio playback message controls the playback of audio data in the in-vehicle or out-of-vehicle audio playback device, and different types of audio data correspond to different data channels during transmission. The second audio playback message controls the playback volume of the audio data in the audio playback device, and each type of audio data corresponds to multiple bits in the second audio playback message for each data channel. The determining module is configured to determine, from the first number of data channels, the target data channel for transmitting the audio data based on the type of the audio data; The sending module is used to send the audio playback message to the audio playback module and transmit the audio data to the audio playback module through the target data channel, so that the audio playback module determines the target audio playback device corresponding to the target data channel according to the playback settings in the audio playback message, and controls the target audio playback device to play the audio data.
Citation Information
Patent Citations
Audio processing method, audio playing control device, mobile device and vehicle
CN115373623A
Multi-voice prompt integration control system for vehicles
CN201951454U