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

Audio playing method and device and vehicle Download PDF

Info

Publication number
CN111768791A
CN111768791A CN202010599071.3A CN202010599071A CN111768791A CN 111768791 A CN111768791 A CN 111768791A CN 202010599071 A CN202010599071 A CN 202010599071A CN 111768791 A CN111768791 A CN 111768791A
Authority
CN
China
Prior art keywords
audio data
channel
channels
sound
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.)
Granted
Application number
CN202010599071.3A
Other languages
Chinese (zh)
Other versions
CN111768791B (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 Xiaopeng Internet of Vehicle Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Internet of Vehicle 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 Xiaopeng Internet of Vehicle Technology Co Ltd filed Critical Guangzhou Xiaopeng Internet of Vehicle 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

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; 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

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

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 through the operating system, and the first channel decoding audio data is generated by performing sound source decoding on multi-channel original audio data through the operating system; carrying out sound channel decoding on the target audio data to obtain second sound channel decoding audio data corresponding to a plurality of sound channels; and respectively distributing the second channel decoded audio data corresponding to the plurality of channels to the audio playing devices corresponding to the plurality of channels for playing. The original audio data of multiple channels are decoded, and the audio data of different channels are played in different audio playing devices, so that a real stereo effect is presented in the vehicle.

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 interior of the vehicle tends to be diversified; such as a car audio system. The user can play the sound that oneself wanted to hear through on-vehicle sound system at any time at the driving in-process, has improved user's driving experience.
Usually, 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 user can enjoy the stereo experience by using the mode that the speakers play sound at the same time. In the prior art, a vehicle-mounted sound system of a vehicle can only decode a single-channel audio or a dual-channel audio, and only two channels are obtained at most by decoding the single-channel audio or the dual-channel audio. Actually, if a real stereo effect is to be presented, it is necessary to play the sound of different sound channels simultaneously in each speaker of the vehicle; therefore, a true stereo effect cannot be achieved by the car audio system in the vehicle by using only the channels analyzed 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 applied in 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, 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 sound 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 decoded audio data corresponding to the plurality of channels to the audio playing devices corresponding to the plurality of channels for playing.
Optionally, the method further comprises:
and respectively carrying out at least one of the following preprocessing on the decoded audio data of the second channel: volume adjustment, smoothing, and EQ (Equalizer) adjustment.
Optionally, the second channel decoded audio data is a digital signal, and the allocating the second channel decoded audio data corresponding to the multiple channels to audio playing devices corresponding to the multiple channels respectively for playing includes:
searching a preset mapping relation according to the sound channel corresponding to the second channel decoded audio data, and determining the audio playing equipment corresponding to each sound channel;
and 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 allocating the second channel decoded audio data corresponding to the multiple channels to the audio playing devices corresponding to the multiple channels respectively for playing includes:
mixing second channel decoded audio data corresponding to one channel with second channel decoded audio data corresponding to at least one other channel to obtain mixed audio data corresponding to the channel;
and respectively distributing the mixed audio data corresponding to the plurality of sound channels to the audio playing devices corresponding to the plurality of sound channels for playing.
Optionally, the target audio data is generated by the operating system by combining first channel decoded audio data of multiple channels by 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 receiving module is used for receiving target audio data sent by an operating system through the digital signal processor, the target audio data is generated by combining first channel decoding audio data of a plurality of channels through the operating system, and the first channel decoding audio data is generated by performing sound source decoding on multi-channel original audio data through the operating system;
the sound channel decoding module is used for carrying out sound channel decoding on 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 to play.
Optionally, the apparatus further comprises:
the preprocessing module is configured to perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing, and EQ adjustment.
Optionally, the second channel decoded audio data is a digital signal, and the distribution module includes:
the device determining submodule is used for searching a preset mapping relation according to the sound channel corresponding to the second channel decoded audio data and determining the audio playing device corresponding to each sound channel;
and the conversion driving submodule 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 allocation module includes:
the audio mixing sub-module is used for mixing the second channel decoded audio data corresponding to the channel and the second channel decoded audio data corresponding to at least one other channel aiming at one channel to obtain mixed audio data corresponding to the channel;
and the sound mixing channel distribution sub-module is used for distributing the sound mixing audio data corresponding to the plurality of channels to the audio playing equipment corresponding to the plurality of channels respectively for playing.
Optionally, the target audio data is generated by the operating system by combining first channel decoded audio data of multiple channels by using a time division multiplexing technique.
Embodiments of the present invention also provide a vehicle, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes a function for executing the audio playing method according to any of the embodiments of the present invention.
The embodiment of the present invention further provides a readable storage medium, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the audio playing method according to any one of the embodiments of the present invention.
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 sound source decoding on the acquired multi-channel original audio data to obtain first channel decoding audio data of a plurality of channels; then merging the first channel decoding audio data of the multiple channels to generate corresponding target audio data, and sending the target audio data to a digital signal processor; after receiving the target audio data, the digital signal processor may perform channel decoding on the received target audio data to obtain second channel decoded audio data corresponding to the multiple channels, and allocate the second channel decoded audio data to the 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 showing the real stereo effect in the vehicle.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of an audio playing method according to the present invention;
FIG. 2 is a flow chart of the steps of an alternative embodiment of an audio playback method of the present invention;
FIG. 3 is a schematic 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 an audio playback process according to another embodiment of the present invention;
FIG. 6 is a flow chart of the steps of an alternative embodiment of an audio playback method of the present invention;
FIG. 7 is a schematic diagram of another audio playing process according to an embodiment of the present invention;
FIG. 8 is a block diagram of an embodiment of an audio playing apparatus according to the present invention;
fig. 9 is a block diagram of an alternative embodiment of an audio playing apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
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 to obtain audio data of a plurality of channels, and then the audio data is distributed to the audio playing equipment corresponding to each channel; thereby presenting a stereo effect when the vehicle plays the audio data.
Stereo, may refer to sound having a stereoscopic impression. With the development of technology, it is possible to record, amplify, etc. these stereophonic sounds and then reproduce them. However, when all the sounds are played from one audio playing device, the reproduced sound is not stereoscopic, because the original sense of space disappears as the various sounds are played through the same audio playing device. If a plurality of audio playback devices are arranged at the time of playback and sounds of different channels are played back in each audio playback device, the effect of stereophonic sound can be presented by such reproduced sound having a spatial distribution characteristic such as a certain degree of directional gradation.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an audio playing method according to the present invention is shown, which may specifically include the following steps:
and 102, receiving target audio data sent by an operating system by the digital signal processor, 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 sound source decoding on multi-channel original audio data by the operating system.
In the embodiment of the invention, in order to present the stereo effect, a plurality of audio playing devices can be arranged in the vehicle; when the user plays audio data in the car, the user is presented with a stereo effect. Wherein, the position of the audio playback equipment that sets up in the vehicle can set up as required, for example, can set up corresponding audio playback equipment in five positions all around of vehicle, can include: the embodiment of the present invention is not limited to this, and the audio playback device 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.
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, which 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: a front left channel, a front right channel, a rear left channel, a rear right channel, and a sky channel. After acquiring the multi-channel original audio data, the operating system may perform audio source decoding on the multi-channel original audio data to obtain audio source decoded audio data of corresponding multiple channels; for the convenience of subsequent distinction, sound source decoded audio data obtained by sound source decoding multi-channel original audio data may be referred to as first sound channel decoded audio data. For example, after 5 channels of original audio data are obtained, the sound source decoding may obtain 5 channels of first channel decoded audio data: the first channel decoded audio data of the front left channel, the first channel decoded audio data of the front right channel, the first channel decoded audio data of the rear left channel, the first channel decoded audio data of the rear right channel, and the first channel decoded audio data of the sky channel.
Because 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 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 then the digital signal processor can receive the target audio data.
And step 104, performing channel decoding on the target audio data to obtain second channel decoded audio data corresponding to a plurality of channels.
And 106, distributing the second channel decoded audio data corresponding to the multiple channels to audio playing devices corresponding to the multiple channels respectively for playing.
In the embodiment of the present 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 subsequently allocate the channel decoded audio data of different channels to an audio playing device corresponding to the channels. For the 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 present invention, in order to more truly restore the stereo effect, the decoded audio data of the second channel corresponding to different channels may be allocated to the audio playing device corresponding to the channel. For example, the second channel decoded audio data of the front left channel is allocated to the front left channel audio playing device, and the second channel decoded audio data of the front right channel is allocated to the front right channel audio playing device.
In the embodiment of the invention, after each second channel decoded audio data is respectively distributed to the audio playing devices of the corresponding channels, because each audio playing device plays the sound of different channels, the presented sound effect is closer to the real stereo effect.
In summary, in the embodiment of the present invention, the operating system may perform sound source decoding on the acquired multi-channel original audio data to obtain first channel decoded audio data of multiple channels; then merging the first channel decoding audio data of the multiple channels to generate corresponding target audio data, and sending the target audio data to a digital signal processor; after receiving the target audio data, the digital signal processor may perform channel decoding on the received target audio data to obtain second channel decoded audio data corresponding to the multiple channels, and allocate the second channel decoded audio data to the 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 showing the real stereo effect in the vehicle.
Referring to fig. 2, a flowchart illustrating steps of an alternative embodiment of the audio playing method of the present invention is shown, which 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 ways; for example, after a user connects a vehicle with a mobile phone through Bluetooth, an operating system acquires multi-channel 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; for example, after a vehicle is networked, multi-channel original audio data is obtained from an audio library, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, the sound source decoding modes corresponding to different audio data file types are also different, and this is not limited in the embodiment of the present invention.
Now, taking the file format of the multi-channel original audio data as wav format as an example, a process of performing sound source decoding on the multi-channel original audio data by an operating system is described:
firstly, an operating system is started, and the operating system acquires format information of multi-channel original audio data and source file content.
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. From the wav format corresponding format information, it can be determined that the Channels Num (number of Channels) of the 22 nd to 23 th bytes in the source file content represents the number of Channels of the multi-channel original audio data. And it may be determined that the 44 th byte in the source file content begins to store the multi-channel raw audio data. For example, the content "0005" in bytes 22 to 23 in fig. 3 indicates that the number of channels of the multi-channel original audio data file is "5".
Thirdly, the operating system carries out sound source decoding on the multi-channel original audio data according to the number of the channels of the multi-channel original audio data and the position of the multi-channel original audio data in the source file content. As shown in fig. 3, data of one channel can be identified by 16bits, which takes 2 bytes; therefore, the data can be read 10 bytes at a time from the 44 th byte, i.e. five-channel data, and the first channel decoded audio data of 5 channels can be obtained.
In this embodiment of the present invention, the target audio data is generated by the operating system by merging the first channel decoded audio data of the multiple channels by using a time division multiplexing technique.
In the embodiment of the present invention, a time division multiplexing technique may be used to divide the time for transmitting information in the entire channel into a plurality of time slices, and then the time slices are allocated to different first channel decoded audio data for use, so as to combine the first channel decoded 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.
And step 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 channel decoding audio data corresponding to a plurality of channels.
Step 206, respectively performing at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing, and EQ adjustment.
In the embodiment of the present invention, in order to further improve the hearing experience of the user, the decoded audio data of each second channel may be respectively preprocessed.
In an alternative embodiment of the present invention, the volume of the decoded audio data of each second channel may be adjusted. For example, the volume of the decoded audio data of a second channel is increased or decreased, which is not limited by the embodiment of the present invention.
In an alternative embodiment of the present invention, the second channel decoded audio data may be further subjected to sound smoothing. For example, the audio curve may be smoothed by a smoothing algorithm.
In an optional embodiment of the present invention, EQ adjustment may be performed on the decoded audio data of the second channel, so as to increase or decrease the gain of a certain frequency point, thereby realizing a corresponding sound effect. Such as the effects of human voice, rock, classical, heavy metals, etc. when playing music.
Of course, other pre-processing on the audio data may also be included, and the embodiment of the present invention is not limited thereto.
In this embodiment of the present invention, the single preprocessing method may be adopted to preprocess the second channel decoded audio data, or a combination of multiple methods may be adopted to preprocess the second channel decoded audio data, which is not limited in this embodiment of the present invention.
Step 208, searching a preset mapping relationship according to the sound channel corresponding to each second channel decoded audio data, and determining the audio playing device corresponding to each sound channel.
In the embodiment of the invention, the mapping relation between each sound channel and each audio playing device can be preset. The audio playing device corresponding to each channel may be determined, and then a mapping relationship may be generated by using the channel identifier of each channel and the device identifier of the corresponding audio playing device. For example, the left channel corresponds to an audio playing device in the left front of the vehicle, and the right channel corresponds to an audio playing device in the right front of the vehicle; then establishing a mapping relation between the sound channel identification of the left sound channel and the equipment identification of the audio playing equipment in the left front of the vehicle; and establishing a mapping relationship between the channel identifier of the right channel and the device identifier of the audio playing device at the right front of the vehicle.
In the embodiment of the present invention, a channel corresponding to second channel decoded audio data may be determined first, and then a channel identifier corresponding to the channel may be determined; and searching the equipment identifier corresponding to the sound channel identifier according to the mapping relation, thereby determining the audio playing equipment corresponding to the sound channel.
Step 210, respectively converting the second channel 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 present 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 devices to drive the audio playing devices to play.
Referring to fig. 4, in an example of the present invention, after performing source decoding on multi-channel original target audio data, the operating system obtains 5 first-channel decoded audio data: the method comprises the steps that first channel decoding audio data corresponding to a front left channel, first channel decoding audio data corresponding to a front right channel, first channel decoding audio data corresponding to a rear left channel, first channel decoding audio data corresponding to a rear right channel and first channel decoding audio data corresponding to a sky channel; then the operating 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 carries out sound channel decoding on the target audio data to obtain corresponding 5 second sound channel decoding audio data, and carries out preprocessing on the audio data; and then distributing the decoded audio data of the second channel to the audio playing devices of the corresponding channels respectively for playing.
Referring to fig. 5, in another example of the present invention, when the digital signal processor preprocesses the second channel decoded audio data, the volume adjustment, the smoothing process, and the EQ adjustment may be performed in sequence; and then distributing the preprocessed second channel decoding audio data to the audio playing devices of the corresponding channels respectively for playing.
Referring to fig. 6, a flowchart illustrating steps of another alternative embodiment of the audio playing method of the present invention is shown, which may specifically include the following steps:
step 602, the digital signal processor receives target audio data sent by an operating system.
Step 604, performing channel decoding on the target audio data to obtain second channel decoded audio data corresponding to a plurality of 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 will not be described herein.
Step 608, for one channel, mixing the second channel decoded audio data corresponding to the channel with the second channel decoded audio data corresponding to at least one other channel to obtain mixed audio data corresponding to the channel.
And step 610, distributing the mixed audio data corresponding to the multiple channels to audio playing devices corresponding to the multiple channels respectively for playing.
In the embodiment of the present invention, in order to achieve more sound effects, second channel decoded audio data corresponding to at least two channels may be mixed.
Now, taking a channel as an example, how to generate a mixed sound of the channel will be described. In the embodiment of the present invention, for the channel, the second channel decoded audio data corresponding to the channel may be mixed with the second channel decoded audio data corresponding to one other channel, so as to obtain mixed audio data corresponding to the channel. The other channels may refer to channels other than the channel. For example, there are 5 second channels to decode the audio data: A. b, C, D and E, corresponding to 5 channels: a. b, c, d and e; then, the second channel decoded audio data A of the channel a and the second channel decoded audio data B of the channel B are mixedSound, obtaining mixed sound audio data A of sound channel a+
In the embodiment of the present invention, the second channel decoded audio data corresponding to the channel may be mixed with the second channel decoded audio data corresponding to at least two other channels, so as to obtain mixed audio data corresponding to the channel. For example, there are 5 second channels to decode the audio data: A. b, C, D and E, corresponding to 5 channels: a. b, c, d and e; then mixing the second channel decoded audio data C of the sound channel C with the second channel decoded audio data B of the sound channel B and the second channel decoded audio data A of the sound channel a to obtain mixed audio data C of the sound 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 may be mixed; for each channel in a partial channel, mixing the second channel decoded audio data corresponding to the channel with the second channel decoded audio data corresponding to at least one other channel, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the mixed audio data corresponding to a plurality of channels obtained after mixing can be respectively distributed to the audio playing devices corresponding to the plurality of channels for playing.
Referring to fig. 7, in yet 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 is performed in sequence; then, carrying out sound mixing processing on the second channel decoding audio data; and the digital signal processor respectively distributes the processed mixed audio data to the audio playing equipment with the corresponding sound channels for playing.
In summary, in the embodiment of the present invention, the second channel decoded audio data is subjected to preprocessing such as volume processing, smoothing processing, EQ adjustment, and the like; therefore, the effect of high-quality stereo sound can be presented, and the user experience is further improved.
Secondly, after the second channel decoded audio data are obtained, the plurality of second channel decoded audio data are subjected to sound mixing, sound with various sound effects can be played, and therefore various requirements of users on the sound effects are met.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 8, a block diagram of a structure of an embodiment of an audio playing apparatus of the present invention is shown, which may specifically include the following modules:
a receiving module 802, configured to receive, by the digital signal processor, target audio data sent by an operating system, where the target audio data is generated by merging, by the operating system, first channel decoded audio data of multiple channels, and the first channel decoded audio data is generated by performing, by the operating system, sound source decoding on multi-channel original audio data;
a channel decoding module 804, configured to perform channel decoding on the target audio data to obtain second channel decoded audio data corresponding to multiple channels;
the allocating module 806 is configured to allocate the second channel decoded audio data corresponding to the multiple channels to the audio playing devices corresponding to the multiple channels for playing respectively.
Referring to fig. 9, a block diagram of an alternative embodiment of an audio playing apparatus according to the present invention is shown, which may specifically include the following modules:
in an optional 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 channel decoded audio data: volume adjustment, smoothing, and EQ adjustment.
In an optional embodiment of the present invention, the second channel decoded audio data is a digital signal, and the allocating module 806 includes:
the device determining submodule 8062 is configured to search a preset mapping relationship according to a channel corresponding to each second channel decoded audio data, and determine an audio playing device corresponding to each channel;
the conversion driving sub-module 8064 is configured to convert the second channel decoded audio data corresponding to the multiple channels into corresponding analog signals, and drive the audio playing devices corresponding to the multiple channels to play.
In an optional embodiment of the present invention, the allocating module 806 includes:
the audio mixing sub-module 8066 is configured to, for one channel, mix second channel decoded audio data corresponding to the channel with second channel decoded audio data corresponding to at least one other channel to obtain mixed audio data corresponding to the channel;
the mixed sound channel allocation sub-module 8068 is configured to allocate the mixed sound audio data corresponding to the multiple sound channels to the audio playing devices corresponding to the multiple sound channels, respectively, for playing.
In an optional embodiment of the present invention, the target audio data is generated by the operating system by combining the first channel decoded audio data of the plurality of channels by using a time division multiplexing technique.
In summary, in the embodiment of the present invention, the operating system may perform sound source decoding on the acquired multi-channel original audio data to obtain first channel decoded audio data of multiple channels; then merging the first channel decoding audio data of the multiple channels to generate corresponding target audio data, and sending the target audio data to a digital signal processor; after receiving the target audio data, the digital signal processor may perform channel decoding on the received target audio data to obtain second channel decoded audio data corresponding to the multiple channels, and allocate the second channel decoded audio data to the 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 showing the real stereo effect in the vehicle.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, 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, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes a function for executing the audio playing method according to any of the embodiments of the present invention.
The embodiment of the present invention further provides a readable storage medium, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the audio playing method according to any one of the embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, 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 present 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, and the like) 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal 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 of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The audio playing method, the audio playing device and the vehicle provided by the invention are described in detail above, and specific examples are applied herein to explain the principle and the implementation of the invention, and the description of the above embodiments is only used to help understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An audio playing method, applied to a vehicle provided with an operating system, a digital signal processor and a plurality of audio playing devices, the method comprising:
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 sound 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 decoded audio data corresponding to the plurality of channels to the audio playing devices corresponding to the plurality of channels for playing.
2. The method of claim 1, further comprising:
and respectively carrying out at least one of the following preprocessing on the decoded audio data of the second channel: 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 a plurality of channels to audio playback devices corresponding to a plurality of channels respectively for playback comprises:
searching a preset mapping relation according to the sound channel corresponding to the second channel decoded audio data, and determining the audio playing equipment corresponding to each sound channel;
and 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.
4. The method according to claim 1, wherein said allocating the second channel decoded audio data corresponding to the plurality of channels to the audio playback devices corresponding to the plurality of channels for playback respectively comprises:
mixing second channel decoded audio data corresponding to one channel with second channel decoded audio data corresponding to at least one other channel to obtain mixed audio data corresponding to the channel;
and respectively distributing the mixed audio data corresponding to the plurality of sound channels to the audio playing devices corresponding to the plurality of sound channels for playing.
5. The method of claim 1,
the target audio data is generated by the operating system by combining first channel decoded audio data of a plurality of channels by adopting a time division multiplexing technology.
6. An audio playing apparatus, 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 devices, the apparatus is provided on the side of the digital signal processor, the apparatus includes:
the receiving module 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 sound source decoding on multi-channel original audio data by the operating system;
the sound channel decoding module is used for carrying out sound channel decoding on 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 to play.
7. The apparatus of claim 6, further comprising:
the preprocessing module is configured to perform at least one of the following preprocessing on each second channel decoded audio data: volume adjustment, smoothing, and EQ adjustment.
8. The apparatus of claim 6, wherein the second channel decoded audio data is a digital signal, and wherein the distribution module comprises:
the device determining submodule is used for searching a preset mapping relation according to the sound channel corresponding to the second channel decoded audio data and determining the audio playing device corresponding to each sound channel;
and the conversion driving submodule 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.
9. 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 the one or more processors comprises instructions for performing the audio playback method of any of method claims 1-5.
10. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the audio playback method of any of method claims 1-5.
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 true CN111768791A (en) 2020-10-13
CN111768791B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954581A (en) * 2021-02-04 2021-06-11 广州橙行智动汽车科技有限公司 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

