CN110851106A - Audio output method and electronic equipment - Google Patents

Audio output method and electronic equipment Download PDF

Info

Publication number
CN110851106A
CN110851106A CN201911049586.XA CN201911049586A CN110851106A CN 110851106 A CN110851106 A CN 110851106A CN 201911049586 A CN201911049586 A CN 201911049586A CN 110851106 A CN110851106 A CN 110851106A
Authority
CN
China
Prior art keywords
application
audio
target
output
input
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.)
Pending
Application number
CN201911049586.XA
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911049586.XA priority Critical patent/CN110851106A/en
Publication of CN110851106A publication Critical patent/CN110851106A/en
Pending legal-status Critical Current

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides an audio output method and electronic equipment, relates to the technical field of communication, and aims to solve the problem that the operation steps for switching audio output are relatively complicated. The method comprises the following steps: receiving a first input of a user under the condition that the audio is output through a first application, wherein the first input is an input for triggering the electronic equipment to run a second application by the user; responding to the first input, outputting audio through the first target application, and displaying an interface and a target control of the second application, wherein the target control is used for triggering the audio output through the second target application; the first target application is a first application, and the second target application is a second application; or the first target application is the second application, and the second target application is the first application.

Description

Audio output method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an audio output method and electronic equipment.
Background
With the popularization of electronic devices, the functions of the electronic devices are more and more, for example, users can listen to songs, watch videos, play games and the like by using the electronic devices.
In general, in the case where a user plays a song using the application 1 in the electronic apparatus, if the user opens the application 2 to play a game, the electronic apparatus pauses the playing of the song in the application 1 and plays music of the game in the application 2. Under the circumstance, if a user needs to play a game while listening to a song, the user needs to manually turn off an audio switch in the game, trigger the electronic device to display the interface of the application 1, and click a play button in the interface to trigger the electronic device to play the song in the application 1 while displaying the game interface, so that the operation steps of switching audio output are complicated.
Disclosure of Invention
The embodiment of the invention provides an audio output method and electronic equipment, and aims to solve the problem that the operation steps for switching audio output are relatively complicated.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an audio output method, where the method includes: receiving a first input of a user under the condition that the audio is output through the first application, wherein the first input is an input for triggering the electronic equipment to run a second application by the user; responding to the first input, outputting audio through the first target application, and displaying an interface and a target control of the second application, wherein the target control is used for triggering and outputting the audio output through the second target application; the first target application is a first application, and the second target application is a second application; or the first target application is the second application, and the second target application is the first application.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: the device comprises a receiving module, an output module and a display module; the receiving module is used for receiving a first input of a user under the condition that the audio is output through the first application, wherein the first input is an input for triggering the electronic equipment to run a second application by the user; an output module for outputting audio through the first target application in response to the first input received by the receiving module; the display module is used for responding to the first input received by the receiving module and displaying an interface and a target control of the second application, and the target control is used for triggering the audio output through the second target application; the first target application is a first application, and the second target application is a second application; or the first target application is the second application, and the second target application is the first application.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the audio output method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the audio output method according to the first aspect.
In the embodiment of the invention, under the condition that the electronic equipment outputs the audio through the first application, the user can input the first input to trigger the electronic equipment to run the second application, and after the electronic equipment receives the first input of the user, the electronic equipment can output the audio through the first target application and display an interface and a target control of the second application. The target control can be used for triggering the electronic equipment to output audio through the second target application by the user, and the second target application can be the second application under the condition that the first target application is the first application; alternatively, in the case where the first target application is the second application, the second target application may be the first application. Therefore, the user can conveniently switch the application needing to output the audio through the operation of the target control. Under the condition that the interface of the second application is displayed and the audio is output through the second application, if the user needs the electronic equipment to stop outputting the audio through the second application and needs the electronic equipment to output the audio through the first application, the user can quickly switch to the first application to output the audio through the target control. Compared with the prior art, the audio switch of the second application is closed in the interface of the second application without triggering the electronic equipment by a user, then the electronic equipment is triggered to switch the first application to the foreground for displaying, the first application is controlled to output audio through operation, the second application is switched to the foreground for displaying, the user directly switches to the first application to output audio through the target control, the switching steps are few, and the operation is more concise and convenient.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an audio output method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a display interface according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first application and the second application, etc. are used to distinguish different applications, rather than to describe a particular order of applications.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the audio output method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the audio output method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the audio output method may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the audio output method provided by the embodiment of the invention by running the software program in the android operating system.
An audio output method according to an embodiment of the present invention is described below with reference to fig. 2. Fig. 2 is a schematic flowchart of an audio output method according to an embodiment of the present invention, and as shown in fig. 2, the audio output method includes S201 and S202:
s201, in the case of outputting audio through a first application, the electronic device receives a first input of a user.
The first input is input for triggering the electronic equipment to run the second application by a user.
Optionally, the audio may be a single audio, or may also be an audio corresponding to the video file, which is not specifically limited in this embodiment of the present invention.
Illustratively, the first application is a player, and the audio output through the first application may be a song played through the first application, or audio corresponding to a video played through the first application (e.g., background music, lines, etc.). The first application is a game application, and the audio output through the first application may be background music of the game, a conversation of a character in the game, or the like. The first application is an instant messaging application, and the audio output by the first application can be received audio sent by other users or audio sent to other users.
S202, responding to the first input, the electronic equipment outputs audio through the first target application, and displays an interface and a target control of the second application, wherein the target control is used for triggering the audio output through the second target application.
The first target application is a first application, and the second target application is a second application. That is, in the case of outputting audio through the first application, if the electronic device receives the first input, the electronic device may keep outputting audio through the first application, and display an interface and a target control of the second application, where the target control may be used to trigger the electronic device to output audio through the second application.
Or the first target application is the second application, and the second target application is the first application. That is, under the condition that the audio is output through the first application, if the electronic device receives the first input, the electronic device may output the audio through the second application, and display an interface and a target control of the second application, where the target control may be used to trigger the electronic device to output the audio through the first application.
Optionally, in the embodiment of the present invention, the target control displayed after receiving the first input may trigger the electronic device to start displaying the target control for the first input, may maintain the displayed target control for the electronic device, or may trigger the electronic device to display the hidden target control for the first input, which is not specifically limited in this embodiment of the present invention.
It should be noted that the specific steps of triggering the electronic device to start displaying the target control by the first input are: the electronic device may trigger the electronic device to begin displaying the target control if the audio has been output by the first application and the user triggers the electronic device to output the audio by the second application.
For example, in S202 described above, the target control may be displayed in a floating manner (for example, a floating button) in the interface of the second application, or may be displayed in an overlapping manner in the interface of the second application, which is not limited in this embodiment of the present invention.
The first application may be the first application for starting the output of the audio by the electronic device, or may not be the first application for starting the output of the audio. If the first application is the first application of the electronic equipment outputting the audio, after receiving the first input, the electronic equipment can start to display the target control; if the first application is not the first application of the electronic equipment outputting the audio, after receiving the first input, the electronic equipment may trigger to display the hidden target control, or keep displaying the target control.
According to the audio output method provided by the embodiment of the invention, under the condition that the electronic equipment outputs the audio through the first application, the user can input the first input to trigger the electronic equipment to run the second application, and after the electronic equipment receives the first input of the user, the audio can be output through the first target application, and the interface and the target control of the second application are displayed. The target control can be used for triggering the electronic equipment to output audio through the second target application by the user, and the second target application can be the second application under the condition that the first target application is the first application; alternatively, in the case where the first target application is the second application, the second target application may be the first application. Therefore, the user can conveniently switch the application needing to output the audio through the operation of the target control. Under the condition that the interface of the second application is displayed and the audio is output through the second application, if the user needs the electronic equipment to stop outputting the audio through the second application and needs the electronic equipment to output the audio through the first application, the user can quickly switch to the first application to output the audio through the target control. Compared with the prior art, the audio switch of the second application is closed in the interface of the second application without triggering the electronic equipment by a user, then the electronic equipment is triggered to switch the first application to the foreground for displaying, the first application is controlled to output audio through operation, the second application is switched to the foreground for displaying, the user directly switches to the first application to output audio through the target control, the switching steps are few, and the operation is more concise and convenient.
Optionally, in a case that a frequency of the audio output by the first application is greater than a frequency of the audio output by the second application, the first target application is the first application, and the second target application is the second application. In the case where the frequency of the audio output by the second application is greater than the frequency of the audio output by the first application, the first target application is the second application, and the second target application is the first application.
It can be understood that the electronic device may determine, according to the historical behavior of the user, that the user selects to preferentially play the audio of a certain type of application for multiple times, and then the electronic device may determine, according to the frequency of the audio output by the application, to preferentially output the audio output by the application with a high frequency when the user sequentially triggers two running applications. For example, a user usually uses a music player (denoted as app 1) to play music and uses a game-like app (denoted as app 2) to play a game, and when the electronic device runs app1, if the user triggers the electronic device to run app2, the electronic device may continue to output audio through app1 and not output audio through app 2; in the case that the electronic device runs the application 2 and outputs audio through the application 2, if the user triggers the electronic device to run the application 1, the electronic device may stop outputting audio through the application 2 and start outputting audio through the application 1.
Based on the scheme, the electronic equipment can preferentially pass through the audio of the frequently used application in the first application and the second application after receiving the first input, so that the number of times of manual selection by a user is reduced, and the use habit of the user is better met.
Optionally, the electronic device can display an identification of an application on the target control in which the audio being output is located. For example, if the application that is outputting audio is a first application, an identification of the first application may be displayed on the target control; if the application that is outputting audio is a second application, an identification of the second application may be displayed on the target control.
Optionally, after the above S202, the audio output method provided in the embodiment of the present invention may further include the following S203 and S204:
s203, the electronic equipment receives a second input of the target control by the user.
For example, the second input may be a click or a long-press input of the target control by the user, and of course, the second input may also be other forms of inputs, which is not specifically limited in this embodiment of the present invention.
And S204, responding to the second input, stopping outputting the audio through the first target application by the electronic equipment, and starting outputting the audio through the second target application.
It can be understood that after the electronic device displays the target control, if the user does not input the target control, the electronic device keeps the first target application to output the audio, and if the user inputs the target control, the electronic device can switch the application of the audio output preferentially through the operation of the user on the target control, so that the user can switch rapidly, other redundant operations are not needed, and the operation is more convenient.
Specifically, if the application of the electronic device that currently outputs the audio is the first application (i.e., the first target application), and the user clicks the target control, the electronic device may stop outputting the audio through the first application and start outputting the audio through the second application (i.e., the second target application); if the user clicks the target control again, the electronic device may stop outputting audio through the second application and start outputting audio through the first application.
Example 1: the electronic device plays the song through the application 1, and after receiving the first input, the electronic device displays the application 2 game screen, and the electronic device can keep playing the song in the application 1 and not play the background music in the application 2. If the user clicks the target control, the electronic equipment stops playing the song in the application 1 and starts playing the background music in the application 2; and if the user clicks the target control again, the electronic equipment stops playing the background music in the application 2 and starts playing the song in the application 1.
Example 2: the electronic device plays the song through the application 1, and after receiving the first input, the electronic device displays the application 2 game screen, and the electronic device can stop playing the song in the application 1 and play the background music in the application 2. If the user clicks the target control, the electronic equipment stops playing the background music in the application 2 and starts playing the song in the application 1; and if the user clicks the target control again, the electronic equipment stops playing the song in the application 1 and starts playing the background music in the application 2.
Based on the scheme, after the electronic equipment displays the target control, the user can rapidly switch the application for outputting the audio through the target control.
Optionally, the audio output method provided in this embodiment of the present invention, after receiving the second input to the target control from the user, may further include the following S205 and S206 before stopping outputting the audio through the first target application and starting outputting the audio through the second target application:
s205, responding to the second input, the electronic equipment displays at least one application identifier, wherein the at least one application identifier comprises an application identifier of the second target application.
Optionally, the at least one application identifier includes an identifier of an application that has been run by the electronic device within a preset time period, and the run application includes an application that has output audio.
It should be noted that the preset time period may be user-defined or default set for the electronic device, and this is not specifically limited in the embodiment of the present invention.
For example, the preset time period may be a time period from the time when the electronic device is turned on to the current time, the preset time period may also be a time period from 0 to 24 points per day, the preset time period may also be a time period from the first time to the current time, and the first time may be a time when the user starts to use the electronic device within a certain time period.
For example, the user does not use the electronic device from 8 am to 12 am, and starts to use the playing audio of the electronic device at 12 am, the first time may be 12 am, and the preset time period is from 12 am to the current time.
Optionally, the electronic device may separately display an application identifier list, or may display the application identifier list beside the target control, and of course, the target control may also include the application identifier list, where the application identifier list includes at least one application identifier as described above.
It should be noted that the at least one application identifier may include a first application that is currently running in the foreground and outputs background music, and the electronic device may output the background music through the first application or may not output the background music through the first application when the at least one application identifier is displayed.
S206, the electronic equipment receives a third input of the application identification of the second target application from the user.
For example, the third input may be an input by the user selecting (e.g., clicking on) an application identification of the second target application.
For example, if the user clicks on the target control, the electronic device may expand the list of application identifications, and after the user selects one of the identifications, the electronic device may cancel displaying the list of application identifications. The electronic device may directly collapse the application identifier list after the user selects one identifier, or may collapse the application identifier list after the user selects one identifier and detects that the target control is clicked again.
Further, S204 described above may be specifically executed by S204a described below:
s204a, in response to the third input, the electronic device stops outputting audio through the first target application and starts outputting audio through the second target application.
Fig. 3 is a schematic diagram of a display interface according to an embodiment of the present invention. As shown in (a) of fig. 3, in the case of displaying the interface of the chess application, the electronic device displays a hover button 31, and if the user clicks the hover button 31, as shown in (b) of fig. 3, the electronic device may display a hover button with a list of application identifications, including the identifications: app1 (chess application), app2, app3, and the like. If the audio is currently output through the chess application, if the user selects the app2, the electronic device pauses outputting the audio through the chess application and starts outputting the audio through the app 2.
Specifically, if the electronic device detects that the user selects the identifier of the second target application, if the second target application runs in the background, the electronic device may directly start outputting the audio through the second target application, for example, the second target application is a music player, before receiving the third input, a play key in the music player is in a paused state, and after receiving the third input, the electronic device may control the play key in the music player to be in a played state. If the second target application is not running, for example, after the user uses the second target application, the electronic device may control the electronic device to close the running process of the second target application, and then the electronic device may control the second target application to run in the background and start outputting audio through the second application, for example, continue playing the corresponding song according to the position of the song that was stopped before the music player was closed.
Of course, the user may also select any other application than the second target application, for example, a third target application, and the electronic device may stop outputting audio through the first target application and start outputting audio through the third target application.
For example, the electronic device may set a mode for preferentially outputting audio, and may record only the identifications of two applications with audio output recently (denoted as mode one), or record the identifications of applications with audio output within a preset time period (denoted as mode two).
In the case of the mode one, if the electronic device displays a target control (for example, a single hover button, which may or may not display an identifier of an application that is outputting audio), the user may switch to output audio of two applications that have audio output recently through the hover button.
In the case of the mode two, if the electronic device displays a target control (for example, a hover button with an application identifier list), the user may trigger to display the application identifier list by operating the hover button, and then select an identifier of an application that needs to output audio from the application identifier list.
For example, a user listens to a book by using a book listening application, then opens a music application to play music, if the music application plays music, if the video player is opened by the user to play a video, the video sound of the video player is assumed to be played, if the user wants to listen to the sound of the book while watching the video in a mute manner, the user only needs to click a hover button, selects the book listening application from a popped application identification list to listen to the sound of the book listening application, and displays a picture in the video player on an interface to continue to watch the silent video.
Based on the scheme, the electronic device can respond to a second input of the user and display at least one application identifier, the user can select an application needing to output audio from the at least one application identifier according to needs, and if the user selects the identifier of the second target application, after selection, the electronic device can stop outputting audio through the first target application and start outputting audio through the second target application selected by the user. When the number of the applications of the output audio frequency, which are triggered to run by the electronic equipment by the user, is large, the displayed at least one application identifier can facilitate the user to quickly select the application needing to output the audio frequency from the multiple applications, and the operation steps are more concise and convenient.
Fig. 4 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device 400 includes: a receiving module 401, an output module 402 and a display module 403; the receiving module 401 is configured to receive a first input of a user when the audio is output through a first application, where the first input is an input that the user triggers the electronic device to run a second application; an output module 402 for outputting audio through the first target application in response to the first input received by the receiving module 401; a display module 403, configured to display, in response to the first input received by the receiving module 401, an interface and a target control of the second application, where the target control is used to trigger output of audio through the second target application; the first target application is a first application, and the second target application is a second application; or the first target application is the second application, and the second target application is the first application.
Optionally, the receiving module 401 is further configured to receive a second input to the target control from the user after the display module 403 displays the target control; the output module 402 is further configured to stop outputting the audio through the first target application and start outputting the audio through the second target application in response to the second input received by the receiving module 401.
Optionally, the display module 403 is further configured to, after the receiving module 401 receives the second input of the target control from the user, display at least one application identifier before the output module 402 stops outputting the audio through the first target application and starts outputting the audio through the second target application, where the at least one application identifier includes an application identifier of the second target application; a receiving module 401, configured to receive a third input of an application identifier of a second target application from a user; the output module 402 is specifically configured to stop outputting the audio through the first target application and start outputting the audio through the second target application in response to a third input.
Optionally, the at least one application identifier includes an identifier of an application that is run by the electronic device within a preset time period, and the run application includes an application that has output audio.
Optionally, in a case that the frequency of the audio output by the first application is greater than the frequency of the audio output by the second application, the first target application is the first application, and the second target application is the second application; alternatively, in a case where the frequency of the audio output by the second application is greater than the frequency of the audio output by the first application, the first target application is the second application, and the second target application is the first application.
The electronic device 400 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described here again to avoid repetition.
According to the electronic device provided by the embodiment of the invention, under the condition that the electronic device outputs the audio through the first application, the user can input the first input to trigger the electronic device to run the second application, and after the electronic device receives the first input of the user, the electronic device can output the audio through the first target application and display the interface and the target control of the second application. The target control can be used for triggering the electronic equipment to output audio through the second target application by the user, and the second target application can be the second application under the condition that the first target application is the first application; alternatively, in the case where the first target application is the second application, the second target application may be the first application. Therefore, the user can conveniently switch the application needing to output the audio through the operation of the target control. Under the condition that the interface of the second application is displayed and the audio is output through the second application, if the user needs the electronic equipment to stop outputting the audio through the second application and needs the electronic equipment to output the audio through the first application, the user can quickly switch to the first application to output the audio through the target control. Compared with the prior art, the audio switch of the second application is closed in the interface of the second application without triggering the electronic equipment by a user, then the electronic equipment is triggered to switch the first application to the foreground for displaying, the first application is controlled to output audio through operation, the second application is switched to the foreground for displaying, the user directly switches to the first application to output audio through the target control, the switching steps are few, and the operation is more concise and convenient.
Fig. 5 is a hardware schematic diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The user input unit 107 is configured to receive a first input of a user when the audio is output through a first application, where the first input is an input that the user triggers the electronic device to run a second application; an audio output unit 103 for outputting audio through the first target application in response to the first input; the display unit 106 is configured to display an interface and a target control of the second application in response to the first input, where the target control is configured to trigger output of audio through the second target application; the first target application is a first application, and the second target application is a second application; or the first target application is the second application, and the second target application is the first application.
According to the electronic device provided by the embodiment of the invention, under the condition that the electronic device outputs the audio through the first application, the user can input the first input to trigger the electronic device to run the second application, and after the electronic device receives the first input of the user, the electronic device can output the audio through the first target application and display the interface and the target control of the second application. The target control can be used for triggering the electronic equipment to output audio through the second target application by the user, and the second target application can be the second application under the condition that the first target application is the first application; alternatively, in the case where the first target application is the second application, the second target application may be the first application. Therefore, the user can conveniently switch the application needing to output the audio through the operation of the target control. Under the condition that the interface of the second application is displayed and the audio is output through the second application, if the user needs the electronic equipment to stop outputting the audio through the second application and needs the electronic equipment to output the audio through the first application, the user can quickly switch to the first application to output the audio through the target control. Compared with the prior art, the audio switch of the second application is closed in the interface of the second application without triggering the electronic equipment by a user, then the electronic equipment is triggered to switch the first application to the foreground for displaying, the first application is controlled to output audio through operation, the second application is switched to the foreground for displaying, the user directly switches to the first application to output audio through the target control, the switching steps are few, and the operation is more concise and convenient.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 5, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an electronic device is further provided in an embodiment of the present invention, and with reference to fig. 5, the electronic device includes a processor 110, a memory 109, and a computer program that is stored in the memory 109 and is executable on the processor 110, and when the computer program is executed by the processor 110, the processes of the foregoing audio output method embodiment are implemented, and the same technical effect can be achieved, and details are not described here again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned audio output method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. An audio output method applied to an electronic device, the method comprising:
receiving a first input of a user under the condition that audio is output through a first application, wherein the first input is an input for triggering the electronic equipment to run a second application by the user;
responding to the first input, outputting audio through a first target application, and displaying an interface and a target control of the second application, wherein the target control is used for triggering the audio output through a second target application;
wherein the first target application is the first application and the second target application is the second application; or, the first target application is the second application, and the second target application is the first application.
2. The method of claim 1, wherein after displaying the target control, the method further comprises:
receiving a second input of the target control by the user;
in response to the second input, ceasing output of audio by the first target application and beginning output of audio by the second target application.
3. The method of claim 2, wherein after receiving the second input to the target control by the user, before stopping audio output by the first target application and starting audio output by the second target application, the method further comprises:
displaying at least one application identification in response to the second input, the at least one application identification comprising an application identification of the second target application;
receiving a third input of an application identification of the second target application from a user;
the stopping of audio output by the first target application and starting audio output by the second target application comprises:
in response to the third input, ceasing to output audio through the first target application and beginning to output audio through the second target application.
4. The method of claim 3, wherein the at least one application identifier comprises an identifier of an application that has been run by the electronic device within a preset time period, and wherein the run application comprises an application that has output audio.
5. The method of claim 1,
in the case that the frequency of the audio output by the first application is greater than the frequency of the audio output by the second application, the first target application is the first application, and the second target application is the second application; alternatively, the first and second electrodes may be,
in a case where a frequency of audio output by the second application is greater than a frequency of audio output by the first application, the first target application is the second application, and the second target application is the first application.
6. An electronic device, characterized in that the electronic device comprises: the device comprises a receiving module, an output module and a display module;
the receiving module is used for receiving a first input of a user under the condition that audio is output through a first application, wherein the first input is an input for triggering the electronic equipment to run a second application by the user;
the output module, configured to output audio through a first target application in response to the first input received by the receiving module;
the display module is used for responding to the first input received by the receiving module, displaying an interface and a target control of the second application, wherein the target control is used for triggering the output of audio through the second target application;
wherein the first target application is the first application and the second target application is the second application; or, the first target application is the second application, and the second target application is the first application.
7. The electronic device of claim 6,
the receiving module is further configured to receive a second input of the target control from the user after the display module displays the target control;
the output module is further configured to stop outputting audio through the first target application and start outputting audio through the second target application in response to the second input received by the receiving module.
8. The electronic device of claim 7,
the display module is further configured to display at least one application identifier in response to the second input received by the receiving module after the receiving module receives the second input of the target control from the user, and before the output module stops outputting audio through the first target application and starts outputting audio through the second target application, the at least one application identifier including an application identifier of the second target application;
the receiving module is used for receiving a third input of the application identification of the second target application from the user;
the output module is specifically configured to stop outputting audio through the first target application and start outputting audio through the second target application in response to the third input.
9. The electronic device of claim 8, wherein the at least one application identifier comprises an identifier of an application that has been run by the electronic device within a preset time period, and wherein the run application comprises an application that has output audio.
10. The electronic device of claim 6,
in the case that the frequency of the audio output by the first application is greater than the frequency of the audio output by the second application, the first target application is the first application, and the second target application is the second application; alternatively, the first and second electrodes may be,
in a case where a frequency of audio output by the second application is greater than a frequency of audio output by the first application, the first target application is the second application, and the second target application is the first application.
11. An electronic device, characterized in that the electronic device comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the audio output method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the audio output method according to one of claims 1 to 5.
CN201911049586.XA 2019-10-31 2019-10-31 Audio output method and electronic equipment Pending CN110851106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911049586.XA CN110851106A (en) 2019-10-31 2019-10-31 Audio output method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911049586.XA CN110851106A (en) 2019-10-31 2019-10-31 Audio output method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110851106A true CN110851106A (en) 2020-02-28

