CN110868621A - Audio playing method, device, equipment and computer readable medium - Google Patents

Audio playing method, device, equipment and computer readable medium Download PDF

Info

Publication number
CN110868621A
CN110868621A CN201810978638.0A CN201810978638A CN110868621A CN 110868621 A CN110868621 A CN 110868621A CN 201810978638 A CN201810978638 A CN 201810978638A CN 110868621 A CN110868621 A CN 110868621A
Authority
CN
China
Prior art keywords
audio
playing
channel
application
terminal
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
CN201810978638.0A
Other languages
Chinese (zh)
Other versions
CN110868621B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810978638.0A priority Critical patent/CN110868621B/en
Publication of CN110868621A publication Critical patent/CN110868621A/en
Application granted granted Critical
Publication of CN110868621B publication Critical patent/CN110868621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8106Monomedia components thereof involving special audio data, e.g. different tracks for different languages

Abstract

The embodiment of the invention discloses an audio playing method, an audio playing device, audio playing equipment and a computer readable medium, which relate to the field of terminals, and the method comprises the following steps: the terminal determines whether the new application of the audio to be played is an independent playing application; if the new application is determined to be the independent playing application, the terminal acquires an auxiliary audio channel special for the independent playing application from a plurality of audio playing channels; and the terminal plays the audio of the new application by using the auxiliary audio channel and the corresponding auxiliary playing equipment.

Description