Cited By (4)

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

Also Published As

Publication number Publication date
CN111768791B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN108989953B (en) Spatially ducking audio produced by beamforming speaker arrays
KR102374897B1 (en) Encoding and reproduction of three dimensional audio soundtracks
JP4939933B2 (en) Audio signal encoding apparatus and audio signal decoding apparatus
CN101842834B (en) Device and method for generating a multi-channel signal using voice signal processing
US10375503B2 (en) Apparatus and method for driving an array of loudspeakers with drive signals
US9055371B2 (en) Controllable playback system offering hierarchical playback options
EP2613573A1 (en) Cloud hosted audio rendering based upon device and environment profiles
US9820073B1 (en) Extracting a common signal from multiple audio signals
CN107431871B (en) audio signal processing apparatus and method for filtering audio signal
CN112954581B (en) Audio playing method, system and device
EP2904817A1 (en) An apparatus and method for reproducing recorded audio with correct spatial directionality
CN114402631B (en) Method and electronic device for playback of captured sound
CN111768791B (en) Audio playing method and device and vehicle
CN107135301A (en) A kind of audio data processing method and device
EP2830327A1 (en) Audio processor for orientation-dependent processing
CA2835742C (en) Apparatus and method and computer program for generating a stereo output signal for providing additional output channels
JP2018514134A (en) Apparatus and method for processing stereo signals for in-car reproduction, achieving individual three-dimensional sound with front loudspeakers
EP1122980A1 (en) Vehicle-mounted acoustic system
JP6204683B2 (en) Acoustic signal reproduction device, acoustic signal creation device
CN111919455B (en) Audio signal processor, system and method for distributing ambient signals to a plurality of ambient signal channels
JP2011239036A (en) Audio signal converter, method, program, and recording medium
JP6846822B2 (en) Audio signal processor, audio signal processing method, and audio signal processing program
CN115474130A (en) Audio processing method and related equipment
JP2013242498A (en) Device, method, program, and recording medium for converting audio signals
CN118283487A (en) Surrounding stereo sound playing method, system, vehicle-mounted control unit and storage medium

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