Family

ID=69599153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911049586.XA Pending CN110851106A (en) 2019-10-31 2019-10-31 Audio output method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110851106A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831190A (en) * 2020-07-10 2020-10-27 维沃移动通信有限公司 Music application program control method and device and electronic equipment
WO2023116768A1 (en) * 2021-12-24 2023-06-29 华为技术有限公司 Audio playback method and related apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572081A (en) * 2014-12-17 2015-04-29 联动优势科技有限公司 Method and device for switching control applications
US20150331659A1 (en) * 2014-05-16 2015-11-19 Samsung Electronics Co., Ltd. Electronic device and method of playing music in electronic device
CN105955608A (en) * 2016-04-22 2016-09-21 北京金山安全软件有限公司 Shortcut control method and device and electronic equipment
CN107066231A (en) * 2017-04-28 2017-08-18 维沃移动通信有限公司 A kind of acoustic information player method and mobile terminal
CN108958695A (en) * 2018-06-28 2018-12-07 努比亚技术有限公司 Audio-frequency inputting method, device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150331659A1 (en) * 2014-05-16 2015-11-19 Samsung Electronics Co., Ltd. Electronic device and method of playing music in electronic device
CN104572081A (en) * 2014-12-17 2015-04-29 联动优势科技有限公司 Method and device for switching control applications
CN105955608A (en) * 2016-04-22 2016-09-21 北京金山安全软件有限公司 Shortcut control method and device and electronic equipment
CN107066231A (en) * 2017-04-28 2017-08-18 维沃移动通信有限公司 A kind of acoustic information player method and mobile terminal
CN108958695A (en) * 2018-06-28 2018-12-07 努比亚技术有限公司 Audio-frequency inputting method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831190A (en) * 2020-07-10 2020-10-27 维沃移动通信有限公司 Music application program control method and device and electronic equipment
WO2023116768A1 (en) * 2021-12-24 2023-06-29 华为技术有限公司 Audio playback method and related apparatus

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN110995923B (en) Screen projection control method and electronic equipment
CN110752980B (en) Message sending method and electronic equipment
CN110062105B (en) Interface display method and terminal equipment
CN109407921B (en) Application processing method and terminal device
CN110837327B (en) Message viewing method and terminal
CN110058836B (en) Audio signal output method and terminal equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN111163224B (en) Voice message playing method and electronic equipment
CN110225180B (en) Content input method and terminal equipment
CN109407948B (en) Interface display method and mobile terminal
CN109508136B (en) Display method of application program and mobile terminal
CN109522278B (en) File storage method and terminal equipment
CN110703972B (en) File control method and electronic equipment
CN111124345A (en) Audio source processing method and mobile terminal
CN110752981A (en) Information control method and electronic equipment
CN110597478A (en) Audio output method and electronic equipment
CN111078186A (en) Playing method and electronic equipment
CN110012151B (en) Information display method and terminal equipment
CN109445589B (en) Multimedia file playing control method and terminal equipment
CN109284146B (en) Light application starting method and mobile terminal
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN110851106A (en) Audio output method and electronic equipment
CN111443968A (en) Screenshot method and electronic equipment
CN109068276B (en) Message conversion method and terminal

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