Audio playing method, device, equipment and computer readable medium
Technical Field
The present invention relates to the field of terminals, and in particular, to an audio playing method, apparatus, device, and computer readable medium.
Background
Many people currently connect terminals (e.g., mobile phones) to bluetooth speakers to play audio, such as songs or games, using the bluetooth speakers. For example, when the mobile phone is connected with the bluetooth speaker to play the song, if the terminal has a short message or other notification message, the currently played song of the bluetooth speaker will be temporarily stopped and a prompt tone will be played, thereby reducing the user experience.
Disclosure of Invention
The embodiment of the invention provides an audio playing method, an audio playing device, audio playing equipment and a computer readable medium, which solve the problem of simultaneous playing of multiple application audios.
The embodiment of the invention provides an audio playing method, which comprises the following steps:
the terminal determines whether the new application of the audio to be played is an independent playing application;
if the new application is determined to be the independent playing application, the terminal acquires an auxiliary audio channel special for the independent playing application from a plurality of audio channels;
and the terminal plays the audio of the new application by using the auxiliary audio channel and the corresponding auxiliary playing equipment.
An audio playing device provided by an embodiment of the present invention includes:
the determining module is used for determining whether the new application of the audio to be played by the terminal is an independent playing application;
a channel obtaining module, configured to obtain, if it is determined that the new application is the independent playback application, a secondary audio channel dedicated to the independent playback application from multiple audio playback channels of the terminal;
and the first playing module is used for playing the audio of the new application by utilizing the auxiliary audio channel and the corresponding auxiliary playing equipment.
The audio playing device provided by the embodiment of the present invention includes a processor and a memory, and is characterized in that an audio playing program capable of running on the processor is stored in the memory, and the audio playing program implements the steps of the audio playing method when executed by the processor.
An embodiment of the present invention provides a computer-readable medium, on which an audio playing program is stored, where the audio playing program, when executed by a processor, implements the steps of the audio playing method described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the audio of the independent playing application is played by using the auxiliary audio channel and the corresponding auxiliary playing device, so that the audio playing of the independent playing application is not influenced by the audio playing of other applications, and the user experience is improved.
Drawings
Fig. 1 is a schematic flowchart of an audio playing method according to an embodiment of the present invention;
fig. 2 is a schematic general flow chart of terminal external playing and bluetooth independent playing provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an audio management interface according to an embodiment of the present invention;
FIG. 4 is a schematic workflow diagram of a native audio playback mode;
fig. 5 is a schematic flowchart of an audio playing mode provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of a workflow of dual audio decoding provided by an embodiment of the present invention;
FIG. 7 is a flow chart of audio information delivery provided by an embodiment of the present invention;
fig. 8 is a schematic block diagram of an audio playing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of an audio playing device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the embodiments described below are only for illustrating and explaining the present invention and are not intended to limit the present invention.
The terminal of the embodiment of the invention is provided with a main audio channel and an auxiliary audio channel. If the new application of the audio to be played is not an independent playing application (i.e., is a non-independent playing application), the audio playing process is consistent with the conventional audio playing. If the new application of the audio to be played is an independent playing application, the secondary audio channel and the corresponding secondary playing device are used for playing the audio, the playing of the audio cannot be blocked due to the playing of the audio of other applications, the user experience of the user in the audio playing process can be improved, and the method and the device can be used for terminals such as mobile phones (e.g., android mobile phones) and tablet computers.
Fig. 1 is a schematic flowchart of an audio playing method according to an embodiment of the present invention, and as shown in fig. 1, the method may include:
step S101: the terminal determines whether the new application of the audio to be played is an independent play application.
In this embodiment, the terminal searches for the playing permission of the new application, and if the playing permission of the new application is found to be the independent playing permission, the terminal determines that the new application is the independent playing application, where audio playing of the independent playing application is not affected by audio playing of other applications. For example, the terminal may set an independent play permission list, and if the application name of the new application is found in the independent play permission list, it is indicated that the play permission of the new application is the independent play permission, and at this time, the terminal determines that the new application is the independent play application. For another example, the terminal may add an attribute for indicating a playback permission to each application, and if the playback permission indicated by the attribute is found to be an independent playback permission by searching for the attribute of the new application, the terminal determines that the new application is an independent playback application.
Step S102: and if the new application is determined to be the independent playing application, the terminal acquires an auxiliary audio channel special for the independent playing application from a plurality of audio channels.
In this embodiment, the terminal obtains an attribute of each audio channel, where the attribute is used to indicate that each audio channel is a main audio channel or a secondary audio channel, and then determines a secondary audio channel that is not occupied by other independently playing applications from at least one secondary audio channel according to the attribute of each audio channel, so as to allocate the determined secondary audio channel to the new application.
Step S103: and the terminal plays the audio of the new application by using the auxiliary audio channel and the corresponding auxiliary playing equipment.
In this embodiment, the audio playback of the new application is independent from the audio playback of other applications, i.e., is not blocked by the audio playback of other applications.
If the application for music playing is an independent playing application with independent playing permission, the auxiliary playing device corresponding to the auxiliary audio channel is a Bluetooth sound box, and during music playing by using the Bluetooth sound box, even if audio of other applications of the terminal needs to be played, the music played by the Bluetooth sound box cannot be interrupted, so that the user experience is improved.
On the basis of the foregoing embodiment, after the terminal determines whether the new application of the audio to be played is an independent play application, the method may further include: if the new application is determined not to be the independent playing application (i.e., not the independent playing application), the terminal acquires the main audio channel from the multiple audio channels, and plays the audio of the new application by using the main audio channel and the corresponding main playing device.
In this embodiment, the main audio channel is an audio channel dedicated to the dependent playback application, and the terminal transmits the audio of the new application to a main playback device corresponding to the main audio channel by using the main audio channel, for example, a line control headphone matched with the terminal.
It should be noted that, if the new application is a non-independent playing application, the audio playing process is consistent with the conventional audio playing. Namely, if other applications (the priority of which may be lower than the new application) occupy the main audio channel and the corresponding main playback device, the audio playback of the other applications is paused, and after the audio playback of the new application is finished, the audio playback of the other applications is resumed. If during audio playback of the new application there are other applications (which may be of higher priority than the new application) that need to be played using the main audio channel and corresponding main playback device, audio playback of the new application will be blocked by audio playback of the other applications.
In this embodiment, different audio channels and corresponding playing devices can be used for audio playing for audio of different applications, for example, a bluetooth sound box can be used to play audio of an application with independent playing permission, such as music, the music playing is not affected by the playing of other application audio, and the audio of an application without independent playing permission can be played by using a terminal playing function, such as a short message prompt tone, to prompt a user in time, and a line control earphone matched with the terminal can be used to play audio of an application with independent playing permission, such as voice call, to ensure the privacy of the user call.
On the basis of the above embodiment, during the period when the terminal plays the audio of the new application by using the main audio channel and the corresponding main playback device, the terminal may further obtain the audio decoding mode of the secondary audio channel, and perform audio decoding processing on the audio of the new application transmitted by the main audio channel according to the audio decoding mode of the secondary audio channel, so as to improve the sound quality. The audio decoding modes comprise a hardware decoding mode and a software decoding mode, assuming that a default hardware decoding mode of a main audio channel is prior, when at least one secondary audio channel uses the hardware decoding mode, the terminal performs software decoding processing on the audio of the new application transmitted by the main audio channel, and when all the secondary audio channels do not use the hardware decoding mode, the terminal performs hardware decoding processing on the audio of the new application transmitted by the main audio channel.
For example, when the terminal has one main audio channel and two auxiliary audio channels, if one auxiliary audio channel already uses the hardware decoding mode, the audio of the new application transmitted by the main audio channel is subjected to software decoding processing, and if neither of the two auxiliary audio channels uses the hardware decoding mode, the audio of the new application transmitted by the main audio channel is subjected to hardware decoding processing.
On the basis of the above embodiment, the terminal may further display the new application and a main playback device corresponding to the main audio channel or an auxiliary playback device corresponding to the auxiliary audio channel, which is used to transmit the audio of the new application, on an audio management interface, and control at least one of playback or pause of the audio of the new application, volume adjustment, and switching of the main playback device or the auxiliary playback device according to a user control instruction received by the audio management interface, so as to meet a user demand.
Taking a dual-channel mode, that is, a terminal has a main audio channel and an auxiliary audio channel as an example, the embodiment of the present invention supports that bluetooth playing and a terminal external play (or a line control earphone) are independently opened, and the playing between the bluetooth playing and the terminal external play (or the line control earphone) is not affected, for example, when a phone prompt tone or a call sound is played, a bluetooth speaker box also plays music, and is not affected. Furthermore, the volume of the two channels can be conveniently adjusted when the two channels are played down, and the part can be closed so as to meet the requirements of different people.
According to the embodiment of the invention, the main audio channel and the main playing device and the auxiliary audio channel and the auxiliary playing device can be utilized to play audio of different applications simultaneously, so that the user experience can be improved.
The following description will be made in detail with reference to fig. 2 to 7 by taking an example of providing a new audio playing mode for independently playing multiple audios on a terminal (e.g., a mobile phone). For example, the multiple audios are audios played by the external terminal and the bluetooth speaker, and the audio playing mode can enable the external terminal and the bluetooth speaker to play different audios simultaneously.
Fig. 2 is a schematic general flow chart of terminal external playing and bluetooth independent playing provided by an embodiment of the present invention, and as shown in fig. 2, the flow chart includes the following steps:
step S201: in a certain mode, a terminal system (such as a system of an android terminal) supports a plurality of applications to play audio simultaneously.
In a current mode (such as a native audio playing mode of an android terminal and the like), the system only allows one application to play audio, and when the audio of a new application is played, the audio playing of the previous application is paused. The present embodiment will alter the limitations of the system such that the system allows audio playback of two applications, but is not limited to two. The mode for starting the embodiment can set an application with independent play authority, the audio of the application is played through a second audio channel (or a secondary audio channel), and other applications are unchanged according to the original system.
Step S202: and (5) audio decoding.
The decoding of the secondary audio playback channel (or secondary audio channel) of the present embodiment will be determined by the application whether software decoding or hardware decoding is employed. The decoding mode of the main audio playback channel (or main audio channel) will select the further decoding mode depending on the decoding mode of the secondary audio channel. The cost of a Central Processing Unit (CPU) should be reduced as much as possible, and the fluency of the user's use should be ensured by making full use of hardware support.
For example, if only one secondary audio channel employs hardware decoding, the primary audio channel employs software decoding. For another example, if one of the plurality of secondary audio channels is decoded in hardware, the primary audio channel is decoded in software.
Step S203: and audio shunting processing.
Currently, audio playing of a terminal (e.g., an android terminal, etc.) is blocked, that is, when a second application plays audio, the audio playing of a first application is blocked. Since the underlying support library SDL (simple direct media Layer) for terminal audio playing supports multi-channel audio playing, this embodiment enables MediaPlayer to support at least one (e.g. one) additional sub-audio channel by rewriting MediaPlayer, and the additional sub-audio channel is associated with the second audio channel described in step S201.
This embodiment enables the MediaPlayer to support two audio playback channels (or audio channels), but not limited to two. While the second audio playback channel (i.e., the secondary audio channel) may be selected by the user to be turned off or on.
The embodiment can provide an audio playing mode for the user to select, that is, select the native playing mode or select the audio playing mode of the embodiment in which multiple audios are played independently. The embodiment can mark audio streams played by multiple applications, and after the user starts the audio playing mode of the embodiment, the user can check which applications are playing audio on the audio management interface shown in fig. 3, and can realize the switching function of audio of different applications.
Step S204: and (4) multi-channel output and multi-device (such as earphones, terminal external devices, Bluetooth sound boxes and the like) playing.
The audio signal output by MediaPlayer outputs multi-channel audio in accordance with the above steps S201 and S203, and outputs the audio of the main play channel (or main audio channel) and the sub-play channel (or sub-audio channel) to the specified audio play device according to the user setting in S203, respectively. The playing scheme proposed by this embodiment is that the sub-playing channel uses bluetooth device for playing, and the main playing channel uses terminal external playing for playing, but is not limited thereto. Meanwhile, the user can customize the playing device. Different audio playback devices can receive different audio signals and play different audio signals, for example, a Bluetooth sound box receives music audio information and plays music, a terminal externally plays game sound effect signals and plays game sound effects and the like.
Fig. 4 is a schematic workflow diagram of the native audio play mode, and as shown in fig. 4, the process includes the following steps:
step S401 to step S402: when a new application is ready to play audio, whether other applications are playing audio is judged, if yes, step S403 and step S404 are executed in sequence, otherwise, step S404 is executed directly.
Step S403: pausing audio playback of the other application (i.e., the currently playing application), or pausing audio playback of the other application when the priority of playback of the new application is not lower than the other application.
Step S404: and playing the audio of the new application.
Fig. 5 is a schematic diagram of a working flow of an audio playing mode according to an embodiment of the present invention, which proposes a new audio playing mode, where an application that is played independently in a sub-channel (or a sub-playing channel) is set, and an original playing mode is retained for audio playing in a main channel (or a main playing channel). The application playing the audio in the side channel is not affected by the playing of other new applications, and the specific flow is shown in fig. 5, and includes:
step S501: the new application is ready to play audio.
Step S502: and determining whether the new application belongs to the independent playing application, if so, executing the step S505, otherwise, executing the step S503.
Step S503: checking whether other applications are playing in the main playing channel, if so, executing step S504 and step S505 in sequence, otherwise, executing step S505.
Step S504: and pausing the audio playing of the other applications, or pausing the audio playing of the other applications when the priority of the playing of the new application is not lower than that of the other applications.
Step S505: and playing the audio of the new application.
And aiming at the condition that the new application belongs to the independent playing application, playing the audio of the independent playing application by utilizing a sub-playing channel and corresponding sub-playing equipment.
And aiming at the condition that the new application does not belong to the independent playing application, playing the audio of the new application by utilizing a main playing channel and corresponding main playing equipment.
Fig. 6 is a schematic workflow diagram of audio decoding according to an embodiment of the present invention, in a terminal (for example, a current mainstream smart phone), a part of the terminal is provided with a High Fidelity (High Fidelity) module or a DAC (Digital to analog converter) audio decoding module, and many users who like to listen to songs like to decode audio using the High Fidelity (High Fidelity) module, but at the same time, hardware decoding levels of many average-price smart phones without the High Fidelity (High Fidelity) module are low, and a decoded sound quality level is lower than that of third-party software. Meanwhile, the default hardware decoding of the terminal system takes priority, but the sound quality can be reduced if the hardware decoding is used by the audio of a plurality of applications. The present embodiment provides a decoding method, when a user starts the mode of the present embodiment, a decoding mode of a main channel (or a main playback channel) for decoding is changed to some extent according to a decoding mode of a sub-channel (a sub-playback channel), and a specific flow is shown in fig. 6, which includes:
step S601: ready to decode for audio a of the main channel.
Step S602: and determining whether the sub-channel adopts hardware decoding, if so, executing step S605, otherwise, executing step S603.
Step S603: and determining whether the main channel can decode the audio A by using hardware, if so, executing the step S604, otherwise, executing the step S605.
Step S604: audio a is hardware decoded.
Step S605: audio a is software decoded.
In the embodiment of the invention, one derived class is derived from the original media Player class to support independent playing of multiple audios, and when a multiple audio playing mode is started, music playing is realized by using the derived class. In the native class, the selection of the playback device has a certain priority, and the playback device with the highest priority is selected to play audio. In diffraction type, the system determines whether the played audio belongs to a main channel (or main playing channel) or a sub-channel (or sub-playing channel), and when the audio signal belongs to the sub-channel, the audio signal is transmitted to the bluetooth playing device, and when the audio signal belongs to the main channel, the audio signal is played by using a terminal wired connection, such as a wired earphone or a terminal external playing, but not limited to the above functions. Simultaneously still include: the audio information needs to be delivered according to the device selected by the user, fig. 7 is a flowchart illustrating delivery of the audio information according to an embodiment of the present invention, and as shown in fig. 7, the process may include:
step S701: and acquiring channel attributes, and determining whether each channel is a main play channel or a sub-play channel.
Step S702: and acquiring the playing equipment of the corresponding channel according to the determination result that the audio belongs to the audio of the main playing channel or the audio of the auxiliary playing channel.
Step S703: and transmitting the audio to the acquired playing device.
On the basis of the above embodiment, the volume of the two playing channels is also adjusted according to the user requirement.
Fig. 8 is a schematic block diagram of an audio playing apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus may include:
the determining module 81 is configured to determine whether the new application of the audio to be played by the terminal is an independent playing application. The determining module 81 may search for the playing permission of the new application, and determine that the new application is an independent playing application if the playing permission of the new application is found to be the independent playing permission, where the audio playing of the independent playing application is not affected by the audio playing of other applications.
A channel obtaining module 82, configured to obtain, if it is determined that the new application is the independent playing application, a secondary audio channel dedicated to the independent playing application from multiple audio playing channels of the terminal. The channel obtaining module 82 may obtain an attribute of each audio channel, where the attribute is used to indicate that each audio channel is a primary audio channel or a secondary audio channel, and then determine a secondary audio channel that is not occupied by other independently playing applications from at least one secondary audio channel according to the attribute of each audio channel, so as to allocate the determined secondary audio channel to the new application.
A first playing module 83, configured to play the audio of the new application by using the secondary audio channel and the corresponding secondary playing device if it is determined that the new application is the independent playing application. The audio playing of the new application is independent from the audio playing of other applications, that is, the audio playing of other applications is not blocked.
On the basis of the above embodiment, the channel obtaining module 82 is further configured to obtain the main audio channel from multiple audio channels if the determining module 81 determines that the new application is not the independent playing application (i.e. is not an independent playing application). At this time, the apparatus may further include:
a second playing module 84, configured to play the audio of the new application by using the main audio channel dedicated to the dependent playing application and the corresponding main playing device. In this embodiment, the main audio channel is an audio channel dedicated to the dependent playback application, and the second playback module transmits the audio of the new application to a main playback device corresponding to the main audio channel, such as a line control earphone matched with a terminal, by using the main audio channel.
On the basis of the foregoing embodiment, the second playing module 84 may be further configured to, during the period that the terminal uses the main audio channel and the corresponding main playing device to play the audio of the new application, obtain an audio decoding mode of the secondary audio channel, and perform audio decoding processing on the audio of the new application transmitted by the main audio channel according to the audio decoding mode of the secondary audio channel, so as to improve the sound quality. The audio decoding modes include a hardware decoding mode and a software decoding mode, assuming that a default hardware decoding mode of a main audio channel is preferred, when at least one of the secondary audio channels uses the hardware decoding mode, the second playing module 84 performs software decoding processing on the newly applied audio transmitted by the main audio channel, and when all of the secondary audio channels do not use the hardware decoding mode, the second playing module 84 performs hardware decoding processing on the newly applied audio transmitted by the main audio channel.
On the basis of the above embodiment, the apparatus may further include a control module (not shown in the figure), configured to display the new application and a main playback device corresponding to the main audio channel or a sub playback device corresponding to the sub audio channel, which is used to transmit the audio of the new application, on an audio management interface, and control at least one of playing or pausing of the audio of the new application, volume adjustment, and switching of the main playback device or the sub playback device according to a user control instruction received by the audio management interface, so as to meet a user requirement.
Fig. 9 is a schematic block diagram of an audio playing device according to an embodiment of the present invention, where, as shown in fig. 9, the audio playing device includes: a processor 91 and a memory 92; the memory 92 stores an audio playing program operable on the processor 91, and the audio playing program implements the steps of the audio playing method when executed by the processor 91.
Embodiments of the present invention may also provide a computer readable medium, on which an audio playing program is stored, and when the audio playing program is executed by a processor, the audio playing program implements the steps of the audio playing method described above.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In summary, the embodiments of the present invention have the following technical effects:
the embodiment of the invention supports a plurality of channels, and different channels are used for playing the audio of different applications, so that the audio of a plurality of applications can be played simultaneously, thereby meeting the user requirements and improving the user experience.
Although the embodiments of the present invention have been described in detail above, the embodiments of the present invention are not limited thereto, and those skilled in the art can make various modifications according to the principles of the embodiments of the present invention. Therefore, any modifications made to the principles of the embodiments of the present invention should be understood to fall within the scope of the present invention.

