Audio output method, audio output device, electronic equipment and storage medium
By analyzing audio files and determining the target audio channel, controlling the speaker output audio, the problem of different vehicle audio configurations requiring multiple different versions of audio output software is solved, and the cost reduction and maintenance simplification effect is achieved.
Patent Information
- Application Number
- CN202411842924.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-08
AI Technical Summary
Vehicles with different vehicle audio configurations need to maintain and develop multiple different versions of audio output software, resulting in higher costs.
By obtaining the audio file, parsing the audio file and determining the target audio channel it uses, the speakers can output the corresponding audio, and the speakers with different vehicle audio configurations can be realized.
It reduces the development cost and maintenance difficulty of audio software, so that vehicles with different vehicle audio configurations can use the same audio output software to achieve audio output.
Smart Images

Figure CN119781724A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of audio output technology, and in particular to an audio output method, an audio output device, an electronic device, and a storage medium. Background Art
[0002] With the continuous development of smart cockpit technology, the in-car audio system has become a key part of in-car infotainment in the smart cockpit. As users' demands for in-car audio systems become more diversified and personalized, users will choose different in-car audio system configurations according to their needs.
[0003] Currently, vehicles with different car audio configurations use different versions of audio output software to output audio through speakers with different numbers or different amplifiers.
[0004] However, maintaining and developing multiple different versions of audio output software is costly. Summary of the invention
[0005] In view of this, embodiments of the present application provide an audio output method, an audio output device, an electronic device, and a computer storage medium to at least partially solve the above problems.
[0006] According to a first aspect of an embodiment of the present application, an audio output method is provided, comprising: acquiring an audio file; parsing the audio file, and determining a target audio channel used by the audio file from an audio channel group, wherein the audio channel group includes multiple audio channels; and controlling at least one speaker to output audio corresponding to the audio file according to the target audio channel.
[0007] In a possible implementation, parsing the audio file and determining a target audio channel used by the audio file from an audio channel group includes: parsing the audio file to obtain multiple first audio streams of the audio file; and determining, based on the multiple first audio streams, a target audio channel corresponding to each of the first audio streams from the audio channel group.
[0008] In one possible implementation, if the audio corresponding to the audio file is multimedia, the audio file corresponds to a first number of target audio channels; if the audio corresponding to the audio file is non-multimedia, the audio file corresponds to a second number of target audio channels, wherein the second number is greater than or equal to the first number.
[0009] In a possible implementation, controlling at least one speaker to output the audio corresponding to the audio file according to the target audio channel includes: determining a target sound channel according to the first audio stream and the target audio channel; and transmitting the first audio stream to the target sound channel through the target audio channel, so that the target speaker corresponding to the target sound channel outputs the corresponding audio.
[0010] In a possible implementation, making the target speaker corresponding to the target sound channel output the corresponding audio includes: performing an audio algorithm adjustment on the first audio stream to obtain a second audio stream; transmitting the second audio stream to the target speaker corresponding to the target sound channel through the target sound channel, so that the target speaker outputs the audio corresponding to the second audio stream.
[0011] In a possible implementation, parsing the audio file and determining the target audio channels used by the audio file from the audio channel group includes: parsing the audio file to determine the number of audio channels required by the audio file; if the number of audio channels required by the audio file is less than or equal to the number of audio channel groups, determining the audio channels required by the audio file as target audio channels; if the number of audio channels required by the audio file is greater than the number of audio channel groups, determining each audio channel in the audio channel group as a target audio channel.
[0012] According to a second aspect of an embodiment of the present application, an audio output device is provided, comprising: an acquisition unit, configured to acquire an audio file; a parsing unit, configured to parse the audio file and determine a target audio channel used by the audio file from an audio channel group, wherein the audio channel group comprises multiple audio channels; and a control unit, configured to control at least one speaker to output audio corresponding to the audio file according to the target audio channel.
[0013] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect.
[0014] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.
[0015] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising computer instructions, wherein the computer instructions instruct a computing device to execute the method as described in the first aspect.
[0016] According to the audio output method provided in the embodiment of the present application, an audio file is obtained, the audio file is parsed, the target audio channel used by the audio file is determined from the audio channel group, and according to the target audio channel, at least one speaker is controlled to output the audio corresponding to the audio file, so as to output the audio corresponding to the audio file through the vehicle audio system. The audio output scheme in the embodiment of the present application can use at least part of the audio channels in the same audio channel group for different audio files, so as to realize audio output by speakers of different vehicle audio configurations. Compared with the prior art in which vehicles with different vehicle audio configurations use different versions of audio output software, vehicles with different vehicle audio configurations can use the same audio output software to realize audio output, thereby reducing the development cost and maintenance difficulty of the audio software. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0018] Figure 1 is a flow chart of an audio output method provided in an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of an audio output device provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0022] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0023] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0024] As mentioned above, with the continuous development of smart cockpit technology, the in-vehicle audio system has become a key part of in-vehicle infotainment in the smart cockpit. As users' demands for in-vehicle audio systems become more diversified and personalized, users will choose different in-vehicle audio system configurations according to their needs. At present, vehicles with different in-vehicle audio configurations use different versions of audio output software to output audio through speakers with different numbers or different amplifiers. However, it is costly to maintain and develop multiple different versions of audio output software.
[0025] An embodiment of the present application provides an audio output method, which obtains an audio file, parses the audio file, determines a target audio channel used by the audio file from an audio channel group, and controls at least one speaker to output the audio corresponding to the audio file according to the target audio channel, so as to output the audio corresponding to the audio file through a vehicle audio system. The audio output scheme in the embodiment of the present application can use at least some audio channels in the same audio channel group for different audio files, so as to output audio from speakers with different vehicle audio configurations. Compared with the prior art in which vehicles with different vehicle audio configurations use different versions of audio output software, vehicles with different vehicle audio configurations can use the same audio output software to achieve audio output, thereby reducing the development cost and maintenance difficulty of the audio software.
[0026] The audio output method provided by the present application is described below through embodiments.
[0027] Figure 1 is a flowchart of an audio output method provided in an embodiment of the present application, such as Figure 1 As shown, the audio output method includes the following steps 101 to 103:
[0028] Step 101: Obtain an audio file.
[0029] Audio files contain audio information for audio output. Vehicles with different car audio configurations can obtain different audio files. For example, when a vehicle with a low car audio configuration does not require stereo playback, it can obtain an audio file containing only mono audio information. When a vehicle with a high car audio configuration requires stereo playback of the sound source, it can obtain an audio file containing multi-channel audio information. Vehicles with the same car audio configuration can also obtain different audio files. These audio files contain different audio information and correspond to different audio output modes, such as surround sound mode, headrest mode, etc.
[0030] Step 102: parse the audio file and determine a target audio channel used by the audio file from an audio channel group, wherein the audio channel group includes a plurality of audio channels.
[0031] The audio file is parsed to obtain audio information contained in the audio file, wherein the audio information is used to indicate an audio channel to be used for the audio in the audio file, and a target audio channel used by the audio file is determined from an audio channel group according to the audio information contained in the audio file, wherein the target audio channel is used to indicate an input channel of the audio corresponding to the audio file in an audio digital signal processor (ADSP). In one example, an audio channel group may include 12 audio channels, and the target audio channel is at least part of the audio channels in the audio channel group.
[0032] Step 103: According to the target audio channel, control at least one speaker to output the audio corresponding to the audio file.
[0033] According to the target audio channel, the audio in the audio file is input into the ADSP, and the ADSP determines the speaker or the sounding mode of the speaker, or the sounding position of the speaker, etc. that outputs the audio corresponding to the audio file, and controls at least one speaker to output the audio corresponding to the audio file.
[0034] In an embodiment of the present application, an audio file is obtained, the audio file is parsed, a target audio channel used by the audio file is determined from an audio channel group, and according to the target audio channel, at least one speaker is controlled to output the audio corresponding to the audio file, so as to output the audio corresponding to the audio file through the vehicle audio system. The audio output scheme in the embodiment of the present application can use at least some audio channels in the same audio channel group for different audio files, so as to output audio from speakers with different vehicle audio configurations. Compared with the prior art in which vehicles with different vehicle audio configurations use different versions of audio output software, vehicles with different vehicle audio configurations can use the same audio output software to achieve audio output, thereby reducing the development cost and maintenance difficulty of the audio software.
[0035] In a possible implementation, when parsing an audio file and determining a target audio channel used by the audio file from an audio channel group, the audio file can be parsed to obtain multiple first audio streams of the audio file, and based on the multiple first audio streams, a target audio channel corresponding to each first audio stream can be determined from the audio channel group.
[0036] Parse the audio file to obtain multiple first audio streams contained in the audio file. The first audio stream is a sub-audio of the audio corresponding to the audio file, which can indicate the audio channel to be used in the audio input ADSP in the audio file. According to the multiple first audio streams contained in the audio file, determine the target audio channel corresponding to each first audio stream from the audio channel group, and each first audio stream corresponds to a target audio channel.
[0037] In an embodiment of the present application, an audio file is parsed to obtain multiple first audio streams in the audio file, and a target audio channel corresponding to each first audio stream is determined from an audio channel group based on the multiple first audio streams. Each first audio stream is input into the ADSP through the corresponding target audio channel to realize the input of audio corresponding to different audio files, thereby achieving compatibility of the same audio output software with audio corresponding to different audio files, so that the same audio output software can meet the vehicle audio output requirements of different vehicle audio configurations, thereby reducing the cost of software development.
[0038] In one possible implementation, if the audio corresponding to the audio file is multimedia, the audio file corresponds to a first number of target audio channels; if the audio corresponding to the audio file is non-multimedia, the audio file corresponds to a second number of target audio channels, wherein the second number is greater than or equal to the first number.
[0039] If the audio type corresponding to the audio file is multimedia, the audio file corresponds to a first number of target audio channels. In one example, an audio file with an audio type of multimedia can be designed according to the vehicle audio configuration. For example, the corresponding audio file of a vehicle with a low vehicle audio configuration may include only 2 target audio channels. In another example, the audio file corresponding to a vehicle with a high vehicle audio configuration may include 6, 8 or 12 target audio channels.
[0040] If the audio type corresponding to the audio file is non-multimedia, the audio file corresponds to a second number of target audio channels, where the second number of audio channels is 12, that is, 12 audio input channels are enabled when the audio corresponding to the non-media audio file is input to ADSP. When the first audio stream in the audio corresponding to the audio file is less than 12, only some audio channels have audio streams. In one example, when a vehicle with a low car audio configuration outputs non-multimedia audio without stereo requirements, there are only two first audio streams in the audio source file, corresponding to the front left channel and the front right channel. Therefore, when inputting ADSP, only the front left channel and the front right channel have audio streams, and other audio channels are enabled but there are no audio streams in the audio channels. In another example, when a vehicle with a high car audio configuration outputs non-multimedia audio, the first audio stream in the audio file can fill the 12 enabled audio channels.
[0041] It should be noted that in order to meet the needs of vehicle audio output of different car audio configurations, the vehicle multimedia audio channel group of different car audio configurations is determined according to the car audio configuration, for example, including 2, 6, 8 or 12 audio channels, and the non-multimedia audio channel group is uniformly determined to include 12 audio channels. In one example, the 5.1-configured car audio multimedia audio channel group includes 6 audio channels, and the non-multimedia audio channel group includes 12 audio channels. In another example, the 7.1-configured car audio multimedia audio channel group includes 8 audio channels, and the non-multimedia audio channel group includes 12 audio channels.
[0042] In an embodiment of the present application, if the audio corresponding to the audio file is multimedia, the audio file corresponds to a first number of target audio channels; if the audio corresponding to the audio file is non-multimedia, the audio file corresponds to a second number of target audio channels; multimedia audio can use audio files corresponding to different numbers of audio channels according to the vehicle audio configuration, thereby meeting the requirements of multimedia audio input of vehicles with different vehicle audio configurations; non-multimedia audio generally enables 12 audio channels, thereby achieving compatibility with non-multimedia audio output of vehicles with different vehicle audio configurations, and achieving audio input of audio files of different audio types through different audio channels; thereby achieving compatibility of the same audio output software solution with audio output of audio files of different audio types of vehicles with different vehicle audio configurations, thereby reducing the development cost of the audio output software.
[0043] In one possible implementation, when controlling at least one speaker to output audio corresponding to an audio file according to a target audio channel, a target sound channel can be determined according to a first audio stream and a target audio channel, and the first audio stream can be transmitted to the target sound channel through the target audio channel, so that a target speaker corresponding to the target sound channel outputs corresponding audio.
[0044] According to the first audio stream and the target audio channel, the target sound channel is determined. The target sound channel is an output channel in the ADSP. Different ADSP parameters are stored in the ADSP. The ADSP parameters are used to indicate the mapping relationship between the audio input channel and the audio output channel, that is, the mapping relationship between the target audio channel and the target sound channel. According to the mapping relationship between the target audio channel and the target sound channel indicated by the ADSP parameters, multiple first audio streams can be transmitted to the corresponding target sound channel through the target audio channel, so that the target speaker corresponding to the target sound channel outputs the corresponding audio.
[0045] It should be understood that the mapping relationship includes one-to-one, one-to-many, and many-to-one, that is, one target audio channel can be mapped to one target sound channel, one target audio channel can be mapped to multiple target sound channels, and multiple target audio channels can be mapped to one target sound channel. In one example, when there is no stereo requirement for the audio output, the front left channel audio in the target audio channel is mapped to the sound channel corresponding to the front left channel speaker, and the front right channel audio in the target audio channel is mapped to the sound channel corresponding to the front right channel speaker. In another example, the front left channel audio channel in the target audio channel can be mapped to the low-frequency, mid-frequency and high-frequency front left channel speaker sound channels. In another example, when the user selects the headrest mode, multiple target audio channels can be mapped to the sound channels corresponding to the two headrest speakers.
[0046] In an embodiment of the present application, a target sound channel is determined based on a first audio stream and a target audio channel, and the output of audio in different audio files in the ADSP is realized. The first audio stream is transmitted to the target sound channel through the target audio channel, so that the target speaker corresponding to the target sound channel outputs the corresponding audio, thereby realizing the output of audio in different audio files through the speaker. Therefore, the same audio output software solution is implemented to output audio of vehicles with different vehicle audio configurations, thereby reducing the development cost of the audio output software.
[0047] In one possible implementation, when making the target speaker corresponding to the target sound channel output the corresponding audio, the audio algorithm can be adjusted for the first audio stream to obtain a second audio stream, and the second audio stream can be transmitted to the target speaker corresponding to the target sound channel through the target sound channel, so that the target speaker outputs the audio corresponding to the second audio stream.
[0048] The audio algorithm in ADSP is used to adjust the first audio stream through the audio algorithm, such as volume adjustment, sound quality equalization, delay and / or mixing, to obtain the second audio stream, which is used to indicate the audio information of the audio output to the speaker in the audio file, and the second audio stream is transmitted to the target speaker corresponding to the target sound channel through the target sound channel, so that the target speaker outputs the audio corresponding to the second audio stream. Specifically, each sound channel in the target sound channel can correspond to one or more target speakers. In one example, there are six sound channels in a 5.1 channel system, and each sound channel corresponds to one of the six speakers of the 5.1 sound system. In another example, a bass channel can control multiple speakers for playing low-frequency effects to output bass audio.
[0049] In an embodiment of the present application, the audio algorithm in ADSP is used to adjust the first audio stream to obtain the second audio stream, thereby optimizing the audio quality. The second audio stream is transmitted to the target speaker corresponding to the target sound channel through the target sound channel, so that the target speaker outputs the audio corresponding to the second audio stream, thereby realizing the audio output of vehicles with different vehicle audio configurations and meeting the audio output requirements of vehicles with different vehicle audio configurations.
[0050] In a possible implementation, when parsing an audio file and determining a target audio channel used by the audio file from an audio channel group, the audio file may be parsed to determine the number of audio channels required for the audio file. If the number of audio channels required for the audio file is less than or equal to the number of audio channel groups, the audio channels required for the audio file are determined as target audio channels. If the number of audio channels required for the audio file is greater than the number of audio channel groups, each audio channel in the audio channel group is determined as a target audio channel.
[0051] Parse the audio file, obtain the audio stream information in the audio file, and determine the number of audio channels required to input the audio file into ADSP based on the audio stream information. If the number of audio channels required by the audio file is less than or equal to the number of audio channel groups, the audio channels required by the audio file are determined as target audio channels, that is, the number of audio channel groups meets the number of audio channels required by the audio file, and the audio channels required by the audio file in the audio channel group are determined as the channels for the audio stream in the audio file to be input into ADSP. If the number of audio channels required by the audio file is greater than the number of audio channel groups, each audio channel in the audio channel group is determined as a target The number of audio channels, that is, the number of audio channel groups, cannot meet the number of audio channels required by the audio file, and all audio channels in the audio channel group are determined as channels for inputting the audio stream in the audio file into ADSP. In one example, a vehicle audio channel group of a car audio configuration has 6 audio channels. If the user selects an audio file that needs to use less than or equal to 6 audio channels, the audio stream in the audio file is input into ADSP through the audio channels required by the audio file in the audio channel group. If the user selects an audio file that needs to use more than 6 audio channels, the 6 audio streams in the audio file are input into ADSP through the 6 audio channels in the audio channel group.
[0052] In an embodiment of the present application, an audio file is parsed to determine the number of audio channels required for the audio file. If the number of audio channels required for the audio file is less than or equal to the number of audio channel groups, the audio channels required for the audio file are determined as target audio channels. If the number of audio channels required for the audio file is greater than the number of audio channel groups, each audio channel in the audio channel group is determined as a target audio channel, thereby achieving the output of audio in different audio files for vehicles with different vehicle audio configurations, thereby achieving the same audio output software being compatible with different audio files for audio output, meeting the audio output requirements of vehicles with different vehicle audio configurations, and reducing the audio output software development cost.
[0053] Figure 2 is a schematic diagram of an audio output device provided in an embodiment of the present application, such as Figure 2 As shown, the device 200 includes:
[0054] An acquisition unit 201 is used to acquire an audio file;
[0055] A parsing unit 202 is used to parse the audio file and determine a target audio channel used by the audio file from an audio channel group, wherein the audio channel group includes a plurality of audio channels;
[0056] The control unit 203 is used to control at least one speaker to output the audio corresponding to the audio file according to the target audio channel.
[0057] In the embodiment of the present application, the acquisition unit 201 can be used to execute step 101 in the above method embodiment, the parsing unit 202 can be used to execute step 102 in the above method embodiment, and the control unit 203 can be used to execute step 103 in the above method embodiment.
[0058] In a possible implementation, the parsing unit 202 may further parse the audio file to obtain multiple first audio streams of the audio file, and determine, according to the multiple first audio streams, a target audio channel corresponding to each first audio stream from the audio channel group.
[0059] In one possible implementation, the parsing unit 202 may further, if the audio corresponding to the audio file is multimedia, the audio file corresponds to a first number of target audio channels; if the audio corresponding to the audio file is non-multimedia, the audio file corresponds to a second number of target audio channels, wherein the second number is greater than or equal to the first number.
[0060] In a possible implementation, the control unit 203 may also determine a target sound channel according to the first audio stream and the target audio channel, and transmit the first audio stream to the target sound channel through the target audio channel so that the target speaker corresponding to the target sound channel outputs the corresponding audio.
[0061] In a possible implementation, the control unit 203 may further perform an audio algorithm adjustment on the first audio stream to obtain a second audio stream, and transmit the second audio stream to a target speaker corresponding to the target sound channel through a target sound channel, so that the target speaker outputs the audio corresponding to the second audio stream.
[0062] In a possible implementation, the control unit 203 may further parse the audio file to determine the number of audio channels required for the audio file. If the number of audio channels required for the audio file is less than or equal to the number of audio channel groups, the audio channels required for the audio file are determined as target audio channels. If the number of audio channels required for the audio file is greater than the number of audio channel groups, each audio channel in the audio channel group is determined as a target audio channel.
[0063] Reference Figure 3 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0064] like Figure 3 As shown, the electronic device may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .
[0065] in:
[0066] The processor 302 , the communication interface 304 , and the memory 306 communicate with each other via the communication bus 308 .
[0067] The communication interface 304 is used to communicate with other electronic devices or servers.
[0068] The processor 302 is used to execute the program 310, and specifically can execute the relevant steps in the above-mentioned audio output method embodiment.
[0069] Specifically, the program 310 may include program codes, which include computer operation instructions.
[0070] The processor 302 may be a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; one or more GPUs; or different types of processors, such as one or more CPUs, one or more GPUs, and one or more ASICs.
[0071] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0072] The program 310 may be specifically used to enable the processor 302 to execute the audio output method in any of the aforementioned embodiments.
[0073] The specific implementation of each step in program 310 can refer to the corresponding description of the corresponding steps and units in any of the above-mentioned audio output method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.
[0074] In an embodiment of the present application, an audio file is obtained, the audio file is parsed, a target audio channel used by the audio file is determined from an audio channel group, and according to the target audio channel, at least one speaker is controlled to output the audio corresponding to the audio file, so as to output the audio corresponding to the audio file through the vehicle audio system. The audio output scheme in the embodiment of the present application can use at least some audio channels in the same audio channel group for different audio files, so as to output audio from speakers with different vehicle audio configurations. Compared with the prior art in which vehicles with different vehicle audio configurations use different versions of audio output software, vehicles with different vehicle audio configurations can use the same audio output software to achieve audio output, thereby reducing the development cost and maintenance difficulty of the audio software.
[0075] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to any one of the above-mentioned multiple method embodiments.
[0076] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0077] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the audio output method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the audio output method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the audio output method shown herein.
[0078] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0079] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. An audio output method, characterized in that: include: Get the audio file; Parsing the audio file, and determining a target audio channel used by the audio file from an audio channel group, wherein the audio channel group includes a plurality of audio channels; According to the target audio channel, at least one speaker is controlled to output the audio corresponding to the audio file.
2. The method according to claim 1, characterized in that The parsing of the audio file to determine a target audio channel used by the audio file from an audio channel group includes: Parsing the audio file to obtain multiple first audio streams of the audio file; According to the multiple first audio streams, a target audio channel corresponding to each of the first audio streams is determined from the audio channel group.
3. The method according to claim 2, characterized in that If the audio corresponding to the audio file is multimedia, the audio file corresponds to a first number of target audio channels; if the audio corresponding to the audio file is non-multimedia, the audio file corresponds to a second number of target audio channels, wherein the second number is greater than or equal to the first number.
4. The method according to claim 2, characterized in that: The step of controlling at least one speaker to output the audio corresponding to the audio file according to the target audio channel includes: Determining a target sound channel according to the first audio stream and the target audio channel; The first audio stream is transmitted to the target sound channel through the target audio channel, so that the target speaker corresponding to the target sound channel outputs the corresponding audio.
5. The method according to claim 4, characterized in that The step of causing a target speaker corresponding to the target sound channel to output corresponding audio includes: Performing an audio algorithm adjustment on the first audio stream to obtain a second audio stream; The second audio stream is transmitted to a target speaker corresponding to the target sound channel through the target sound channel, so that the target speaker outputs the audio corresponding to the second audio stream.
6. The method according to claim 5, characterized in that The parsing of the audio file to determine a target audio channel used by the audio file from an audio channel group includes: Parsing the audio file to determine the number of audio channels required by the audio file; If the number of audio channels required by the audio file is less than or equal to the number of audio channel groups, determining the audio channels required by the audio file as target audio channels; If the number of audio channels required by the audio file is greater than the number of the audio channel groups, each audio channel in the audio channel group is determined as a target audio channel.
7. An audio output device, characterized in that: include: An acquisition unit, used for acquiring an audio file; a parsing unit, configured to parse the audio file and determine a target audio channel used by the audio file from an audio channel group, wherein the audio channel group includes a plurality of audio channels; A control unit is used to control at least one speaker to output the audio corresponding to the audio file according to the target audio channel.
8. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the audio output method as described in any one of claims 1-6.
9. A computer storage medium, characterized in that A computer program is stored thereon, and when the program is executed by a processor, the audio output method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions instruct a computing device to execute the audio output method as claimed in any one of claims 1 to 6.