A method and device for transmitting vehicle-mounted immersive audio
By calculating and presetting the time deviation between the audio processor and the power amplifier, the delay problem in multi-channel audio transmission is solved, the synchronous transmission of audio channels is realized, the echo phenomenon is avoided, and the synchronization requirements of immersive audio are met.
Patent Information
- Application Number
- CN202210262497.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-03-17
AI Technical Summary
Existing audio transmission technology will cause sound delay problems during multi-channel transmission, and cannot meet the synchronization requirements of immersive audio.
By determining and presetting the time deviation between the audio processor and the power amplifier to ensure the accurate sending time of each group of data packets, the round-trip delay calculation method of the test message is used to determine the one-way delay, and the preset time is calculated based on this Deviation, send data packets to the power amplifier to ensure synchronization of each audio channel.
It realizes the synchronous transmission of multi-channel audio, avoids the echo phenomenon caused by inter-channel delay, and ensures high-quality playback of immersive audio.
Smart Images

Figure CN114554355B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio transmission, and in particular to a method and device for transmitting vehicle-mounted immersive audio. Background Art
[0002] With the advent of the immersive audio era, the number of channels for audio transmission between the car and the amplifier, as well as between the amplifier and the speaker, can reach 32 or more, so the use of digital transmission technology has become inevitable.
[0003] Existing audio transmission technology needs to meet the following conditions: 1. Multi-channel transmission, and multiple cables cannot be used for transmission. 2. The transmission distance is long enough to be suitable for different sizes of vehicles. 3. No interference. 4. Each audio transmission channel is strictly synchronized.
[0004] Since immersive audio requires all speakers in the car to sound synchronously, and I2S and TDM are only applicable to dual-channel transmission, when applied to multi-channel, the existing audio transmission technology will cause sound delays in different channels. Therefore, the existing audio transmission method can no longer meet the needs of audio transmission. Summary of the invention
[0005] In view of the above problems in the prior art, the purpose of this article is to provide a method and device for transmitting in-vehicle immersive audio, so as to solve the problem of sound delay in different channels in the audio transmission technology in the prior art.
[0006] In order to solve the above technical problems, the specific technical solutions of this article are as follows: On the one hand, this article provides a vehicle-mounted immersive audio transmission method, which is applied to an audio processor, including:
[0007] Acquire audio data; wherein the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel;
[0008] The data packet is sent to the power amplifier according to the preset time deviation of the audio channel.
[0009] As an embodiment of this invention, the preset time deviation is obtained by the following method:
[0010] Determining a round trip delay of the audio processor sending a plurality of test messages and the power amplifier receiving a plurality of the test messages;
[0011] The preset time deviation is determined according to the round-trip delay.
[0012] As an embodiment of this invention, the determining of the round trip delay of the audio processor sending the plurality of test messages and the power amplifier receiving the plurality of test messages further comprises:
[0013] Sending a first test message to the power amplifier, and recording the sending time as a first timestamp;
[0014] After receiving the first test message, the power amplifier records the receiving time as a second timestamp;
[0015] Sending a second test message to the power amplifier and carrying the first timestamp;
[0016] The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp;
[0017] After receiving the third test message, the audio processor records the receiving time as a fourth timestamp;
[0018] The audio processor sends a fourth test message to the power amplifier and carries the fourth timestamp;
[0019] The power amplifier determines the round-trip delay according to a time interval between the second timestamp and the first timestamp, and a time interval between the fourth timestamp and the third timestamp.
[0020] As an embodiment of this invention, determining the preset time deviation according to the round-trip delay further includes:
[0021] Determine the one-way delay of the audio processor and the power amplifier according to the formula [(t2–t1)+(t4–t3)] / 2, where t1 is the first timestamp, t2 is the second timestamp, t3 is the third timestamp, and t4 is the fourth timestamp;
[0022] The preset time offset is determined according to the formula Offset=(t2-t1)-[(t2-t1)+(t4-t3)] / 2=[(t2-t1)-(t4-t3)] / 2, where Offset is the preset time offset.
[0023] As an embodiment of this invention, the determining of the round trip delay of the audio processor sending the plurality of test messages and the power amplifier receiving the plurality of test messages further comprises:
[0024] Sending a first test message to the power amplifier, and recording the sending time as a first timestamp;
[0025] After receiving the first test message, the power amplifier records the receiving time as a second timestamp;
[0026] Sending a second test message to the power amplifier and carrying the first timestamp;
[0027] The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp;
[0028] After receiving the third test message, the audio processor records the receiving time as a fourth timestamp;
[0029] Sending a fourth test message to the power amplifier and carrying the fourth timestamp, and recording the sending time as a fifth timestamp;
[0030] After receiving the fourth test message, the power amplifier records the receiving time as a sixth timestamp;
[0031] Sending a fifth test message to the power amplifier and carrying the fifth timestamp;
[0032] The power amplifier determines the round-trip delay according to the time interval between the fourth timestamp and the third timestamp, and the time interval between the sixth timestamp and the fifth timestamp.
[0033] As an embodiment of this invention, determining the preset time deviation according to the round-trip delay further includes:
[0034] Determine the one-way delay of the audio processor and the power amplifier according to the formula [(t4–t3)+(t6–t5)] / 2, where t3 is the third timestamp, t4 is the fourth timestamp, t5 is the fifth timestamp, and t6 is the sixth timestamp;
[0035] The preset time offset is determined according to the formula Offset=(t2−t1)-[(t4−t3)+(t6−t5)] / 2, where Offset is the preset time offset, t1 is the first timestamp, and t2 is the second timestamp.
[0036] As an embodiment of this article, the obtaining of audio data further includes:
[0037] Determining the correspondence between the audio channel and the network port;
[0038] Acquire multiple groups of data packets from the network port according to the corresponding relationship;
[0039] Wherein, each group of data packets carries a channel label corresponding to the audio channel;
[0040] Each group of data packets is sent to the corresponding audio channel according to the channel label.
[0041] As an embodiment of this invention, sending the data packet to the power amplifier according to the preset time deviation of the audio channel further includes:
[0042] Determining a packetization time of the audio data;
[0043] The sum of the packetization time, the time deviation and the master clock time is used as the timestamp, and the data packet and the timestamp are sent to the power amplifier.
[0044] This article also provides a method for transmitting in-vehicle immersive audio, which is applied to a power amplifier and includes:
[0045] Determine whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, the power amplifier plays the audio corresponding to the group of data packets.
[0046] This article also provides a vehicle-mounted immersive audio transmission device, including:
[0047] An audio processor, used to obtain audio data, wherein the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel, and sends the data packets to the power amplifier according to a preset time deviation of the audio channel;
[0048] The power amplifier is used to determine whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, the audio corresponding to the group of data packets is played.
[0049] By adopting the above technical scheme, it is possible to obtain audio data; wherein, the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel. Compared with the dual audio channel transmission audio in the prior art, the audio channels in this article can reach 32 or more, and immersive audio is truly realized; according to the preset time deviation of the audio channel, the data packet is sent to the power amplifier. When the dual-channel transmission method in the prior art is used to transmit 32 channels or more, there will be audio delay between channels, which will cause the audio playback to have an "echo" phenomenon. In this article, the propagation delay of the audio channel can be eliminated to avoid the "echo" phenomenon.
[0050] In order to make the above and other purposes, features and advantages of this article more obvious and easy to understand, the following specifically cites preferred embodiments and describes them in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of this article or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of this article. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A schematic diagram of an overall system of an in-vehicle immersive audio system according to an embodiment of this invention is shown;
[0053] Figure 2A schematic diagram of an audio processor for in-vehicle immersive audio according to an embodiment of this document is shown;
[0054] Figure 3 A schematic diagram showing the steps of an audio processor transmission method for vehicle-mounted immersive audio according to an embodiment of this document is shown;
[0055] Figure 4 A schematic diagram showing a method for calculating a preset time deviation in an embodiment of this invention is shown;
[0056] Figure 5 A schematic diagram of a vehicle-mounted immersive audio transmission device according to an embodiment of this document is shown;
[0057] Figure 6 A flow chart of a method for transmitting in-vehicle immersive audio according to an embodiment of this document is shown;
[0058] Figure 7 A schematic diagram of a computer device according to an embodiment of this invention is shown.
[0059] Description of the accompanying symbols:
[0060] 11. Power amplifier;
[0061] 12. Audio processor;
[0062] 121. CPU;
[0063] 122. Switch;
[0064] 702. Computer equipment;
[0065] 704, processor;
[0066] 706. Memory;
[0067] 708, driving mechanism;
[0068] 710, input / output module;
[0069] 712. Input devices;
[0070] 714. Output devices;
[0071] 716. Presentation equipment;
[0072] 718. Graphical user interface;
[0073] 720, network interface;
[0074] 722. Communication link;
[0075] 724. Communication bus. DETAILED DESCRIPTION
[0076] The following will be combined with the drawings in the embodiments of this article to clearly and completely describe the technical solutions in the embodiments of this article. Obviously, the described embodiments are only part of the embodiments of this article, not all of the embodiments. Based on the embodiments of this article, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this article.
[0077] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0078] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0079] like Figure 1 The overall system diagram of an in-vehicle immersive audio system shown includes: a power amplifier 11 and an audio processor 12.
[0080] In the embodiment of this article, the power amplifier 11 can be arranged in the car. In this article, 32 power amplifiers 11 can be arranged and arranged in a hexagon in the car, wherein the audio processor 12 can be arranged at the center of the hexagon to reduce the length of the audio channel, and the audio processor 12 establishes an interactive relationship with all the power amplifiers 11 through the audio channel.
[0081] like Figure 2 A schematic diagram of an audio processor for in-vehicle immersive audio is shown, wherein the audio processor 12 includes a CPU 121 and a switch 122, wherein the CPU 121 is used to connect to a network interface, obtain audio resources in the network, and package the audio resources according to an audio protocol and attach a timestamp, and the CPU 121 stores a mapping relationship between the network interface and the corresponding ports of the switch 122.
[0082] The switch 122 is used to connect to the audio channel and send each group of packaged data packets to the audio channel so as to send them to the power amplifier 11 through the audio channel.
[0083] The power amplifier 11 is used to convert the data packets into digital-to-analog format and play them.
[0084] The embodiment of the present invention provides a method for transmitting in-vehicle immersive audio, which can solve the problem of sound delay in different channels in the audio transmission technology in the prior art. Figure 3 This is a schematic diagram of the steps of an audio processor transmission method for in-vehicle immersive audio provided in an embodiment of this article. This specification provides method operation steps as described in the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or device product is executed, it can be executed in the order of the method shown in the embodiment or the accompanying drawings or in parallel. Specifically, Figure 3 As shown, the method is applied to an audio processor and may include:
[0085] Step 301: Acquire audio data; wherein the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel.
[0086] Step 302: Send the group of data packets to the power amplifier according to the preset time offset of the audio channel.
[0087] By adopting the above technical scheme, it is possible to obtain audio data; wherein, the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel. Compared with the dual audio channel transmission audio in the prior art, the audio channels in this article can reach 32 or more, and immersive audio is truly realized; according to the preset time deviation of the audio channel, the data packet is sent to the power amplifier. When the dual-channel transmission method in the prior art is used to transmit 32 channels or more, there will be audio delay between channels, which will cause the audio playback to have an "echo" phenomenon. In this article, the propagation delay of the audio channel can be eliminated to avoid the "echo" phenomenon.
[0088] In this step, audio data can be obtained by the audio processor at the network port. In the network port, the entire audio segment is divided into several group data packets according to the frequency. In this article, one audio processor can be used, there can be 4 network ports, and there can be 32 audio channels. Then there can be 32 corresponding power amplifiers. For example, the network port is divided into a first network port, a second network port, a third network port and a fourth network port, and the audio channels are divided into a first audio channel, a second audio channel and a third audio channel, etc. ..., then in order to ensure that there will be no errors in data transmission, the first network port can correspond to the first audio channel to the eighth audio channel, and the second network port can correspond to the ninth audio channel to the sixteenth audio channel. Similarly, the third network port and the fourth network port are also connected to the remaining audio channels.
[0089] Through the above method, the audio data can be more conveniently packetized and sent from the network port to the corresponding audio channels to avoid the loss of audio data. In addition, the audio data in this article is composed of several groups of data packets, and each group of data packets is sent to the power amplifier by a corresponding audio channel.
[0090] In order to eliminate the audio playback delay caused by the different lengths of audio channels, when the audio processor in this article receives a series of data packets that need to be played at the same time point, it will send the data packets (a group of data packets) with larger delays first and send the data packets (a group of data packets) with smaller delays later according to the delay of each audio channel for audio data playback, that is, calculate the time deviation between the audio processor and each power amplifier. After calculating the time deviation, the time deviation is preset to each audio channel.
[0091] Through the above method, it is possible to eliminate the problem of "echo" between power amplifiers in immersive audio due to the configuration of more power amplifiers.
[0092] like Figure 4 The schematic diagram of the calculation method of the preset time deviation is shown as an embodiment of this invention. The preset time deviation is obtained by the following method:
[0093] Step 401: Determine the round-trip delay of the audio processor that sends a plurality of test messages and the power amplifier that receives a plurality of the test messages.
[0094] Step 402: Determine the preset time deviation according to the round-trip delay.
[0095] In this step, the audio processor can be used as the master clock and the power amplifier can be used as the slave clock. In a certain cycle, for example, one hour as a cycle, when the cycle condition is met, the master clock / audio processor sends a test message, the power amplifier receives the test message and records the time, and the propagation time of multiple test messages in the audio channel is calculated to determine the delay of the audio channel. The time of the test message sent by the master clock to the slave clock can be used as the first delay, and the time when the slave clock receives the test message and returns the response can be used as the second delay. If the audio channel is symmetrical, the first delay and the second delay are the preset time deviation. If the audio channel is asymmetrical, half of the sum of the first delay and the second delay is the preset time deviation.
[0096] By using the master-slave handshake test message method, the delay from the processor to the power amplifier, the delay from the power amplifier to the processor, and the delay of the power amplifier response can be calculated more accurately. This can make the calculation of the audio data sending time more accurate, ensure that the delay between channels is as small as possible, and ensure strong synchronization.
[0097] As an embodiment of this invention, the determining of the round trip delay of the audio processor sending the plurality of test messages and the power amplifier receiving the plurality of test messages further comprises:
[0098] Sending a first test message to the power amplifier, and recording the sending time as a first timestamp;
[0099] After receiving the first test message, the power amplifier records the receiving time as a second timestamp;
[0100] Sending a second test message to the power amplifier and carrying the first timestamp;
[0101] The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp;
[0102] After receiving the third test message, the audio processor records the receiving time as a fourth timestamp;
[0103] The audio processor sends a fourth test message to the power amplifier and carries the fourth timestamp;
[0104] The power amplifier determines the round-trip delay according to a time interval between the second timestamp and the first timestamp, and a time interval between the fourth timestamp and the third timestamp.
[0105] Through the above method, the slave clock / amplifier can have four timestamps. The power amplifier can determine the delay time of forward transmission through the time interval of the first timestamp and the second timestamp, that is, the process of sending from the audio processor to the power amplifier. Then, by using the third timestamp and the fourth timestamp, the delay time of reverse transmission can be determined, that is, the process of sending from the power amplifier to the audio processor. By calculating the two, the delay time of the link can be obtained, that is, the preset time deviation.
[0106] The specific calculation process is: according to the formula [(t2-t1)+(t4-t3)] / 2, determine the one-way delay of the audio processor and the power amplifier, where t1 is the first timestamp, t2 is the second timestamp, t3 is the third timestamp, and t4 is the fourth timestamp;
[0107] The preset time offset is determined according to the formula Offset=(t2-t1)-[(t2-t1)+(t4-t3)] / 2=[(t2-t1)-(t4-t3)] / 2, where Offset is the preset time offset.
[0108] By sending several test messages during audio playback, we can cope with the delay changes between channels caused by electromagnetic interference and changes in the working status of the switch, thereby making the system more robust and ensuring the stability of synchronization of each channel in the system.
[0109] As an embodiment of this invention, the determining of the round trip delay of the audio processor sending the plurality of test messages and the power amplifier receiving the plurality of test messages further comprises:
[0110] Sending a first test message to the power amplifier, and recording the sending time as a first timestamp;
[0111] After receiving the first test message, the power amplifier records the receiving time as a second timestamp;
[0112] Sending a second test message to the power amplifier and carrying the first timestamp;
[0113] The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp;
[0114] After receiving the third test message, the audio processor records the receiving time as a fourth timestamp;
[0115] Sending a fourth test message to the power amplifier and carrying the fourth timestamp, and recording the sending time as a fifth timestamp;
[0116] After receiving the fourth test message, the power amplifier records the receiving time as a sixth timestamp;
[0117] Sending a fifth test message to the power amplifier and carrying the fifth timestamp;
[0118] The power amplifier determines the round-trip delay according to the time interval between the fourth timestamp and the third timestamp, and the time interval between the sixth timestamp and the fifth timestamp.
[0119] Through the above method, the slave clock / amplifier can have six timestamps. The power amplifier can determine the total time for the audio channel to transmit a group of data packets / test messages through the time interval of the first timestamp and the second timestamp. Then the power amplifier can determine the delay of forward transmission through the fourth timestamp and the third timestamp. Then the delay of reverse transmission can be determined through the sixth timestamp and the fifth timestamp. The one-way delay of the audio channel is determined through the delay of forward transmission and the delay of reverse transmission. The total time for the audio channel to send the data packet / test message minus the one-way delay can determine the time deviation of the power amplifier relative to the audio processor.
[0120] The specific calculation process is to determine the one-way delay of the audio processor and the power amplifier according to the formula [(t4-t3)+(t6-t5)] / 2, where t3 is the third timestamp, t4 is the fourth timestamp, t5 is the fifth timestamp, and t6 is the sixth timestamp;
[0121] The preset time offset is determined according to the formula Offset=(t2−t1)-[(t4−t3)+(t6−t5)] / 2, where Offset is the preset time offset, t1 is the first timestamp, and t2 is the second timestamp.
[0122] As an embodiment of this article, the obtaining of audio data further includes:
[0123] Determining the correspondence between the audio channel and the network port;
[0124] Acquire multiple groups of data packets from the network port according to the corresponding relationship;
[0125] Wherein, each group of data packets carries a channel label corresponding to the audio channel;
[0126] Each group of data packets is sent to the corresponding audio channel according to the channel label.
[0127] In this step, each group of data packets has its specific channel label. For example, the name header of the data packet may correspond to an audio channel. When the audio manager receives the data packet, it may send it to the corresponding audio channel according to the header.
[0128] The audio manager may include a CPU and a switch. The CPU may decode and encode data packets and obtain audio data in the network port, while the switch may parse channel labels. In the embodiment of this article, the switch stores a channel-port mapping dictionary, which is generated for the switch definition and stored in the CPU. It indicates the correspondence between the audio channel and the network port. Each channel of the switch corresponds to an audio channel to send each group of data packets to the audio channel according to the channel label.
[0129] And the different audio channels in this article can realize different audio perceptions for users. By simultaneously parsing and playing data packets, the human ear can perceive immersive audio in a complex space. Specifically, the human ear receives each audio channel, and the sound sent at a certain moment is aligned, rather than having a delay of more than 100ms between each channel.
[0130] As an embodiment of this invention, sending the data packet to the power amplifier according to the preset time deviation of the audio channel further includes:
[0131] Determine the packetization time of the audio data.
[0132] The sum of the packetization time, the time deviation and the master clock time is used as the timestamp, and the data packet and the timestamp are sent to the power amplifier.
[0133] In this step, the audio data may be segmented into 20 ms frames and added to the DATA part of the protocol for packaging and transmission.
[0134] In this step, the audio processor records the packetization time of the audio data, and records the received segmented audio data as the packetization time. When the segmented audio is packaged into data packets, the audio can be packaged according to the RTP, RTSP or HTTP protocol. In each group of data packets, in addition to the audio data, it should also include a sequence number, a timestamp, an audio data encoding format, and the encoded audio data, and send it to each audio channel according to the preset time deviation. To ensure that each group of data packets will not be wrong and will not be played repeatedly.
[0135] On the other hand, a method for transmitting a power amplifier of an in-vehicle immersive audio is also provided. The method is applied to a power amplifier and includes:
[0136] Determine whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, the power amplifier plays the audio corresponding to the group of data packets.
[0137] In this step, this method can further ensure that there will be no "echo" when playing audio. The CPU of the power amplifier of each audio channel unpacks each group of data packets and compares the timestamp with the local clock time. Only when the local clock time and timestamp match, and the relationship between the sequence number S and the sequence number S' of the previous data packet is S=S'+1, the audio data is decoded, converted into an analog signal, amplified, and sent to the speaker for playback.
[0138] When the timestamp carried by each group of data packets is inconsistent with the local time, the group of data packets is deleted.
[0139] like Figure 5 As shown, this article also provides a schematic diagram of a vehicle-mounted immersive audio transmission device, including:
[0140] An audio processor 12, used to obtain audio data, wherein the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel, and sends the data packets to the power amplifier according to a preset time deviation of the audio channel;
[0141] The power amplifier 11 is used to determine whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, the audio corresponding to the group of data packets is played.
[0142] By adopting the above technical scheme, it is possible to obtain audio data; wherein, the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel. Compared with the dual audio channel transmission audio in the prior art, the audio channels in this article can reach 32 or more, and immersive audio is truly realized; according to the preset time deviation of the audio channel, the data packet is sent to the power amplifier. When the dual-channel transmission method in the prior art is used to transmit 32 channels or more, there will be audio delay between channels, which will cause the audio playback to have an "echo" phenomenon. In this article, the propagation delay of the audio channel can be eliminated to avoid the "echo" phenomenon.
[0143] like Figure 6 As shown, a flow chart of a method for transmitting in-vehicle immersive audio includes:
[0144] Step 601: Determine the correspondence between audio channels and network ports.
[0145] Step 602: Preset the time deviation of the audio channels between the audio processor and each power amplifier.
[0146] Step 603: The audio processor obtains audio data.
[0147] Step 604: The audio processor sends a data packet to the power amplifier according to the time deviation of each audio channel.
[0148] Step 605 : The power amplifier determines whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, step 606 is executed.
[0149] Step 606: The power amplifier performs digital-to-analog conversion on each group of data packets and plays them.
[0150] By adopting the above technical scheme, it is possible to obtain audio data; wherein, the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel. Compared with the dual audio channel transmission audio in the prior art, the audio channels in this article can reach 32 or more, and immersive audio is truly realized; according to the preset time deviation of the audio channel, the data packet is sent to the power amplifier. When the dual-channel transmission method in the prior art is used to transmit 32 channels or more, there will be audio delay between channels, which will cause the audio playback to have an "echo" phenomenon. In this article, the propagation delay of the audio channel can be eliminated to avoid the "echo" phenomenon.
[0151] like Figure 7 As shown, a computer device provided in an embodiment of the present invention, the computer device 702 may include one or more processors 704, such as one or more central processing units, each processing unit may implement one or more hardware threads. The computer device 702 may also include any memory 707, which is used to store any kind of information such as code, settings, data, etc. Non-restrictive, for example, the memory 707 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 702. In one case, when the processor 704 executes an associated instruction stored in any memory or a combination of memories, the computer device 702 may perform any operation of the associated instruction. The computer device 702 also includes one or more drive mechanisms 708 for interacting with any memory, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.
[0152] The computer device 702 may also include an input / output module 710 (I / O) for receiving various inputs (via input device 712) and for providing various outputs (via output device 714). A specific output mechanism may include a presentation device 717 and an associated graphical user interface (GUI) 718. In other embodiments, the input / output module 710 (I / O), the input device 712, and the output device 714 may not be included, and the computer device 702 may be used as a computer device in a network. The computer device 702 may also include one or more network interfaces 720 for exchanging data with other devices via one or more communication links 722. One or more communication buses 724 couple the components described above together.
[0153] The communication link 722 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 722 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0154] Corresponds to Figure 2-Figure 4 and Figure 6 The method in this article also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are executed.
[0155] The embodiment of the present invention also provides a computer readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the following Figure 2-Figure 4 and Figure 6 The method shown.
[0156] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.
[0157] It should also be understood that in the embodiments of this article, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0158] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this article.
[0159] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0160] In the several embodiments provided herein, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.
[0161] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this article.
[0162] In addition, each functional unit in each embodiment of this invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this article is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of this article. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0164] Specific embodiments are used in this article to illustrate the principles and implementation methods of this article. The description of the above embodiments is only used to help understand the methods and core ideas of this article. At the same time, for general technicians in this field, according to the ideas of this article, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on this article.
Claims
1. A method for transmitting in-vehicle immersive audio, characterized in that: Applications in audio processors, including: Acquire audio data; wherein the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel; According to the preset time deviation of the audio channel, the data packet is sent to the power amplifier, and the power amplifier determines whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, the power amplifier plays the audio corresponding to the group data packet, wherein the preset time deviation is obtained by the following method: Sending a first test message to the power amplifier, and recording the sending time as a first timestamp; After receiving the first test message, the power amplifier records the receiving time as a second timestamp; Sending a second test message to the power amplifier and carrying the first timestamp; The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp; After receiving the third test message, the audio processor records the receiving time as a fourth timestamp; Sending a fourth test message to the power amplifier and carrying the fourth timestamp, and recording the sending time as a fifth timestamp; After receiving the fourth test message, the power amplifier records the receiving time as a sixth timestamp; Sending a fifth test message to the power amplifier and carrying the fifth timestamp; The power amplifier determines the round-trip delay of the power amplifier according to the time interval between the fourth timestamp and the third timestamp, and the time interval between the sixth timestamp and the fifth timestamp; Determine the one-way delay of the audio processor and the power amplifier according to the formula [(t4–t3)+(t6–t5)] / 2, where t3 is the third timestamp, t4 is the fourth timestamp, t5 is the fifth timestamp, and t6 is the sixth timestamp; The preset time offset is determined according to the formula Offset=(t2−t1)-[(t4−t3)+(t6−t5)] / 2, where Offset is the preset time offset, t1 is the first timestamp, and t2 is the second timestamp.
2. The method for transmitting in-vehicle immersive audio according to claim 1, characterized in that: The preset time deviation is obtained by the following method: Determining a round trip delay of the audio processor sending a plurality of test messages and the power amplifier receiving a plurality of the test messages; The preset time deviation is determined according to the round-trip delay.
3. The method for transmitting in-vehicle immersive audio according to claim 2, characterized in that: The determining of the round trip delay of the audio processor sending the plurality of test messages and the power amplifier receiving the plurality of test messages further comprises: Sending a first test message to the power amplifier, and recording the sending time as a first timestamp; After receiving the first test message, the power amplifier records the receiving time as a second timestamp; Sending a second test message to the power amplifier and carrying the first timestamp; The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp; After receiving the third test message, the audio processor records the receiving time as a fourth timestamp; The audio processor sends a fourth test message to the power amplifier and carries the fourth timestamp; The power amplifier determines the round-trip delay according to a time interval between the second timestamp and the first timestamp, and a time interval between the fourth timestamp and the third timestamp.
4. The method for transmitting in-vehicle immersive audio according to claim 3, characterized in that: The determining the preset time deviation according to the round-trip delay further comprises: Determine the one-way delay of the audio processor and the power amplifier according to the formula [(t2–t1)+(t4–t3)] / 2, where t1 is the first timestamp, t2 is the second timestamp, t3 is the third timestamp, and t4 is the fourth timestamp; The preset time offset is determined according to the formula Offset=(t2-t1)-[(t2-t1)+(t4-t3)] / 2=[(t2-t1)-(t4-t3)] / 2, where Offset is the preset time offset.
5. The method for transmitting in-vehicle immersive audio according to claim 1, characterized in that: The obtaining of audio data further comprises: Determining the correspondence between the audio channel and the network port; Acquire multiple groups of data packets from the network port according to the corresponding relationship; Wherein, each group of data packets carries a channel label corresponding to the audio channel; Each group of data packets is sent to the corresponding audio channel according to the channel label.
6. The method for transmitting in-vehicle immersive audio according to claim 1, characterized in that: The step of sending the data packet to the power amplifier according to the preset time deviation of the audio channel further includes: Determining a packetization time of the audio data; The sum of the packetization time, the time deviation and the master clock time is used as a timestamp, and the data packet and the timestamp are sent to the power amplifier.
7. A vehicle-mounted immersive audio transmission device, characterized in that: include: An audio processor, used to obtain audio data, wherein the audio data includes multiple groups of data packets, each group of data packets corresponds to an audio channel, and sends the data packets to the power amplifier according to a preset time deviation of the audio channel; The power amplifier is used to determine whether the timestamp carried by each group of data packets is consistent with the local time, and if consistent, play the audio corresponding to the group of data packets; The power amplifier determines whether the timestamp carried by each group of data packets is consistent with the local time. If they are consistent, the power amplifier plays the audio corresponding to the group of data packets, wherein the preset time deviation is obtained by the following method: Sending a first test message to the power amplifier, and recording the sending time as a first timestamp; After receiving the first test message, the power amplifier records the receiving time as a second timestamp; Sending a second test message to the power amplifier and carrying the first timestamp; The power amplifier sends a third test message to the audio processor, and records the sending time as a third timestamp; After receiving the third test message, the audio processor records the receiving time as a fourth timestamp; Sending a fourth test message to the power amplifier and carrying the fourth timestamp, and recording the sending time as a fifth timestamp; After receiving the fourth test message, the power amplifier records the receiving time as a sixth timestamp; Sending a fifth test message to the power amplifier and carrying the fifth timestamp; The power amplifier determines a round trip delay of the power amplifier according to a time interval between the fourth timestamp and the third timestamp, and a time interval between the sixth timestamp and the fifth timestamp; Determine the one-way delay of the audio processor and the power amplifier according to the formula [(t4–t3)+(t6–t5)] / 2, where t3 is the third timestamp, t4 is the fourth timestamp, t5 is the fifth timestamp, and t6 is the sixth timestamp; The preset time offset is determined according to the formula Offset=(t2−t1)-[(t4−t3)+(t6−t5)] / 2, where Offset is the preset time offset, t1 is the first timestamp, and t2 is the second timestamp.
Citation Information
Patent Citations
Audio transmission delay test method and device, storage medium and electronic equipment
CN110430104A
Data transfer method and system for loudspeakers in a digital sound reproduction system
US20110015769A1
Audio device, audio system, and method for providing multi-channel audio signal to plurality of speakers
US20200336857A1
Method, device, loudspeaker equipment and wireless headset for playing audio synchronously
US20210067874A1