Claims (10)

1. An audio playing method, the method comprising:
the terminal determines whether the new application of the audio to be played is an independent playing application;
if the new application is determined to be the independent playing application, the terminal acquires an auxiliary audio channel special for the independent playing application from a plurality of audio channels;
and the terminal plays the audio of the new application by using the auxiliary audio channel and the corresponding auxiliary playing equipment.
2. The method of claim 1, wherein the terminal determining whether the new application for audio to be played is a standalone play application comprises:
the terminal searches the playing permission of the new application;
and if the playing permission of the new application is found to be the independent playing permission, the terminal determines that the new application is the independent playing application, wherein the audio playing of the independent playing application is not influenced by the audio playing of other applications.
3. The method of claim 1, wherein the terminal obtaining a secondary audio channel dedicated to the standalone play application from a plurality of audio channels comprises:
the terminal acquires the attribute of each audio channel, wherein the attribute is used for indicating that each audio channel is a main audio channel or a secondary audio channel;
and the terminal determines a secondary audio channel which is not occupied by other independent playing applications from at least one secondary audio channel according to the attribute of each audio channel.
4. The method according to claim 3, wherein after the terminal determines whether the new application of the audio to be played is a standalone play application, further comprising:
if the new application is determined not to be the independent playing application, the terminal acquires the main audio channel from a plurality of audio channels;
and the terminal plays the audio of the new application by using the main audio channel and the corresponding main playing equipment.
5. The method according to claim 4, wherein during the terminal playing the audio of the new application using the main audio channel and the corresponding main playback device, further comprising:
the terminal acquires an audio decoding mode of the secondary audio channel;
and the terminal performs audio decoding processing on the newly applied audio transmitted by the main audio channel according to the audio decoding mode of the auxiliary audio channel.
6. The method according to claim 5, wherein the audio decoding processing of the newly applied audio transmitted by the main audio channel by the terminal according to the audio decoding mode of the secondary audio channel comprises:
when at least one secondary audio channel uses a hardware decoding mode, the terminal performs software decoding processing on the audio of the new application transmitted by the main audio channel;
and when all the auxiliary audio channels do not use a hardware decoding mode, the terminal performs hardware decoding processing on the newly applied audio transmitted by the main audio channel.
7. The method according to any one of claims 1-6, further comprising:
the terminal displays the new application and main playing equipment corresponding to the main audio channel or auxiliary playing equipment corresponding to the auxiliary audio channel for transmitting the audio of the new application on an audio management interface;
and the terminal controls at least one of playing or pausing playing, volume adjustment and switching of main or auxiliary playing equipment of the newly applied audio according to the user control instruction received by the audio management interface.
8. An audio playback apparatus, comprising:
the determining module is used for determining whether the new application of the audio to be played by the terminal is an independent playing application;
a channel obtaining module, configured to obtain, if it is determined that the new application is the independent playback application, a secondary audio channel dedicated to the independent playback application from multiple audio playback channels of the terminal;
and the first playing module is used for playing the audio of the new application by utilizing the auxiliary audio channel and the corresponding auxiliary playing equipment.
9. An audio playback device comprising a processor and a memory, wherein the memory has stored thereon an audio playback program operable on the processor, the audio playback program, when executed by the processor, implementing the steps of the audio playback method as claimed in any one of claims 1 to 7.
10. A computer-readable medium, on which an audio playback program is stored, which when executed by a processor implements the steps of the audio playback method according to any one of claims 1 to 7.
CN201810978638.0A 2018-08-27 2018-08-27 Audio playing method, device, equipment and computer readable medium Active CN110868621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810978638.0A CN110868621B (en) 2018-08-27 2018-08-27 Audio playing method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810978638.0A CN110868621B (en) 2018-08-27 2018-08-27 Audio playing method, device, equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN110868621A true CN110868621A (en) 2020-03-06
CN110868621B CN110868621B (en) 2022-05-10

