Audio playing method and device, vehicle and medium
By forming a target network in multiple vehicles and sending start playback instructions, the problem of difficulty in playing audio synchronously by multiple vehicles is solved, and efficient audio synchronous playback effect is achieved.
Patent Information
- Application Number
- CN202311189124.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2025-03-14
AI Technical Summary
When multiple vehicles are parked within a certain range, it is difficult for users to achieve the synchronous playback of target audio by multiple vehicles at the same time. The operation is cumbersome and the randomness is high. The probability of synchronous playback is low and the playback effect is poor.
By in response to receiving the audio synchronous playback command, the first vehicle forms a target network and notifies the second vehicle to access the network; in response to receiving the start playback command of the target audio, a start playback command is sent to the second vehicle based on the target network to control multiple vehicles to play the target audio simultaneously.
It is realized that multiple vehicles are connected to the same network, the speakers are formed into a whole, and the audio playback of each vehicle is controlled simultaneously through the network, improving the effect of multiple vehicles playing the same audio simultaneously.
Smart Images

Figure CN119629594A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of audio playback, and in particular to an audio playback method, device, vehicle and medium. Background Art
[0002] Currently, vehicles are equipped with speakers for playing music and other audio content, which are essential components of the car entertainment system.
[0003] However, when multiple vehicles are parked within a certain range and the user wants multiple vehicles to play the target audio at the same time, the user needs to control each vehicle to play the target audio at the same time. The operation is cumbersome and random, the probability of achieving synchronous playback is low, and the playback effect is poor. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides an audio playback method, device, vehicle and medium.
[0005] A first aspect of the present disclosure provides an audio playback method, applied to a first vehicle, the method comprising:
[0006] In response to receiving the audio synchronous playback instruction, the first vehicle establishes a target network;
[0007] notifying at least one second vehicle other than the first vehicle to access the target network;
[0008] In response to receiving a start playing instruction of the target audio, a start playing instruction is sent to at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0009] A second aspect of the present disclosure provides an audio playback method, applied to a second vehicle, the method comprising:
[0010] The second vehicle accesses the target network, which is established by the first vehicle;
[0011] Receiving a start playing instruction of a target audio sent by the first vehicle based on the target network;
[0012] In response to a start playing instruction of the target audio sent by the first vehicle, the target audio is played simultaneously with the first vehicle.
[0013] A third aspect of the present disclosure provides an audio playback device, applied to a first vehicle, the device comprising:
[0014] A building module, configured to, in response to receiving an audio synchronous playback instruction, enable the first vehicle to build a target network;
[0015] a notification module, used for notifying at least one second vehicle other than the first vehicle to access the target network;
[0016] The first sending module is used to send the start playing instruction to at least one second vehicle based on the target network in response to receiving the start playing instruction of the target audio, so as to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0017] A fourth aspect of the present disclosure provides an audio playback device, applied to a second vehicle, the device comprising:
[0018] A network access module, used for the second vehicle to access a target network, the target network being established by the first vehicle;
[0019] A first receiving module is used to receive a start playing instruction of a target audio sent by a first vehicle based on a target network;
[0020] The playing module is used to respond to the start playing instruction of the target audio sent by the first vehicle and play the target audio simultaneously with the first vehicle.
[0021] A fifth aspect of the present disclosure provides a vehicle, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the audio playback method of the first aspect or the second aspect can be implemented.
[0022] A fifth aspect of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the audio playback method of the first aspect or the second aspect can be implemented.
[0023] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0024] The present invention forms a target network in response to receiving an audio synchronous playback instruction; notifies at least one second vehicle other than the first vehicle to access the target network; and in response to receiving a start playback instruction of the target audio, sends a start playback instruction to at least one second vehicle based on the target network, controls each second vehicle to play the target audio simultaneously with the first vehicle, can connect multiple vehicles to the same network, combine the speakers in the multiple vehicles into a whole, and simultaneously control the audio playback of each vehicle through the network, so that multiple vehicles can play the same audio synchronously, thereby improving the effect of synchronous audio playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, a second drawing can be obtained based on these drawings without paying any creative labor.
[0027] Figure 1 is a flow chart of an audio playback method provided by an embodiment of the present disclosure;
[0028] Figure 2a is a schematic diagram of a network connection provided by an embodiment of the present disclosure;
[0029] Figure 2b is a schematic diagram of vehicle distribution provided by an embodiment of the present disclosure;
[0030] Figure 3 is a flow chart of another audio playback method provided by an embodiment of the present disclosure;
[0031] Figure 4 is a flowchart of another audio playback method provided by an embodiment of the present disclosure;
[0032] Figure 5 is a flowchart of another audio playback method provided by an embodiment of the present disclosure;
[0033] Figure 6 is a structural schematic diagram of an audio playback device provided by an embodiment of the present disclosure;
[0034] Figure 7 It is a structural schematic diagram of another audio playback device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in a second manner different from that described herein; obviously, the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0038] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any second variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes a second element that is not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0039] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0040] Currently, vehicles are equipped with speakers for playing music and other audio content, which are essential components of the car entertainment system.
[0041] However, when multiple vehicles are parked within a certain range, for example, when a team gets off the vehicle to rest during a trip or gets off the vehicle to move around after arriving at the destination, if the user wants multiple vehicles to play the target audio at the same time, the user needs to control each vehicle to play the target audio at the same time. The operation is cumbersome and random, the probability of achieving synchronous playback is low, and the playback effect is poor.
[0042] In response to the defects of related technologies in synchronous audio playback in multiple vehicles, the embodiments of the present disclosure provide an audio playback method, device, vehicle and medium, which can connect multiple vehicles to the same network, combine the speakers in multiple vehicles into a whole, and simultaneously control the audio playback of each vehicle through the network, so that multiple vehicles can synchronously play the same audio, thereby improving the synchronous playback effect of the audio.
[0043] The audio playback method provided by the embodiment of the present disclosure may be executed by a vehicle, which may be understood as any device with processing and computing capabilities, and is equipped with at least one speaker.
[0044] In order to better understand the inventive concept of the embodiments of the present disclosure, the technical solutions of the embodiments of the present disclosure are described below in conjunction with exemplary embodiments.
[0045] Figure 1 is a flowchart of an audio playback method provided by an embodiment of the present disclosure, which is applied to a first vehicle, such as Figure 1As shown, the audio playback method provided in this embodiment includes the following steps:
[0046] Step 110: In response to receiving the audio synchronous playback instruction, the first vehicle establishes a target network.
[0047] In the disclosed embodiment, when the user wants multiple vehicles within a certain range to play the target audio at the same time, any one of the multiple vehicles can be determined as the first vehicle, and an audio synchronous playback instruction can be input to the first vehicle. For example, a voice instruction for audio synchronous playback can be input to the first vehicle, and the audio synchronous playback button of the first vehicle can be clicked, slid, etc. to implement the input of the start playback instruction. The first vehicle can respond to the received audio synchronous playback instruction to form a target network, wherein the target network can be an ad-hoc network. In other words, the first vehicle can be used as the master node of the ad-hoc network, and the other second vehicles to be added to the ad-hoc network can be subsequently notified so that the other second vehicles can be added to the ad-hoc network as slave nodes. When all vehicles to be communicated are added to the ad-hoc network, the quality inspection of each vehicle can be realized to communicate.
[0048] Among them, an ad hoc network can be understood as a local wireless communication network that allows individual communication devices, that is, individual vehicles, to communicate directly without a pre-configured infrastructure and without relying on a central infrastructure or network manager.
[0049] Among them, the process of the first vehicle establishing the target network can refer to related technologies and will not be described in detail here.
[0050] Step 120: Notify at least one second vehicle other than the first vehicle to access the target network.
[0051] In the disclosed embodiment, after the target network is established, the first vehicle may notify at least one second vehicle other than the first vehicle to access the target network. In other words, the at least one second vehicle other than the first vehicle may be used as a slave node of the target network.
[0052] In some embodiments, the first vehicle may broadcast a target network identifier of the target network to the target network, so that the second vehicle can access the target network corresponding to the target network identifier.
[0053] In the embodiment of the present disclosure, the target network identifier may be understood as identification information that can uniquely represent the identity information of the target network.
[0054] For example, Figure 2a is a schematic diagram of a network connection provided by an embodiment of the present disclosure, such as Figure 2aAs shown, 200 is a target network, which is an ad-hoc network here, 201 is a first vehicle, 202 , 203 , 204 are second vehicles, and the first vehicle 201 controls the audio playback of the second vehicles 202 , 203 , 204 through the target network 200 .
[0055] Step 130: In response to receiving a start playing instruction of the target audio, send a start playing instruction to at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0056] In the disclosed embodiment, a user can input a start playback instruction for the target audio to the first vehicle. For example, a voice instruction to start playing the target audio can be input to the first vehicle, and a button for starting to play the target audio of the first vehicle can be clicked, slid, or the like to be performed to input the start playback instruction. The first vehicle can, in response to receiving the start playback instruction for the target audio, send a start playback instruction to at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0057] For example, Figure 2b is a schematic diagram of a vehicle distribution provided by an embodiment of the present disclosure, such as Figure 2b As shown, Figure 2b There are a total of 4 vehicles, each of which is equipped with at least one speaker that can play audio, and the middle is the audience.
[0058] In some embodiments, in response to receiving a start playback instruction for the target audio, the first vehicle can send the start playback instruction for the target audio to at least one second vehicle based on the target network, so that the at least one second vehicle respectively obtains the audio identifier of the target audio and the start playback time of the target audio from the start playback instruction, and plays the target audio corresponding to the audio identifier at the start playback time simultaneously with the first vehicle.
[0059] In the disclosed embodiment, the first vehicle may, in response to receiving a start playing instruction for the target audio, obtain an audio identifier and a start playing time of the target audio from the start playing instruction. In the disclosed embodiment, the first vehicle may send a start playing instruction for the target audio to each second vehicle based on the target network, so that each second vehicle obtains the audio identifier and the start playing time of the target audio from the start playing instruction, and plays the target audio corresponding to the audio identifier at the start playing time.
[0060] In some other embodiments, in response to receiving a start playing instruction of the target audio, sending a start playing instruction to at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle may include steps 1301-1303:
[0061] Step 1301, in response to receiving a start playing instruction of a target audio, obtaining the distance between a first vehicle and a target audience, and for each second vehicle, sending a request for obtaining the distance between the second vehicle and the target audience to the second vehicle based on a target network.
[0062] For example, the distance between the vehicle and the target audience can be obtained by a distance measuring device arranged on the vehicle, which may include a radar or other equipment.
[0063] Step 1302: For each second vehicle, receiving the distance between the second vehicle and the target audience sent by the second vehicle based on the target network.
[0064] Step 1303: for each of the first vehicle and at least one second vehicle, determine a target playback volume corresponding to the distance between the vehicle and the target audience based on the corresponding relationship between the distance between the vehicle and the target audience and the playback volume, wherein the distance is positively correlated with the playback volume.
[0065] Among them, the distance between the vehicle and the target audience is positively correlated with the playback volume, that is, the greater the distance between the vehicle and the target audience, the louder the playback volume of the vehicle, and the smaller the distance between the vehicle and the target audience, the smaller the playback volume of the vehicle.
[0066] Step 1304: for each second vehicle, carry the target playback volume corresponding to the distance between the second vehicle and the target audience in the start playback instruction, and update the start playback instruction carrying the target playback volume to the start playback instruction corresponding to the second vehicle.
[0067] In the disclosed embodiment, for each second vehicle, in order to enable the second vehicle to play the target audio at a target playback volume corresponding to the distance between the second vehicle and the target audience, the first vehicle may carry the target playback volume corresponding to the distance between the second vehicle and the target audience in the start playback instruction, and update the start playback instruction after carrying the target playback volume to the start playback instruction corresponding to the second vehicle.
[0068] Step 1305: For each second vehicle, a start play instruction corresponding to the second vehicle is sent to the second vehicle based on the target network to control the second vehicle to play the target audio simultaneously according to the target play volume in the start play instruction and the target play volume corresponding to the distance between the first vehicle and the target audience.
[0069] In the disclosed embodiment, for each second vehicle, the first vehicle can send a start playback instruction corresponding to the second vehicle to the second vehicle based on the target network to control the second vehicle to play the target audio simultaneously according to the target playback volume in the start playback instruction and the target playback volume corresponding to the distance between the first vehicle and the target audience.
[0070] In the disclosed embodiment, for each second vehicle, in order to enable the second vehicle to play the target audio at the target playback volume corresponding to the distance between the second vehicle and the target audience, the first vehicle can carry the target playback volume corresponding to the distance between the second vehicle and the target audience in the start playback instruction, and update the start playback instruction after carrying the target playback volume to the start playback instruction corresponding to the second vehicle. The start playback instruction corresponding to the second vehicle is sent to the second vehicle based on the target network, and the second vehicle is controlled to play the target audio at the same time as the first vehicle at the target playback volume corresponding to the distance between the second vehicle and the target audience; wherein the first vehicle plays the target audio at the target playback volume corresponding to the distance between the first vehicle and the target audience.
[0071] In this way, the user can clearly hear the target audio being played at all distances from the vehicle, thereby improving the effect of simultaneous audio playback.
[0072] In the embodiment of the present disclosure, in response to receiving an audio synchronous playback instruction, a first vehicle establishes a target network; notifies at least one second vehicle other than the first vehicle to access the target network; in response to receiving a start playback instruction of the target audio, a start playback instruction is respectively sent to at least one second vehicle based on the target network to control at least one second vehicle to play the target audio simultaneously with the first vehicle. Multiple vehicles can be connected to the same network, speakers in multiple vehicles can be combined into a whole, and audio playback of each vehicle can be simultaneously controlled through the network, so that multiple vehicles can play the same audio synchronously, thereby improving the effect of synchronous audio playback.
[0073] Figure 3 is a flowchart of an audio playback method provided by an embodiment of the present disclosure, which is applied to a first vehicle, such as Figure 3 As shown, the audio playback method provided in this embodiment includes the following steps:
[0074] Step 310: In response to receiving the audio synchronous playback instruction, the first vehicle establishes a target network.
[0075] Step 320: Notify at least one second vehicle other than the first vehicle to access the target network.
[0076] Step 330: Receive a time synchronization request sent by at least one second vehicle.
[0077] In the disclosed embodiment, since the time information of the second vehicle may be out of sync with the first vehicle, in order to ensure the synchronous playback effect of the audio, the Network Time Protocol (NTP) can be used for time synchronization. The Network Time Protocol is a protocol used to synchronize device time in a computer network.
[0078] In the disclosed embodiment, the second vehicle may send a time synchronization request to the first vehicle, that is, the second vehicle requests time synchronization with the first vehicle, and the first vehicle may receive at least one time synchronization request sent by the second vehicle.
[0079] Step 340: For each second vehicle, in response to a time synchronization request of the second vehicle, the first real-time time of the first vehicle is sent to the second vehicle, so that the second real-time time of the second vehicle controlling itself is synchronized with the first real-time time.
[0080] In the disclosed embodiment, for each second vehicle, after receiving the time synchronization request sent by the second vehicle, the first vehicle can respond to the time synchronization request of the second vehicle and send the first real-time time of the first vehicle to the second vehicle, so that the second real-time time of the second vehicle controlling itself is synchronized with the first real-time time, that is, the second real-time time is the same as the first real-time time.
[0081] The first real time is the real time of the first vehicle, and the second real time is the real time of the second vehicle.
[0082] Step 350, based on the synchronization of the second real-time time with the first real-time time, in response to receiving a start playing instruction of the target audio, a start playing instruction is sent to at least one second vehicle based on the target network to control at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0083] In an embodiment of the present disclosure, based on the synchronization of the second real-time time with the first real-time time, the first vehicle can respond to receiving a start playing instruction of the target audio by sending a start playing instruction to at least one second vehicle based on the target network, so as to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0084] In this way, multiple vehicles can be connected to the same network, the speakers in multiple vehicles can be combined into a whole, the time of multiple vehicles can be synchronized, and the audio playback of each vehicle can be controlled simultaneously through the network, so that multiple vehicles can play the same audio synchronously, further improving the synchronous playback effect of the audio.
[0085] In some embodiments of the present disclosure, after the first vehicle forms the target network, when the user does not need multiple vehicles within a certain range to play the target audio at the same time, a stop instruction for the synchronous audio playback can be input to the first vehicle. For example, a voice instruction to stop the synchronous audio playback can be input to the first vehicle, and the stop instruction for the synchronous audio playback can be input by clicking, sliding, etc. on the stop button of the synchronous audio playback of the first vehicle. The first vehicle can delete the target network in response to receiving the stop instruction for the synchronous audio playback.
[0086] Figure 4 is a flowchart of an audio playback method provided by an embodiment of the present disclosure, which is applied to a second vehicle, such as Figure 4 As shown, the audio playback method provided in this embodiment includes the following steps:
[0087] Step 410: The second vehicle accesses the target network, which is established by the first vehicle.
[0088] In the disclosed embodiment, the second vehicle can access the target network, which is formed by the first vehicle. The target network can be understood as a local wireless communication network that allows each communication device to communicate directly without a pre-configured infrastructure, without relying on a central infrastructure or network manager. For example, the target network can be an Ad-hoc Network.
[0089] In some embodiments, the second vehicle accessing the target network may include steps 4101-4102:
[0090] Step 4101: adjust the network mode to pairing mode and search for a network identifier.
[0091] In the disclosed embodiment, the second vehicle may adjust the network mode to a pairing mode and search for a network identifier.
[0092] Step 4102: In response to searching for the target network identifier, access the target network corresponding to the target network identifier.
[0093] In the disclosed embodiment, after searching for the target network identifier, the second vehicle may access the target network corresponding to the target network identifier in response to searching for the target network identifier.
[0094] Step 420: Receive a start playing instruction of the target audio sent by the first vehicle based on the target network.
[0095] In the disclosed embodiment, after accessing the target network, the second vehicle may receive a start playing instruction of the target audio sent by the first vehicle based on the target network.
[0096] Step 430: In response to the start playing instruction of the target audio sent by the first vehicle, play the target audio simultaneously with the first vehicle.
[0097] In an embodiment of the present disclosure, after receiving a start playing instruction for the target audio sent by the first vehicle, the second vehicle can respond to the start playing instruction for the target audio sent by the first vehicle and play the target audio based on the start playing instruction, so that the second vehicle plays the target audio simultaneously with the first vehicle.
[0098] In some embodiments, in response to a start playing instruction of the target audio sent by the first vehicle, playing the target audio simultaneously with the first vehicle may include steps 4301-4302:
[0099] Step 4301: In response to a target audio start playing instruction sent by a first vehicle, an audio identifier of the target audio and a start playing time of the target audio are obtained from the start playing instruction.
[0100] In an embodiment of the present disclosure, after receiving a start playback instruction for the target audio sent by the first vehicle, the second vehicle can respond to the start playback instruction for the target audio sent by the first vehicle based on the target network, and obtain the audio identifier of the target audio and the start playback time of the target audio from the start playback instruction.
[0101] Step 4302: Play the target audio corresponding to the audio identifier simultaneously with the first vehicle at the start playing time.
[0102] In the disclosed embodiment, the second vehicle may play the target audio corresponding to the audio identifier at the start playback time, and at this time, the first vehicle also plays the target audio at the start playback time.
[0103] In this way, multiple vehicles can be connected to the same network, the speakers in multiple vehicles can be combined into a whole, and the audio playback of each vehicle can be controlled simultaneously through the network, so that multiple vehicles can play the same audio synchronously, improving the synchronous playback effect of the audio.
[0104] Figure 5 is a flowchart of an audio playback method provided by an embodiment of the present disclosure, which is applied to a second vehicle, such as Figure 5 As shown, the audio playback method provided in this embodiment includes the following steps:
[0105] Step 510: The second vehicle accesses the target network, which is established by the first vehicle.
[0106] Step 520: Send a time synchronization request to the first vehicle based on the target network, and determine the time to send the time synchronization request.
[0107] In the disclosed embodiment, since the time information of the second vehicle may be out of sync with that of the first vehicle, in order to ensure the synchronous playback effect of the audio, the second vehicle can send a time synchronization request to the first vehicle based on the target network, that is, the second vehicle requests time synchronization with the first vehicle and determines the time of sending the time synchronization request.
[0108] Step 530: Receive the first real-time time of the first vehicle fed back by the first vehicle based on the time synchronization request and the sending time of the first real-time time, and determine the receiving time of the first real-time time.
[0109] In an embodiment of the present disclosure, after receiving a time synchronization request sent by the second vehicle, the first vehicle can send the first real-time time of the first vehicle to the second vehicle. The second vehicle can receive the first real-time time of the first vehicle fed back by the first vehicle based on the time synchronization request, and determine the reception moment of the first real-time time.
[0110] Step 540: Calculate the difference between the receiving time and the sending time, and determine half of the difference as the network delay duration.
[0111] In the disclosed embodiment, the second vehicle can calculate the difference between the receiving time of the first real-time time and the sending time of the first real-time time, and determine half of the difference as the network delay time. For example, if the sending time of the time synchronization request is 12 o'clock and the receiving time of the first real-time time is 12:01, the network delay time is half of the difference between 12:01 and 12 o'clock, that is, 0.5 seconds.
[0112] Step 550: Calculate the target time after the first real-time time is extended by the network delay time.
[0113] In the disclosed embodiment, the second vehicle may calculate the target time after the first real-time time is extended by the network delay duration.
[0114] For example, if the first real time is 12 o'clock and the network delay is 1 second, the target time is 12:01.
[0115] Step 560: Adjust the second real-time time of the second vehicle to the target time, so that the second real-time time is synchronized with the first real-time time.
[0116] In the disclosed embodiment, the second vehicle may adjust the second real-time time of the second vehicle to the target time so that the second real-time time is synchronized with the first real-time time.
[0117] Step 570: Receive a start playing instruction of the target audio sent by the first vehicle based on the target network.
[0118] Step 580: Based on the synchronization of the second real time with the first real time, in response to a start playing instruction of the target audio sent by the first vehicle, play the target audio simultaneously with the first vehicle.
[0119] In the disclosed embodiment, the second vehicle can play the target audio simultaneously with the first vehicle in response to a start playing instruction of the target audio sent by the first vehicle on the basis of synchronizing the second real time with the first real time.
[0120] In this way, multiple vehicles can be connected to the same network, the speakers in multiple vehicles can be combined into a whole, the time of multiple vehicles can be synchronized, and the audio playback of each vehicle can be controlled simultaneously through the network, so that multiple vehicles can play the same audio synchronously, further improving the synchronous playback effect of the audio.
[0121] Figure 6 is a schematic diagram of the structure of an audio playback device provided by an embodiment of the present disclosure, and the device can be understood as the first vehicle or a part of the functional modules in the first vehicle. Figure 6 As shown, the audio playback device 600 may include:
[0122] A building module 610, configured to, in response to receiving an audio synchronous playback instruction, cause the first vehicle to build a target network;
[0123] A notification module 620, configured to notify at least one second vehicle other than the first vehicle to access the target network;
[0124] The first sending module 630 is used to send the start playing instruction to at least one second vehicle based on the target network in response to receiving the start playing instruction of the target audio, so as to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0125] Optionally, the notification module 620 includes:
[0126] The broadcast submodule is used to broadcast the target network identifier of the target network to the target network, so that at least one second vehicle can access the target network corresponding to the target network identifier.
[0127] Optionally, the first sending module 630 includes:
[0128] The first sending submodule is used to respond to receiving a start playing instruction of the target audio, and based on the target network, send the start playing instruction of the target audio to the at least one second vehicle respectively, so that the at least one second vehicle respectively obtains the audio identifier of the target audio and the start playing time of the target audio from the start playing instruction, and plays the target audio corresponding to the audio identifier simultaneously with the first vehicle at the start playing time.
[0129] Optionally, the audio playback device 600 includes:
[0130] A request receiving module, used for receiving a time synchronization request respectively sent by at least one second vehicle;
[0131] A second sending module is used for sending the first real-time time of the first vehicle to each second vehicle in response to a time synchronization request of the second vehicle, so that the second real-time time of the second vehicle controlling itself is synchronized with the first real-time time;
[0132] The first sending module 630 includes:
[0133] The second sending submodule is used to send a start playing instruction to at least one second vehicle based on the target network in response to receiving a start playing instruction of the target audio on the basis of synchronization between the second real-time time and the first real-time time, so as to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
[0134] Optionally, the audio playback device 600 includes:
[0135] The deletion module is used to delete the target network in response to receiving a stop instruction for audio synchronous playback.
[0136] Optionally, the first sending module 630 includes:
[0137] A first acquisition submodule is used for acquiring the distance between the first vehicle and the target audience in response to receiving the instruction to start playing the target audio, and for each second vehicle, sending an acquisition request for the distance between the second vehicle and the target audience to the second vehicle based on the target network;
[0138] A first receiving submodule receives the distance between the second vehicle and the target audience sent by the second vehicle based on the target network;
[0139] a determination submodule, for determining, for each of the first vehicle and each of the second vehicles, a target playback volume corresponding to the distance between the vehicle and the target audience based on a corresponding relationship between the distance between the vehicle and the target audience and the playback volume, wherein the distance is positively correlated with the playback volume;
[0140] An updating submodule, for each second vehicle, carrying a target playback volume corresponding to the distance between the second vehicle and the target audience in the start playback instruction, and updating the start playback instruction carrying the target playback volume to the start playback instruction corresponding to the second vehicle;
[0141] The third sending submodule is used to control the second vehicle to play the target audio simultaneously with the first vehicle at a target playback volume corresponding to the distance between the second vehicle and the target audience based on the start playback instruction corresponding to the target network and the second vehicle; wherein the first vehicle plays the target audio at a target playback volume corresponding to the distance between the first vehicle and the target audience.
[0142] The audio playback device provided by the embodiment of the present disclosure can achieve the above Figure 1-Figure 3 The method of any embodiment has similar execution mode and beneficial effects, which will not be described in detail here.
[0143] Figure 7 is a schematic diagram of the structure of an audio playback device provided by an embodiment of the present disclosure, and the device can be understood as the above-mentioned vehicle or a part of the functional modules in the above-mentioned vehicle. Figure 7 As shown, the audio playback device 700 may include:
[0144] A network access module 710, used for the second vehicle to access a target network, the target network being established by the first vehicle;
[0145] The first receiving module 720 is used to receive a start playing instruction of a target audio sent by the first vehicle based on a target network;
[0146] The playing module 730 is used to respond to the start playing instruction of the target audio sent by the first vehicle and play the target audio simultaneously with the first vehicle.
[0147] Optionally, the network access module 710 includes:
[0148] A search submodule, used to adjust the network mode to a pairing mode and search for a network identifier;
[0149] The second acquisition submodule is configured to access a target network corresponding to the target network identifier in response to searching for the target network identifier.
[0150] Optionally, the playing module 730 includes:
[0151] A third acquisition submodule is used to respond to the start playing instruction of the target audio sent by the first vehicle, and obtain the audio identifier of the target audio and the start playing time of the target audio from the start playing instruction;
[0152] The second playing submodule is used to play the target audio corresponding to the audio identifier simultaneously with the first vehicle at the start playing time.
[0153] Optionally, the audio playback device 700 includes:
[0154] A request sending module, used to send a time synchronization request to the first vehicle based on the target network, and determine a sending time of the time synchronization request;
[0155] A second receiving module is used to receive a first real-time time of the first vehicle fed back by the first vehicle based on the time synchronization request, and determine a receiving moment of the first real-time time;
[0156] A first calculation module is used to calculate the difference between the receiving time and the sending time, and determine half of the difference as the network delay time;
[0157] The second calculation module is used to calculate the target time after the first real-time time is extended by the network delay time;
[0158] an adjustment module, configured to adjust a second real-time time of the second vehicle to the target time so that the second real-time time is synchronized with the first real-time time;
[0159] The playback module 730 includes:
[0160] The third playing submodule is used to play the target audio simultaneously with the first vehicle in response to a start playing instruction of the target audio sent by the first vehicle on the basis of synchronization between the second real time and the first real time.
[0161] The audio playback device provided by the embodiment of the present disclosure can achieve the above Figure 4-Figure 5 The method of any embodiment has similar execution mode and beneficial effects, which will not be described in detail here.
[0162] The embodiments of the present disclosure also provide a vehicle, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of any of the above embodiments can be implemented, and the execution method and beneficial effects are similar and will not be repeated here.
[0163] An embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.
[0164] The above-mentioned computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0165] The computer program may be written in any combination of one or more programming languages to write program codes for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer device, partially on the user's device, as a separate software package, partially on the user's computer device and partially on a remote computer device, or entirely on a remote computer device or server.
[0166] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0167] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0168] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be 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 present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An audio playback method, characterized in that: Applied to a first vehicle, comprising: In response to receiving the audio synchronous playback instruction, the first vehicle establishes a target network; Notifying at least one second vehicle other than the first vehicle to access the target network; In response to receiving a start playing instruction of the target audio, the start playing instruction is sent to the at least one second vehicle based on the target network, so as to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
2. The method according to claim 1, characterized in that The notifying at least one second vehicle other than the first vehicle to access the target network includes: The target network identifier of the target network is broadcasted to the target network, so that the at least one second vehicle respectively accesses the target network corresponding to the target network identifier.
3. The method according to claim 1, characterized in that In response to receiving the start playing instruction of the target audio, sending the start playing instruction to the at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle, comprising: In response to receiving a start playing instruction for the target audio, the start playing instruction for the target audio is sent to the at least one second vehicle respectively based on the target network, so that the at least one second vehicle respectively obtains the audio identifier of the target audio and the start playing time of the target audio from the start playing instruction, and plays the target audio corresponding to the audio identifier simultaneously with the first vehicle at the start playing time.
4. The method according to claim 1, characterized in that: Before responding to receiving the instruction to start playing the target audio, the method further includes: receiving a time synchronization request respectively sent by the at least one second vehicle; For each second vehicle, in response to a time synchronization request of the second vehicle, sending the first real-time time of the first vehicle to the second vehicle, so that the second real-time time of the second vehicle controlling itself is synchronized with the first real-time time; Wherein, in response to receiving the start playing instruction of the target audio, sending the start playing instruction to the at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle includes: On the basis of synchronization between the second real-time time and the first real-time time, in response to receiving a start playing instruction of the target audio, the start playing instruction is sent to the at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
5. The method according to claim 1, characterized in that After the first vehicle establishes the target network, the method further includes: In response to receiving a stop instruction for audio synchronous playback, the target network is deleted.
6. The method according to claim 1, characterized in that In response to receiving the start playing instruction of the target audio, sending the start playing instruction to the at least one second vehicle based on the target network to control the at least one second vehicle to play the target audio simultaneously with the first vehicle, comprising: In response to receiving a start-play instruction of the target audio, obtaining the distance between the first vehicle and the target listener, and for each second vehicle, sending a request for obtaining the distance between the second vehicle and the target listener to the second vehicle based on the target network; receiving the distance between the second vehicle and the target listener sent by the second vehicle based on the target network; For each of the first vehicle and each of the second vehicles, based on the corresponding relationship between the distance between the vehicle and the target audience and the playback volume, determining a target playback volume corresponding to the distance between the vehicle and the target audience, wherein the distance is positively correlated with the playback volume; For each second vehicle, the target playback volume corresponding to the distance between the second vehicle and the target audience is carried in the start playback instruction, and the start playback instruction carrying the target playback volume is updated to the start playback instruction corresponding to the second vehicle; based on the target network and the start playback instruction corresponding to the second vehicle, the second vehicle is controlled to play the target audio simultaneously with the first vehicle at the target playback volume corresponding to the distance between the second vehicle and the target audience; wherein the first vehicle plays the target audio at the target playback volume corresponding to the distance between the first vehicle and the target audience.
7. An audio playback method, characterized in that: Applied to the second vehicle, comprising: The second vehicle accesses a target network, and the target network is formed by the first vehicle; receiving a start playing instruction of the target audio sent by the first vehicle based on the target network; In response to a start playing instruction of the target audio sent by the first vehicle, the target audio is played simultaneously with the first vehicle.
8. The method according to claim 7, characterized in that The second vehicle accesses the target network, including: Adjust the network mode to pairing mode and search for the network logo; In response to searching for the target network identifier, accessing the target network corresponding to the target network identifier.
9. The method according to claim 7, characterized in that: The step of playing the target audio simultaneously with the first vehicle in response to the start playing instruction of the target audio sent by the first vehicle comprises: In response to the start playing instruction of the target audio sent by the first vehicle, acquiring an audio identifier of the target audio and a start playing time of the target audio from the start playing instruction; The target audio corresponding to the audio identifier is played simultaneously with the first vehicle at the start playing time.
10. The method according to claim 7, characterized in that Before receiving the instruction to start playing the target audio sent by the first vehicle based on the target network, the method further includes: Based on the target network, sending a time synchronization request to the first vehicle, and determining a sending time of the time synchronization request; receiving a first real-time time of the first vehicle fed back by the first vehicle based on the time synchronization request, and determining a receiving time of the first real-time time; Calculate the difference between the receiving time and the sending time, and determine half of the difference as the network delay duration; Calculate the target time after the first real-time time is extended by the network delay time; adjusting a second real-time time of the second vehicle to the target time so that the second real-time time is synchronized with the first real-time time; The step of responding to the start playing instruction of the target audio sent by the first vehicle and playing the target audio simultaneously with the first vehicle includes: On the basis of synchronization between the second real-time time and the first real-time time, in response to a start playing instruction of the target audio sent by the first vehicle, the target audio is played simultaneously with the first vehicle.
11. An audio playback device, applied to a first vehicle, characterized in that: include: A building module, configured to, in response to receiving an audio synchronous playback instruction, cause the first vehicle to build a target network; a notification module, used for notifying at least one second vehicle other than the first vehicle to access the target network; The first sending module is used to respond to receiving a start playing instruction of the target audio and send the start playing instruction to the at least one second vehicle based on the target network, so as to control the at least one second vehicle to play the target audio simultaneously with the first vehicle.
12. An audio playback device, applied to a second vehicle, characterized in that: include: A network access module, used for the second vehicle to access a target network, the target network being established by the first vehicle; A first receiving module, configured to receive a start playing instruction of the target audio sent by the first vehicle based on the target network; The playing module is used to respond to the start playing instruction of the target audio sent by the first vehicle and play the target audio simultaneously with the first vehicle.
13. A vehicle, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the audio playback method as described in any one of claims 1 to 10 is implemented.
14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the audio playback method according to any one of claims 1 to 10 is implemented.