WO2019011270A1 - 音频播放方法、终端及计算机可读存储介质 - Google Patents

音频播放方法、终端及计算机可读存储介质 Download PDF

Info

Publication number
WO2019011270A1
WO2019011270A1 PCT/CN2018/095259 CN2018095259W WO2019011270A1 WO 2019011270 A1 WO2019011270 A1 WO 2019011270A1 CN 2018095259 W CN2018095259 W CN 2018095259W WO 2019011270 A1 WO2019011270 A1 WO 2019011270A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
concurrent
dual
command
played
Prior art date
Application number
PCT/CN2018/095259
Other languages
English (en)
French (fr)
Inventor
王延平
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019011270A1 publication Critical patent/WO2019011270A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • G11B19/022Control panels
    • G11B19/025'Virtual' control panels, e.g. Graphical User Interface [GUI]
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10018Improvement or modification of read or write signals analog processing for digital recording or reproduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers

Definitions

  • the present disclosure relates to the field of audio playback technologies, and in particular, to an audio playback method, a terminal, and a computer readable storage medium.
  • intelligent terminals basically support multi-task concurrent processing. For example, users can use the smart terminal to listen to music while browsing the web.
  • a smart terminal processes a concurrent audio playback task, its usual processing method is to pause the previous audio channel and then play the concurrent audio.
  • a user uses a mobile phone to listen to music while browsing a webpage; when browsing to a webpage, the user clicks on a video playback option in the webpage, and a concurrent audio playback task is triggered, wherein the audio of the music is the previous audio.
  • the audio of the webpage video is concurrent audio; the mobile phone automatically suspends the audio of the music (the previous audio) and plays the audio of the webpage video (concurrent audio).
  • the present disclosure provides an audio playing method, including the steps of: when an audio concurrent command is received while playing the first audio, outputting query information to determine audio playback of the first audio and the concurrent second audio a mode; when the dual audio distribution command is received, the first audio and the second audio are separately played in different channels according to the dual audio distribution instruction.
  • the present disclosure also provides an audio playing terminal including a processor, a memory, and an audio playing program stored on the memory and executable by the processor, the audio playing program being used by the processor
  • the following steps are implemented: when the first audio is played, if an audio concurrent command is received, the query information is output to determine an audio play mode of the first audio and the concurrent second audio; When the instruction is released, the first audio and the second audio are separately played in different channels according to the dual audio distribution instruction.
  • the present disclosure also provides a computer readable storage medium having an audio playback program stored thereon, wherein the audio playback program is implemented by a processor to implement the audio playback method described herein A step of.
  • the present disclosure also provides an audio playback device, including: a mode determining module configured to output an inquiry message to determine the first audio when an audio concurrent command is received when playing the first audio And a concurrent audio playback mode of the second audio; the dual audio distribution module configured to, when receiving the dual audio distribution instruction, respectively, according to the dual audio distribution instruction, the first audio and the second audio are respectively Play separately in different channels.
  • FIG. 1 is a schematic structural diagram of hardware of an audio playback terminal according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure.
  • a smart terminal processes a concurrent audio play task
  • its usual processing method is to pause the previous audio pause and then play the concurrent audio.
  • the user may not want to stop the previous audio playback. Instead, he wants to play multiple audios at the same time. For example, while being able to watch the video, the user can also make a call.
  • the smart terminal has no corresponding solution.
  • the present disclosure particularly provides an audio playback method, terminal, and computer readable storage medium that substantially obviate one or more of the problems due to the limitations and disadvantages of the related techniques.
  • the inquiry information is output to determine an audio play mode of the first audio and the concurrent second audio;
  • the instruction is released, the first audio and the second audio are separately played in different channels according to the dual audio distribution instruction.
  • the audio playing method is mainly applied to an audio playing terminal, and the terminal can be implemented in various manners.
  • the audio playback terminal may include a mobile terminal such as a mobile phone, a tablet, a notebook computer, a palmtop computer, a portable media player, and a stationary terminal such as a smart TV or a PC terminal.
  • a mobile phone will be described as an audio playback terminal, and those skilled in the art will understand that the configuration according to an embodiment of the present disclosure can be applied to other types of terminals in addition to components specifically for mobile purposes.
  • FIG. 1 is a schematic structural diagram of hardware of an audio playing terminal according to an embodiment of the present disclosure.
  • an audio playback terminal can include a processor 1001 (eg, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is configured to implement connection communication between these components;
  • the user interface 1003 may include a display, an input unit such as a keyboard;
  • the network interface 1004 may include a standard wired interface, a wireless interface (for example, the WI-FI interface);
  • the memory 1005 may be a high speed RAM (random access memory) memory, a non-volatile memory (for example, a disk memory), or the like.
  • the memory 1005 can be a storage device that is separate from the aforementioned processor 1001.
  • the audio playback terminal may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
  • the sensor may include a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor can close the display and/or according to the distance between the photosensitive device and the reference object.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the audio playback terminal can be used to identify the attitude of the audio playback terminal (such as horizontal and vertical screen switching). , related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the audio playback terminal can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein.
  • the hardware structure of the audio playing terminal shown in FIG. 1 does not constitute a limitation of the audio playing terminal, and may include more or less components than those illustrated, or combine some components, or different. Parts layout.
  • the memory 1005 as a computer readable storage medium of FIG. 1 can include an operating system, a network communication module, and an audio player.
  • the network communication module is mainly used to connect to a server for data communication with the server; and the processor 1001 can call an audio playing program stored in the memory 1005 and perform the following operations: when the first audio is played, if received Audio concurrent command, outputting query information to determine an audio play mode of the first audio and the concurrent second audio; when receiving the dual audio release command, the first according to the dual audio release command The audio and the second audio are played separately in different channels.
  • the dual audio distribution instruction includes a left ear mode release instruction and a right ear mode release instruction
  • the processor 1001 may also call an audio playback program stored in the memory 1005 and perform the following operations: receiving When the left ear mode is released, the first audio is played on the left channel according to the left ear mode release command, and the second audio is played on the right channel; and the right ear mode release command is received The first audio is played on the right channel and the second audio is played on the left channel according to the right ear mode split command.
  • the processor 1001 may also call an audio playing program stored in the memory 1005 and perform the following operations: when receiving the dual audio mixing instruction, the first according to the two-channel mixing instruction The audio and the second audio are mixedly played in the same channel; when the single audio playback command is received, the first audio is paused according to the single audio playback instruction, and the first audio is played in mono or dual channel Second audio.
  • the processor 1001 can also call the audio playing program stored in the memory 1005 and perform the following operations: when the first audio is played, if the audio concurrent command is received, the concurrent second audio belongs to the concurrent
  • the application performs detection to determine whether the concurrent application belongs to a preset key application; if the concurrent application belongs to a preset key application, pauses playing the first audio, and plays the second in mono or dual channel Audio; if the concurrent application does not belong to the preset key application, the query information is outputted to determine an audio play mode of the first audio and the concurrent second audio.
  • FIG. 2 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure.
  • the audio playing method includes the following steps S10 and S20.
  • step S10 when the first audio is played, if an audio concurrent command is received, the inquiry information is output to determine an audio play mode of the first audio and the concurrent second audio.
  • intelligent terminals basically support multi-task concurrent processing. For example, users can use the smart terminal to listen to music while browsing the web.
  • a smart terminal processes a concurrent audio playback task, its usual processing method is to pause the previous audio channel and then play the concurrent audio.
  • a user uses a mobile phone to listen to music while browsing a webpage; when browsing to a webpage, the user clicks on a video playback option in the webpage, and a concurrent audio playback task is triggered, wherein the audio of the music is the previous audio.
  • the audio of the webpage video is concurrent audio; the mobile phone automatically suspends the audio of the music (the previous audio) and plays the audio of the webpage video (concurrent audio).
  • the embodiment provides an audio playing method for simultaneously playing multiple channels of audio.
  • the user uses a music application in a mobile phone (audio playback terminal) and listens to music through the earphone.
  • the earphone may be connected to the mobile phone by means of a wired connection, or may be connected to the mobile phone wirelessly; the music played by the mobile phone through the earphone may be referred to as the first audio, and since there is only one audio currently played, the earphone is The left and right channels (ie, the left and right) play the audio at the same time.
  • the mobile phone plays audio, it receives an externally sent call signal, which detects that someone is calling the phone.
  • the mobile phone receives a corresponding audio concurrent command, and the concurrent audio in the audio concurrent command is the audio of the incoming call, and the concurrent audio may be referred to as the second audio. Since the second audio is the audio that needs to be played, and the mobile phone is currently playing the first audio, the mobile phone will output an inquiry message at this time to determine the play mode of the two audios.
  • the inquiry information can be implemented in a variety of ways. For example, when the mobile phone receives the second audio as the audio concurrent command of the phone, it will vibrate to remind the user to have the phone call, and the play mode menu is displayed on the screen of the mobile phone, wherein the play mode menu includes a dual audio distribution option; When the user clicks to select the dual audio distribution option, the dual audio playback command will be triggered, and the process proceeds to step S20; when the user selects the dual audio distribution option, the touch screen may be selected on the screen of the mobile phone, or may be through the earphone. Select the function key on the top.
  • the preset prompt voice is played to remind the user to have the phone call in, and the user is asked by voice to play the two audios.
  • the user can also select the playback of the dual audio distribution by voice, that is, speaking the "double audio distribution" to the sound collector (microphone) of the mobile phone, thereby triggering the dual audio distribution instruction.
  • step S20 upon receiving the dual audio distribution command, the first audio and the second audio are separately played in different channels according to the dual audio distribution instruction.
  • the dual audio distribution instruction includes a left ear mode release instruction and a right ear mode release instruction.
  • the mobile phone will use the left channel (left earphone) as the exclusive channel of the first audio, and the right channel (right earphone) as the exclusive channel of the second audio, and The first audio is played separately on the left channel and the second audio is played separately on the right channel.
  • the mobile phone When the user selects the right ear mode release command, the mobile phone will use the right channel (right earphone) as the exclusive channel of the first audio, and the left channel (left earphone) as the exclusive channel of the second audio. The first audio is played separately on the right channel and the second audio is played separately on the left channel. Of course, the phone will also pre-process the first audio and the second audio before playing.
  • step S10 when there is no phone call, since there is no concurrent second audio, the audio played by the mobile phone only has the first audio of the music application, so the first audio is played in two channels simultaneously in the form of stereo playback, the user The first audio can be heard on both the left and right earphones; and when the user enters the phone, the user chooses to play the first audio and the second audio in a dual audio distribution mode, and the mobile phone needs a certain sound for the first audio.
  • the channel signal is processed; if the user selects the left ear mode, the mobile phone temporarily cancels the right channel signal of the first audio (not transmitting the audio signal of the first audio to the earphone); correspondingly, receiving the voice sent by the outside world
  • the left channel signal of the second audio is temporarily erased (the audio signal of the second audio is not sent to the left earphone).
  • the audio pre-processing method in this embodiment does not constitute a limitation on the dual-channel audio distribution in the embodiment.
  • the mobile phone Before playing, the mobile phone can perform various suitable operations on the first audio that has been played and the second audio that is concurrent. Pre-processing to achieve the purpose of separately playing the first audio and the concurrent second audio in different channels.
  • the audio volume of each channel can be individually controlled when multiple audio is played in a dual audio split mode. Specifically, when the left ear mode is used for audio distribution, the left channel plays the first audio, and the right channel plays the second audio; since the second audio is the concurrent audio, the user pays more attention to the content. At this time, the user can increase the audio volume of the right channel through the mobile phone, and simultaneously lower the audio volume of the left channel. Of course, the user can also adjust the audio volume through the preset function section on the earphone to meet the user's use requirements. .
  • the first audio and the concurrent second audio may be audio from different applications or audio from the same application.
  • the concurrent audio may be audio of other applications, such as a webpage video of the browser, an incoming call of the telephone application, a recording file of the recording software, etc.; the concurrent audio may also be the same Different audio in the music application, such as when the mobile phone plays the first music in the list of music applications, the user clicks on the third music in the list, and the audio of the third music in the list is the second concurrent Audio, the phone will play the two music as described above.
  • the query information is output to determine an audio play mode of the first audio and the concurrent second audio; and the dual audio release command is received.
  • the first audio and the second audio are separately played in different channels according to the dual audio distribution command.
  • the concurrent audio occurs, the user does not stop the playback of the previous audio according to the user's selection, but sends different audio signals to the left and right channels, so that the user can listen to the two different channels.
  • Different audios enrich the processing of multi-audio concurrent tasks, satisfying the needs of different users and improving the user experience.
  • FIG. 3 is a schematic flowchart diagram of an audio playing method according to an embodiment of the present disclosure.
  • the audio playing method further includes step S30.
  • step S30 upon receiving the dual audio mixing instruction, the first audio and the second audio are mixed and played in the same channel according to the dual audio mixing instruction.
  • the mobile phone when the mobile phone receives the second audio as the audio concurrent command of the phone, the mobile phone vibrates to remind the user that the call is made, and the play mode menu is displayed on the screen of the mobile phone, wherein the play mode menu also includes the dual audio. Mixing options.
  • the dual audio mixing option When the user selects the dual audio mixing option, the mobile phone receives the corresponding dual audio mixing command and mixes the first audio and the second audio in the same channel.
  • the audio played by the mobile phone since there is no concurrent second audio, the audio played by the mobile phone only has the first audio of the music application, so the first audio is played in two channels simultaneously in the form of stereo playback, and the user is in the left and right.
  • Both earphones can hear the first audio; when the user enters the phone, the user chooses to play the first audio and the second audio in a dual audio mixing manner, then the mobile phone will receive the voice data sent by the outside world and Converting to the second audio of stereo, and playing the second audio together with the first audio in two channels simultaneously; at this time, the user can simultaneously hear the first audio and the second audio in the left earphone, and also in the right earphone The first audio and the second audio are heard simultaneously.
  • the volume of the first audio and the second audio may be different in order to distinguish between the first audio and the second audio in the case of dual audio mixing. For example, since the second audio is concurrent audio and the user pays more attention to its content, in the mixed audio, the volume of the second audio is higher than the volume of the first audio.
  • the volume of the two audios can be individually controlled, and the user can individually adjust the volume of one of the audios; the adjustment can be as described above, can be adjusted by the mobile phone, or can be adjusted through the preset function keys on the headphones.
  • the playback of the previous audio may not be stopped, but multiple audios are simultaneously played in the same channel, so that the user can hear different audios in the same channel, enriching the audio.
  • the processing of audio concurrent tasks satisfies the needs of different users and improves the user experience.
  • FIG. 4 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure.
  • the audio playing method further includes step S40.
  • step S40 upon receiving the single audio play command, the first audio is paused according to the single audio play command, and the second audio is played in mono or dual channel.
  • the mobile phone when the mobile phone receives the second audio as the audio concurrent command of the phone, the mobile phone vibrates to remind the user that the call is made, and the play mode menu is displayed on the screen of the mobile phone, wherein the play mode menu further includes a single audio. Playback options.
  • the mobile phone receives the corresponding single audio play command, and pauses playing the first audio, and then plays the concurrent second audio.
  • the user can also select the playing channel of the second audio, that is, whether the second audio is played separately in the left channel, in the right channel alone, or in the two channels simultaneously.
  • the playback channel of the second audio can be changed. For example, the user selects the left channel to play separately. After playing for a period of time, it is found that the left earphone is faulty and the content cannot be heard. At this time, the user can play the sound. The channel is changed to the right channel or the two channels simultaneously to meet the user's needs.
  • FIG. 5 is a schematic flow chart of an audio playing method according to an embodiment of the present disclosure.
  • the audio playing method includes steps S50 to S70.
  • step S50 when the first audio is played, if the audio concurrent command is received, the concurrent application to which the concurrent second audio belongs is detected to determine whether the concurrent application belongs to the preset key application.
  • step S60 if the concurrent application belongs to a preset key application, the first audio is paused and the second audio is played in mono or dual channel.
  • step S70 if the concurrent application does not belong to the preset key application, the inquiry information is outputted to determine an audio play mode of the first audio and the concurrent second audio.
  • a key application list can also be set in the mobile phone, and the user can set some important applications as key applications.
  • the phone will be played in a single audio playback mode.
  • the user first sets the phone application in the mobile phone as a key application, and the browser is a non-critical application; when the user uses the music application in the mobile phone to listen to music, the mobile phone receives an audio concurrent command, and the mobile phone will acquire the mobile phone.
  • the source information of the second audio determines whether the concurrent application to which the second audio belongs belongs to the preset key application; if the second audio is the incoming call, and the concurrent application to which the second audio belongs is a phone application, which belongs to the preset key application, then The mobile phone will automatically play in the form of single audio playback, that is, pause the first audio (music application music), and then play the second audio of the concurrent application, wherein the second audio playback channel can be set according to the actual situation. If the second audio is a webpage video in the browser, and the concurrent application to which it belongs is a browser application, which is not a preset key application, then the mobile phone still outputs the inquiry information in step S10 in the above embodiment.
  • the audio play mode of the first audio and the second audio is determined according to a user's selection.
  • the audio play mode of the mobile phone can be switched according to the user's operation at any time to meet different usage requirements of the user during use. For example, the user selects the mode of dual audio distribution, plays the first audio in the left channel, and plays the second audio in the right channel; after a period of time, the user no longer needs to listen to the first audio, then can choose to switch to In the mode of single audio playback, the playback of the first audio is paused, and the second audio is switched to stereo playback (ie, the second audio is played simultaneously on the left and right channels).
  • the user selects to play the first audio in the left channel and the second audio in the right channel; after a period of time, the user can reverse the playback channel of the first audio and the second audio, in the left channel Play the second audio in the middle and play the first audio in the right channel.
  • the switching operation can be performed in the mobile phone or through a preset function key on the earphone.
  • the selection time can also be preset in the mobile phone.
  • the mobile phone automatically presets according to the preset.
  • the play scheme determines an audio play mode of the first audio and the concurrent second audio, thereby implementing automatic selection of the audio play mode and automatic audio play.
  • the present disclosure also provides an audio playback device.
  • the audio playback device includes: a mode determining module configured to output an inquiry message to determine the first audio and the concurrent number if an audio concurrent command is received when the first audio is played a two-audio audio playback mode; the dual audio distribution module is configured to, when receiving the dual audio distribution command, respectively, according to the dual audio distribution instruction, the first audio and the second audio are respectively in different channels Play in separate.
  • the dual audio distribution instruction includes a left ear mode release instruction and a right ear mode release instruction
  • the dual audio distribution module is further configured to, when receiving the left ear mode release instruction, according to The left ear mode splitting instruction plays the first audio on a left channel and the second audio on a right channel; the dual audio distribution module is further configured to receive a right ear mode release instruction The first audio is played on the right channel and the second audio is played on the left channel according to the right ear mode split command.
  • the audio playback device further includes: a dual audio mixing module configured to, when receiving the dual audio mixing instruction, the first audio and the second according to the dual audio mixing instruction The audio is mixed and played in the same channel.
  • the audio playback device further includes: a single audio playback module configured to pause playback of the first audio according to the single audio playback instruction upon receiving a single audio playback instruction, and The second audio is played in mono or dual channel.
  • the audio playback device further includes: an application detection module configured to detect, when the first audio is played, a concurrent application to which the concurrent second audio belongs, and determine Whether the concurrent application belongs to the preset key application; the first processing module is configured to pause playing the first audio if the concurrent application belongs to the preset key application, and play in the mono or dual channel And the second processing module is configured to output the query information to determine an audio play mode of the first audio and the concurrent second audio if the concurrent application does not belong to the preset key application.
  • an application detection module configured to detect, when the first audio is played, a concurrent application to which the concurrent second audio belongs, and determine Whether the concurrent application belongs to the preset key application
  • the first processing module is configured to pause playing the first audio if the concurrent application belongs to the preset key application, and play in the mono or dual channel
  • the second processing module is configured to output the query information to determine an audio play mode of the first audio and the concurrent second audio if the concurrent application does not belong to the preset key application.
  • the modules of the audio playback device correspond to the steps in the foregoing method embodiments, and the functions and implementation processes of the foregoing embodiments are not described herein.
  • the present disclosure also provides an audio playback terminal.
  • the audio playback terminal includes a processor, a memory, and an audio playback program stored on the memory and executable by the processor, when the audio playback program is executed by the processor, Implementing the following steps: when the first audio is played, if an audio concurrent command is received, the inquiry information is outputted to determine an audio play mode of the first audio and the concurrent second audio; when the dual audio release command is received And playing the first audio and the second audio separately in different channels according to the dual audio distribution instruction.
  • the dual audio distribution instruction includes a left ear mode dispensing instruction and a right ear mode dispensing instruction, and when the audio playing program is executed by the processor, the following steps are further implemented: receiving the left When the ear mode is released, the first audio is played on the left channel according to the left ear mode release command, and the second audio is played on the right channel; when the right ear mode release command is received, The first audio is played on the right channel according to the right ear mode split command, and the second audio is played on the left channel.
  • the following steps are further implemented: when receiving the dual audio mixing instruction, the first audio and the first audio according to the dual audio mixing instruction The two audios are mixedly played in the same channel; upon receiving the single audio play command, the first audio is paused according to the single audio play command, and the second audio is played in mono or dual channel .
  • the following steps are further implemented: when the first audio is played, if an audio concurrent command is received, the concurrent application to which the concurrent second audio belongs is performed. Detecting, determining whether the concurrent application belongs to a preset key application; if the concurrent application belongs to a preset key application, suspending playing the first audio, and playing the second audio in mono or dual channel; If the concurrent application does not belong to the preset key application, the query information is outputted to determine an audio play mode of the first audio and the concurrent second audio.
  • the present disclosure also provides a computer readable storage medium.
  • the computer readable storage medium stores an audio playback program, wherein when the audio playback program is executed by the processor, the steps of the audio playback method as described above are implemented.
  • portions of the technical solution of the present disclosure that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Otolaryngology (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种音频播放方法、一种音频播放终端和计算机可读存储介质。该方法包括:在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式(S10);在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放(S20)。

Description

音频播放方法、终端及计算机可读存储介质 技术领域
本公开涉及音频播放技术领域,尤其涉及一种音频播放方法、终端及计算机可读存储介质。
背景技术
随着科技的发展,智能终端基本都支持多任务并发处理,例如用户可以使用智能终端一边听音乐,一边浏览网页。而智能终端处理并发音频播放任务时,其常用处理方法是将前一路音频暂停静音,然后播放并发音频。例如,用户使用手机一边听音乐,一边浏览网页;在浏览到某一网页时,用户点击了该网页中的视频播放选项,此时即触发了并发音频播放任务,其中音乐的音频为前一路音频,网页视频的音频为并发音频;手机此时会自动将音乐的音频(前一路音频)暂停静音,并播放网页视频的音频(并发音频)。
发明内容
一方面,本公开提供一种音频播放方法,包括步骤:在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
另一方面,本公开还提供一种音频播放终端,包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的音频播放程序,所述音频播放程序被所述处理器执行时,实现以下步骤:在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
另一方面,本公开还提供一种计算机可读存储介质,所述计算 机可读存储介质上存储有音频播放程序,其中所述音频播放程序被处理器执行时,实现本文所述的音频播放方法的步骤。
另一方面,本公开还提供了一种音频播放装置,包括:模式确定模块,其配置为在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;双音频分放模块,其配置为在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
附图说明
图1是本公开实施例涉及的音频播放终端的硬件结构示意图;
图2为根据本公开的一实施例中的音频播放方法的流程示意图;
图3为根据本公开的一实施例中的音频播放方法的流程示意图;
图4为根据本公开的一实施例中的音频播放方法的流程示意图;
图5为根据本公开的一实施例中的音频播放方法的流程示意图。
本公开目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。
如上所述,智能终端处理并发音频播放任务时,其常用处理方法是将前一路音频暂停静音,然后播放并发音频。但在某些情况下,用户可能并不希望停止前一路音频的播放,而是希望多路音频同时播放,例如在能够一边看视频的同时,还可以进行通话,而目前智能终端都没有相应的解决方案。
因此,本公开特别提供了一种音频播放方法、终端及计算机可读存储介质,其实质上避免了由于相关技术的局限和缺点所导致的问题中的一个或多个。
根据本公开的实施例,在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
本公开实施例涉及的音频播放方法主要应用于音频播放终端,该终端可以通过多种方式实现。例如,音频播放终端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、便捷式媒体播放器等移动终端,以及诸如智能电视、PC终端等固定终端。
后续描述中将以手机作为音频播放终端进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本公开的实施方式的构造也能够应用于其它类型的终端。
图1为本公开实施例中涉及的音频播放终端的硬件结构示意图。参照图1,在一些实施例中,音频播放终端可以包括处理器1001(例如CPU)、通信总线1002、用户接口1003、网络接口1004、以及存储器1005。这里,通信总线1002配置为实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元(比如键盘(Keyboard));网络接口1004可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是高速RAM(random access memory)存储器、非易失性存储器(non-volatile memory)(例如磁盘存储器)等。在一些实施例中,存储器1005可以是独立于前述处理器1001的存储装置。
在一些实施例中,该音频播放终端还可以包括摄像头、RF(Radio Frequency,射频)电路、传感器、音频电路、WiFi模块等等。这里,传感器可以包括光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可根据感光设备与参照物的距离,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别音频播放终端姿态的 应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。当然,该音频播放终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
本领域技术人员可以理解,图1中示出的音频播放终端的硬件结构并不构成对音频播放终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
继续参照图1,在一些实施例中,图1中作为一种计算机可读存储介质的存储器1005可以包括操作系统、网络通信模块以及音频播放程序。
在图1中,网络通信模块主要用于连接服务器,与服务器进行数据通信;而处理器1001可以调用存储器1005中存储的音频播放程序,并执行以下操作:在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
在一些实施例中,所述双音频分放指令包括左耳模式分放指令和右耳模式分放指令,处理器1001还可以调用存储器1005中存储的音频播放程序,并执行以下操作:在接收到左耳模式分放指令时,根据所述左耳模式分放指令在左声道播放所述第一音频,并在右声道播放所述第二音频;在接收到右耳模式分放指令时,根据所述右耳模式分放指令在右声道播放所述第一音频,并在左声道播放所述第二音频。
在一些实施例中,处理器1001还可以调用存储器1005中存储的音频播放程序,并执行以下操作:在接收到双音频混放指令时,根据所述双声道混放指令将所述第一音频和第二音频在同一声道中混合播放;在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
在一些实施例中,处理器1001还可以调用存储器1005中存储的音频播放程序,并执行以下操作:在播放第一音频时,若接收到音 频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用;若所述并发应用属于预设关键应用,则暂停播放所述第一音频,并在单声道或双声道播放所述第二音频;若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
下面,基于上述音频播放终端的硬件结构,详细描述根据本公开实施例的音频播放方法。
一方面,本公开提供一种音频播放方法。图2为根据本公开的一实施例中的音频播放方法的流程示意图。
参照图2,在本实施例中,所述音频播放方法包括以下步骤S10和S20。
在步骤S10处,在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
随着科技的发展,智能终端基本都支持多任务并发处理,例如用户可以使用智能终端一边听音乐,一边浏览网页。而智能终端处理并发音频播放任务时,其常用处理方法是将前一路音频暂停静音,然后播放并发音频。例如,用户使用手机一边听音乐,一边浏览网页;在浏览到某一网页时,用户点击了该网页中的视频播放选项,此时即触发了并发音频播放任务,其中音乐的音频为前一路音频,网页视频的音频为并发音频;手机此时会自动将音乐的音频(前一路音频)暂停静音,并播放网页视频的音频(并发音频)。
但在某些情况下,用户可能并不希望停止前一路音频的播放,而是希望多路音频同时播放,例如在能够一边看视频的同时,还可以进行通话。基于上述问题,本实施例提出一种音频播放方法,实现多路音频同时播放。
具体地,本实施例中,用户使用手机(音频播放终端)中的音乐应用,并通过耳机听音乐。这里,耳机可以是以有线连接的方式与 手机连接,也可以是以无线的方式与手机连接;手机通过耳机所播放的音乐可称为第一音频,由于当前播放的音频只有一个,因此耳机的左右声道(即左右两个)同时播放着该音频。手机在播放音频时,接收到了外部发送的来电信号,即检测到有人正往该手机打入电话。此时手机会接收到对应的音频并发指令,该音频并发指令中的并发音频为打入电话的音频,该并发音频可称为第二音频。由于第二音频是需要播放的音频,而手机当前又正在播放第一音频,因此手机此时将会输出询问信息,以确定这两个音频的播放模式。
该询问信息可以由多种方式实现。例如,手机在接收到第二音频为电话的音频并发指令时,会进行振动以提醒用户有电话打进,同时手机屏幕上会显示播放模式菜单,其中播放模式菜单中包括双音频分放选项;用户在点击选择该双音频分放选项时,将触发双音频播放指令,此时进入步骤S20;当用户选择双音频分放选项时,可以是在手机屏幕上触屏选择,还可以是通过耳机上预设功能键进行选择。又例如,手机在接收到第二音频为电话的音频并发指令时,会播放预设提示语音以提醒用户有电话打进,并用语音的方式询问用户采用何种方式播放着两个音频,此时用户也可以通过语音的方式选择双音频分放的播放,即对着手机的声音采集器(麦克风)说出“双音频分放”,从而触发双音频分放指令。
在步骤S20处,在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
本实施例中,手机在接收到双音频分放指令时,会分别在左右两个不同的声道中分别单独播放第一音频和第二音频。具体地,双音频分放指令包括左耳模式分放指令和右耳模式分放指令。在用户选择左耳模式分放指令时,手机会将左声道(左耳机)作为第一音频的独享声道,将右声道(右耳机)作为第二音频的独享声道,并在左声道单独播放第一音频,在右声道单独播放第二音频。而在用户选择右耳模式分放指令时,手机会将右声道(右耳机)作为第一音频的独享声道,将左声道(左耳机)作为第二音频的独享声道,并在右声道单独播放第一音频,在左声道单独播放第二音频。当然,在播放前,手机 还会对第一音频和第二音频进行相应的预处理。例如步骤S10中,在没有电话打入时,由于没有并发的第二音频,手机播放的音频只有音乐应用的第一音频,因此第一音频是使用立体声播放的形式在双声道同时播放,用户在左右两个耳机都能听到第一音频;而在有电话打入时,用户选择以双音频分放的方式播放第一音频和第二音频,则手机需要对于第一音频的某个声道信号进行处理;如若用户选择的是左耳模式,则手机会将第一音频的右声道信号暂时消去(不向耳机发送第一音频的音频信号);对应地,在接收外界发送的语音数据并转换立体声的第二音频时,会将第二音频的左声道信号暂时消去(不向左耳机发送第二音频的音频信号)。当然,本实施例中的音频预处理方式并不构成对本实施例中双声道分放音频的限制,在播放前,手机可以对已播放的第一音频和并发的第二音频进行各种合适的预处理,以实现分别在不同的声道中单独播放第一音频和并发的第二音频的目的。
在一些实施例中,在采用双音频分放的方式播放多音频时,每个声道的音频音量都是可以单独控制的。具体地,在采用左耳模式进行音频分放时,左声道播放的是第一音频,右声道播放的是第二音频;由于第二音频是并发的音频,用户对其内容更为关注,此时用户可通过手机调高右声道的音频音量,同时调低左声道的音频音量,当然用户也可以通过耳机上的预设功能节进行音频音量的调节,以满足用户的使用需求。
在一些实施例中,第一音频和并发的第二音频,可以是来自不同应用的音频,也可以是来自同一应用的音频。具体地,用户在使用手机的音乐应用听音乐时,并发的音频可以是其它应用的音频,如浏览器的网页视频、电话应用的来电、录音软件的录音文件等;并发的音频还可以是同一音乐应用里的不同音频,如手机在播放了音乐应用的列表里第一首音乐时,用户又点击了列表里的第三首音乐,则列表里的第三首音乐的音频为并发的第二音频,手机会如上述的播放方法播放这两首音乐。
本实施例中,在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模 式;在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。通过以上方式,本实施例可在出现并发音频时,根据用户的选择不停止前一路音频的播放,而是向左右声道发送不同的音频信号,使得用户可以在左右两个不同声道中听到不同的音频,丰富了多音频并发任务的处理方式,满足了不同用户的使用需求,提高了用户的体验。
图3根据为本公开的一实施例中的音频播放方法的流程示意图。
参照图3,基于上述图2所示实施例,步骤S10之后,所述音频播放方法还包括步骤S30。
在步骤S30处,在接收到双音频混放指令时,根据所述双音频混放指令将所述第一音频和第二音频在相同声道中混合播放。
本实施例中,手机在接收到第二音频为电话的音频并发指令时,会进行振动以提醒用户有电话打进,同时手机屏幕上会显示播放模式菜单,其中播放模式菜单中还包括双音频混放选项。用户在选择该双音频混放选项时,手机会接收到对应的双音频混放指令,并将第一音频和第二音频在相同声道中混合播放。具体地,在没有电话打入时,由于没有并发的第二音频,手机播放的音频只有音乐应用的第一音频,因此第一音频是使用立体声播放的形式在双声道同时播放,用户在左右两个耳机都能听到第一音频;而在有电话打入时,用户选择以双音频混放的方式播放第一音频和第二音频,则手机将接收外界发送的语音数据,并将其转换为立体声的第二音频,并将第二音频与第一音频一起在双声道同时播放;此时用户可以在左耳机中同时听到第一音频和第二音频,在右耳机中也可以同时听到第一音频和第二音频。
在一些实施例中,为了能在双音频混放的情况下区分第一音频和第二音频,第一音频和第二音频的音量可以是不同的。例如,由于第二音频是并发的音频,用户对其内容更为关注,则混合音频中,第二音频的音量要高于第一音频的音量。当然,两个音频的音量可以是单独控制的,用户可以单独调节其中一种音频的音量;调节的方式可如上述,可以通过手机调节,也可以通过耳机上的预设功能键进行调 节。
本实施例中,在出现并发音频时,可不停止前一路音频的播放,而是在相同的声道中同时播放多路音频,使得用户可以在相同声道中听到不同的音频,丰富了多音频并发任务的处理方式,满足了不同用户的使用需求,提高了用户的体验。
图4为根据本公开的一实施例中的音频播放方法的流程示意图。
参照图4,基于上述图2所示实施例,步骤S10之后,所述音频播放方法还包括步骤S40。
在步骤S40处,在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
本实施例中,手机在接收到第二音频为电话的音频并发指令时,会进行振动以提醒用户有电话打进,同时手机屏幕上会显示播放模式菜单,其中播放模式菜单中还包括单音频播放选项。用户在选择该单音频播放选项时,手机会接收到对应的单音频播放指令,并暂停播放第一音频,转而播放并发的第二音频。其中在播放第二音频时,用户也可以选择第二音频的播放声道,即选择第二音频是在左声道单独播放、还是在右声道单独播放、还是在双声道同时播放。当然,第二音频的播放声道是可以改变的,例如用户先选择了左声道单独播放,在播放了一段时间后,发现左耳机出现故障,听不清内容,此时用户可以将播放声道改为右声道或双声道同时播放,以满足用户的使用需求。
图5为根据本公开一实施例的音频播放方法的流程示意图。
参照图5,在本实施例中,所述音频播放方法包括步骤S50至步骤S70。
在步骤S50处,在播放第一音频时,若接收到音频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用。
在步骤S60处,若所述并发应用属于预设关键应用,则暂停播 放所述第一音频,并在单声道或双声道播放所述第二音频。
在步骤S70处,若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
本实施例中,手机中还可以设置关键应用列表,用户可以将一些重要应用设置为关键应用。对于来自关键应用的并发音频,手机将会优先采用单音频播放的方式进行播放。具体地,例如,用户首先将手机中的电话应用设置为关键应用,而浏览器为非关键应用;在用户使用手机中的音乐应用听音乐时,手机接收到了音频并发指令,此时手机将获取并发的第二音频的来源信息,判断第二音频所属的并发应用是否属于预设关键应用;如果第二音频是打入电话,其所属的并发应用为电话应用,属于预设关键应用,则此时手机会自动采用单音频播放的方式进行播放,即暂停播放第一音频(音乐应用的音乐),转而播放并发应用的第二音频,其中第二音频的播放声道可以根据实际情况进行设置;而如果第二音频是浏览器中的网页视频,其所属的并发应用为浏览器应用,不属于预设关键应用,则此时手机仍会如上述实施例中的步骤S10中输出询问信息,以根据用户的选择确定第一音频和第二音频的音频播放模式。
在一些实施例中,手机的音频播放模式是可以随时根据用户的操作进行切换的,以满足用户在使用过程中不同的使用需求。例如,用户选择以双音频分放的模式,在左声道中播放第一音频,在右声道中播放第二音频;一段时间后,用户不再需要收听第一音频,则可以选择切换至单音频播放的模式,暂停第一音频的播放,将第二音频切换成立体声播放(即同时在左声道和右声道播放第二音频)。又例如,用户选择在左声道中播放第一音频,在右声道中播放第二音频;一段时间后,用户可以将第一音频和第二音频的播放声道进行对调,在左声道中播放第二音频,在右声道中播放第一音频。当然,切换操作可以是在手机中进行,也可以是通过耳机上的预设功能键进行。
在一些实施例中,手机中还可以预设选择时间,在接收到音频并发指令时,如果用户没有在预设选择时间内选择音频播放模式以触发音频播放模式指令,则手机会自动根据预设播放方案确定第一音频 和并发的第二音频的音频播放模式,从而实现音频播放模式的自动选择和音频自动播放。
另一方面,本公开还提供一种音频播放装置。在一些实施例中,所述音频播放装置包括:模式确定模块,其配置为在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;双音频分放模块,其配置为在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
在一些实施例中,所述双音频分放指令包括左耳模式分放指令和右耳模式分放指令,所述双音频分放模块还配置为在接收到左耳模式分放指令时,根据所述左耳模式分放指令在左声道播放所述第一音频,并在右声道播放所述第二音频;所述双音频分放模块还配置为在接收到右耳模式分放指令时,根据所述右耳模式分放指令在右声道播放所述第一音频,并在左声道播放所述第二音频。
在一些实施例中,所述音频播放装置还包括:双音频混放模块,其配置为在接收到双音频混放指令时,根据所述双音频混放指令将所述第一音频和第二音频在相同声道中混合播放。
在一些实施例中,所述音频播放装置,还包括:单音频播放模块,其配置为在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
在一些实施例中,所述音频播放装置还包括:应用检测模块,其配置为在播放第一音频时,若接收到音频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用;第一处理模块,其配置为若所述并发应用属于预设关键应用,则暂停播放所述第一音频,并在单声道或双声道播放所述第二音频;以及第二处理模块,其配置为若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
上述音频播放装置各个模块与上述方法实施例中各步骤相对应, 各个的功能和实现过程在此处不再一一赘述。
另一方面,本公开还提供一种音频播放终端。在一些实施例中,所述音频播放终端包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的音频播放程序,所述音频播放程序被所述处理器执行时,实现以下步骤:在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
在一些实施例中,所述双音频分放指令包括左耳模式分放指令和右耳模式分放指令,所述音频播放程序被所述处理器执行时,还实现以下步骤:在接收到左耳模式分放指令时,根据所述左耳模式分放指令在左声道播放所述第一音频,并在右声道播放所述第二音频;在接收到右耳模式分放指令时,根据所述右耳模式分放指令在右声道播放所述第一音频,并在左声道播放所述第二音频。
在一些实施例中,所述音频播放程序被所述处理器执行时,还实现以下步骤:在接收到双音频混放指令时,根据所述双音频混放指令将所述第一音频和第二音频在相同声道中混合播放;在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
在一些实施例中,所述音频播放程序被所述处理器执行时,还实现以下步骤:在播放第一音频时,若接收到音频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用;若所述并发应用属于预设关键应用,则暂停播放所述第一音频,并在单声道或双声道播放所述第二音频;若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
上述音频播放程序被执行时所实现的方法可参照本公开音频播放方法的各个实施例,此处不再赘述。
另一方面,本公开还提供一种计算机可读存储介质。在一些实施例中,所述计算机可读存储介质上存储有音频播放程序,其中所述音频播放程序被处理器执行时,实现如上述的音频播放方法的步骤。
所述音频播放程序被执行时所实现的方法可参照本公开音频播放方法的各个实施例,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
以上仅为本公开的优选实施例,并非因此限制本公开的专利范围,凡是利用本说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本公开的专利保护范围内。

Claims (16)

  1. 一种音频播放方法,包括以下步骤:
    在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;
    在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
  2. 如权利要求1所述的音频播放方法,其中,所述双音频分放指令包括左耳模式分放指令和右耳模式分放指令,所述在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放的步骤包括:
    在接收到左耳模式分放指令时,根据所述左耳模式分放指令在左声道播放所述第一音频,并在右声道播放所述第二音频;
    在接收到右耳模式分放指令时,根据所述右耳模式分放指令在右声道播放所述第一音频,并在左声道播放所述第二音频。
  3. 如权利要求1所述的音频播放方法,其中,所述在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式的步骤之后,还包括:
    在接收到双音频混放指令时,根据所述双音频混放指令将所述第一音频和第二音频在相同声道中混合播放。
  4. 如权利要求1所述的音频播放方法,其中,所述在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式的步骤之后,还包括:
    在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
  5. 如权利要求1至4中任一项所述的音频播放方法,其中,所 述音频播放方法还包括:
    在播放第一音频时,若接收到音频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用;
    若所述并发应用属于预设关键应用,则暂停播放所述第一音频,并在单声道或双声道播放所述第二音频;
    若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
  6. 一种音频播放终端,包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的音频播放程序,所述音频播放程序被所述处理器执行时,实现以下步骤:
    在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;
    在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
  7. 如权利要求6所述的音频播放终端,其中,所述双音频分放指令包括左耳模式分放指令和右耳模式分放指令,所述音频播放程序被所述处理器执行时,还实现以下步骤:
    在接收到左耳模式分放指令时,根据所述左耳模式分放指令在左声道播放所述第一音频,并在右声道播放所述第二音频;
    在接收到右耳模式分放指令时,根据所述右耳模式分放指令在右声道播放所述第一音频,并在左声道播放所述第二音频。
  8. 如权利要求6所述的音频播放终端,其中,所述音频播放程序被所述处理器执行时,还实现以下步骤:
    在接收到双音频混放指令时,根据所述双音频混放指令将所述第一音频和第二音频在相同声道中混合播放。
  9. 如权利要求6所述的音频播放终端,其中,所述音频播放程序被所述处理器执行时,还实现以下步骤:
    在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
  10. 如权利要求6至9中任一项所述的音频播放终端,其中,所述音频播放程序被所述处理器执行时,还实现以下步骤:
    在播放第一音频时,若接收到音频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用;
    若所述并发应用属于预设关键应用,则暂停播放所述第一音频,并在单声道或双声道播放所述第二音频;
    若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
  11. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有音频播放程序,其中所述音频播放程序被处理器执行时,实现如权利要求1至5中任一项所述的音频播放方法的步骤。
  12. 一种音频播放装置,包括:
    模式确定模块,其配置为在播放第一音频时,若接收到音频并发指令,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式;
    双音频分放模块,其配置为在接收到双音频分放指令时,根据所述双音频分放指令将所述第一音频和第二音频分别在不同的声道中单独播放。
  13. 如权利要求12所述的音频播放装置,其中,所述双音频分放指令包括左耳模式分放指令和右耳模式分放指令,
    所述双音频分放模块还配置为在接收到左耳模式分放指令时, 根据所述左耳模式分放指令在左声道播放所述第一音频,并在右声道播放所述第二音频;并且
    所述双音频分放模块还配置为在接收到右耳模式分放指令时,根据所述右耳模式分放指令在右声道播放所述第一音频,并在左声道播放所述第二音频。
  14. 如权利要求12所述的音频播放装置,还包括:
    双音频混放模块,其配置为在接收到双音频混放指令时,根据所述双音频混放指令将所述第一音频和第二音频在相同声道中混合播放。
  15. 如权利要求12所述的音频播放装置,还包括:
    单音频播放模块,其配置为在接收到单音频播放指令时,根据所述单音频播放指令将暂停播放所述第一音频,并在单声道或双声道播放所述第二音频。
  16. 如权利要求12至15中任一项所述的音频播放装置,还包括:
    应用检测模块,其配置为在播放第一音频时,若接收到音频并发指令,则对并发的第二音频所属的并发应用进行检测,判断所述并发应用是否属于预设关键应用;
    第一处理模块,其配置为若所述并发应用属于预设关键应用,则暂停播放所述第一音频,并在单声道或双声道播放所述第二音频;以及
    第二处理模块,其配置为若所述并发应用不属于预设关键应用,则输出询问信息,以确定所述第一音频和并发的第二音频的音频播放模式。
PCT/CN2018/095259 2017-07-14 2018-07-11 音频播放方法、终端及计算机可读存储介质 WO2019011270A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710578579.3A CN109254748A (zh) 2017-07-14 2017-07-14 音频播放方法、终端及计算机可读存储介质
CN201710578579.3 2017-07-14

Publications (1)

Publication Number Publication Date
WO2019011270A1 true WO2019011270A1 (zh) 2019-01-17

Family

ID=65001047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095259 WO2019011270A1 (zh) 2017-07-14 2018-07-11 音频播放方法、终端及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN109254748A (zh)
WO (1) WO2019011270A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190568A (zh) * 2019-12-30 2020-05-22 上海摩软通讯技术有限公司 一种音量调节方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (zh) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 无线终端和在其中实现多声道复用的方法
WO2014070995A1 (en) * 2012-11-02 2014-05-08 Bose Corporation Providing audio and ambient sound simultaneously in anr headphones
CN106162446A (zh) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 音频播放方法、装置及耳机
CN106341757A (zh) * 2016-09-30 2017-01-18 宇龙计算机通信科技(深圳)有限公司 一种音源同时播放方法、装置及终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600015A (zh) * 2008-06-06 2009-12-09 深圳富泰宏精密工业有限公司 音频播放管理系统及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (zh) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 无线终端和在其中实现多声道复用的方法
WO2014070995A1 (en) * 2012-11-02 2014-05-08 Bose Corporation Providing audio and ambient sound simultaneously in anr headphones
CN106162446A (zh) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 音频播放方法、装置及耳机
CN106341757A (zh) * 2016-09-30 2017-01-18 宇龙计算机通信科技(深圳)有限公司 一种音源同时播放方法、装置及终端

Also Published As

Publication number Publication date
CN109254748A (zh) 2019-01-22

Similar Documents

Publication Publication Date Title
KR102042152B1 (ko) 오디오를 재생하기 위한 제어 방법 및 장치
TWI532359B (zh) 受信呼叫管理方法與系統與資料存取方法
US20150172878A1 (en) Acoustic environments and awareness user interfaces for media devices
WO2016161877A1 (zh) 确定正在播放声音的应用程序的方法及系统
AU2013211541B2 (en) Mobile apparatus and control method thereof
US10140086B2 (en) Electronic device and audio ouputting method thereof
KR20110054609A (ko) 블루투스 디바이스의 원격 제어 방법 및 장치
US10073672B2 (en) Method, system, and computer storage medium for voice control of a split-screen terminal
CN106453032B (zh) 信息推送方法及装置、系统
US20120287283A1 (en) Electronic device with voice prompt function and voice prompt method
CN107911777B (zh) 一种耳返功能的处理方法、装置及移动终端
WO2018040102A1 (zh) 音频处理方法及设备
US9214914B2 (en) Audio device control program, mobile telephone, recording medium, and control method
KR20160047151A (ko) 사용자 단말 장치 및 그 제어 방법
WO2019011270A1 (zh) 音频播放方法、终端及计算机可读存储介质
WO2023011370A1 (zh) 音频播放方法、装置
CN108184193B (zh) 蓝牙播放终端的播放控制方法、蓝牙设备和计算机存储介质
KR101483213B1 (ko) 오디오 출력경로를 제어하는 단말기 및 단말기 간 오디오 출력경로 제어방법
CN113423007B (zh) 多音频播放的控制方法、装置、电子设备及存储介质
CN113992786A (zh) 音频播放方法及装置
CN103945305A (zh) 一种信息处理的方法及电子设备
CN106210762A (zh) 音频播放的方法、源设备、目的设备、电视及终端
CN107391733B (zh) 音乐文件快速分组方法、音乐文件快速分组装置及终端
CN113709652B (zh) 音频播放控制方法和电子设备
US20230297324A1 (en) Audio Control Method, System, and Electronic Device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18832887

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 27.05.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18832887

Country of ref document: EP

Kind code of ref document: A1