Family

ID=69651335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810978638.0A Active CN110868621B (en) 2018-08-27 2018-08-27 Audio playing method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN110868621B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949818A (en) * 2020-08-14 2020-11-17 天津中新智冠信息技术有限公司 Data processing method and device, data processing equipment and storage medium
CN113794928A (en) * 2021-09-14 2021-12-14 青岛海信传媒网络技术有限公司 Audio playing method and display device
WO2022247455A1 (en) * 2021-05-28 2022-12-01 华为技术有限公司 Audio distribution method, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080071401A1 (en) * 2006-09-14 2008-03-20 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Audio player capable of playing multiple multimedia files simultaneously
CN105702271A (en) * 2015-12-31 2016-06-22 联想(北京)有限公司 Multimedia playing method and electronic equipment
CN106201425A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of intelligent terminal's audio frequency output
CN107155155A (en) * 2017-06-12 2017-09-12 宇龙计算机通信科技(深圳)有限公司 Audio-frequency inputting method, device, mobile terminal and computer-readable recording medium
CN108063874A (en) * 2017-12-26 2018-05-22 上海展扬通信技术有限公司 A kind of information processing method, device, terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080071401A1 (en) * 2006-09-14 2008-03-20 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Audio player capable of playing multiple multimedia files simultaneously
CN105702271A (en) * 2015-12-31 2016-06-22 联想(北京)有限公司 Multimedia playing method and electronic equipment
CN106201425A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of intelligent terminal's audio frequency output
CN107155155A (en) * 2017-06-12 2017-09-12 宇龙计算机通信科技(深圳)有限公司 Audio-frequency inputting method, device, mobile terminal and computer-readable recording medium
CN108063874A (en) * 2017-12-26 2018-05-22 上海展扬通信技术有限公司 A kind of information processing method, device, terminal and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949818A (en) * 2020-08-14 2020-11-17 天津中新智冠信息技术有限公司 Data processing method and device, data processing equipment and storage medium
WO2022247455A1 (en) * 2021-05-28 2022-12-01 华为技术有限公司 Audio distribution method, and electronic device
CN113794928A (en) * 2021-09-14 2021-12-14 青岛海信传媒网络技术有限公司 Audio playing method and display device

Also Published As

Publication number Publication date
CN110868621B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
AU2021290313B2 (en) Loudness control for user interactivity in audio coding systems
US9973872B2 (en) Surround sound effects provided by cell phones
US11403341B2 (en) Methods and systems for adapting playlists
CN110868621B (en) Audio playing method, device, equipment and computer readable medium
US20140328485A1 (en) Systems and methods for stereoisation and enhancement of live event audio
CN105448312B (en) Audio sync playback method, apparatus and system
CN105630586B (en) Information processing method and electronic equipment
CN103345929B (en) A kind of method and apparatus regulating volume
CN110832579A (en) Last mile equalization
US20140301567A1 (en) Method for providing a compensation service for characteristics of an audio device using a smart device
CN110321096A (en) A kind of MCVF multichannel voice frequency intelligent control method and relevant apparatus and equipment
CN102104680A (en) Audio playing method, plug-in playing terminal and mobile terminal
WO2018126613A1 (en) Method for playing audio data and dual-screen mobile terminal
JP2019505944A (en) Audio file re-recording method, apparatus and storage medium
CN112995963A (en) Bluetooth audio transmission method, device, terminal and readable storage medium
US20190265943A1 (en) Content based dynamic audio settings
US9439082B2 (en) Mobile device audio indications
US20220351737A1 (en) Using Non-Audio Data Embedded in an Audio Signal
US20070287486A1 (en) Content reproduction system, content reproduction apparatus and content reproduction method
CN112188342A (en) Equalization parameter determination method and device, electronic equipment and storage medium
KR101051036B1 (en) Apparatus and method for controlling sound quality of audio equipments according to the hearing of individual users
US10356526B2 (en) Computers, methods for controlling a computer, and computer-readable media
CN103945305A (en) Information processing method and electronic equipment
KR100663493B1 (en) Apparatus and method for multimedia call in a portable terminal with mp3 play function
WO2016009850A1 (en) Sound signal reproduction device, sound signal reproduction method, program, 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
GR01 Patent grant
GR01 Patent grant