CN111768791B - Audio playing method and device and vehicle - Google Patents
Audio playing method and device and vehicle Download PDFInfo
- Publication number
- CN111768791B CN111768791B CN202010599071.3A CN202010599071A CN111768791B CN 111768791 B CN111768791 B CN 111768791B CN 202010599071 A CN202010599071 A CN 202010599071A CN 111768791 B CN111768791 B CN 111768791B
- Authority
- CN
- China
- Prior art keywords
- audio data
- channel
- channels
- audio
- operating system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000007781 pre-processing Methods 0.000 claims description 16
- 238000009499 grossing Methods 0.000 claims description 12
- 238000005516 engineering process Methods 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 9
- 238000009826 distribution Methods 0.000 claims description 5
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 19
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 16
- 238000004590 computer program Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 229910001385 heavy metal Inorganic materials 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/008—Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S3/00—Systems employing more than two channels, e.g. quadraphonic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S7/00—Indicating arrangements; Control arrangements, e.g. balance control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S7/00—Indicating arrangements; Control arrangements, e.g. balance control
- H04S7/30—Control circuits for electronic adaptation of the sound field
- H04S7/305—Electronic adaptation of stereophonic audio signals to reverberation of the listening space
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Stereophonic System (AREA)
Abstract
Description
技术领域Technical field
本发明涉及车载音频技术领域,特别是涉及一种音频播放方法、一种音频播放装置和一种车辆。The present invention relates to the field of vehicle audio technology, and in particular to an audio playing method, an audio playing device and a vehicle.
背景技术Background technique
随着车辆行业的不断发展,车辆内部的配置也是趋于多元化;例如,车载音响系统。用户在驾驶过程中,能够通过车载音响系统,随时播放自己想要听到的声音,提高了用户的驾驶体验。With the continuous development of the vehicle industry, the internal configuration of vehicles also tends to be diversified; for example, car audio systems. While driving, users can play the sounds they want to hear at any time through the car audio system, which improves the user's driving experience.
通常为了进一步提升用户的听觉体验,会在车内的不同方位设置多个扬声器,利用多个扬声器同时播放声音的方式,使得用户能够享受到立体声的体验。现有技术中,车辆的车载音响系统只能对单声道音频或双声道音频进行解码,而通过对单声道音频或双声道音频进行解码,得到的声道最多只有两个。而实际上若要呈现真正的立体声的效果,需要在车辆的各个扬声器中同时播放不同声道的声音;因此,仅仅利用单声道或双声道音频所解析出来的声道,并不能在车辆中通过车载音响系统实现真正的立体声的效果。Usually, in order to further improve the user's listening experience, multiple speakers are installed in different directions in the car, and multiple speakers are used to play sounds at the same time, so that users can enjoy a stereo sound experience. In the existing technology, the vehicle's on-board audio system can only decode mono or dual-channel audio, and by decoding mono or dual-channel audio, only two channels can be obtained at most. In fact, in order to present a true stereo effect, different channels of sound need to be played simultaneously in each speaker of the vehicle; therefore, only the channels analyzed by mono or dual-channel audio cannot be used in the vehicle. Realize the true stereo effect through the car audio system.
发明内容Contents of the invention
本发明实施例提供一种音频播放方法,以在车辆内播放音频数据时,呈现立体声效果。Embodiments of the present invention provide an audio playback method to present a stereo effect when playing audio data in a vehicle.
相应的,本发明实施例还提供了一种音频播放装置和车辆,用以保证上述方法的实现及应用。Correspondingly, embodiments of the present invention also provide an audio playback device and a vehicle to ensure the implementation and application of the above method.
为了解决上述问题,本发明公开了一种音频播放方法,应用于车辆中,所述车辆设置有操作系统、数字信号处理器和多个音频播放设备,所述的方法包括:In order to solve the above problems, the present invention discloses an audio playback method, which is applied to a vehicle. The vehicle is equipped with an operating system, a digital signal processor and multiple audio playback devices. The method includes:
所述数字信号处理器接收操作系统发送的目标音频数据,所述目标音频数据由所述操作系统对多个声道的第一声道解码音频数据合并生成,所述第一声道解码音频数据由所述操作系统对多声道原始音频数据进行音源解码生成;The digital signal processor receives target audio data sent by the operating system. The target audio data is generated by the operating system combining the first channel decoded audio data of multiple channels. The first channel decoded audio data The operating system performs audio source decoding and generation on multi-channel original audio data;
对所述目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据;Perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels;
将多个声道对应的第二声道解码音频数据,分别分配给多个声道对应的音频播放设备播放。The second channel decoded audio data corresponding to the multiple channels is allocated to the audio playback devices corresponding to the multiple channels for playback.
可选地,所述的方法还包括:Optionally, the method also includes:
分别对各第二声道解码音频数据进行以下至少一种预处理:音量调节、平滑处理和EQ(Equalizer,均衡器)调节。Perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing processing, and EQ (Equalizer) adjustment.
可选地,所述第二声道解码音频数据为数字信号,所述将多个声道对应的第二声道解码音频数据,分别分配给多个声道对应的音频播放设备播放,包括:Optionally, the second channel decoded audio data is a digital signal, and allocating the second channel decoded audio data corresponding to multiple channels to the audio playback devices corresponding to the multiple channels for playback includes:
依据各第二声道解码音频数据对应的声道查找预先设置的映射关系,确定各声道对应的音频播放设备;Search the preset mapping relationship according to the channel corresponding to the decoded audio data of each second channel, and determine the audio playback device corresponding to each channel;
分别将多个声道对应的第二声道解码音频数据转换为对应的模拟信号,驱动多个声道对应的音频播放设备播放。Convert the decoded audio data of the second channel corresponding to the multiple channels into corresponding analog signals respectively, and drive the audio playback device corresponding to the multiple channels to play.
可选地,所述将多个声道对应的第二声道解码音频数据,分别分配给多个声道对应的音频播放设备播放,包括:Optionally, allocating the second channel decoded audio data corresponding to the multiple channels to the audio playback devices corresponding to the multiple channels for playback includes:
针对一个声道,将所述声道对应的第二声道解码音频数据和至少一个其他声道对应的第二声道解码音频数据进行混音,得到所述声道对应混音音频数据;For one channel, mix the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel to obtain the mixed audio data corresponding to the channel;
将多个声道对应的混音音频数据,分别分配给多个声道对应的音频播放设备播放。The mixed audio data corresponding to multiple channels is allocated to the audio playback devices corresponding to multiple channels for playback.
可选地,所述目标音频数据由所述操作系统采用时分复用技术将多个声道的第一声道解码音频数据合并生成。Optionally, the target audio data is generated by the operating system using time division multiplexing technology to combine the first channel decoded audio data of multiple channels.
本发明实施例还提供了一种音频播放装置,应用于车辆中,所述车辆设置有操作系统、数字信号处理器和多个音频播放设备,所述的装置包括:An embodiment of the present invention also provides an audio playback device for use in a vehicle. The vehicle is provided with an operating system, a digital signal processor and multiple audio playback devices. The device includes:
接收模块,用于所述数字信号处理器接收操作系统发送的目标音频数据,所述目标音频数据由所述操作系统对多个声道的第一声道解码音频数据合并生成,所述第一声道解码音频数据由所述操作系统对多声道原始音频数据进行音源解码生成;A receiving module, configured for the digital signal processor to receive target audio data sent by the operating system. The target audio data is generated by the operating system decoding the first channel audio data of multiple channels. The first channel The channel decoded audio data is generated by the operating system decoding the multi-channel original audio data;
声道解码模块,用于对所述目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据;A channel decoding module is used to perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels;
分配模块,用于将多个声道对应的第二声道解码音频数据,分别分配给多个声道对应的音频播放设备播放。The allocation module is used to allocate the decoded audio data of the second channel corresponding to the multiple channels to the audio playback devices corresponding to the multiple channels for playback.
可选地,所述的装置还包括:Optionally, the device also includes:
预处理模块,用于分别对各第二声道解码音频数据进行以下至少一种预处理:音量调节、平滑处理和EQ调节。A preprocessing module, configured to perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing processing and EQ adjustment.
可选地,所述第二声道解码音频数据为数字信号,所述分配模块,包括:Optionally, the second channel decoded audio data is a digital signal, and the distribution module includes:
设备确定子模块,用于依据各第二声道解码音频数据对应的声道查找预先设置的映射关系,确定各声道对应的音频播放设备;The device determination submodule is used to search for a preset mapping relationship based on the channel corresponding to the decoded audio data of each second channel, and determine the audio playback device corresponding to each channel;
转换驱动子模块,用于分别将多个声道对应的第二声道解码音频数据转换为对应的模拟信号,驱动多个声道对应的音频播放设备播放。The conversion driver submodule is used to convert the second channel decoded audio data corresponding to multiple channels into corresponding analog signals, and drive the audio playback equipment corresponding to the multiple channels to play.
可选地,所述分配模块,包括:Optionally, the distribution module includes:
混音子模块,用于针对一个声道,将所述声道对应的第二声道解码音频数据和至少一个其他声道对应的第二声道解码音频数据进行混音,得到所述声道对应混音音频数据;A mixing submodule, used for mixing, for one channel, the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel, to obtain the sound channel Corresponding to mixed audio data;
混音声道分配子模块,用于将多个声道对应的混音音频数据,分别分配给多个声道对应的音频播放设备播放。The mixing channel allocation submodule is used to allocate the mixing audio data corresponding to multiple channels to the audio playback devices corresponding to the multiple channels for playback.
可选地,所述目标音频数据由所述操作系统采用时分复用技术将多个声道的第一声道解码音频数据合并生成。Optionally, the target audio data is generated by the operating system using time division multiplexing technology to combine the first channel decoded audio data of multiple channels.
本发明实施例还提供了一种车辆,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于执行如本发明实施例任一所述的音频播放方法。Embodiments of the present invention also provide a vehicle, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. More than one program includes a method for executing the audio playback method described in any embodiment of the present invention.
本发明实施例还提供了一种可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如本发明实施例任一所述的音频播放方法。Embodiments of the present invention also provide a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the audio playback method as described in any embodiment of the present invention.
与现有技术相比,本发明实施例包括以下优点:Compared with the prior art, embodiments of the present invention include the following advantages:
本发明实施例中,操作系统可以对获取的多声道原始音频数据进行音源解码,得到多个声道的第一声道解码音频数据;然后将多个声道的第一声道解码音频数据合并生成对应的目标音频数据,并发送给数字信号处理器;数字信号处理器接收目标音频数据后,可以对接收到的目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据,并分别分配给多个声道对应的音频播放设备播放。进而本发明实施例能够对多声道原始音频数据进行解码,并在不同的音频播放设备播放不同声道的音频数据,从而在车辆中呈现出真正的立体声效果。In the embodiment of the present invention, the operating system can perform source decoding on the acquired multi-channel original audio data to obtain first-channel decoded audio data of multiple channels; and then decode the first-channel audio data of multiple channels. Merge and generate the corresponding target audio data and send it to the digital signal processor; after the digital signal processor receives the target audio data, it can perform channel decoding on the received target audio data to obtain the second channel corresponding to multiple channels. Decode the audio data and distribute it to audio playback devices corresponding to multiple channels for playback. Furthermore, embodiments of the present invention can decode multi-channel original audio data and play audio data of different channels on different audio playback devices, thereby presenting a true stereo effect in the vehicle.
附图说明Description of the drawings
图1是本发明的一种音频播放方法实施例的步骤流程图;Figure 1 is a step flow chart of an embodiment of an audio playback method of the present invention;
图2是本发明的一种音频播放方法可选实施例的步骤流程图;Figure 2 is a step flow chart of an optional embodiment of an audio playback method of the present invention;
图3是本发明实施例的一种多声道原始音频数据的源文件内容示意图;Figure 3 is a schematic diagram of the source file content of multi-channel original audio data according to an embodiment of the present invention;
图4是本发明实施例的一种音频播放处理过程示意图;Figure 4 is a schematic diagram of an audio playback processing process according to an embodiment of the present invention;
图5是本发明实施例的又一种音频播放处理过程示意图;Figure 5 is a schematic diagram of another audio playback processing process according to the embodiment of the present invention;
图6是本发明的又一种音频播放方法可选实施例的步骤流程图;Figure 6 is a step flow chart of another optional embodiment of the audio playback method of the present invention;
图7是本发明实施例的再一种音频播放处理过程示意图;Figure 7 is a schematic diagram of yet another audio playback processing process according to the embodiment of the present invention;
图8本发明的一种音频的播放装置实施例的结构框图;Figure 8 is a structural block diagram of an embodiment of an audio playback device of the present invention;
图9本发明的一种音频的播放装置可选实施例的结构框图。Figure 9 is a structural block diagram of an optional embodiment of an audio playback device of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
本发明实施例提供的一种音频的播放方法,可以应用于车辆中。通过该方法,可以对多声道原始音频数据进行解码,得到多个声道的音频数据后,分配给各声道对应的音频播放设备;从而在车辆播放音频数据时,呈现立体声效果。The audio playback method provided by the embodiment of the present invention can be applied to vehicles. Through this method, multi-channel original audio data can be decoded, and after obtaining the audio data of multiple channels, it is assigned to the audio playback device corresponding to each channel; thus, when the vehicle plays the audio data, a stereo effect is presented.
立体声,可以是指具有立体感的声音。随着科技的不断发展,已经可以将这些立体声经记录、放大等处理后而重放。但是,当所有的声音都是从一个音频播放设备播放出来时,这种重放声并不是立体的,这是由于各种声音都是通过同一个音频播放设备播放,原来的空间感也消失了。如果能够在重放的时候,布置多个音频播放设备,且在每个音频播放设备中播放不同声道的声音,那么,这种具有一定程度的方位层次感等空间分布特性的重放声,可以呈现立体声的效果。Stereo can refer to sound with a three-dimensional feel. With the continuous development of technology, these stereo sounds can be played back after being recorded, amplified, etc. However, when all the sounds are played from one audio playback device, the playback sound is not three-dimensional. This is because various sounds are played through the same audio playback device, and the original sense of space is also lost. If multiple audio playback devices can be arranged during playback, and sounds of different channels can be played in each audio playback device, then the playback sound with a certain degree of spatial distribution characteristics such as directional layering can be Presents a stereo sound effect.
参照图1,示出了本发明的一种音频播放方法实施例的步骤流程图,具体可以包括如下步骤:Referring to Figure 1, a step flow chart of an embodiment of an audio playback method of the present invention is shown, which may specifically include the following steps:
步骤102、所述数字信号处理器接收操作系统发送的目标音频数据,所述目标音频数据由所述操作系统对多个声道的第一声道解码音频数据合并生成,所述第一声道解码音频数据由所述操作系统对多声道原始音频数据进行音源解码生成。Step 102: The digital signal processor receives target audio data sent by the operating system. The target audio data is generated by the operating system decoding the first channel audio data of multiple channels. The first channel The decoded audio data is generated by the operating system decoding the multi-channel original audio data.
本发明实施例中,为了呈现立体声的效果,可以在车辆内设置多个音频播放设备;当用户在车内播放音频数据时,为用户呈现立体声的效果。其中,在车辆内设置的音频播放设备的位置,可以按照需求设置,例如,可以在车辆的前后左右上五个方位设置对应的音频播放设备,可以包括:前左声道对应的音频播放设备、前右声道对应的音频播放设备、后左声道对应的音频播放设备、后右声道对应的音频播放设备和天空声道对应的音频播放设备,本发明实施例对此不作限制。In the embodiment of the present invention, in order to present the stereo effect, multiple audio playback devices can be installed in the vehicle; when the user plays audio data in the vehicle, the stereo effect is presented to the user. Among them, the position of the audio playback equipment installed in the vehicle can be set according to the needs. For example, corresponding audio playback equipment can be set up in five directions on the front, rear, left, and right of the vehicle, which can include: audio playback equipment corresponding to the front left channel, The audio playback device corresponding to the front right channel, the audio playback device corresponding to the rear left channel, the audio playback device corresponding to the rear right channel, and the audio playback device corresponding to the sky channel are not limited in this embodiment of the present invention.
本发明实施例中,所述车辆设置有操作系统、数字信号处理器以及多个音频播放设备;所述操作系统与数字信号处理器通信,所述数字信号处理器与音频播放设备通信。In the embodiment of the present invention, the vehicle is provided with an operating system, a digital signal processor and multiple audio playback devices; the operating system communicates with the digital signal processor, and the digital signal processor communicates with the audio playback device.
其中,操作系统可以获取多声道原始音频数据,多声道原始音频数据可以包括多个声道的原始音频数据,例如5声道原始音频数据包括5个声道的原始音频数据,这5个声道分别可以是:前左声道、前右声道、后左声道、后右声道和天空声道。操作系统在获取到多声道原始音频数据后,可以先对多声道原始音频数据进行音源解码,得到对应的多个声道的音源解码音频数据;为了便于后续区分,可以将多声道原始音频数据经过音源解码后得到的音源解码音频数据,称为第一声道解码音频数据。例如,获取的5声道原始音频数据,声源解码后可以得到5个声道的第一声道解码音频数据:前左声道的第一声道解码音频数据、前右声道的第一声道解码音频数据、后左声道的第一声道解码音频数据、后右声道的第一声道解码音频数据和天空声道的第一声道解码音频数据。Among them, the operating system can obtain multi-channel original audio data, and the multi-channel original audio data can include original audio data of multiple channels. For example, 5-channel original audio data includes 5 channels of original audio data. These 5 channels The channels can be respectively: front left channel, front right channel, rear left channel, rear right channel and sky channel. After the operating system obtains the multi-channel original audio data, it can first decode the source of the multi-channel original audio data to obtain the corresponding multi-channel source decoded audio data; in order to facilitate subsequent differentiation, the multi-channel original audio data can be The audio source decoded audio data obtained after the audio data is decoded is called the first channel decoded audio data. For example, after obtaining the 5-channel original audio data, after the sound source is decoded, the first-channel decoded audio data of the 5-channel can be obtained: the first-channel decoded audio data of the front left channel, the first decoded audio data of the front right channel channel decoded audio data, first channel decoded audio data of the rear left channel, first channel decoded audio data of the rear right channel, and first channel decoded audio data of the sky channel.
由于数字信号处理器的通讯总线的数量有限,为了节约资源,操作系统可以将多个声道的第一声道解码音频数据合并,生成目标音频数据;然后再将目标音频数据通过通讯总线发送给数字信号处理器,进而数字信号处理器可以接收到目标音频数据。Since the number of communication buses of the digital signal processor is limited, in order to save resources, the operating system can combine the first channel decoded audio data of multiple channels to generate target audio data; and then send the target audio data to the The digital signal processor, in turn, can receive the target audio data.
步骤104、对所述目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据。Step 104: Perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels.
步骤106、将多个声道对应的第二声道解码音频数据,分别分配给多个声道对应的音频播放设备播放。Step 106: Allocate the second channel decoded audio data corresponding to the multiple channels to the audio playback devices corresponding to the multiple channels for playback.
本发明实施例中,所述数字信号处理器在接收到目标音频数据后,可以对目标音频数据进行声道解码,例如,对目标音频数据进行分离,得到多个声道对应的声道解码音频数据,以便后续将不同声道的声道解码音频数据分配给对应声道的音频播放设备。为了便于后续区分,将数字信号处理器对目标音频数据进行声道解码所得到的声道解码音频数据称为第二声道解码音频数据。In the embodiment of the present invention, after receiving the target audio data, the digital signal processor can perform channel decoding on the target audio data. For example, the target audio data can be separated to obtain channel decoded audio corresponding to multiple channels. data in order to subsequently distribute the channel decoded audio data of different channels to the audio playback device of the corresponding channel. In order to facilitate subsequent distinction, the channel decoded audio data obtained by channel decoding the target audio data by the digital signal processor is called the second channel decoded audio data.
本发明实施例中,为了能够更真实的还原立体声的效果,可以将不同的声道对应的第二声道解码音频数据,分配给对应声道的音频播放设备。例如,将前左声道的第二声道解码音频数据分配给前左声道音频播放设备,前右声道的第二声道解码音频数据分配给前右声道音频播放设备,本发明实施例对此不作限制。In the embodiment of the present invention, in order to restore the stereo effect more realistically, the second channel decoded audio data corresponding to different channels can be allocated to the audio playback device of the corresponding channel. For example, the second channel decoded audio data of the front left channel is assigned to the front left channel audio playback device, and the second channel decoded audio data of the front right channel is assigned to the front right channel audio playback device. The present invention implements There is no restriction on this.
本发明实施例中,各个第二声道解码音频数据分别分配给对应声道的音频播放设备后,由于各个音频播放设备是播放的不同声道的声音,所以呈现出来的声音效果也更接近于真实的立体声的效果。In the embodiment of the present invention, after each second channel decoded audio data is allocated to the audio playback device of the corresponding channel, since each audio playback device plays sounds of different channels, the sound effect presented is also closer to Real stereo sound effect.
综上,本发明实施例中,操作系统可以对获取的多声道原始音频数据进行音源解码,得到多个声道的第一声道解码音频数据;然后将多个声道的第一声道解码音频数据合并生成对应的目标音频数据,并发送给数字信号处理器;数字信号处理器接收目标音频数据后,可以对接收到的目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据,并分别分配给多个声道对应的音频播放设备播放。进而本发明实施例能够对多声道原始音频数据进行解码,并在不同的音频播放设备播放不同声道的音频数据,从而在车辆中呈现出真正的立体声效果。In summary, in the embodiment of the present invention, the operating system can perform source decoding on the acquired multi-channel original audio data to obtain the first channel decoded audio data of multiple channels; and then decode the first channel of the multiple channels. The decoded audio data is combined to generate corresponding target audio data and sent to the digital signal processor; after the digital signal processor receives the target audio data, it can perform channel decoding on the received target audio data to obtain the third channel corresponding to multiple channels. Two-channel decoded audio data is allocated to audio playback devices corresponding to multiple channels for playback. Furthermore, embodiments of the present invention can decode multi-channel original audio data and play audio data of different channels on different audio playback devices, thereby presenting a true stereo effect in the vehicle.
参照图2,示出了本发明的一种音频播放方法可选实施例的步骤流程图,具体可以包括如下步骤:Referring to Figure 2, a step flow chart of an optional embodiment of an audio playback method of the present invention is shown, which may specifically include the following steps:
步骤202、所述数字信号处理器接收操作系统发送的目标音频数据。Step 202: The digital signal processor receives the target audio data sent by the operating system.
本发明实施例中,车辆中的操作系统可以通过多种方式获取多声道原始音频数据;例如用户将车辆与手机通过蓝牙连接后,操作系统从手机中获取用户选取的多声道原始音频数据;又例如用户直接将多声道原始音频数据导入车辆的操作系统中;还例如车辆联网后,从音频库中获取多声道原始音频数据,本发明实施例对此不作限制。In the embodiment of the present invention, the operating system in the vehicle can obtain multi-channel original audio data in a variety of ways; for example, after the user connects the vehicle to the mobile phone via Bluetooth, the operating system obtains the multi-channel original audio data selected by the user from the mobile phone. ; Another example is that the user directly imports the multi-channel original audio data into the operating system of the vehicle; or another example is that after the vehicle is connected to the Internet, the multi-channel original audio data is obtained from the audio library, and the embodiment of the present invention does not limit this.
本发明实施例中,不同的音频数据文件类型对应的音源解码方式也不同,本发明实施例对此不作限制。In the embodiment of the present invention, the audio source decoding methods corresponding to different audio data file types are also different, and the embodiment of the present invention does not limit this.
现以多声道原始音频数据的文件格式为wav格式为例,说明操作系统对多声道原始音频数据进行音源解码的过程:Taking the file format of multi-channel original audio data as wav format as an example, we will illustrate the process of audio source decoding of multi-channel original audio data by the operating system:
首先,启动操作系统,操作系统获取多声道原始音频数据的格式信息和源文件内容。First, the operating system is started, and the operating system obtains the format information and source file content of the multi-channel original audio data.
其次,操作系统根据格式信息和源文件内容,确定多声道原始音频数据对应的声道数和多声道原始音频数据在源文件内容的位置。根据wav格式对应格式信息可以确定,源文件内容中第22-23字节的Channels Num(声道数),表示该多声道原始音频数据的声道数。以及可以确定源文件内容中第44字节开始存储了该多声道原始音频数据。例如,图3中第22-23字节中的内容“00 05”,表示该多声道原始音频数据文件的声道数为“5”。Secondly, the operating system determines the number of channels corresponding to the multi-channel original audio data and the position of the multi-channel original audio data in the source file content based on the format information and the source file content. According to the corresponding format information of the wav format, it can be determined that the Channels Num (number of channels) in the 22nd to 23rd bytes of the source file content represents the number of channels of the multi-channel original audio data. And it can be determined that the multi-channel original audio data is stored starting from the 44th byte in the source file content. For example, the content "00 05" in bytes 22-23 in Figure 3 indicates that the number of channels of the multi-channel original audio data file is "5".
再次,操作系统根据多声道原始音频数据的声道数和在源文件内容的位置,对所述多声道原始音频数据进行音源解码。如图3中,一个声道的数据可以采用16bits标识,占2个字节;因此可以从第44字节开始,每次读取10个字节,即为五声道数据,进而可得到5个声道的第一声道解码音频数据。Thirdly, the operating system performs audio source decoding on the multi-channel original audio data according to the number of channels of the multi-channel original audio data and the position of the source file content. As shown in Figure 3, the data of one channel can be marked with 16 bits, occupying 2 bytes; therefore, starting from the 44th byte, 10 bytes can be read each time, which is five-channel data, and then 5 can be obtained The first channel of the channels decodes the audio data.
本发明实施例中,所述目标音频数据由所述操作系统采用时分复用技术将多个声道的第一声道解码音频数据合并生成。In the embodiment of the present invention, the target audio data is generated by the operating system using time division multiplexing technology to combine the first channel decoded audio data of multiple channels.
本发明实施例中,可以利用时分复用技术,将整个信道传输信息的时间划分成若干个时间片,然后将这些时间片分配给不同的第一声道解码音频数据使用,从而将多个声道的第一声道解码音频数据合并,生成目标音频数据,然后再将目标音频数据发送给数字信号处理器。In the embodiment of the present invention, time division multiplexing technology can be used to divide the time for transmitting information on the entire channel into several time slices, and then allocate these time slices to different first channel decoded audio data, thereby decoding multiple audio data. The decoded audio data of the first channel are combined to generate target audio data, and then the target audio data is sent to the digital signal processor.
步骤204、对所述目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据。Step 204: Perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels.
本发明实施例中,所述数字信号处理器接收到目标音频数据后,对所述目标音频数据进行分离,生成多个声道对应的第二声道解码音频数据。In the embodiment of the present invention, after receiving the target audio data, the digital signal processor separates the target audio data and generates second channel decoded audio data corresponding to multiple channels.
步骤206、分别对各第二声道解码音频数据进行以下至少一种预处理:音量调节、平滑处理和EQ调节。Step 206: Perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing processing, and EQ adjustment.
本发明实施例中,为了进一步提升用户的听觉体验,还可以分别对各第二声道解码音频数据进行预处理。In the embodiment of the present invention, in order to further improve the user's listening experience, each second channel decoded audio data can also be preprocessed separately.
本发明的一个可选实施例中,可以对各第二声道解码音频数据的音量进行调节。例如,提升或衰减某个第二声道解码音频数据的音量,本发明实施例对此不作限制。In an optional embodiment of the present invention, the volume of each second channel decoded audio data can be adjusted. For example, increasing or attenuating the volume of a certain second channel decoded audio data is not limited in this embodiment of the present invention.
本发明的一个可选实施例中,还可以对第二声道解码音频数据进行声音的平滑处理。例如,可以通过平滑算法对音频曲线进行平滑整理。In an optional embodiment of the present invention, sound smoothing processing can also be performed on the second channel decoded audio data. For example, audio curves can be smoothed using a smoothing algorithm.
本发明的一个可选实施例中,还可以对第二声道解码音频数据进行EQ调节,将某个频点的增益拉高或降低,以实现相应的音效效果。例如播放音乐时的人声、摇滚、古典、重金属等效果。In an optional embodiment of the present invention, EQ adjustment can also be performed on the decoded audio data of the second channel to increase or decrease the gain of a certain frequency point to achieve corresponding sound effects. For example, vocal, rock, classical, heavy metal and other effects when playing music.
当然,还可以包括其他对音频数据的预处理,本发明实施例对此不作限制。Of course, other preprocessing of audio data may also be included, and the embodiment of the present invention does not limit this.
本发明实施例中,可以采用上述单独的一种预处理方式对第二声道解码音频数据进行预处理,也可以是多种方式的组合对第二声道解码音频数据进行预处理,本发明实施例对此不作限制。In the embodiment of the present invention, the above-mentioned single preprocessing method can be used to preprocess the second channel decoded audio data, or a combination of multiple methods can be used to preprocess the second channel decoded audio data. The present invention The embodiment does not limit this.
步骤208、依据各第二声道解码音频数据对应的声道查找预先设置的映射关系,确定各声道对应的音频播放设备。Step 208: Search the preset mapping relationship according to the channels corresponding to the decoded audio data of each second channel, and determine the audio playback device corresponding to each channel.
本发明实施例中,可以预先设置各声道与各音频播放设备之间的映射关系。其中,可以确定各声道对应的音频播放设备,然后可以采用各声道的声道标识与对应音频播放设备的设备标识,生成映射关系。例如,左声道对应车辆左前方的音频播放设备,右声道对应车辆右前方的音频播放设备;然后建立左声道的声道标识与车辆左前方的音频播放设备的设备标识之间的映射关系;以及建立右声道的声道标识与车辆右前方的音频播放设备的设备标识之间,建立映射关系,本发明实施例对此不作限制。In the embodiment of the present invention, the mapping relationship between each audio channel and each audio playback device can be set in advance. Among them, the audio playback device corresponding to each channel can be determined, and then the channel identifier of each channel and the device identifier of the corresponding audio playback device can be used to generate a mapping relationship. For example, the left channel corresponds to the audio playback device on the left front of the vehicle, and the right channel corresponds to the audio playback device on the right front of the vehicle; then a mapping between the channel identifier of the left channel and the device identifier of the audio playback device on the left front of the vehicle is established. and establish a mapping relationship between the channel identifier of the right channel and the device identifier of the audio playback device on the right front of the vehicle, which is not limited by the embodiment of the present invention.
本发明实施例中,可以先确定第二声道解码音频数据所对应的声道,然后确定所述声道对应的声道标识;依据映射关系,查找所述声道标识对应的设备标识,从而确定所述声道对应的音频播放设备。In the embodiment of the present invention, the channel corresponding to the decoded audio data of the second channel can be determined first, and then the channel identifier corresponding to the channel is determined; according to the mapping relationship, the device identifier corresponding to the channel identifier is searched, thereby Determine the audio playback device corresponding to the audio channel.
步骤210、分别将多个声道对应的第二声道解码音频数据转换为对应的模拟信号,驱动多个声道对应的音频播放设备播放。Step 210: Convert the second channel decoded audio data corresponding to the multiple channels into corresponding analog signals, and drive the audio playback devices corresponding to the multiple channels to play.
本发明实施例中,所述第二声道解码音频数据为数字信号,因此可以将所述第二声道解码音频数据的数字信号转换成对应的模拟信号,然后多个声道对应的模拟信号分别发送至对应的音频播放设备,驱动音频播放设备播放。In the embodiment of the present invention, the second channel decoded audio data is a digital signal, so the digital signal of the second channel decoded audio data can be converted into a corresponding analog signal, and then the corresponding analog signals of the multiple channels Send them to the corresponding audio playback device respectively to drive the audio playback device to play.
可参照图4,本发明的一个示例中,所述操作系统对多声道原始目标音频数据进行音源解码后,获得5个第一声道解码音频数据:前左声道对应的第一声道解码音频数据、前右声道对应的第一声道解码音频数据、后左声道对应的第一声道解码音频数据、后右声道对应的第一声道解码音频数据和天空声道对应的第一声道解码音频数据;然后操作系统将5个第一声道解码音频数据通过时分复用技术合并成目标音频数据后,发送给数字信号处理器;然后数字信号处理器对目标音频数据进行声道解码,得到对应的5个第二声道解码音频数据,并对其进行预处理;然后将各第二声道解码音频数据分别分配至对应声道的音频播放设备播放。Referring to Figure 4, in one example of the present invention, after the operating system decodes the source of the multi-channel original target audio data, it obtains 5 first channel decoded audio data: the first channel corresponding to the front left channel Decoded audio data, the first channel decoded audio data corresponding to the front right channel, the first channel decoded audio data corresponding to the rear left channel, the first channel decoded audio data corresponding to the rear right channel, and the sky channel corresponding The first channel decoded audio data; then the operating system combines the five first channel decoded audio data into target audio data through time division multiplexing technology, and then sends it to the digital signal processor; then the digital signal processor processes the target audio data Perform channel decoding to obtain corresponding 5 second channel decoded audio data, and perform preprocessing on them; then distribute each second channel decoded audio data to the audio playback device of the corresponding channel for playback.
可参照图5,本发明的又一个示例中,所述数字信号处理器对第二声道解码音频数据进行预处理时,可以依次进行音量调节、平滑处理和EQ调节;然后将预处理后的第二声道解码音频数据分别分配至对应声道的音频播放设备播放。Referring to Figure 5, in another example of the present invention, when the digital signal processor preprocesses the second channel decoded audio data, it can perform volume adjustment, smoothing and EQ adjustment in sequence; and then the preprocessed The decoded audio data of the second channel is respectively distributed to the audio playback device of the corresponding channel for playback.
参照图6,示出了本发明的又一种音频播放方法可选实施例的步骤流程图,具体可以包括如下步骤:Referring to Figure 6, a step flow chart of another optional embodiment of the audio playback method of the present invention is shown, which may specifically include the following steps:
步骤602、所述数字信号处理器接收操作系统发送的目标音频数据。Step 602: The digital signal processor receives the target audio data sent by the operating system.
步骤604、对所述目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据。Step 604: Perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels.
步骤606、分别对各第二声道解码音频数据进行以下至少一种预处理:音量调节、平滑处理和EQ调节。Step 606: Perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing and EQ adjustment.
步骤602-步骤606与上述步骤202-步骤206类似,在此不再赘述。Steps 602 to 606 are similar to the above steps 202 to 206, and will not be described again here.
步骤608、针对一个声道,将所述声道对应的第二声道解码音频数据和至少一个其他声道对应的第二声道解码音频数据进行混音,得到所述声道对应混音音频数据。Step 608: For one channel, mix the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel to obtain the mixed audio corresponding to the channel. data.
步骤610、将多个声道对应的混音音频数据,分别分配给多个声道对应的音频播放设备播放。Step 610: Allocate the mixed audio data corresponding to the multiple channels to the audio playback devices corresponding to the multiple channels for playback.
本发明实施例中,为了能够实现更多的声音效果,可以将至少两个声道对应的第二声道解码音频数据进行混音。In the embodiment of the present invention, in order to achieve more sound effects, the decoded audio data of the second channel corresponding to at least two channels can be mixed.
现以一个声道为例,说明如何生成该声道的混音。本发明实施例中,针对该声道,可以将该声道对应的第二声道解码音频数据与一个其他声道对应的第二声道解码音频数据进行混音,得到所述声道对应的混音音频数据。其他声道可以是指除该声道以外的其他声道。例如,有5个第二声道解码音频数据:A、B、C、D和E,对应5个声道:a、b、c、d和e;然后将声道a的第二声道解码音频数据A与声道b的第二声道解码音频数据B进行混音,得到声道a的混音音频数据A+。Let’s take one channel as an example to illustrate how to generate a mix of that channel. In the embodiment of the present invention, for this channel, the second channel decoded audio data corresponding to the channel can be mixed with the second channel decoded audio data corresponding to another channel to obtain the decoded audio data corresponding to the channel. Mix audio data. Other channels may refer to channels other than this channel. For example, there are 5 second channels of decoded audio data: A, B, C, D and E, corresponding to 5 channels: a, b, c, d and e; then the second channel of channel a is decoded Audio data A is mixed with the second channel decoded audio data B of channel b to obtain mixed audio data A + of channel a.
本发明实施例中,还可以将该声道对应的第二声道解码音频数据与至少两个其他声道对应的第二声道解码音频数据进行混音,得到所述声道对应的混音音频数据。例如,有5个第二声道解码音频数据:A、B、C、D和E,对应5个声道:a、b、c、d和e;然后将声道c的第二声道解码音频数据C与声道b的第二声道解码音频数据B、声道a的第二声道解码音频数据A进行混音,得到声道c的混音音频数据C+。In the embodiment of the present invention, the decoded audio data of the second channel corresponding to the channel may also be mixed with the decoded audio data of the second channel corresponding to at least two other channels to obtain a mixed sound corresponding to the channel. audio data. For example, there are 5 second channels of decoded audio data: A, B, C, D and E, corresponding to 5 channels: a, b, c, d and e; then the second channel of channel c is decoded The audio data C is mixed with the second channel decoded audio data B of channel b and the second channel decoded audio data A of channel a to obtain mixed audio data C + of channel c.
本发明实施例中,可以针对每一个声道,将该声道对应的第二声道解码音频数据和至少一个其他声道对应的第二声道解码音频数据进行混音;也可以对部分声道中的各声道,将该声道对应的第二声道解码音频数据和至少一个其他声道对应的第二声道解码音频数据进行混音,本发明实施例对此不作限制。In the embodiment of the present invention, for each channel, the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel can be mixed; some audio channels can also be mixed. For each channel in the channel, the decoded audio data of the second channel corresponding to the channel is mixed with the decoded audio data of the second channel corresponding to at least one other channel. This is not limited in the embodiment of the present invention.
本发明实施例中,可以将混音后得到的多个声道对应的混音音频数据,分别分配给多个声道对应的音频播放设备播放。In the embodiment of the present invention, the mixed audio data corresponding to multiple channels obtained after mixing can be allocated to audio playback devices corresponding to the multiple channels for playback.
可参照图7,本发明的再一个示例中,所述数字信号处理器对第二声道解码音频数据进行预处理时,依次进行音量调节、平滑处理和EQ调节的预处理;然后对第二声道解码音频数据进行混音处理;数字信号处理器再将处理后的混音音频数据分别分配至对应声道的音频播放设备播放。Referring to Figure 7, in another example of the present invention, when the digital signal processor preprocesses the second channel decoded audio data, it sequentially performs preprocessing of volume adjustment, smoothing and EQ adjustment; and then performs preprocessing on the second channel. The channel decodes the audio data for mixing processing; the digital signal processor then distributes the processed mixed audio data to the audio playback device of the corresponding channel for playback.
综上,本发明实施例中,通过对第二声道解码音频数据进行了音量处理、平滑处理、EQ调节等预处理;进而能够呈现高质量的立体声的效果,进一步的提高了用户的体验。In summary, in the embodiment of the present invention, preprocessing such as volume processing, smoothing processing, EQ adjustment, etc. is performed on the decoded audio data of the second channel; thus, a high-quality stereo effect can be presented, further improving the user experience.
其次,在得到第二声道解码音频数据后,将多个第二声道解码音频数据进行混音,能够播放出多种声音效果的声音,从而满足用户对于声音效果的多种需求。Secondly, after obtaining the second channel decoded audio data, multiple second channel decoded audio data are mixed to play sounds with a variety of sound effects, thereby meeting users' various needs for sound effects.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that for the sake of simple description, the method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence because According to embodiments of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the present invention.
参照图8,示出了本发明一种音频播放装置实施例的结构框图,具体可以包括如下模块:Referring to Figure 8, a structural block diagram of an embodiment of an audio playback device according to the present invention is shown. Specifically, it may include the following modules:
接收模块802,用于所述数字信号处理器接收操作系统发送的目标音频数据,所述目标音频数据由所述操作系统对多个声道的第一声道解码音频数据合并生成,所述第一声道解码音频数据由所述操作系统对多声道原始音频数据进行音源解码生成;Receiving module 802, configured for the digital signal processor to receive target audio data sent by the operating system. The target audio data is generated by the operating system decoding the audio data of the first channel of multiple channels. One-channel decoded audio data is generated by the operating system decoding multi-channel original audio data;
声道解码模块804,用于对所述目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据;The channel decoding module 804 is used to perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels;
分配模块806,用于将多个声道对应的第二声道解码音频数据,分别分配给多个声道对应的音频播放设备播放。The allocation module 806 is used to allocate the second channel decoded audio data corresponding to the multiple channels to the audio playback devices corresponding to the multiple channels for playback.
参照图9,示出了本发明一种音频播放装置可选实施例的结构框图,具体可以包括如下模块:Referring to Figure 9, a structural block diagram of an optional embodiment of an audio playback device according to the present invention is shown. Specifically, it may include the following modules:
本发明的一个可选实施例中,所述的装置还包括:In an optional embodiment of the present invention, the device further includes:
预处理模块808,用于分别对各第二声道解码音频数据进行以下至少一种预处理:音量调节、平滑处理和EQ调节。The preprocessing module 808 is configured to perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing processing, and EQ adjustment.
本发明的一个可选实施例中,所述第二声道解码音频数据为数字信号,所述分配模块806,包括:In an optional embodiment of the present invention, the second channel decoded audio data is a digital signal, and the distribution module 806 includes:
设备确定子模块8062,用于依据各第二声道解码音频数据对应的声道查找预先设置的映射关系,确定各声道对应的音频播放设备;The device determination sub-module 8062 is used to search for the preset mapping relationship based on the channels corresponding to the decoded audio data of each second channel, and determine the audio playback device corresponding to each channel;
转换驱动子模块8064,用于分别将多个声道对应的第二声道解码音频数据转换为对应的模拟信号,驱动多个声道对应的音频播放设备播放。The conversion driving sub-module 8064 is used to convert the second channel decoded audio data corresponding to multiple channels into corresponding analog signals, and drive the audio playback equipment corresponding to the multiple channels to play.
本发明的一个可选实施例中,所述分配模块806,包括:In an optional embodiment of the present invention, the allocation module 806 includes:
混音子模块8066,用于针对一个声道,将所述声道对应的第二声道解码音频数据和至少一个其他声道对应的第二声道解码音频数据进行混音,得到所述声道对应混音音频数据;The mixing sub-module 8066 is used for mixing, for one channel, the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel to obtain the audio The channel corresponds to the mixed audio data;
混音声道分配子模块8068,用于将多个声道对应的混音音频数据,分别分配给多个声道对应的音频播放设备播放。The mixing channel allocation sub-module 8068 is used to allocate the mixing audio data corresponding to multiple channels to the audio playback devices corresponding to the multiple channels for playback.
本发明的一个可选实施例中,所述目标音频数据由所述操作系统采用时分复用技术将多个声道的第一声道解码音频数据合并生成。In an optional embodiment of the present invention, the target audio data is generated by the operating system using time division multiplexing technology to combine the first channel decoded audio data of multiple channels.
综上,本发明实施例中,操作系统可以对获取的多声道原始音频数据进行音源解码,得到多个声道的第一声道解码音频数据;然后将多个声道的第一声道解码音频数据合并生成对应的目标音频数据,并发送给数字信号处理器;数字信号处理器接收目标音频数据后,可以对接收到的目标音频数据进行声道解码,得到多个声道对应的第二声道解码音频数据,并分别分配给多个声道对应的音频播放设备播放。进而本发明实施例能够对多声道原始音频数据进行解码,并在不同的音频播放设备播放不同声道的音频数据,从而在车辆中呈现出真正的立体声效果。In summary, in the embodiment of the present invention, the operating system can perform source decoding on the acquired multi-channel original audio data to obtain the first channel decoded audio data of multiple channels; and then decode the first channel of the multiple channels. The decoded audio data is combined to generate corresponding target audio data and sent to the digital signal processor; after the digital signal processor receives the target audio data, it can perform channel decoding on the received target audio data to obtain the third channel corresponding to multiple channels. Two-channel decoded audio data is allocated to audio playback devices corresponding to multiple channels for playback. Furthermore, embodiments of the present invention can decode multi-channel original audio data and play audio data of different channels on different audio playback devices, thereby presenting a true stereo effect in the vehicle.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.
本发明实施例还提供了一种车辆,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于执行如本发明实施例任一所述的音频播放方法。Embodiments of the present invention also provide a vehicle, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. More than one program includes a method for executing the audio playback method described in any embodiment of the present invention.
本发明实施例还提供了一种可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如本发明实施例任一所述的音频播放方法。Embodiments of the present invention also provide a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the audio playback method as described in any embodiment of the present invention.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Thus, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine such that the instructions are executed by the processor of the computer or other programmable data processing terminal device. Means are generated for implementing the functions specified in the process or processes of the flowchart diagrams and/or the block or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the The instruction means implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, so that a series of operating steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby causing the computer or other programmable terminal equipment to perform a computer-implemented process. The instructions executed on provide steps for implementing the functions specified in a process or processes of the flow diagrams and/or a block or blocks of the block diagrams.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present invention have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once the basic inventive concepts are apparent. Therefore, it is intended that the appended claims be construed to include the preferred embodiments and all changes and modifications that fall within the scope of embodiments of the invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, 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 that these entities or any such actual relationship or sequence between operations. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or end device that includes a list of elements includes not only those elements, but also elements not expressly listed or other elements inherent to such process, method, article or terminal equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or terminal device including the stated element.
以上对本发明所提供的一种音频播放方法、一种音频播放装置和一种车辆,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。An audio playback method, an audio playback device and a vehicle provided by the present invention have been introduced in detail above. Specific examples are used in this article to illustrate the principles and implementations of the present invention. The description of the above embodiments It is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the field, there will be changes in the specific implementation and application scope based on the idea of the present invention. In summary, The content of this description should not be construed as limiting the invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010599071.3A CN111768791B (en) | 2020-06-28 | 2020-06-28 | Audio playing method and device and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010599071.3A CN111768791B (en) | 2020-06-28 | 2020-06-28 | Audio playing method and device and vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111768791A CN111768791A (en) | 2020-10-13 |
CN111768791B true CN111768791B (en) | 2023-10-31 |
Family
ID=72722272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010599071.3A Active CN111768791B (en) | 2020-06-28 | 2020-06-28 | Audio playing method and device and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111768791B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954581B (en) * | 2021-02-04 | 2022-07-01 | 广州橙行智动汽车科技有限公司 | A kind of audio playback method, system and device |
CN113050916A (en) * | 2021-04-09 | 2021-06-29 | 深圳Tcl新技术有限公司 | Audio playing method, device and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5794164A (en) * | 1995-11-29 | 1998-08-11 | Microsoft Corporation | Vehicle computer system |
CN201039462Y (en) * | 2006-11-06 | 2008-03-19 | 瑞轩科技股份有限公司 | Audio system |
CN101826356A (en) * | 2009-03-06 | 2010-09-08 | 索尼公司 | Audio frequency apparatus and audio-frequency processing method |
CN102026086A (en) * | 2010-12-01 | 2011-04-20 | 广州爱威音响有限公司 | Method for mixing down multiple channels into 3-channel surrounding sound |
KR20110049083A (en) * | 2009-11-04 | 2011-05-12 | 한국전자통신연구원 | Portable multimedia devices, audio playback devices and audio systems for playing digital audio signals |
CN104468991A (en) * | 2014-11-24 | 2015-03-25 | 广东欧珀移动通信有限公司 | A mobile terminal and audio transceiver method thereof |
CN106454617A (en) * | 2016-09-08 | 2017-02-22 | 卡桑德电子科技(扬州)有限公司 | Intelligent vehicle-mounted sound system with built-in digital audio signal processing module and working method thereof |
CN106488359A (en) * | 2015-08-31 | 2017-03-08 | 哈曼国际工业有限公司 | The customization of vehicle audio frequency system |
KR20170031392A (en) * | 2015-09-11 | 2017-03-21 | 삼성전자주식회사 | Electronic apparatus, sound system and audio output method |
CN106910510A (en) * | 2017-02-16 | 2017-06-30 | 智车优行科技(北京)有限公司 | Vehicle-mounted power amplifying device, vehicle and its audio play handling method |
CN108616721A (en) * | 2018-03-28 | 2018-10-02 | 广州凌飞电子科技有限公司 | A kind of audio-visual dual system of automobile multimedia navigation |
CN109982209A (en) * | 2019-04-24 | 2019-07-05 | 广州小鹏汽车科技有限公司 | A kind of car audio system |
-
2020
- 2020-06-28 CN CN202010599071.3A patent/CN111768791B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5794164A (en) * | 1995-11-29 | 1998-08-11 | Microsoft Corporation | Vehicle computer system |
CN201039462Y (en) * | 2006-11-06 | 2008-03-19 | 瑞轩科技股份有限公司 | Audio system |
CN101826356A (en) * | 2009-03-06 | 2010-09-08 | 索尼公司 | Audio frequency apparatus and audio-frequency processing method |
KR20110049083A (en) * | 2009-11-04 | 2011-05-12 | 한국전자통신연구원 | Portable multimedia devices, audio playback devices and audio systems for playing digital audio signals |
CN102026086A (en) * | 2010-12-01 | 2011-04-20 | 广州爱威音响有限公司 | Method for mixing down multiple channels into 3-channel surrounding sound |
CN104468991A (en) * | 2014-11-24 | 2015-03-25 | 广东欧珀移动通信有限公司 | A mobile terminal and audio transceiver method thereof |
CN106488359A (en) * | 2015-08-31 | 2017-03-08 | 哈曼国际工业有限公司 | The customization of vehicle audio frequency system |
KR20170031392A (en) * | 2015-09-11 | 2017-03-21 | 삼성전자주식회사 | Electronic apparatus, sound system and audio output method |
CN106454617A (en) * | 2016-09-08 | 2017-02-22 | 卡桑德电子科技(扬州)有限公司 | Intelligent vehicle-mounted sound system with built-in digital audio signal processing module and working method thereof |
CN106910510A (en) * | 2017-02-16 | 2017-06-30 | 智车优行科技(北京)有限公司 | Vehicle-mounted power amplifying device, vehicle and its audio play handling method |
CN108616721A (en) * | 2018-03-28 | 2018-10-02 | 广州凌飞电子科技有限公司 | A kind of audio-visual dual system of automobile multimedia navigation |
CN109982209A (en) * | 2019-04-24 | 2019-07-05 | 广州小鹏汽车科技有限公司 | A kind of car audio system |
Also Published As
Publication number | Publication date |
---|---|
CN111768791A (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10321254B2 (en) | Audio signal processing method and apparatus | |
US10129685B2 (en) | Audio signal processing method and device | |
US10231074B2 (en) | Cloud hosted audio rendering based upon device and environment profiles | |
KR101049144B1 (en) | Audio signal processing method and device | |
CN112954581B (en) | A kind of audio playback method, system and device | |
US9820073B1 (en) | Extracting a common signal from multiple audio signals | |
CN107431871B (en) | audio signal processing apparatus and method for filtering audio signal | |
CN107980225A (en) | Use the apparatus and method of drive signal drive the speaker array | |
CN111768791B (en) | Audio playing method and device and vehicle | |
CN111512648A (en) | Enabling rendering of spatial audio content for consumption by a user | |
CN110191745B (en) | Game streaming using spatial audio | |
JP7635269B2 (en) | Audio reproduction method, car audio system and storage medium | |
CN105684466B (en) | Stereo reproduction method and device | |
CN111724757A (en) | Audio data processing method and related product | |
US20050273324A1 (en) | System for providing audio data and providing method thereof | |
CN102348149A (en) | System and method for robust audio spatialization using frequency separation | |
KR102380232B1 (en) | Method and apparatus for 3D sound reproducing | |
JP7083405B2 (en) | Audio signal processors, systems and methods that distribute ambient signals across multiple ambient signal channels. | |
CN115474130A (en) | Audio processing method and related equipment | |
CN115484542A (en) | A channel mapping method, device, playback device, vehicle and storage medium | |
TWI262738B (en) | Expansion method of multi-channel panoramic audio effect | |
JP2017163458A (en) | Upmix device and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000 Applicant after: Guangzhou Xiaopeng Automatic Driving Technology Co.,Ltd. Address before: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000 Applicant before: Guangzhou Xiaopeng Internet of vehicles Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201224 Address after: Room 175, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000 Applicant after: Guangzhou Yidian intelligent travel Technology Co.,Ltd. Address before: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000 Applicant before: Guangzhou Xiaopeng Automatic Driving Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou, Guangdong 510000 Applicant after: Guangzhou Yidian intelligent travel Technology Co.,Ltd. Address before: Room 175, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000 Applicant before: Guangzhou Yidian intelligent travel Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250109 Address after: Room 406-175, No. 1 Yichuang Street, Zhongxin Knowledge City, Huangpu District, Guangzhou City, Guangdong Province 510700 Patentee after: Guangzhou Yidian intelligent travel Technology Co.,Ltd. Country or region after: China Patentee after: GUANGZHOU XIAOPENG MOTORS TECHNOLOGY Co.,Ltd. Address before: Room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou, Guangdong 510000 Patentee before: Guangzhou Yidian intelligent travel Technology Co.,Ltd. Country or region before: China |
|
TR01 | Transfer of patent right |