CN111768791B - Audio playing method and device and vehicle - Google Patents

Audio playing method and device and vehicle Download PDF

Info

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
sound
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
Application number
CN202010599071.3A
Other languages
Chinese (zh)
Other versions
CN111768791A (en
Inventor
谢芳
胡泽华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yidian Intelligent Travel Technology Co ltd
Original Assignee
Guangzhou Yidian Intelligent Travel Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Yidian Intelligent Travel Technology Co ltd filed Critical Guangzhou Yidian Intelligent Travel Technology Co ltd
Priority to CN202010599071.3A priority Critical patent/CN111768791B/en
Publication of CN111768791A publication Critical patent/CN111768791A/en
Application granted granted Critical
Publication of CN111768791B publication Critical patent/CN111768791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech 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/008Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/305Electronic adaptation of stereophonic audio signals to reverberation of the listening space

Abstract

The embodiment of the invention provides an audio playing method, an audio playing device and a vehicle, wherein the method is applied to the vehicle, the vehicle is provided with an operating system, a digital signal processor and a plurality of audio playing devices, and the method comprises the following steps: the digital signal processor receives target audio data sent by an operating system, the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system, and the first channel decoding audio data is generated by performing audio source decoding on multi-channel original audio data by the operating system; performing channel decoding on the target audio data to obtain second channel decoded audio data corresponding to a plurality of channels; and respectively distributing the second channel decoding audio data corresponding to the plurality of channels to audio playing equipment corresponding to the plurality of channels for playing. The real stereo effect is presented in the vehicle by decoding the multi-channel original audio data and playing the audio data of different channels at different audio playing devices.

Description

Audio playing method and device and vehicle
Technical Field
The present invention relates to the field of vehicle-mounted audio technologies, and in particular, to an audio playing method, an audio playing device, and a vehicle.
Background
With the continuous development of the vehicle industry, the configuration of the vehicle interior also tends to be diversified; such as a car audio system. In the driving process, the user can play the sound which the user wants to hear at any time through the vehicle-mounted sound system, so that the driving experience of the user is improved.
In order to further improve the hearing experience of the user, a plurality of speakers are arranged in different directions in the vehicle, and the mode that the plurality of speakers play sounds simultaneously is utilized, so that the user can enjoy the stereophonic experience. In the prior art, a vehicle audio system of a vehicle can only decode mono audio or binaural audio, and by decoding mono audio or binaural audio, only two channels are obtained at most. In practice, if a real stereo effect is to be presented, different channels of sound need to be played simultaneously in the speakers of the vehicle; therefore, the real stereo effect cannot be achieved in a vehicle by the car audio system by using only the channel resolved by the mono or binaural audio.
Disclosure of Invention
The embodiment of the invention provides an audio playing method, which is used for presenting a stereo effect when audio data are played in a vehicle.
Correspondingly, the embodiment of the invention also provides an audio playing device and a vehicle, which are used for ensuring the realization and the application of the method.
In order to solve the above problems, the present invention discloses an audio playing method, which is applied to a vehicle, wherein the vehicle is provided with an operating system, a digital signal processor and a plurality of audio playing devices, and the method comprises:
the digital signal processor receives target audio data sent by an operating system, wherein the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system, and the first channel decoding audio data is generated by performing audio source decoding on multi-channel original audio data by the operating system;
performing channel decoding on the target audio data to obtain second channel decoding audio data corresponding to a plurality of channels;
and respectively distributing the second channel decoding audio data corresponding to the plurality of channels to audio playing equipment corresponding to the plurality of channels for playing.
Optionally, the method further comprises:
each second channel decoded audio data is subjected to at least one of the following preprocessing: volume adjustment, smoothing, and EQ (Equalizer) adjustment.
Optionally, the second channel decoded audio data is a digital signal, and the distributing the second channel decoded audio data corresponding to the multiple channels to the audio playing devices corresponding to the multiple channels for playing respectively includes:
searching a preset mapping relation according to the sound channels corresponding to the second sound channel decoding audio data, and determining audio playing equipment corresponding to the sound channels;
and respectively converting the second decoded audio data corresponding to the multiple channels into corresponding analog signals, and driving the audio playing equipment corresponding to the multiple channels to play.
Optionally, the decoding the second audio data corresponding to the plurality of channels to the audio playing device corresponding to the plurality of channels for playing respectively includes:
for one sound channel, mixing second decoded audio data corresponding to the sound channel with second decoded audio data corresponding to at least one other sound channel to obtain mixed audio data corresponding to the sound channel;
and respectively distributing the audio data of the mixed sound corresponding to the plurality of sound channels to audio playing equipment corresponding to the plurality of sound channels for playing.
Optionally, the target audio data is generated by the operating system by combining the decoded audio data of the first channel of the plurality of channels using a time division multiplexing technique.
The embodiment of the invention also provides an audio playing device which is applied to a vehicle, wherein the vehicle is provided with an operating system, a digital signal processor and a plurality of audio playing devices, and the device comprises:
the digital signal processor is used for receiving target audio data sent by an operating system, the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system, and the first channel decoding audio data is generated by performing audio source decoding on multi-channel original audio data by the operating system;
the channel decoding module is used for carrying out channel decoding on the target audio data to obtain second channel decoded audio data corresponding to a plurality of channels;
and the distribution module is used for distributing the second channel decoding audio data corresponding to the plurality of channels to the audio playing devices corresponding to the plurality of channels for playing.
Optionally, the apparatus further comprises:
the preprocessing module is used for preprocessing at least one of the following steps of: volume adjustment, smoothing, and EQ adjustment.
Optionally, the second channel decoded audio data is a digital signal, and the allocation module includes:
the equipment determining submodule is used for searching a preset mapping relation according to the sound channels corresponding to the second sound channel decoding audio data and determining audio playing equipment corresponding to the sound channels;
the conversion driving sub-module is used for respectively converting the second channel decoding audio data corresponding to the plurality of channels into corresponding analog signals and driving the audio playing equipment corresponding to the plurality of channels to play.
Optionally, the distribution module includes:
the audio mixing sub-module is used for mixing the second audio decoding data corresponding to the sound channel and the second audio decoding data corresponding to at least one other sound channel aiming at the sound channel to obtain audio mixing data corresponding to the sound channel;
and the audio mixing channel allocation submodule is used for respectively allocating the audio mixing data corresponding to the plurality of channels to the audio playing equipment corresponding to the plurality of channels for playing.
Optionally, the target audio data is generated by the operating system by combining the decoded audio data of the first channel of the plurality of channels using a time division multiplexing technique.
The embodiment of the invention also provides a vehicle, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by one or more processors, and the one or more programs are used for executing the audio playing method according to any one of the embodiments of the invention.
The embodiment of the invention also provides a readable storage medium, which enables the electronic device to execute the audio playing method according to any one of the embodiments of the invention when the instructions in the storage medium are executed by the processor of the electronic device.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, the operating system can perform audio decoding on the acquired multi-channel original audio data to obtain first channel decoded audio data of a plurality of channels; then, the first channel decoding audio data of the multiple channels are combined to generate corresponding target audio data, and the corresponding target audio data are sent to a digital signal processor; after receiving the target audio data, the digital signal processor can perform channel decoding on the received target audio data to obtain second channel decoded audio data corresponding to the multiple channels, and the second channel decoded audio data are respectively distributed to audio playing devices corresponding to the multiple channels for playing. Furthermore, the embodiment of the invention can decode the multi-channel original audio data and play the audio data of different channels in different audio playing devices, thereby presenting real stereo effect in the vehicle.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of an audio playback method according to the present invention;
FIG. 2 is a flowchart illustrating steps of an alternative embodiment of an audio playback method according to the present invention;
FIG. 3 is a diagram of source file content of multi-channel original audio data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an audio playing process according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another audio playback process according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating steps of an alternative embodiment of an audio playback method according to the present invention;
FIG. 7 is a schematic diagram of an audio playback process according to an embodiment of the present invention;
FIG. 8 is a block diagram illustrating an embodiment of an audio playback apparatus according to the present invention;
fig. 9 is a block diagram of an alternative embodiment of an audio playing device according to the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
The audio playing method provided by the embodiment of the invention can be applied to vehicles. By the method, the multi-channel original audio data can be decoded, and after the audio data of a plurality of channels are obtained, the audio data are distributed to the audio playing equipment corresponding to each channel; so that a stereophonic effect is presented when the audio data is played by the vehicle.
Stereophonic sound may refer to sound having a stereoscopic impression. With the continuous development of technology, these stereophonies can be reproduced after being recorded, amplified, etc. However, when all the sounds are played from one audio playing device, the playback sound is not stereo because the various sounds are played through the same audio playing device, and the original sense of space is also lost. If a plurality of audio playback apparatuses can be arranged at the time of playback and sounds of different channels are played back in each audio playback apparatus, such playback sounds having spatial distribution characteristics such as a degree of azimuth hierarchy can exhibit a stereophonic effect.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an audio playing method according to the present invention may specifically include the following steps:
step 102, the digital signal processor receives target audio data sent by an operating system, the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system, and the first channel decoding audio data is generated by performing audio source decoding on multi-channel original audio data by the operating system.
In the embodiment of the invention, in order to present the effect of stereo, a plurality of audio playing devices can be arranged in a vehicle; when the user plays the audio data in the car, the stereo effect is presented to the user. The position of the audio playing device set in the vehicle may be set according to requirements, for example, the corresponding audio playing device may be set in five directions of front, rear, left, right, upper and lower directions of the vehicle, which may include: the audio playing device corresponding to the front left channel, the audio playing device corresponding to the front right channel, the audio playing device corresponding to the rear left channel, the audio playing device corresponding to the rear right channel, and the audio playing device corresponding to the sky channel are not limited in this embodiment of the present invention.
In the embodiment of the invention, the vehicle is provided with an operating system, a digital signal processor and a plurality of audio playing devices; the operating system is in communication with a digital signal processor that is in communication with an audio playback device.
The operating system may obtain multi-channel original audio data, where the multi-channel original audio data may include original audio data of multiple channels, for example, 5-channel original audio data includes original audio data of 5 channels, and the 5 channels may be: front left channel, front right channel, back left channel, back right channel, and sky channel. After the operating system acquires the multi-channel original audio data, the operating system can perform audio decoding on the multi-channel original audio data to obtain corresponding audio decoded audio data of a plurality of channels; in order to facilitate the subsequent distinction, audio source decoded audio data obtained by audio source decoding of multi-channel original audio data may be referred to as first channel decoded audio data. For example, the obtained 5-channel original audio data may be obtained after the sound source decodes, and the first channel decoded audio data of 5 channels may be obtained: the first channel decoded audio data for the front left channel, the first channel decoded audio data for the front right channel, the first channel decoded audio data for the rear left channel, the first channel decoded audio data for the rear right channel, and the first channel decoded audio data for the sky channel.
Because the number of the communication buses of the digital signal processor is limited, in order to save resources, the operating system can combine the first channel decoding audio data of a plurality of channels to generate target audio data; and then the target audio data is sent to the digital signal processor through the communication bus, and the digital signal processor can receive the target audio data.
And 104, carrying out channel decoding on the target audio data to obtain second channel decoded audio data corresponding to a plurality of channels.
And 106, respectively distributing the second channel decoding audio data corresponding to the plurality of channels to audio playing equipment corresponding to the plurality of channels for playing.
In the embodiment of the invention, after receiving the target audio data, the digital signal processor may perform channel decoding on the target audio data, for example, separate the target audio data to obtain channel decoded audio data corresponding to a plurality of channels, so as to allocate the channel decoded audio data of different channels to the audio playing device of the corresponding channels. For convenience of subsequent distinction, channel-decoded audio data obtained by channel-decoding target audio data by the digital signal processor is referred to as second channel-decoded audio data.
In the embodiment of the invention, in order to restore the stereo effect more truly, the second channel decoding audio data corresponding to different channels can be distributed to the audio playing equipment of the corresponding channels. For example, the second channel decoded audio data for the front left channel is assigned to the front left channel audio playback device and the second channel decoded audio data for the front right channel is assigned to the front right channel audio playback device, as embodiments of the present invention are not limited in this respect.
In the embodiment of the invention, after each second channel decoding audio data is respectively distributed to the audio playing devices of the corresponding channels, the sound effect is closer to the effect of real stereo because each audio playing device plays the sound of different channels.
In summary, in the embodiment of the present invention, an operating system may perform audio decoding on acquired multi-channel original audio data to obtain first channel decoded audio data of multiple channels; then, the first channel decoding audio data of the multiple channels are combined to generate corresponding target audio data, and the corresponding target audio data are sent to a digital signal processor; after receiving the target audio data, the digital signal processor can perform channel decoding on the received target audio data to obtain second channel decoded audio data corresponding to the multiple channels, and the second channel decoded audio data are respectively distributed to audio playing devices corresponding to the multiple channels for playing. Furthermore, the embodiment of the invention can decode the multi-channel original audio data and play the audio data of different channels in different audio playing devices, thereby presenting real stereo effect in the vehicle.
Referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of an audio playing method according to the present invention may specifically include the following steps:
step 202, the digital signal processor receives target audio data sent by an operating system.
In the embodiment of the invention, an operating system in a vehicle can acquire multi-channel original audio data in various modes; for example, after a user connects a vehicle with a mobile phone through Bluetooth, an operating system acquires multichannel original audio data selected by the user from the mobile phone; for another example, the user directly imports the multi-channel original audio data into the operating system of the vehicle; also, for example, after the vehicle is networked, multi-channel raw audio data is obtained from an audio library, as embodiments of the invention are not limited in this respect.
In the embodiment of the invention, the audio source decoding modes corresponding to different audio data file types are also different, and the embodiment of the invention is not limited to the above.
Taking the wav format as an example of the file format of the multi-channel original audio data, the process of decoding the audio source of the multi-channel original audio data by the operating system is described:
first, an operating system is started, and the operating system acquires format information and source file content of multi-channel original audio data.
And 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 according to the format information and the source file content. According to the wav format corresponding format information, it can be determined that the 22-23 th byte Channels Num (channel number) in the source file content represents the channel number of the multi-channel original audio data. And it may be determined that the 44 th byte in the source file content begins storing the multi-channel original audio data. For example, content "00" in bytes 22-23 in fig. 3 indicates that the number of channels of the multi-channel original audio data file is "5".
Again, the operating system performs audio decoding on the multi-channel raw audio data based on the number of channels of the multi-channel raw audio data and the location of the content in the source file. As shown in fig. 3, the data of one channel can be identified by 16bits, and occupies 2 bytes; therefore, from the 44 th byte, 10 bytes can be read each time, namely five-channel data, so that the first channel decoded audio data of 5 channels can be obtained.
In the embodiment of the invention, the target audio data is generated by combining the first channel decoding audio data of a plurality of channels by the operating system through a time division multiplexing technology.
In the embodiment of the invention, the time of the whole channel transmission information can be divided into a plurality of time slices by using a time division multiplexing technology, and then the time slices are distributed to different first channel decoding audio data for use, so that the first channel decoding audio data of a plurality of channels are combined to generate target audio data, and then the target audio data are sent to a digital signal processor.
And 204, performing channel decoding on the target audio data to obtain second channel decoded audio data corresponding to a plurality of channels.
In the embodiment of the invention, after receiving the target audio data, the digital signal processor separates the target audio data to generate second decoded audio data corresponding to a plurality of channels.
Step 206, respectively preprocessing each second channel decoded audio data, wherein at least one of the following preprocessing is performed: volume adjustment, smoothing, and EQ adjustment.
In the embodiment of the invention, in order to further improve the hearing experience of the user, the second decoded audio data can be preprocessed respectively.
In an alternative embodiment of the invention, the volume of each second channel of decoded audio data may be adjusted. For example, the volume of a second channel decoded audio data may be increased or decreased, as embodiments of the invention are not limited in this respect.
In an alternative embodiment of the present invention, the second channel decoded audio data may also be subjected to a smoothing process of sound. For example, the audio curves may be smoothed by a smoothing algorithm.
In an optional embodiment of the present invention, EQ adjustment may be further performed on the second channel decoded audio data, so as to raise or lower the gain of a certain frequency point, so as to achieve a corresponding sound effect. Such as the effects of human voice, rock, classical, heavy metals, etc. when playing music.
Of course, other preprocessing of the audio data may be included, as embodiments of the present invention are not limited in this regard.
In the embodiment of the present invention, the second decoded audio data may be preprocessed by the single preprocessing mode, or may be preprocessed by a combination of multiple modes, which is not limited in the embodiment of the present invention.
Step 208, searching a preset mapping relation according to the channels corresponding to the second channel decoding audio data, and determining the audio playing device corresponding to each channel.
In the embodiment of the invention, the mapping relation between each channel and each audio playing device can be preset. The mapping relationship can be generated by determining the audio playing device corresponding to each channel and then adopting the channel identification of each channel and the device identification of the corresponding audio playing device. For example, the left channel corresponds to an audio playback device in the front left of the vehicle, and the right channel corresponds to an audio playback device in the front right of the vehicle; then establishing a mapping relation between the channel identification of the left channel and the equipment identification of the audio playing equipment at the left front of the vehicle; and establishing a mapping relation between the channel identifier of the right channel and the device identifier of the audio playing device at the right front of the vehicle, which is not limited by the embodiment of the invention.
In the embodiment of the invention, the channel corresponding to the second channel decoding audio data can be determined first, and then the channel identifier corresponding to the channel is determined; and searching the equipment identifier corresponding to the channel identifier according to the mapping relation, so as to determine the audio playing equipment corresponding to the channel.
Step 210, respectively converting the second decoded audio data corresponding to the multiple channels into corresponding analog signals, and driving the audio playing devices corresponding to the multiple channels to play.
In the embodiment of the invention, the second channel decoded audio data is a digital signal, so that the digital signal of the second channel decoded audio data can be converted into a corresponding analog signal, and then the analog signals corresponding to the multiple channels are respectively sent to corresponding audio playing equipment to drive the audio playing equipment to play.
Referring to fig. 4, in one example of the present invention, after the operating system performs audio source decoding on the multi-channel original target audio data, 5 first channel decoded audio data are obtained: the method comprises the steps of decoding audio data of a first channel corresponding to a front left channel, decoding audio data of a first channel corresponding to a front right channel, decoding audio data of a first channel corresponding to a rear left channel, decoding audio data of a first channel corresponding to a rear right channel and decoding audio data of a first channel corresponding to a sky channel; then the operation system combines the 5 first channel decoding audio data into target audio data through a time division multiplexing technology and sends the target audio data to the digital signal processor; then the digital signal processor decodes the target audio data to obtain 5 corresponding second decoded audio data, and preprocesses the second decoded audio data; and then respectively distributing each second channel of decoded audio data to the audio playing equipment of the corresponding sound channel for playing.
Referring to fig. 5, in still another example of the present invention, when the digital signal processor pre-processes the second decoded audio data, volume adjustment, smoothing processing, and EQ adjustment may be sequentially performed; and then respectively distributing the preprocessed second channel decoding audio data to audio playing equipment of the corresponding sound channel for playing.
Referring to fig. 6, a flowchart illustrating steps of yet another alternative embodiment of an audio playing method of the present invention may specifically include the following steps:
step 602, the digital signal processor receives target audio data sent by an operating system.
And step 604, performing channel decoding on the target audio data to obtain second channel decoded audio data corresponding to the multiple channels.
Step 606, at least one of the following preprocessing is performed on each second channel decoded audio data: volume adjustment, smoothing, and EQ adjustment.
Steps 602-606 are similar to steps 202-206 described above and are not described in detail herein.
Step 608, for one channel, mixing the second decoded audio data corresponding to the channel with the second decoded audio data corresponding to at least one other channel to obtain mixed audio data corresponding to the channel.
Step 610, the audio data of the mixed sound corresponding to the plurality of channels are respectively allocated to the audio playing devices corresponding to the plurality of channels for playing.
In the embodiment of the invention, in order to realize more sound effects, the second decoded audio data corresponding to at least two channels can be mixed.
Taking one channel as an example, how to generate a mix of the channel will now be described. In the embodiment of the invention, aiming at the sound channel, the second sound decoding audio data corresponding to the sound channel and the second sound decoding audio data corresponding to other sound channels can be mixed to obtain the mixed audio data corresponding to the sound channel. The other channels may refer to other channels than the channel. For example, there are 5 second channel decoded audio data: A. b, C, D and E, corresponding to 5 channels: a. b, c, d and e; then mixing the second channel decoding audio data A of the channel a with the second channel decoding audio data B of the channel B to obtain mixed audio data A of the channel a +
In the embodiment of the invention, the second decoded audio data corresponding to the sound channel and the second decoded audio data corresponding to at least two other sound channels can be mixed to obtain the mixed audio data corresponding to the sound channel. For example, there are 5 second channel decoded audio data: A. b, C, D and E, corresponding to 5 channels: a. b, c, d and e; then mixing the second channel decoding audio data C of the channel C with the second channel decoding audio data B of the channel B and the second channel decoding audio data A of the channel a to obtain mixed audio data C of the channel C +
In the embodiment of the invention, for each channel, the second decoded audio data corresponding to the channel and the second decoded audio data corresponding to at least one other channel can be mixed; the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel may also be mixed for each channel in the partial channels, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the audio data of the mixed sound corresponding to the plurality of channels obtained after the sound mixing can be respectively distributed to the audio playing equipment corresponding to the plurality of channels for playing.
Referring to fig. 7, in still another example of the present invention, when the digital signal processor performs preprocessing on the second channel decoded audio data, the preprocessing of volume adjustment, smoothing processing, and EQ adjustment are sequentially performed; then mixing the second decoded audio data; and the digital signal processor distributes the processed mixed audio data to audio playing equipment of the corresponding sound channel for playing.
In summary, in the embodiment of the invention, preprocessing such as volume processing, smoothing processing, EQ adjustment and the like is performed on the second decoded audio data; and further, the high-quality stereo effect can be presented, and the user experience is further improved.
And secondly, after the second channel decoded audio data is obtained, the plurality of second channel decoded audio data are mixed, and the sound with various sound effects can be played, so that various requirements of users on the sound effects are met.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 8, a block diagram of an embodiment of an audio playing device according to the present invention may specifically include the following modules:
a receiving module 802, configured to receive, by using the digital signal processor, target audio data sent by an operating system, where the target audio data is generated by combining first channel decoded audio data of multiple channels by the operating system, and the first channel decoded audio data is generated by performing audio source decoding on original audio data of multiple channels by the operating system;
a channel decoding module 804, configured to perform channel decoding on the target audio data to obtain second decoded audio data corresponding to a plurality of channels;
the allocation module 806 is configured to allocate the second decoded audio data corresponding to the multiple channels to the audio playing devices corresponding to the multiple channels for playing.
Referring to fig. 9, a block diagram of an alternative embodiment of an audio playing device according to the present invention may specifically include the following modules:
in an alternative embodiment of the present invention, the apparatus further comprises:
a preprocessing module 808, configured to perform at least one of the following preprocessing on each second decoded audio data: volume adjustment, smoothing, and EQ adjustment.
In an alternative embodiment of the present invention, the second channel decoded audio data is a digital signal, and the allocation module 806 includes:
the device determining submodule 8062 is used for searching a preset mapping relation according to the sound channels corresponding to the second sound channel decoding audio data and determining audio playing devices corresponding to the sound channels;
the conversion driving sub-module 8064 is configured to convert the second decoded audio data corresponding to the multiple channels into corresponding analog signals, and drive the audio playing device corresponding to the multiple channels to play.
In an alternative embodiment of the present invention, the allocation module 806 includes:
a mixing sub-module 8066, configured to mix, for one channel, second decoded audio data corresponding to the channel and second decoded audio data corresponding to at least one other channel, to obtain mixed audio data corresponding to the channel;
the mixing sound channel allocation submodule 8068 is configured to allocate mixing audio data corresponding to the multiple sound channels to audio playing devices corresponding to the multiple sound channels for playing.
In an alternative embodiment of the present invention, the target audio data is generated by combining the audio data decoded by the first channel of the plurality of channels by the operating system using a time division multiplexing technique.
In summary, in the embodiment of the present invention, an operating system may perform audio decoding on acquired multi-channel original audio data to obtain first channel decoded audio data of multiple channels; then, the first channel decoding audio data of the multiple channels are combined to generate corresponding target audio data, and the corresponding target audio data are sent to a digital signal processor; after receiving the target audio data, the digital signal processor can perform channel decoding on the received target audio data to obtain second channel decoded audio data corresponding to the multiple channels, and the second channel decoded audio data are respectively distributed to audio playing devices corresponding to the multiple channels for playing. Furthermore, the embodiment of the invention can decode the multi-channel original audio data and play the audio data of different channels in different audio playing devices, thereby presenting real stereo effect in the vehicle.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides a vehicle, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by one or more processors, and the one or more programs are used for executing the audio playing method according to any one of the embodiments of the invention.
The embodiment of the invention also provides a readable storage medium, which enables the electronic device to execute the audio playing method according to any one of the embodiments of the invention when the instructions in the storage medium are executed by the processor of the electronic device.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product 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 present invention are described with reference to flowchart illustrations 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 flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows 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, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a method for playing audio, a device for playing audio and a vehicle according to the present invention, and specific examples have been used herein to illustrate the principles and embodiments of the present invention, and the above examples are only for aiding in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (9)

1. An audio playback method for use in a vehicle provided with an operating system, a digital signal processor, and a plurality of audio playback devices, the method comprising:
the digital signal processor receives target audio data sent by an operating system, wherein the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system, and the first channel decoding audio data is generated by performing audio source decoding on multi-channel original audio data by the operating system; the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system through a time division multiplexing technology;
separating the target audio data to obtain second decoded audio data corresponding to a plurality of sound channels;
and respectively distributing the second channel decoding audio data corresponding to the plurality of channels to audio playing equipment corresponding to the plurality of channels for playing.
2. The method of claim 1, wherein the method further comprises:
each second channel decoded audio data is subjected to at least one of the following preprocessing: volume adjustment, smoothing, and EQ equalizer adjustment.
3. The method according to claim 1, wherein the second channel decoded audio data is a digital signal, and the allocating the second channel decoded audio data corresponding to the plurality of channels to the audio playing devices corresponding to the plurality of channels to play respectively includes:
searching a preset mapping relation according to the sound channels corresponding to the second sound channel decoding audio data, and determining audio playing equipment corresponding to the sound channels;
and respectively converting the second decoded audio data corresponding to the multiple channels into corresponding analog signals, and driving the audio playing equipment corresponding to the multiple channels to play.
4. The method according to claim 1, wherein the decoding the second audio data corresponding to the plurality of channels and respectively distributing the second decoded audio data to the audio playing devices corresponding to the plurality of channels for playing, includes:
for one sound channel, mixing second decoded audio data corresponding to the sound channel with second decoded audio data corresponding to at least one other sound channel to obtain mixed audio data corresponding to the sound channel;
and respectively distributing the audio data of the mixed sound corresponding to the plurality of sound channels to audio playing equipment corresponding to the plurality of sound channels for playing.
5. An audio playing device, characterized in that, applied in a vehicle, the vehicle is provided with an operating system, a digital signal processor and a plurality of audio playing equipment, the device is arranged at the digital signal processor side, the device comprises:
the receiving module is used for receiving target audio data sent by an operating system, wherein the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system, and the first channel decoding audio data is generated by performing audio source decoding on multi-channel original audio data by the operating system; the target audio data is generated by combining first channel decoding audio data of a plurality of channels by the operating system through a time division multiplexing technology;
the sound channel decoding module is used for separating the target audio data to obtain second sound channel decoding audio data corresponding to a plurality of sound channels;
and the distribution module is used for distributing the second channel decoding audio data corresponding to the plurality of channels to the audio playing devices corresponding to the plurality of channels for playing.
6. The apparatus of claim 5, wherein said apparatus further comprises:
the preprocessing module is used for preprocessing at least one of the following steps of: volume adjustment, smoothing, and EQ adjustment.
7. The apparatus of claim 5, wherein the second channel decoded audio data is a digital signal, and wherein the allocation module comprises:
the equipment determining submodule is used for searching a preset mapping relation according to the sound channels corresponding to the second sound channel decoding audio data and determining audio playing equipment corresponding to the sound channels;
the conversion driving sub-module is used for respectively converting the second channel decoding audio data corresponding to the plurality of channels into corresponding analog signals and driving the audio playing equipment corresponding to the plurality of channels to play.
8. A vehicle comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for performing the audio playback method of any one of claims 1-4.
9. A readable storage medium, characterized in that instructions in said storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the audio playback method of any one of the method claims 1-4.
CN202010599071.3A 2020-06-28 2020-06-28 Audio playing method and device and vehicle Active CN111768791B (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954581B (en) * 2021-02-04 2022-07-01 广州橙行智动汽车科技有限公司 Audio playing method, system and device
CN113050916A (en) * 2021-04-09 2021-06-29 深圳Tcl新技术有限公司 Audio playing method, device and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
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 apparatus, audio reproducing apparatus and audio system for reproducing digital audio signal
CN104468991A (en) * 2014-11-24 2015-03-25 广东欧珀移动通信有限公司 Mobile terminal and voice frequency receiving and sending 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

Patent Citations (12)

* Cited by examiner, † Cited by third party
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 apparatus, audio reproducing apparatus and audio system for reproducing digital audio signal
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 广东欧珀移动通信有限公司 Mobile terminal and voice frequency receiving and sending 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
JP4939933B2 (en) Audio signal encoding apparatus and audio signal decoding apparatus
CN103649706B (en) The coding of three-dimensional audio track and reproduction
KR101325402B1 (en) Apparatus and method for generating audio output signals using object based metadata
JP3529390B2 (en) Multi-channel spectral mapping audio apparatus and method
US7162045B1 (en) Sound processing method and apparatus
US8204615B2 (en) Information processing device, information processing method, and program
US9820073B1 (en) Extracting a common signal from multiple audio signals
CN1596038A (en) Audio device and audio processing method
CN111768791B (en) Audio playing method and device and vehicle
CN107431871B (en) audio signal processing apparatus and method for filtering audio signal
CN112954581B (en) Audio playing method, system and device
AU2005339439B2 (en) Apparatus and method for synthesizing three output channels using two input channels
CN107135301A (en) A kind of audio data processing method and device
AU2014295217B2 (en) Audio processor for orientation-dependent processing
JP2006033847A (en) Sound-reproducing apparatus for providing optimum virtual sound source, and sound reproducing method
EP2359608B1 (en) Apparatus for generating a multi-channel audio signal
CN116437268B (en) Adaptive frequency division surround sound upmixing method, device, equipment and storage medium
EP1122980A1 (en) Vehicle-mounted acoustic system
JP4124702B2 (en) Stereo sound signal encoding apparatus, stereo sound signal encoding method, and stereo sound signal encoding program
JP6204683B2 (en) Acoustic signal reproduction device, acoustic signal creation device
CN112346694A (en) Display device
JP2003264899A (en) Information providing apparatus and information providing method
JP7083405B2 (en) Audio signal processors, systems and methods that distribute ambient signals across multiple ambient signal channels.
KR102370348B1 (en) Apparatus and method for providing the audio metadata, apparatus and method for providing the audio data, apparatus and method for playing the audio data
JP2017212548A (en) Audio signal processing device, audio signal processing method 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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant