WO2021037074A1 - 音频输出方法及电子设备 - Google Patents

音频输出方法及电子设备 Download PDF

Info

Publication number
WO2021037074A1
WO2021037074A1 PCT/CN2020/111445 CN2020111445W WO2021037074A1 WO 2021037074 A1 WO2021037074 A1 WO 2021037074A1 CN 2020111445 W CN2020111445 W CN 2020111445W WO 2021037074 A1 WO2021037074 A1 WO 2021037074A1
Authority
WO
WIPO (PCT)
Prior art keywords
output mode
audio output
screen
audio
input
Prior art date
Application number
PCT/CN2020/111445
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 WO2021037074A1 publication Critical patent/WO2021037074A1/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/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to an audio output method and electronic equipment.
  • the application of electronic devices has become more and more extensive, and the user's demand for the convenience of using multi-screen electronic devices has increased day by day.
  • the user can perform different operations through the double-sided screen. For example, the user can watch videos or listen to music on different screens.
  • the embodiments of the present application provide an audio output method and electronic device to solve the problem of poor output of multiple audio signals by the existing electronic device.
  • an embodiment of the present application provides an audio output method, which is applied to an electronic device including a first screen and a second screen.
  • the method includes: generating a first audio signal and a second audio signal, the first audio signal Corresponding to the display content of the first screen, the second audio signal corresponds to the display content of the second screen; and according to the first audio output mode, the first audio signal is output, and according to the second audio output mode, the second audio signal is output Audio signal; where the first audio output mode and the second audio output mode are different audio output modes.
  • an embodiment of the present application provides an electronic device.
  • the electronic device has a first screen and a second screen.
  • the electronic device includes a generation module and an output module.
  • the generating module is used to generate a first audio signal and a second audio signal, where the first audio signal corresponds to the display content of the first screen, and the second audio signal corresponds to the display content of the second screen.
  • the output module is used to output the first audio signal generated by the generating module according to the first audio output mode, and output the second audio signal generated by the generating module according to the second audio output mode; wherein, the first audio output mode and the second audio The output modes are different audio output modes.
  • an embodiment of the present application provides an electronic device that includes a processor, a memory, and a computer program that is stored on the memory and can run on the processor.
  • the computer program is executed by the processor, the above-mentioned first The steps of the audio output method in one aspect.
  • an embodiment of the present application provides a computer-readable storage medium storing a computer program on the computer-readable storage medium, and the computer program implements the steps of the audio output method in the first aspect when the computer program is executed by a processor.
  • a first audio signal and a second audio signal can be generated.
  • the first audio signal corresponds to the display content of the first screen of the electronic device
  • the second audio signal corresponds to the display content of the second screen of the electronic device.
  • the display content corresponds; and according to the first audio output mode, the first audio signal is output, and according to the second audio output mode, the second audio signal is output; wherein, the first audio output mode and the second audio output mode are different audio outputs the way.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the application
  • FIG. 2 is one of the schematic diagrams of the audio output method provided by the embodiment of the application.
  • FIG. 3 is a second schematic diagram of an audio output method provided by an embodiment of the application.
  • FIG. 4 is one of the schematic diagrams of the interface of the audio output method application provided by the embodiment of the application.
  • FIG. 5 is the third schematic diagram of an audio output method provided by an embodiment of the application.
  • FIG. 6 is the second schematic diagram of the interface of the audio output method application provided by the embodiment of this application.
  • FIG. 7 is a fourth schematic diagram of an audio output method provided by an embodiment of this application.
  • FIG. 8 is the third schematic diagram of the interface of the audio output method application provided by the embodiment of the application.
  • FIG. 9 is a fifth schematic diagram of an audio output method provided by an embodiment of this application.
  • FIG. 10 is the fourth schematic diagram of the interface of the audio output method application provided by the embodiment of this application.
  • 11 is the fifth schematic diagram of the interface of the audio output method application provided by the embodiment of this application.
  • FIG. 12 is one of the structural schematic diagrams of the electronic device provided by the embodiment of the application.
  • FIG. 13 is the second structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 14 is the third structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 16 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
  • first and second in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • multiple refers to two or more than two, for example, multiple processing units refers to two or more processing units, etc.; multiple An element refers to two or more elements, etc.
  • the embodiments of the present application provide an audio output method and electronic device, which can generate a first audio signal and a second audio signal, the first audio signal corresponds to the display content of the first screen, and the second audio signal corresponds to the second screen. Corresponding to the display content; and according to the first audio output mode, output the first audio signal, and according to the second audio output mode, output the second audio signal; where the first audio output mode and the second audio output mode are different audio output method.
  • different audio output modes are set corresponding to different screens of the electronic device. Therefore, when multiple screens play video or audio, multiple audio signals can be output according to different audio output modes. In this way, in the case of independent operation of the multi-screen electronic device, the multiple screens can respectively correspond to different audio output modes, which avoids the noise effect caused by simultaneously externally outputting multiple sound data in the prior art.
  • the electronic device in the embodiment of the present application may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • a developer can develop a software program that implements the audio output method provided in the embodiment of the application based on the system architecture of the Android operating system as shown in FIG. 1, so that the audio The output method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the audio output method provided in the embodiment of the present application by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present application may be a mobile terminal or a non-mobile terminal.
  • the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant
  • the non-mobile terminal may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc., which are not specifically limited in the embodiment of the present application.
  • the execution subject of the audio output method provided in the embodiments of the present application may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the audio output method, and the specifics may be determined according to actual usage requirements.
  • the embodiments of this application are not limited.
  • the following uses an electronic device as an example to illustrate the audio output method provided in the embodiment of the present application.
  • an embodiment of the present application provides an audio output method.
  • the audio output method may include the following steps 200 to 201.
  • Step 200 The electronic device generates a first audio signal and a second audio signal, where the first audio signal corresponds to the display content of the first screen, and the second audio signal corresponds to the display content of the second screen.
  • the electronic device includes at least two screens
  • the above-mentioned first screen and second screen are different screens of the electronic device.
  • the electronic device may be an electronic device with a foldable screen, or any other possible multi-screen electronic device, which can be specifically determined according to actual use requirements, and the embodiment of the present application does not limit it.
  • each screen of the electronic device can correspond to An audio output method.
  • the first screen and the second screen of the electronic device can respectively correspond to the first audio output mode and the second audio output mode, and the first audio output mode and the second audio output mode are different audio output modes .
  • the above-mentioned wireless earphone may be a Bluetooth earphone, an infrared earphone, or any other earphone that meets actual use requirements, which can be specifically determined according to actual use requirements, and is not limited in the embodiment of the present application.
  • audio output mode includes, but is not limited to, the audio output mode listed above, and may also include any other possible audio output mode, which can be specifically determined according to actual use requirements, and is not limited in the embodiment of the present application.
  • the above-mentioned first audio signal is the audio signal corresponding to the first screen, specifically refers to the audio signal when the running interface of the video application (such as a video player) is displayed on the first screen and the video is played, or refers to The running interface of the audio application program (such as an audio player) is displayed on the first screen and the audio signal when the audio is played.
  • the above-mentioned second audio signal is the audio signal corresponding to the second screen, specifically referring to the audio signal when the running interface of a video application (such as a video player) is displayed on the second screen and the video is played, or refers to It is the audio signal when the running interface of the audio application (such as an audio player) is displayed on the second screen and audio is played.
  • the electronic device when the first screen and the second screen of the electronic device are simultaneously playing video, the electronic device can determine the audio output mode and the audio output mode for the first screen according to the user's selection and input of the audio output mode for different screens. Regarding the audio output mode of the second screen, the electronic device then outputs the audio signal according to the audio output mode corresponding to the first screen and the second screen to avoid mutual interference between audio signals.
  • two screens simultaneously play video as an example for schematic illustration. It is understood that the embodiment of the present application is not limited to this. For example, two screens may play audio at the same time, or one screen may play video and the other Play audio on one screen. The details can be determined according to actual use requirements, and the embodiment of the present application does not limit it.
  • Step 201 The electronic device outputs the first audio signal according to the first audio output mode, and outputs the second audio signal according to the second audio output mode.
  • the electronic device after the electronic device generates the first audio signal and the second audio signal, it can output the first audio signal corresponding to the first screen according to the first audio output mode, and output the first audio signal corresponding to the first screen according to the second audio output mode.
  • the second audio signal corresponding to the second screen That is, the electronic device can output audio signals according to the audio output modes corresponding to the first screen and the second screen, so that mutual interference of signals can be avoided.
  • the electronic device can output the audio signal corresponding to the first screen through the speaker and output through the wired headset
  • the audio signal corresponding to the second screen can avoid mutual interference during the output process of the audio signal corresponding to the first screen and the audio signal corresponding to the second screen.
  • the audio output method provided by the embodiments of the present application can generate a first audio signal and a second audio signal.
  • the first audio signal corresponds to the display content of the first screen
  • the second audio signal corresponds to the display content of the second screen.
  • the first audio output mode and the second audio output mode are different audio output modes.
  • the electronic device may determine the first audio output mode for the first screen and the second audio output mode for the second screen in different ways.
  • the following describes the specific implementation manners of determining the audio output manner by the electronic device through manner 1, manner 2, and manner three respectively.
  • the audio output method provided in the embodiment of the present application may further include the following steps 202 to 205.
  • Step 202 The electronic device receives the user's first input.
  • the above-mentioned first input may be a user's sliding input on the first screen (for example, a single-finger sliding input), or may be a user's combined input on the first screen (for example, a single finger).
  • a user's sliding input on the first screen for example, a single-finger sliding input
  • a user's combined input on the first screen for example, a single finger.
  • Refers to long-press and sliding up input), or any other input that meets actual usage requirements for example, the input on the first screen and the combined input of physical buttons.
  • the specific can be determined according to actual usage requirements.
  • the application examples are not limited.
  • Step 203 In response to the first input, the electronic device displays a first output mode set, and the first output mode set is used to set an audio output mode for the first screen.
  • the first output mode set includes at least two options, and each option is used to indicate an audio output mode.
  • the electronic device may display the first output mode set for setting the audio output mode of the first screen on the first screen.
  • the electronic device may use a floating window to display the above-mentioned first output mode set, or may use other display modes, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present application.
  • the electronic device can manually adjust the floating window to a suitable position in response to the user's drag input on the floating window; the electronic device can adjust the floating window in response to the user's finger extension input or finger pinch input on the floating window Display size; the electronic device can close the floating window in response to the user's long-press input on the floating window.
  • the at least two options in the first output mode set may include a first option, and the first option is used to indicate a preset audio output mode for the second screen.
  • the audio output mode of the second screen may be preset by the user, or may be set by default by the system, and may be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present application.
  • the above-mentioned first option can be grayed out and cannot be selected, so that the user can know that the corresponding audio output mode has been preset for the second screen, and further select other than the audio output mode for the second screen.
  • Audio output mode as the audio output mode for the first screen. In this way, the user can operate on the first screen to trigger the setting of the audio output mode for the first screen.
  • the electronic device may determine whether the second screen is in the video playing state in response to the first input. If the second screen is in the non-video playing state, the electronic device may display a prompt on the first screen Message: "The other screen is not playing video, the current screen can choose any audio output mode".
  • Step 204 The electronic device receives the second input of the user on the first output mode set.
  • the above-mentioned second input may be a user's click input on any option other than the first option in the first output mode set (for example, single-click input or double-click input), or it may be It is the user's sliding input on any option other than the first option in the first output mode set, or can be any other input that meets actual usage requirements, which can be specifically determined according to actual usage requirements, which is not limited in the embodiment of this application .
  • Step 205 The electronic device determines the first audio output mode in response to the second input.
  • the second audio input mode for the second screen has been preset, for example, the second audio output mode for the second screen is predetermined as the audio output mode indicated by the first option. Then, if the user selects any option other than the first option in the first output mode set (referred to as the second option), the electronic device determines the audio output mode indicated by the second option as the first option for the first screen. Audio output mode. In this way, different audio output modes can be set for different screens of the electronic device, thereby avoiding mutual interference between audio signals when audio signals are played on two screens at the same time.
  • the second audio output mode for the second screen is predetermined as the audio output mode indicated by the first option
  • the first audio output mode for the first screen is determined as the audio output mode indicated by the second option. Audio output mode.
  • the electronic device can switch the audio output mode for the first screen to the audio output mode indicated by the currently selected option . In this way, different audio output modes can be set for different screens of the electronic device, thereby avoiding mutual interference between audio signals when audio signals are played on two screens at the same time.
  • step 202-step 205 may be executed first, and then step 200 may be executed; step 200 may be executed first, and then step 202-step 205 may be executed; and step 202-step 205 and step 200 may also be executed at the same time.
  • FIG. 3 is an example of performing step 202 to step 205 and then performing step 200 as an example.
  • step 202 to step 205 are exemplarily described.
  • the electronic device may display the first output mode set 42 for setting the audio output mode for the first screen on the first screen 40, including a “speaker” option, a “wired earphone” option, and a “wireless earphone” option.
  • the "Wired Headphones" option is grayed out and cannot be selected. It is used to indicate that the audio output mode of the second screen is preset to be output through wired headphones, and prompts the user to select other options except for the "Wired Headphones" option. .
  • the electronic device can determine the audio output mode of the first screen 40 as: output through the speaker; and determine the audio output mode of the second screen as : Output through wired earphones. In this way, different audio output modes can be set for the first screen and the second screen, thereby avoiding mutual interference between audio signals when audio signals are played on the two screens at the same time.
  • the audio output method provided in the embodiment of the present application may further include the following steps 206 to 209.
  • Step 206 The electronic device receives the third input of the user.
  • the above-mentioned third input may be the user's sliding input on the first screen (for example, two-finger sliding up input), or may be the user's combined input on the first screen (for example, two-finger sliding input).
  • the user's sliding input on the first screen for example, two-finger sliding up input
  • the user's combined input on the first screen for example, two-finger sliding input
  • Refers to long-press and sliding up input or any other input that meets actual usage requirements (for example, the input on the first screen and the combined input of physical buttons).
  • the specific can be determined according to actual usage requirements.
  • the application examples are not limited.
  • Step 207 In response to the third input, the electronic device displays a second output mode set, and the second output mode set is used to set an audio output mode for the second screen.
  • the second output mode set includes at least two options, and each option is used to indicate an audio output mode.
  • the electronic device may display the second output mode set for setting the audio output mode of the second screen on the first screen.
  • the electronic device may use a floating window to display the above-mentioned second output mode set, or may use other display modes, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present application.
  • the electronic device can manually adjust the floating window to a suitable position in response to the user's drag input on the floating window; the electronic device can adjust the floating window in response to the user's finger extension input or finger pinch input on the floating window Display size; the electronic device can close the floating window in response to the user's long-press input on the floating window.
  • the at least two options in the second output mode set may include a third option, and the third option is used to indicate a preset audio output mode for the first screen.
  • the audio output mode of the first screen may be preset by the user, or may be set by default by the system, which may be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present application.
  • the above third option can be grayed out and cannot be selected, so that the user can know that the corresponding audio output mode has been preset for the first screen, and further select the audio output mode other than the audio output mode for the first screen.
  • the audio output mode is used as the audio output mode for the second screen.
  • the user can operate on the first screen to trigger the setting of the audio output mode for the second screen, and can freely configure the audio output mode of the other screen without turning the electronic device, so that the two screens can play video at the same time without generating audio signals. Interference.
  • Step 208 The electronic device receives the user's fourth input on the second output mode set.
  • the above-mentioned fourth input may be a user's click input on any option other than the third option in the second output mode set (for example, single-click input or double-click input), or it may be It is the user's sliding input on any option other than the third option in the second output mode set, or can be any other input that meets actual use requirements, which can be determined according to actual use requirements, and is not limited in the embodiment of this application .
  • Step 209 The electronic device determines a second audio output mode in response to the fourth input.
  • the first audio input mode for the first screen has been preset, for example, the first audio output mode for the first screen is predetermined as the audio output mode indicated by the third option. Then, if the user selects any option other than the third option in the second output mode set (referred to as the fourth option), the electronic device determines the audio output mode indicated by the fourth option as the second option for the second screen. Audio output mode. In this way, different audio output modes can be set for different screens of the electronic device, thereby avoiding mutual interference between audio signals when audio signals are played on two screens at the same time.
  • the first audio output mode for the first screen is predetermined as the audio output mode indicated by the third option
  • the second audio output mode for the second screen is determined as the fourth option indication The audio output mode. Then, if the user selects any option other than the third option and the fourth option in the second output mode set, the electronic device switches the audio output mode for the second screen to the audio output mode indicated by the currently selected option. In this way, different audio output modes can be set for different screens of the electronic device, thereby avoiding mutual interference between audio signals when audio signals are played on two screens at the same time.
  • step 206-step 209 may be executed first, and then step 200 may be executed; step 200 may be executed first, and then step 206-step 209 may be executed; and step 206-step 209 and step 200 may be executed at the same time.
  • FIG. 5 is an example of performing step 206 to step 209 and then performing step 200 as an example.
  • step 206 to step 209 the specific implementation manner of the foregoing step 206 to step 209 is exemplarily described.
  • the electronic device may display the second output mode set 43 for setting the audio output mode for the second screen on the first screen 40, including the “speaker” option, the “wired earphone” option, and the “wireless earphone” option.
  • the "speaker” option is grayed out and cannot be selected, indicating that the audio output mode of the first screen is preset to output through the speaker, and prompts the user to select other options except the "speaker” option.
  • the electronic device can determine the audio output mode of the first screen as: output through the speaker; and determine the audio output mode of the second screen as : Output through wired earphones. In this way, different audio output modes can be set for the first screen and the second screen, thereby avoiding mutual interference between audio signals when audio signals are played on the two screens at the same time.
  • the audio output method provided in the embodiment of the present application may further include the following steps 210 to 213.
  • the aforementioned step 200 can be specifically implemented by the following step 200c.
  • Step 210 The electronic device receives a fifth input from the user.
  • the above-mentioned fifth input may be the user's sliding input on the first screen (for example, three-finger sliding up input), or may be the user's combined input on the first screen (for example, Three-finger long press and slide up input), or any other input that meets actual usage requirements (such as input on the first screen and a combination of physical keys).
  • the specifics can be determined according to actual usage requirements.
  • the embodiments of this application are not limited.
  • Step 211 In response to the fifth input, the electronic device displays the first output mode set and the second output mode set.
  • the first output mode set is used to set the audio output mode for the first screen
  • the second output mode set is used for Set the audio output mode for the second screen.
  • the first output mode set and the second output mode set respectively include at least two options, and each option is used to indicate an audio output mode.
  • the electronic device may display the first output mode set for setting the audio output mode for the first screen and the first output mode set for the second screen on the first screen.
  • the audio output mode is set to the second set of output modes. In this way, the user can operate on the first screen to trigger the setting of the audio output mode for the first screen and the audio output mode for the second screen.
  • Step 212 The electronic device receives the user's sixth input on the first output mode set and/or the second output mode set.
  • the above-mentioned sixth input may be a click input, or may be a sliding input, or may be any other input that meets actual use requirements, which can be specifically determined according to actual use requirements. limited.
  • the first case Assuming that the first audio output mode for the first screen and the second audio output mode for the second screen are not set, then the above-mentioned sixth input can be the user's set of the first output mode and the second output mode The input of different options in the collection.
  • the second case assuming that the second audio output mode for the second screen is predetermined as the audio output mode indicated by the first option, then the above-mentioned sixth input may be the user's input of any option in the first output mode set.
  • the third case assuming that the first audio output mode for the first screen is predetermined as the audio output mode indicated by the third option, the sixth input may be the user's input of any option in the second output mode set.
  • Step 213 In response to the sixth input, the electronic device determines the first audio output mode and the second audio output mode.
  • the electronic device determines the audio output mode indicated by the fifth option as the first audio output for the first screen Mode, and determine the audio output mode indicated by the sixth option as the second audio output mode for the second screen.
  • the electronic device determines the audio output mode indicated by the seventh option as the second audio for the second screen Output mode, and determine the audio output mode indicated by the eighth option as the first audio output mode for the first screen.
  • the user can select and input any option in the first output mode set.
  • the audio output mode for the second screen has been set to "output audio signal through the speaker”
  • the audio output mode for the second screen will be set to "output audio signal through the speaker”.
  • the audio output mode of the screen is automatically switched to any audio output mode other than "output audio signal through speaker” (for example, "output audio signal through wired earphone").
  • the user can select and input any option in the second output mode set.
  • the audio output mode for the first screen has been set to "output audio signals through wired headphones”
  • it is allowed to set the audio output mode for the second screen to "output audio signals through wired headphones”.
  • the audio output mode of the first screen is automatically switched to any audio output mode other than "output audio signal through wired earphone" (for example, "output audio signal through bluetooth earphone").
  • step 210-step 213 may be executed first, and then step 200 may be executed; step 200 may be executed first, and then step 210-step 213 may be executed; and step 210-step 213 and step 200 may be executed simultaneously.
  • FIG. 7 is taken as an example for performing step 210 to step 213 and then performing step 200 as an example.
  • step 210 to step 213 the specific implementation manner of the foregoing step 210 to step 213 is exemplarily described.
  • the electronic device may display a first output mode set 42 for setting audio output modes for the first screen and a second output mode set 43 for setting audio output modes for the second screen on the first screen 40, both of which include the "speaker" option , "Wired headset” option and “Wireless headset” option, etc.
  • the electronic device highlights (for example, dot filling) the option selected by the user.
  • the "speaker” option is selected to indicate that the audio output mode of the first screen is set to output through the speaker; in the second output mode set 43, the "wired earphone” option is selected Selected to indicate that the audio output mode of the second screen is set to output through wired headphones.
  • the "speaker” option is selected to indicate that the audio output mode of the first screen is set to output through the speaker; in the second output mode set 43, the "wired earphone” option is selected Selected to indicate that the audio output mode of the second screen is set to output through wired headphones.
  • the electronic device can determine the audio output mode of the first screen It is: output through wireless earphones; and the audio output mode of the second screen is determined as: output through wired earphones. In this way, different audio output modes can be set for the first screen and the second screen, thereby avoiding mutual interference between audio signals when audio signals are played on the two screens at the same time.
  • the electronic device can determine the audio output mode of the first screen To: output through wired headphones; and switch the audio output mode of the second screen through wired headphones to output through wireless headphones (the option will automatically cycle down). In this way, different audio output modes can be set for the first screen and the second screen, thereby avoiding mutual interference between audio signals when audio signals are played on the two screens at the same time.
  • the methods for triggering the current screen and the other screen to configure the audio output mode in the above methods 1, 2, and 3 include but are not limited to single-finger sliding up, two-finger sliding up, and three-finger sliding up. It is other gesture operation or physical key input.
  • the user can set the audio transmission mode of the current screen and another screen (such as speakers, wired earphones, wireless earphones, etc.) on the currently operated screen.
  • the two screens use different audio transmission methods to transmit the audio signals corresponding to the respective screens to realize the directional transmission of the audio signals, thereby avoiding mutual interference between the audio signals.
  • the audio output method provided in the embodiment of the present application may further include the following step 214 and step 215.
  • Step 214 The electronic device receives the seventh input of the user for the target screen.
  • the target screen may be the first screen or the second screen, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present application.
  • the seventh input may be the user's sliding input to the left (in the direction of the solid arrow in FIG. 10) or sliding input to the right (in the direction of the dashed arrow in FIG. 10) on the target screen.
  • Direction it can also be the user's combined input on the first screen (for example, the input of long pressing with two fingers and sliding to the left), or it can also be any input that meets the actual needs of use (for example, the input on the first screen)
  • the combination input of physical keys which can be specifically determined according to actual use requirements, and the embodiment of the present application does not limit it.
  • Step 215 In response to the seventh input, the electronic device outputs an audio signal corresponding to the target screen according to the audio output mode after the switching is triggered by the seventh input.
  • the electronic device can switch the audio output mode corresponding to the target screen to the target audio output mode, and output the audio signal corresponding to the target screen according to the target audio output mode .
  • the target audio output mode may be an audio output mode other than the audio output mode for the second screen.
  • the target audio output mode may be an audio output mode other than the audio output mode for the first screen.
  • the audio output mode corresponding to the target screen can be switched according to the user's use needs, so that the operation convenience of the electronic device when the audio signal is played on different screens at the same time can be improved.
  • the audio output method provided in the embodiment of the present application may further include the following steps 216 and 217.
  • the above-mentioned step 214 may be specifically implemented by the following step 214a.
  • Step 216 The electronic device receives the user's eighth input on the priority setting interface.
  • the priority setting interface includes at least two options arranged according to the first priority, and each option is used to indicate an audio output mode.
  • the electronic device displays a priority setting interface.
  • the priority setting interface includes at least two options arranged according to the first priority (for example, "speaker” option, "wired headset” Option and “wireless headset” option).
  • the electronic device displays a priority setting interface 51, where the first priority is a speaker, a wired headset, and a wireless headset.
  • the above-mentioned eighth input may be a user's drag input on one of the at least two options, or a user's click input on a control in the priority setting interface, or may also be For other arbitrary input that meets actual use requirements, the specific one can be determined according to actual use requirements, and the embodiment of the present application does not limit it.
  • Step 217 In response to the eighth input, the electronic device arranges the at least two options according to the second priority.
  • the second priority is different from the first priority.
  • the electronic device can set the priority of multiple audio output modes according to the needs of the user.
  • the electronic device can set the "speaker” option , "Wired headset” option and “Wireless headset” option are arranged according to the second priority, where the second priority is wired headset, speaker and wireless headset.
  • Step 214a The electronic device receives a seventh input from the user on the target screen, and the seventh input is used to trigger the switching of the audio output mode in the order of the second priority.
  • the electronic device can switch the audio output mode for the target screen in the order of the second priority (ie, wired earphones, speakers, and wireless earphones). In this way, the user can switch the audio output mode of the current screen through the seventh input on any screen, so that the two screens adopt different audio output modes, and the video is played at the same time without audio interference, and the operation is simple and convenient.
  • the second priority ie, wired earphones, speakers, and wireless earphones
  • the video playback interface is displayed on the target screen
  • the target screen is not configured with an audio output mode
  • the default configuration is the highest priority audio output mode unoccupied at this time, as shown in Figure 11 (b)
  • the audio output mode with the highest priority is wired headset, that is, the audio output mode of the target screen is wired headset.
  • the user can trigger the electronic device to switch the audio output mode for the target screen to an unoccupied higher priority audio output mode by making a seventh input (such as a left swipe input) on the target screen. If the audio output mode has the highest priority, it will switch to the unoccupied lowest priority audio output mode.
  • a seventh input such as a left swipe input
  • the user can trigger the electronic device to switch the audio output mode for the target screen to an unoccupied lower priority audio output mode by making a seventh input (such as a right swipe input) on the target screen. If the audio output mode has the lowest priority, switch to the unoccupied highest priority audio output mode. As shown in Figure 11 (b), assuming that the current screen occupies “Bluetooth headset” and the other screen occupies “Wired headset", then after the current screen is swiped to the right, the background is ready to switch to lower priority audio output. The Bluetooth headset on the screen is already the lowest priority.
  • the background After the user performs the seventh input on the current screen, the background is ready to switch to the highest priority "wired headset", but the "wired headset” is already occupied by another screen, so the background continues to switch To the "speaker” with a lower priority than the "wired headset". Therefore, the audio output mode of the current screen is switched to "speaker".
  • the audio output mode corresponding to the target screen can be switched in the order of priority according to the user's use needs, so that the operation convenience of the electronic device when simultaneously playing audio signals on different screens can be improved.
  • an embodiment of the present application provides an electronic device 700.
  • the electronic device 700 has a first screen and a second screen.
  • the electronic device 700 may include a generating module 701 and an output module 702.
  • the generating module 701 is configured to generate a first audio signal and a second audio signal, the first audio signal corresponding to the display content of the first screen, and the second audio signal corresponding to the display content of the second screen.
  • the output module 702 is configured to output the first audio signal generated by the generating module 701 according to the first audio output mode, and output the second audio signal generated by the generating module 701 according to the second audio output mode.
  • the first audio output mode and the second audio output mode are different audio output modes.
  • the audio output mode may be output through a speaker, output through a wired earphone, and output through a wireless earphone.
  • the electronic device 700 provided in the embodiment of the present application may further include a first receiving module 703, a display module 704, and a determining module 705.
  • the first receiving module 703 is configured to receive the first input of the user before the output module 702 outputs the first audio signal according to the first audio output mode, and before outputting the second audio signal according to the second audio output mode.
  • the display module 704 is configured to display a first output mode set in response to the first input received by the first receiving module 703.
  • the first output mode set includes at least two options, and each option is used to indicate an audio output mode,
  • the first output mode set is used to set the audio output mode for the first screen.
  • the first receiving module 703 is further configured to receive a second input of the user on the first output mode set displayed by the display module 704.
  • the determining module 705 is configured to determine the foregoing first audio output mode in response to the second input received by the first receiving module 703.
  • the first receiving module 703 is further configured to output the first audio signal according to the first audio output mode by the output module 702, and before outputting the second audio signal according to the second audio output mode, Receive the user's third input.
  • the display module 704 is further configured to display a second output mode set in response to the third input received by the first receiving module 703.
  • the second output mode set includes at least two options, and each option is used to indicate an audio output mode.
  • the second output mode set is used to set the audio output mode for the second screen.
  • the first receiving module 703 is further configured to receive a user's fourth input on the second output mode set displayed by the display module 704, and the determining module 705 is further configured to determine the second input in response to the fourth input received by the first receiving module 703. Audio output mode.
  • the first receiving module 703 is further configured to output the first audio signal according to the first audio output mode by the output module 702, and before outputting the second audio signal according to the second audio output mode, Receive the fifth input from the user.
  • the display module 704 is further configured to display a first output mode set and a second output mode set in response to the fifth input received by the first receiving module 703, the first output mode set and the second output mode set each including at least two Options, each option is used to indicate an audio output mode, the first output mode set is used to set the audio output mode for the first screen, and the second output mode set is used to set the audio output mode for the second screen.
  • the first receiving module 703 is further configured to receive a sixth input of the user on the first output mode set and/or the second output mode set displayed by the display module 704.
  • the determining module 705 is further configured to determine the above-mentioned first audio output mode and second audio output mode in response to the sixth input received by the first receiving module 703.
  • the electronic device 700 provided in the embodiment of the present application may further include a second receiving module 706.
  • the second receiving module 706 is configured to output the audio signal corresponding to the first screen according to the first audio output mode in the output module 702, and output the audio signal corresponding to the second screen according to the second audio output mode, and then receive user feedback
  • the seventh input of the target screen, the target screen is the first screen or the second screen.
  • the output module 702 is further configured to respond to the seventh input received by the second receiving module 706, and output an audio signal corresponding to the target screen according to the audio output mode after the seventh input triggers the switching.
  • the electronic device 700 provided in the embodiment of the present application may further include a control module 707.
  • the second receiving module 706 is further configured to receive the user's eighth input on the priority setting interface before receiving the user's seventh input on the target screen.
  • the priority setting interface includes at least two items arranged according to the first priority. Options, each option is used to indicate an audio output method.
  • the control module 707 is further configured to, in response to the eighth input received by the second receiving module 706, arrange the at least two options according to a second priority, and the second priority is different from the first priority.
  • the second receiving module 706 is specifically configured to receive a seventh input of the user on the target screen, and the seventh input is used to trigger the control module 707 to switch the audio output mode in the order of the second priority.
  • first receiving module and the second receiving module may be the same or different, and may be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present application.
  • the electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • the electronic device provided in the embodiment of the present application can generate a first audio signal and a second audio signal.
  • the first audio signal corresponds to the display content of the first screen of the electronic device
  • the second audio signal corresponds to the second audio signal of the electronic device.
  • the display content of the screen is corresponding; and according to the first audio output mode, output the first audio signal, and according to the second audio output mode, output the second audio signal; wherein, the first audio output mode and the second audio output mode are different Audio output mode.
  • different audio output modes are set corresponding to different screens of the electronic device. Therefore, when multiple screens play video or audio, multiple audio signals can be output according to different audio output modes. In this way, in the case of independent operation of the multi-screen electronic device, the multiple screens can respectively correspond to different audio output modes, which avoids the noise effect caused by simultaneously externally outputting multiple sound data in the prior art.
  • FIG. 16 is a schematic diagram of the hardware structure of an electronic device that implements each embodiment of the present application.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811.
  • a radio frequency unit 801 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices
  • the processor 810 is configured to generate a first audio signal and a second audio signal, the first audio signal corresponds to the display content of the first screen, and the second audio signal corresponds to the display content of the second screen; interface;
  • the unit 808 is configured to output the first audio signal generated by the processor 810 according to the first audio output mode, and output the second audio signal generated by the processor 810 according to the second audio output mode; wherein, the first audio output mode and The second audio output mode is a different audio output mode.
  • the embodiments of the present application provide an electronic device. Since different screens of the electronic device are correspondingly set with different audio output modes, the electronic device can use different audio output modes in the case that multiple screens play video or audio. Output multiple audio signals separately. In this way, in the case of independent operation of the multi-screen electronic device, the multiple screens can respectively correspond to different audio output modes, which avoids the noise effect caused by simultaneously externally outputting multiple sound data in the prior art.
  • the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 810; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 801 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.
  • the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device 800 provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 803 may convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic device 800 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 804 is used to receive audio or video signals.
  • the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
  • the graphics processor 8041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the processed image frame may be displayed on the display unit 806.
  • the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
  • the microphone 8042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
  • the electronic device 800 further includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 8061 and the display panel 8061 when the electronic device 800 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 806 is used to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 807 can be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • the touch panel 8071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
  • the touch panel 8071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed.
  • the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 807 may also include other input devices 8072.
  • other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 8071 can be overlaid on the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 808 is an interface for connecting an external device and the electronic device 800.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 800 or can be used to connect the electronic device 800 to an external device. Transfer data between devices.
  • the memory 809 can be used to store software programs and various data.
  • the memory 809 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 810 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
  • the electronic device 800 may also include a power source 811 (such as a battery) for supplying power to various components.
  • a power source 811 such as a battery
  • the power source 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 800 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device, including a processor 810 as shown in FIG. 16, a memory 809, a computer program stored in the memory 809 and running on the processor 810, and the computer program is
  • the processor 810 implements each process of the foregoing audio output method embodiment when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiments of the present application also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned audio output method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本申请实施例提供了一种音频输出方法及电子设备。该方法应用于包括第一屏和第二屏的电子设备,该方法包括:生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应;并按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。

Description

音频输出方法及电子设备
相关申请的交叉引用
本申请主张在2019年08月29日在中国提交的中国专利申请号No.201910810327.8的优先权,其全部内容通过引用包含于此。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种音频输出方法及电子设备。
背景技术
随着终端技术的不断发展,电子设备的应用越来越广泛,用户对于使用多面屏电子设备的便捷性的需求日益提升。以双面屏电2子设备为例,用户可以通过双面屏分别进行不同的操作,例如用户可以通过不同屏观看视频或听音乐等。
然而,在电子设备的不同屏同时播放视频的情况下,不同屏播放的视频的音频信号会相互混合在一起,导致用户听到的声音是混合后的音频。从而,导致电子设备输出多个音频信号的效果较差。
发明内容
本申请实施例提供一种音频输出方法及电子设备,以解决现有电子设备输出多个音频信号的效果较差的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种音频输出方法,应用于包括第一屏和第二屏的电子设备,该方法包括:生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应;并按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。
第二方面,本申请实施例提供了一种电子设备,电子设备具有第一屏和第二屏,该电子设备包括生成模块和输出模块。生成模块用于生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应。输出模块用于按照第一音频输出方式,输出生成模块生成的第一音频信号,并按照第二音频输出方式,输出生成模块生成的第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述第一方面中的音频输出方法的步骤。
第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述第一方面中的音频输出方法的步骤。
在本申请实施例中,可以生成第一音频信号和第二音频信号,该第一音频信号与电子设备的第一屏的显示内容相对应,该第二音频信号与电子设备的第二屏的显示内容相对应;且按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。通过该方案,由于电子设备的不同屏对应设置不同的音频输出方式,因此,在多个屏均播放视频或音频的情况下,可以按照不同的音频输出方式,分别输出多个音频 信号。如此,可以在多屏电子设备独立操作的情况下,使多个屏幕对应不同的音频输出方式,避免了现有的技术中同时外放多种声音数据而产生噪杂的效果。
附图说明
图1为本申请实施例提供的一种可能的安卓操作系统的架构示意图;
图2为本申请实施例提供的音频输出方法的示意图之一;
图3为本申请实施例提供的音频输出方法的示意图之二;
图4为本申请实施例提供的音频输出方法应用的界面示意图之一;
图5为本申请实施例提供的音频输出方法的示意图之三;
图6为本申请实施例提供的音频输出方法应用的界面示意图之二;
图7为本申请实施例提供的音频输出方法的示意图之四;
图8为本申请实施例提供的音频输出方法应用的界面示意图之三;
图9为本申请实施例提供的音频输出方法的示意图之五;
图10为本申请实施例提供的音频输出方法应用的界面示意图之四;
图11为本申请实施例提供的音频输出方法应用的界面示意图之五;
图12为本申请实施例提供的电子设备的结构示意图之一;
图13为本申请实施例提供的电子设备的结构示意图之二;
图14为本申请实施例提供的电子设备的结构示意图之三;
图15为本申请实施例提供的电子设备的结构示意图之四;
图16为本申请实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本申请的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。
本申请实施例提供一种音频输出方法及电子设备,可以生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应;并按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。通过该方案,由于电子设备的不同屏对应设置不同的音频输出方式,因此,在多个屏均播放视频或音频的情况下,可以按照不同的音频输出方式,分别输出多个音频信号。如此,可以 在多屏电子设备独立操作的情况下,使多个屏幕分别对应不同的音频输出方式,避免了现有的技术中同时外放多种声音数据而产生噪杂的效果。
本申请实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
下面以安卓操作系统为例,介绍一下本申请实施例提供的音频输出方法所应用的软件环境。
如图1所示,为本申请实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。
以安卓操作系统为例,本申请实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本申请实施例提供的音频输出方法的软件程序,从而使得该音频输出方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本申请实施例提供的音频输出方法。
本申请实施例中的电子设备可以为移动终端,也可以为非移动终端。示例性的,移动终端可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例提供的音频输出方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该音频输出方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本申请实施例不作限定。下面以电子设备为例,对本申请实施例提供的音频输出方法进行示例性的说明。
下面结合各个附图对本申请实施例提供的音频输出方法进行示例性的说明。
如图2所示,本申请实施例提供一种音频输出方法,该音频输出方法可以包括下述的步骤200-步骤201。
步骤200、电子设备生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应。
其中,假设电子设备包括至少两个屏,那么上述第一屏和第二屏为电子设备的不同屏。电子设备可以为可折叠屏式的电子设备,也可以为其它任意可能的多面屏电子设备,具体可以根据实际使用需求确定,本申请实施例不作限定。
本申请实施例中,假设电子设备可以支持多种音频输出方式,例如通过扬声器输出音频信号、通过有线耳机输出音频信号,以及通过无线耳机输出音频信号等,那么电子设备的每个屏可以分别对应一种音频输出方式。以双面屏为例,电子设备的第一屏和第二屏可 以分别对应第一音频输出方式和第二音频输出方式,该第一音频输出方式和该第二音频输出方式为不同音频输出方式。
其中,上述无线耳机可以为蓝牙耳机,也可以为红外线耳机,还可以为其它任意满足实际使用需求的耳机,具体可以根据实际使用需求确定,本申请实施例不作限定。
可以理解,上述音频输出方式包括但不限于以上列举的音频输出方式,还可以包括其它任意可能的音频输出方式,具体可以根据实际使用需求确定,本申请实施例不作限定。
其中,上述第一音频信号即与第一屏对应的音频信号,具体指的是在第一屏显示视频应用程序(例如视频播放器)的运行界面且播放视频时的音频信号,或者指的是在第一屏显示音频应用程序(例如音频播放器)的运行界面且播放音频时的音频信号。同理,上述第二音频信号即与第二屏对应的音频信号,具体指的是在第二屏显示视频应用程序(例如视频播放器)的运行界面且播放视频时的音频信号,或者指的是在第二屏显示音频应用程序(例如音频播放器)的运行界面且播放音频时的音频信号。
本申请实施例中,在电子设备的第一屏和第二屏同时播放视频的情况下,电子设备可以根据用户针对不同屏进行音频输出方式的选择输入,确定针对第一屏的音频输出方式和针对第二屏的音频输出方式,然后电子设备再按照第一屏和第二屏各自对应的音频输出方式输出音频信号,以避免音频信号之间互相干扰。
需要说明的是,这里是以两个屏幕同时播放视频为例示意性说明的,可以理解,本申请实施例不限于此,例如还可以是两个屏幕同时播放音频,或者一个屏幕播放视频且另一屏幕播放音频。具体可以根据实际使用需求确定,本申请实施例不作限定。
步骤201、电子设备按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号。
本申请实施例中,电子设备在生成第一音频信号和第二音频信号之后,可以按照第一音频输出方式输出与第一屏对应的第一音频信号,并按照第二音频输出方式输出与第二屏对应的第二音频信号。即,电子设备可以按照第一屏和第二屏各自对应的音频输出方式输出音频信号,如此可以避免信号的互相干扰。
示例性的,假设针对第一屏的音频输出方式为扬声器,以及针对第二屏的音频输出方式为有线耳机,那么电子设备可以通过扬声器输出与第一屏对应的音频信号,并通过有线耳机输出与第二屏对应的音频信号,如此可以避免与第一屏对应的音频信号以及与第二屏对应的音频信号在输出过程中出现的互相干扰。
本申请实施例提供的音频输出方法,可以生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应;并按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。通过该方案,由于电子设备的不同屏对应设置不同的音频输出方式,因此,在多个屏均播放视频或音频的情况下,可以按照不同的音频输出方式,分别输出多个音频信号。如此,可以在多屏电子设备独立操作的情况下,使多个屏幕分别对应不同的音频输出方式,避免了现有的技术中同时外放多种声音数据而产生噪杂的效果。
需要说明的是,本申请实施例中,电子设备可以通过不同的方式,确定针对第一屏的第一音频输出方式和针对第二屏的第二音频输出方式。下面通过方式一、方式二和方式三分别说明电子设备确定音频输出方式的具体实现方式。
方式一
可选地,结合图2,如图3所示,在上述的步骤200之前,本申请实施例提供的音频输出方法还可以包括下述的步骤202-步骤205。
步骤202、电子设备接收用户的第一输入。
可选地,本申请实施例中,上述第一输入可以为用户在第一屏上的滑动输入(例如单指上滑的输入),也可以为用户在第一屏上的组合输入(例如单指长按并向上滑动的输入),或者还可以为其它任意满足实际使用需求的输入(例如在第一屏上的输入和对物理按键的组合输入),具体的可以根据实际使用需求确定,本申请实施例不作限定。
步骤203、电子设备响应于第一输入,显示第一输出方式集合,该第一输出方式集合用于设置针对第一屏的音频输出方式。
其中,该第一输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式。
本申请实施例中,当用户在第一屏上进行第一输入之后,电子设备可以在第一屏显示用于针对第一屏的音频输出方式进行设置的第一输出方式集合。
可选地,电子设备可以采用悬浮窗口的方式显示上述第一输出方式集合,也可以采用其它显示方式,具体可以根据实际使用需求确定,本申请实施例不作限定。其中,电子设备可以响应于用户对该悬浮窗口的拖动输入,将悬浮窗口手动调整到合适的位置;电子设备可以响应于用户对该悬浮窗口的手指伸展输入或手指捏合输入,调节悬浮窗口的显示尺寸;电子设备可以响应于用户对该悬浮窗口的长按输入,关闭悬浮窗口。
其中,第一输出方式集合中的至少两个选项中可以包括第一选项,该第一选项用于指示针对第二屏已预先设置好的音频输出方式。需要说明的是,该第二屏的音频输出方式可以由用户预先设置完成,也可以由系统默认设置完成,具体可以根据实际使用需求确定,本申请实施例不作限定。
可选地,上述第一选项可以置灰显示且不能被选中,如此用户可以获知针对第二屏已经预先设置了对应的音频输出方式,并进一步选择除针对第二屏的音频输出方式之外的音频输出方式,作为针对第一屏的音频输出方式。如此,用户可以在第一屏上操作,触发设置针对第一屏的音频输出方式。
可选地,本申请实施例中,电子设备可以响应于第一输入,判断第二屏是否处于播放视频状态,如果第二屏处于非播放视频状态,则电子设备可以在第一屏上显示提示信息:“另一屏幕未播放视频,当前屏幕可任意选择音频输出方式”。
步骤204、电子设备接收用户在第一输出方式集合上的第二输入。
可选地,本申请实施例中,上述第二输入可以为用户在第一输出方式集合中除第一选项之外的任一选项上的点击输入(例如单击输入或双击输入),或者可以为用户在第一输出方式集合中除第一选项之外的任一选项上的滑动输入,或者可以为其它任意满足实际使用需求的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
步骤205、电子设备响应于第二输入,确定第一音频输出方式。
第一方面,假设针对第二屏的第二音频输入方式已经预先设置好,例如针对第二屏的第二音频输出方式预先确定为第一选项指示的音频输出方式。那么若用户选择第一输出方式集合中除第一选项之外的其它任一选项(称为第二选项),则电子设备将第二选项指示的音频输出方式确定为针对第一屏的第一音频输出方式。如此,可以针对电子设备的不同屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
第二方面,假设针对第二屏的第二音频输出方式预先确定为第一选项指示的音频输出方式,以及如第一方面,针对第一屏的第一音频输出方式确定为第二选项指示的音频输出方式。那么若用户选择第一输出方式集合中除第一选项和第二选项之外的其它任一选项,则电子设备可以将针对第一屏的音频输出方式切换为当前所选选项指示 的音频输出方式。如此,可以针对电子设备的不同屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
需要说明的是,本申请实施例可以不限定步骤202-步骤205和步骤200的执行顺序。即本申请实施例可以先执行步骤202-步骤205,后执行步骤200;也可以先执行步骤200,后执行步骤202-步骤205;还可以同时执行步骤202-步骤205和步骤200。可以理解,上述图3是以先执行步骤202-步骤205后执行步骤200为例示意的。
下面参考图4,示例性的说明上述步骤202-步骤205的具体实现方式。
如图4中的(a)所示,假设电子设备的第一屏40当前显示视频播放界面41,那么若用户在第一屏40上进行第一输入,则如图4中的(b)所示,电子设备可以在第一屏40上显示用于针对第一屏设置音频输出方式的第一输出方式集合42,包括“扬声器”选项、“有线耳机”选项和“无线耳机”选项等。其中,“有线耳机”选项置灰显示且无法被选中,用于指示第二屏的音频输出方式预先被设置为通过有线耳机输出,并提示用户可以选择除“有线耳机”选项之外的其它选项。如图4中的(c)所示,若用户选择“扬声器”选项,则电子设备可以将第一屏40的音频输出方式确定为:通过扬声器输出;并且将第二屏的音频输出方式确定为:通过有线耳机输出。如此,可以针对第一屏和第二屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
方式二
可选地,结合图2,如图5所示,在上述的步骤200之前,本申请实施例提供的音频输出方法还可以包括下述的步骤206-步骤209。
步骤206、电子设备接收用户的第三输入。
可选地,本申请实施例中,上述第三输入可以为用户在第一屏上的滑动输入(例如双指上滑的输入),也可以为用户在第一屏上的组合输入(例如双指长按并向上滑动的输入),或者还可以为其它任意满足实际使用需求的输入(例如在第一屏上的输入和对物理按键的组合输入),具体的可以根据实际使用需求确定,本申请实施例不作限定。
步骤207、电子设备响应于第三输入,显示第二输出方式集合,该第二输出方式集合用于设置针对第二屏的音频输出方式。
其中,该第二输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式。
本申请实施例中,当用户在第一屏上进行第三输入之后,电子设备可以在第一屏显示用于针对第二屏的音频输出方式进行设置的第二输出方式集合。
可选地,电子设备可以采用悬浮窗口的方式显示上述第二输出方式集合,也可以采用其它显示方式,具体可以根据实际使用需求确定,本申请实施例不作限定。其中,电子设备可以响应于用户对该悬浮窗口的拖动输入,将悬浮窗口手动调整到合适的位置;电子设备可以响应于用户对该悬浮窗口的手指伸展输入或手指捏合输入,调节悬浮窗口的显示尺寸;电子设备可以响应于用户对该悬浮窗口的长按输入,关闭悬浮窗口。
其中,第二输出方式集合中的至少两个选项中可以包括第三选项,该第三选项用于指示针对第一屏已预先设置好的音频输出方式。需要说明的是,该第一屏的音频输出方式可以由用户预先设置完成,也可以由系统默认设置完成,具体可以根据实际使用需求确定,本申请实施例不作限定。
可选地,上述第三选项可以置灰显示且不能被选中,如此用户可以获知针对第一屏已经预先设置了对应的音频输出方式,并进一步选择除针对第一屏的音频输出方式之外的音频输出方式,作为针对第二屏的音频输出方式。如此,用户可以在第一屏上 操作,触发设置针对第二屏的音频输出方式,无需翻转电子设备就可以自由配置另一屏幕的音频输出方式,实现两个屏幕同时播放视频而不产生音频信号的干扰。
步骤208、电子设备接收用户在第二输出方式集合上的第四输入。
可选地,本申请实施例中,上述第四输入可以为用户在第二输出方式集合中除第三选项之外的任一选项上的点击输入(例如单击输入或双击输入),或者可以为用户在第二输出方式集合中除第三选项之外的任一选项上的滑动输入,或者可以为其它任意满足实际使用需求的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
步骤209、电子设备响应于第四输入,确定第二音频输出方式。
第一方面,假设针对第一屏的第一音频输入方式已经预先设置好,例如针对第一屏的第一音频输出方式预先确定为第三选项指示的音频输出方式。那么若用户选择第二输出方式集合中除第三选项之外的其它任一选项(称为第四选项),则电子设备将第四选项指示的音频输出方式确定为针对第二屏的第二音频输出方式。如此,可以针对电子设备的不同屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
第二方面,假设针对第一屏的第一音频输出方式预先确定为第三选项指示的音频输出方式,以及如上述第一方面,针对第二屏的第二音频输出方式确定为第四选项指示的音频输出方式。那么若用户选择第二输出方式集合中除第三选项和第四选项之外的其它任一选项,则电子设备将针对第二屏的音频输出方式切换为当前所选选项指示的音频输出方式。如此,可以针对电子设备的不同屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
需要说明的是,本申请实施例可以不限定步骤206-步骤209和步骤200的执行顺序。即本申请实施例可以先执行步骤206-步骤209,后执行步骤200;也可以先执行步骤200,后执行步骤206-步骤209;还可以同时执行步骤206-步骤209和步骤200。可以理解,上述图5是以先执行步骤206-步骤209后执行步骤200为例示意的。
下面参考图6,示例性的说明上述步骤206-步骤209的具体实现方式。
如图6中的(a)所示,假设电子设备的第一屏40当前显示视频播放界面41,那么若用户在第一屏40上进行第三输入,则如图6中的(b)所示,电子设备可以在第一屏40上显示用于针对第二屏设置音频输出方式的第二输出方式集合43,包括“扬声器”选项、“有线耳机”选项和“无线耳机”选项等。其中,“扬声器”选项置灰显示且无法被选中,用于指示第一屏的音频输出方式预先被设置为通过扬声器输出,并提示用户可以选择除“扬声器”选项之外的其它选项。如图6中的(c)所示,若用户选择“有线耳机”选项,则电子设备可以将第一屏的音频输出方式确定为:通过扬声器输出;并且将第二屏的音频输出方式确定为:通过有线耳机输出。如此,可以针对第一屏和第二屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
方式三
可选地,结合图2,如图7所示,在上述的步骤200之前,本申请实施例提供的音频输出方法还可以包括下述的步骤210-步骤213。相应地,上述的步骤200具体可以通过下述的步骤200c实现。
步骤210、电子设备接收用户的第五输入。
可选地,本申请实施例中,上述第五输入可以为用户在第一屏上的滑动输入(例如三指指上滑的输入),也可以为用户在第一屏上的组合输入(例如三指长按并向上滑动的输入),或者还可以为其它任意满足实际使用需求的输入(例如在第一屏上的输入和对物理 按键的组合输入),具体的可以根据实际使用需求确定,本申请实施例不作限定。
步骤211、电子设备响应于第五输入,显示第一输出方式集合和第二输出方式集合,该第一输出方式集合用于设置针对第一屏的音频输出方式,该第二输出方式集合用于设置针对第二屏的音频输出方式。
其中,该第一输出方式集合和该第二输出方式集合中分别包括至少两个选项,每个选项用于指示一种音频输出方式。
本申请实施例中,当用户在第一屏上进行第五输入之后,电子设备可以在第一屏显示用于针对第一屏的音频输出方式进行设置的第一输出方式集合和针对第二屏的音频输出方式进行设置的第二输出方式集合。如此,用户可以在第一屏上操作,触发设置针对第一屏的音频输出方式以及针对第二屏的音频输出方式。
步骤212、电子设备接收用户在第一输出方式集合和/或第二输出方式集合上的第六输入。
可选地,本申请实施例中,上述第六输入可以为点击输入,或者可以为滑动输入,或者可以为其它任意满足实际使用需求的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
第一种情况:假设针对第一屏的第一音频输出方式和针对第二屏的第二音频输出方式均未设置,那么上述第六输入可以为用户在第一输出方式集合和第二输出方式集合中的不同选项的输入。
第二种情况:假设针对第二屏的第二音频输出方式预先确定为第一选项指示的音频输出方式,那么上述第六输入可以为用户在第一输出方式集合中的任一选项的输入。
第三种情况:假设针对第一屏的第一音频输出方式预先确定为第三选项指示的音频输出方式,那么上述第六输入可以为用户在第二输出方式集合中的任一选项的输入。
步骤213、电子设备响应于第六输入,确定第一音频输出方式和第二音频输出方式。
针对上述第一种情况,以用户先对第一输出方式集合输入,然后对第二输出方式集合输入为例,若用户先选择第一输出方式集合中的任一选项(称为第五选项),再选择第二输出方式集合中除第五选项之外的任一选项(称为第六选项),则电子设备将第五选项指示的音频输出方式确定为针对第一屏的第一音频输出方式,并将第六选项指示的音频输出方式确定为针对第二屏的第二音频输出方式。
针对上述第一种情况,再以用户先对第二输出方式集合输入,然后对第一输出方式集合输入为例,若用户先选择第二输出方式集合中的任一选项(称为第七选项),再选择第一输出方式集合中除第七选项之外的任一选项(称为第八选项),则电子设备将第七选项指示的音频输出方式确定为针对第二屏的第二音频输出方式,并将第八选项指示的音频输出方式确定为针对第一屏的第一音频输出方式。
针对上述第二种情况,假设针对第二屏的第二音频输出方式已经预先设置好,那么用户可以对第一输出方式集合中的任一选项进行选择输入。例如,在针对第二屏的音频输出方式已经设置为“通过扬声器输出音频信号”的情况下,允许将针对第一屏的音频输出方式设置为“通过扬声器输出音频信号”,并将针对第二屏的音频输出方式自动切换为除“通过扬声器输出音频信号”之外的其它任一音频输出方式(例如“通过有线耳机输出音频信号”)。
针对上述第三种情况,假设针对第一屏的第一音频输出方式已经预先设置好,那么用户可以对第二输出方式集合中的任一选项进行选择输入。例如,在针对第一屏的音频输出方式已经设置为“通过有线耳机输出音频信号”的情况下,允许将针对第二屏的音频输出方式设置为“通过有线耳机输出音频信号”,并将针对第一屏的音频输 出方式自动切换为除“通过有线耳机输出音频信号”之外的其它任一音频输出方式(例如“通过蓝牙耳机输出音频信号”)。
如此,通过本方案,可以针对电子设备的不同屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
需要说明的是,本申请实施例可以不限定步骤210-步骤213和步骤200的执行顺序。即本申请实施例可以先执行步骤210-步骤213,后执行步骤200;也可以先执行步骤200,后执行步骤210-步骤213;还可以同时执行步骤210-步骤213和步骤200。可以理解,上述图7是以先执行步骤210-步骤213后执行步骤200为例示意的。
下面参考图8,示例性的说明上述步骤210-步骤213的具体实现方式。
如图8中的(a)所示,假设电子设备的第一屏40当前显示视频播放界面41,那么若用户在第一屏40上进行输入,则如图8中的(b)所示,电子设备可以在第一屏40上显示用于针对第一屏设置音频输出方式的第一输出方式集合42和针对第二屏设置音频输出方式的第二输出方式集合43,均包括“扬声器”选项、“有线耳机”选项和“无线耳机”选项等。在用户对第一输出方式集合和第二输出方式集合各自的选项分别选择输入之后,电子设备突出显示(例如圆点填充)用户选中的选项。具体的,在第一输出方式集合42中,“扬声器”选项被选中,用于指示第一屏的音频输出方式被设置为通过扬声器输出;在第二输出方式集合43中,“有线耳机”选项被选中,用于指示第二屏的音频输出方式被设置为通过有线耳机输出。如此,可以针对第一屏和第二屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
结合图8中的(b),如图8中的(c)所示,若用户在第一输出方式集合42中选择“无线耳机”选项,则电子设备可以将第一屏的音频输出方式确定为:通过无线耳机输出;并且将第二屏的音频输出方式确定为:通过有线耳机输出。如此,可以针对第一屏和第二屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
结合图8中的(b),如图8中的(d)所示,若用户在第一输出方式集合42中选择“有线耳机”选项,则电子设备可以将第一屏的音频输出方式确定为:通过有线耳机输出;并且将第二屏的音频输出方式通过有线耳机输出从切换为通过无线耳机输出(选项自动循环下移)。如此,可以针对第一屏和第二屏,设置不同的音频输出方式,从而可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
需要说明的是,上述方式一、方式二和方式三中触发当前屏幕和另一屏幕配置音频输出方式的方法,包括但不限于单指上滑、双指上滑和三指上滑,还可以是其他手势操作或者实体按键输入。
综合上述的方式一、方式二和方式三,用户可以在当前所操作的屏幕设置当前屏幕和另一屏幕的音频传输方式(如扬声器、有线耳机、无线耳机等)。两个屏幕采用不同的音频传输方式传输各自屏幕对应的音频信号,实现音频信号的定向传输,从而可以避免音频信号之间相互干扰。
可选地,结合图2,如图9所示,在上述的步骤201之后,本申请实施例提供的音频输出方法还可以包括下述的步骤214和步骤215。
步骤214、电子设备接收用户针对目标屏的第七输入。
其中,该目标屏可以为第一屏或第二屏,具体可以根据实际使用需求确定,本申请实施例不作限定。
可选地,本申请实施例中,上述第七输入可以为用户在目标屏上的向左滑动输入(如图10中实线箭头的方向)或向右滑动输入(如图10中虚线箭头的方向),也可以为用户 在第一屏上的组合输入(例如两指长按并向左滑动的输入),或者还可以为其它任意满足实际使用需求的输入(例如在第一屏上的输入和对物理按键的组合输入),具体的可以根据实际使用需求确定,本申请实施例不作限定。
步骤215、电子设备响应于第七输入,按照第七输入触发切换后的音频输出方式,输出与目标屏对应的音频信号。
本申请实施例中,在用户针对目标屏进行第七输入之后,电子设备可以将目标屏对应的音频输出方式切换为目标音频输出方式,并按照目标音频输出方式,输出与目标屏对应的音频信号。
本申请实施例中,假设目标屏为第一屏,那么目标音频输出方式可以为除针对第二屏的音频输出方式之外的一个音频输出方式。同样,假设目标屏为第二屏,那么目标音频输出方式可以为除针对第一屏的音频输出方式之外的一个音频输出方式。如此,可以针对不同屏,设置或切换为不同的音频输出方式,可以避免在两个屏幕同时播放音频信号的情况下,音频信号之间相互干扰。
通过该方案,可以根据用户的使用需求,对目标屏对应的音频输出方式进行切换,从而可以提升电子设备在不同屏同时播放音频信号时的操作便捷性。
可选地,在上述的步骤214之前,本申请实施例提供的音频输出方法还可以包括下述的步骤216和步骤217。相应的,上述的步骤214具体可以通过下述的步骤214a实现。
步骤216、电子设备接收用户在优先级设置界面上的第八输入。
其中,该优先级设置界面中包括按照第一优先级排列的至少两个选项,每个选项用于指示一种音频输出方式。
具体的,在用户触发开启音频输出配置功能之后,电子设备显示优先级设置界面,该优先级设置界面中包括按照第一优先级排列的至少两个选项(例如“扬声器”选项、“有线耳机”选项和“无线耳机”选项)。例如,如图11中的(a)所示,电子设备显示优先级设置界面51,其中第一优先级为扬声器、有线耳机和无线耳机。
可选地,本申请实施例中,上述第八输入可以为用户对至少两个选项中的一个选项的拖动输入,也可以为用户对优先级设置界面中的控件的点击输入,或者还可以为其它任意满足实际使用需求的输入,具体的可以根据实际使用需求确定,本申请实施例不作限定。
步骤217、电子设备响应于第八输入,将至少两个选项按照第二优先级排列。
其中,该第二优先级与第一优先级不同。电子设备可以根据用户的需要,设置多个音频输出方式的优先级。
如图11中的(a)所示,若用户对“扬声器”选项进行拖动输入(如虚线所示方向),则如图11中的(b)所示,电子设备可以将“扬声器”选项、“有线耳机”选项和“无线耳机”选项按照第二优先级排列,其中,第二优先级为有线耳机、扬声器和无线耳机。
步骤214a、电子设备接收用户针对目标屏的第七输入,该第七输入用于触发按照第二优先级的顺序切换音频输出方式。
本申请实施例中,若用户针对目标屏进行第七输入,则电子设备可以按照第二优先级的顺序(即有线耳机、扬声器和无线耳机)切换针对目标屏的音频输出方式。如此,用户可以在任一屏幕上通过第七输入,切换当前屏幕的音频输出方式,实现两个屏幕采用不同音频输出方式,同时播放视频而不产生音频的干扰,操作简单方便。
一方面,在目标屏显示视频播放界面时,若该目标屏未配置音频输出方式,则默认配置为此时未占用的最高优先级的音频输出方式,如图11中的(b)所示,最高优先级的音频输出方式为有线耳机,即目标屏的音频输出方式为有线耳机。
另一方面,用户可以通过在目标屏上进行第七输入(例如左滑输入),触发电子设备将针对目标屏的音频输出方式切换为未占用的更高优先级音频输出方式,若当前屏的音频输出方式已是最高优先级,则切换为未占用的最低优先级音频输出方式。如图11中的(b)所示,假设当前屏占用“有线耳机”,另一屏占用“无线耳机”,那么在用户在当前屏进行第七输入之后,后台准备切换到更高优先级的音频输出方式,由于当前屏占用的“有线耳机”已经是最高优先级,则后台准备切换到最低优先级的“蓝牙耳机”,但由于“蓝牙耳机”已经被另一屏占用,因此后台继续切换到比“蓝牙耳机”更高优先级的“扬声器”。因此,当前屏的音频输出方式切换为“扬声器”。
再一方面,用户可以通过在目标屏上进行第七输入(例如右滑输入),触发电子设备将针对目标屏的音频输出方式切换为未占用的更低优先级音频输出方式,若当前屏的音频输出方式已是最低优先级,则切换为未占用的最高优先级音频输出方式。如图11中的(b)假设当前屏占用“蓝牙耳机”,另一屏占用“有线耳机”,那么在当前屏幕单指右滑后,后台准备切换到更低优先级的音频输出,由于当前屏幕的蓝牙耳机已经是最低优先级,在用户在当前屏进行第七输入之后,后台准备切换到最高优先级的“有线耳机”,但“有线耳机”已经被另一屏占用,所以后台继续切换到比“有线耳机”更低优先级的“扬声器”。因此,当前屏的音频输出方式切换为“扬声器”。
通过该方案,可以根据用户的使用需求,对目标屏对应的音频输出方式按照优先级的顺序进行切换,从而可以提升电子设备在不同屏同时播放音频信号时的操作便捷性。
如图12所示,本申请实施例提供一种电子设备700,该电子设备700具有第一屏和第二屏。该电子设备700可以包括生成模块701和输出模块702。生成模块701用于生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应。输出模块702用于按照第一音频输出方式,输出生成模块701生成的第一音频信号,并按照第二音频输出方式,输出生成模块701生成的第二音频信号。其中,该第一音频输出方式和第二音频输出方式为不同音频输出方式。示例性的,音频输出方式可以为通过扬声器输出、通过有线耳机输出,以及通过无线耳机输出。
可选地,结合图12,如图13所示,本申请实施例提供的电子设备700还可以包括第一接收模块703、显示模块704和确定模块705。第一接收模块703用于在输出模块702按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号之前,接收用户的第一输入。显示模块704用于响应于第一接收模块703接收的第一输入,显示第一输出方式集合,该第一输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式,该第一输出方式集合用于设置针对第一屏的音频输出方式。第一接收模块703还用于接收用户在显示模块704显示的第一输出方式集合上的第二输入。确定模块705用于响应于第一接收模块703接收的第二输入,确定上述第一音频输出方式。
可选地,本申请实施例中,第一接收模块703还用于在输出模块702按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号之前,接收用户的第三输入。显示模块704还用于响应于第一接收模块703接收的第三输入,显示第二输出方式集合,该第二输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式,该第二输出方式集合用于设置针对第二屏的音频输出方式。第一接收模块703还用于接收用户在显示模块704显示的第二输出方式集合上的第四输入、确定模块705还用于响应于第一接收模块703接收的第四输入,确定上述第二音频输出方式。
可选地,本申请实施例中,第一接收模块703还用于在输出模块702按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号之前,接收用户的第五输入。显示模块704还用于响应于第一接收模块703接收的第五输入, 显示第一输出方式集合和第二输出方式集合,该第一输出方式集合和第二输出方式集合中分别包括至少两个选项,每个选项用于指示一种音频输出方式,该第一输出方式集合用于设置针对第一屏的音频输出方式,该第二输出方式集合用于设置针对第二屏的音频输出方式。第一接收模块703还用于接收用户在显示模块704显示的第一输出方式集合和/或第二输出方式集合上的第六输入。确定模块705还用于响应于第一接收模块703接收的第六输入,确定上述第一音频输出方式和第二音频输出方式。
可选地,结合图12,如图14所示,本申请实施例提供的电子设备700还可以包括第二接收模块706。第二接收模块706用于在输出模块702按照第一音频输出方式,输出与第一屏对应的音频信号,并按照第二音频输出方式,输出与第二屏对应的音频信号之后,接收用户针对目标屏的第七输入,该目标屏为第一屏或第二屏。输出模块702还用于响应于第二接收模块706接收的第七输入,按照第七输入触发切换后的音频输出方式,输出与目标屏对应的音频信号。
可选地,本申请实施例中,结合图14,如图15所示,本申请实施例提供的电子设备700还可以包括控制模块707。第二接收模块706还用于在接收用户针对目标屏的第七输入之前,接收用户在优先级设置界面上的第八输入,该优先级设置界面中包括按照第一优先级排列的至少两个选项,每个选项用于指示一种音频输出方式。控制模块707,还用于响应于第二接收模块706接收的第八输入,将该至少两个选项按照第二优先级排列,该第二优先级与第一优先级不同。第二接收模块706具体用于接收用户针对目标屏的第七输入,该第七输入用于触发控制模块707按照第二优先级的顺序切换音频输出方式。
需要说明的是,上述第一接收模块和第二接收模块可以相同,也可以不同,具体可以根据实际使用需求确定,本申请实施例不作限定。
本申请实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本申请实施例提供的电子设备,可以生成第一音频信号和第二音频信号,该第一音频信号与电子设备的第一屏的显示内容相对应,该第二音频信号与电子设备的第二屏的显示内容相对应;并按照第一音频输出方式,输出第一音频信号,并按照第二音频输出方式,输出第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。通过该方案,由于电子设备的不同屏对应设置不同的音频输出方式,因此,在多个屏均播放视频或音频的情况下,可以按照不同的音频输出方式,分别输出多个音频信号。如此,可以在多屏电子设备独立操作的情况下,使多个屏幕分别对应不同的音频输出方式,避免了现有的技术中同时外放多种声音数据而产生噪杂的效果。
图16为实现本申请各个实施例的一种电子设备的硬件结构示意图。如图16所示,该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图16中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器810,用于生成第一音频信号和第二音频信号,该第一音频信号与第一屏的显示内容相对应,该第二音频信号与第二屏的显示内容相对应;接口单元808,用于按照第一音频输出方式,输出处理器810生成的第一音频信号,并按照第二音频输出方式,输出处理器810生成的第二音频信号;其中,第一音频输出方式和第二音频输出方式为不同音频输出方式。
本申请实施例提供一种电子设备,由于电子设备的不同屏对应设置不同的音频输出方式,因此,在多个屏均播放视频或音频的情况下,该电子设备可以按照不同的音频输出方式,分别输出多个音频信号。如此,可以在多屏电子设备独立操作的情况下,使多个屏幕分别对应不同的音频输出方式,避免了现有的技术中同时外放多种声音数据而产生噪杂的效果。
应理解的是,本申请实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。
电子设备800通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与电子设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(graphics processing unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。
电子设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在电子设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板8061。
用户输入单元807可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、 功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图16中,触控面板8071与显示面板8061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元808为外部装置与电子设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备800内的一个或多个元件或者可以用于在电子设备800和外部装置之间传输数据。
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器810是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器810可包括一个或多个处理单元;可选地,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
电子设备800还可以包括给各个部件供电的电源811(比如电池),可选地,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备800包括一些未示出的功能模块,在此不再赘述。
可选地,本申请实施例还提供一种电子设备,包括如图16所示的处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述音频输出方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述音频输出方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者 是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例公开的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (14)

  1. 一种音频输出方法,应用于具有第一屏和第二屏的电子设备,所述方法包括:
    生成第一音频信号和第二音频信号,所述第一音频信号与所述第一屏的显示内容相对应,所述第二音频信号与所述第二屏的显示内容相对应;
    按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号;
    其中,所述第一音频输出方式和所述第二音频输出方式为不同音频输出方式。
  2. 根据权利要求1所述的方法,其中,在按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之前,所述方法还包括:
    接收用户的第一输入;
    响应于所述第一输入,显示第一输出方式集合,所述第一输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式,所述第一输出方式集合用于设置针对所述第一屏的音频输出方式;
    接收用户在所述第一输出方式集合上的第二输入;
    响应于所述第二输入,确定所述第一音频输出方式。
  3. 根据权利要求1所述的方法,其中,在按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之前,所述方法还包括:
    接收用户的第三输入;
    响应于所述第三输入,显示第二输出方式集合,所述第二输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式,所述第二输出方式集合用于设置针对所述第二屏的音频输出方式;
    接收用户在所述第二输出方式集合上的第四输入;
    响应于所述第四输入,确定所述第二音频输出方式。
  4. 根据权利要求1所述的方法,其中,在按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之前,所述方法还包括:
    接收用户的第五输入;
    响应于所述第五输入,显示第一输出方式集合和第二输出方式集合,所述第一输出方式集合和所述第二输出方式集合中分别包括至少两个选项,每个选项用于指示一种音频输出方式,所述第一输出方式集合用于设置针对所述第一屏的音频输出方式,所述第二输出方式集合用于设置针对所述第二屏的音频输出方式;
    接收用户在所述第一输出方式集合和/或所述第二输出方式集合上的第六输入;
    响应于所述第六输入,确定所述第一音频输出方式和所述第二音频输出方式。
  5. 根据权利要求1所述的方法,其中,在按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之后,所述方法还包括:
    接收用户针对目标屏的第七输入,所述目标屏为所述第一屏或所述第二屏;
    响应于所述第七输入,按照所述第七输入触发切换后的音频输出方式,输出与所述目标屏对应的音频信号。
  6. 根据权利要求5所述的方法,其中,在接收用户针对目标屏的第七输入之前,所述方法还包括:
    接收用户在优先级设置界面上的第八输入,所述优先级设置界面中包括按照第一优先级排列的至少两个选项,每个选项用于指示一种音频输出方式;
    响应于所述第八输入,将所述至少两个选项按照第二优先级排列,所述第二优先级与所述第一优先级不同;
    所述接收用户针对目标屏的第七输入,包括:
    接收用户针对目标屏的第七输入,所述第七输入用于触发按照所述第二优先级的顺序切换音频输出方式。
  7. 一种电子设备,其中,所述电子设备具有第一屏和第二屏,所述电子设备包括生成模块和输出模块;
    所述生成模块,用于生成第一音频信号和第二音频信号,所述第一音频信号与所述第一屏的显示内容相对应,所述第二音频信号与所述第二屏的显示内容相对应;
    所述输出模块,用于按照第一音频输出方式,输出所述生成模块生成的所述第一音频信号,并按照第二音频输出方式,输出所述生成模块生成的所述第二音频信号;
    其中,所述第一音频输出方式和所述第二音频输出方式为不同音频输出方式。
  8. 根据权利要求7所述的电子设备,其中,所述电子设备还包括第一接收模块、显示模块和确定模块;
    所述第一接收模块,用于在所述输出模块按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之前,接收用户的第一输入;
    所述显示模块,用于响应于所述第一接收模块接收的所述第一输入,显示第一输出方式集合,所述第一输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式,所述第一输出方式集合用于设置针对所述第一屏的音频输出方式;
    所述第一接收模块,还用于接收用户在所述显示模块显示的所述第一输出方式集合上的第二输入;
    所述确定模块,用于响应于所述第一接收模块接收的所述第二输入,确定所述第一音频输出方式。
  9. 根据权利要求8所述的电子设备,其中,所述第一接收模块,还用于在所述输出模块按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之前,接收用户的第三输入;
    所述显示模块,还用于响应于所述第一接收模块接收的所述第三输入,显示第二输出方式集合,所述第二输出方式集合中包括至少两个选项,每个选项用于指示一种音频输出方式,所述第二输出方式集合用于设置针对所述第二屏的音频输出方式;
    所述第一接收模块,还用于接收用户在所述显示模块显示的所述第二输出方式集合上的第四输入;
    所述确定模块,还用于响应于所述第一接收模块接收的所述第四输入,确定所述第二音频输出方式。
  10. 根据权利要求9所述的电子设备,其中,所述第一接收模块,还用于在所述输出模块按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之前,接收用户的第五输入;
    所述显示模块,还用于响应于所述第一接收模块接收的所述第五输入,显示第一输出方式集合和第二输出方式集合,所述第一输出方式集合和所述第二输出方式集合中分别包括至少两个选项,每个选项用于指示一种音频输出方式,所述第一输出方式集合用于设置针对所述第一屏的音频输出方式,所述第二输出方式集合用于设置针对所述第二屏的音频输出方式;
    所述第一接收模块,还用于接收用户在所述显示模块显示的所述第一输出方式集合和/或所述第二输出方式集合上的第六输入;
    所述确定模块,还用于响应于所述第一接收模块接收的所述第六输入,确定所述第一音频输出方式和所述第二音频输出方式。
  11. 根据权利要求7所述的电子设备,其中,所述装置还包括第二接收模块;
    所述第二接收模块,用于在所述输出模块按照第一音频输出方式,输出所述第一音频信号,并按照第二音频输出方式,输出所述第二音频信号之后,接收用户针对目标屏的第七输入,所述目标屏为所述第一屏或所述第二屏;
    所述输出模块,还用于响应于所述第二接收模块接收的所述第七输入,按照所述第七输入触发切换后的音频输出方式,输出与所述目标屏对应的音频信号。
  12. 根据权利要求11所述的电子设备,其中,所述电子设备还包括控制模块;
    所述第二接收模块,还用于在接收用户针对目标屏的第七输入之前,接收用户在优先级设置界面上的第八输入,所述优先级设置界面中包括按照第一优先级排列的至少两个选项,每个选项用于指示一种音频输出方式;
    所述控制模块,用于响应于所述第二接收模块接收的所述第八输入,将所述至少两个选项按照第二优先级排列,所述第二优先级与所述第一优先级不同;
    所述第二接收模块,具体用于接收用户针对目标屏的第七输入,所述第七输入用于触发所述控制模块按照所述第二优先级的顺序切换音频输出方式。
  13. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的音频输出方法的步骤。
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的音频输出方法的步骤。
PCT/CN2020/111445 2019-08-29 2020-08-26 音频输出方法及电子设备 WO2021037074A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910810327.8A CN110597478A (zh) 2019-08-29 2019-08-29 一种音频输出方法及电子设备
CN201910810327.8 2019-08-29

Publications (1)

Publication Number Publication Date
WO2021037074A1 true WO2021037074A1 (zh) 2021-03-04

Family

ID=68856331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/111445 WO2021037074A1 (zh) 2019-08-29 2020-08-26 音频输出方法及电子设备

Country Status (2)

Country Link
CN (1) CN110597478A (zh)
WO (1) WO2021037074A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597478A (zh) * 2019-08-29 2019-12-20 维沃移动通信有限公司 一种音频输出方法及电子设备
CN111459456B (zh) * 2020-04-07 2023-03-14 维沃移动通信有限公司 一种音频的控制方法及电子设备
CN111756893A (zh) * 2020-05-29 2020-10-09 维沃移动通信有限公司 音频输出方法、电子设备及介质
CN116761156B (zh) * 2023-08-23 2023-11-14 腾讯科技(深圳)有限公司 音频处理方法、装置和存储介质及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594422A (zh) * 2008-05-28 2009-12-02 鸿富锦精密工业(深圳)有限公司 可选择音频信号输出方式的移动终端
CN104301782A (zh) * 2014-10-20 2015-01-21 三星电子(中国)研发中心 用于输出音频的方法、装置和终端
US20170161014A1 (en) * 2014-06-27 2017-06-08 Kabushiki Kaisha Toshiba Electronic device and method
CN107526565A (zh) * 2017-08-31 2017-12-29 珠海格力电器股份有限公司 一种界面显示控制方法、移动终端
CN109165004A (zh) * 2018-08-16 2019-01-08 努比亚技术有限公司 双屏终端音频输出方法、终端及计算机可读存储介质
CN110597478A (zh) * 2019-08-29 2019-12-20 维沃移动通信有限公司 一种音频输出方法及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100403655C (zh) * 2004-09-21 2008-07-16 华为技术有限公司 一种音频输出通道切换装置及方法
KR102141044B1 (ko) * 2012-12-03 2020-08-04 삼성전자주식회사 복수의 터치스크린을 가지는 휴대 장치 및 복수의 터치스크린을 가지는 휴대 장치의 사운드 출력방법
US20160132285A1 (en) * 2014-11-12 2016-05-12 Blackberry Limited Portable electronic device including touch-sensitive display and method of controlling audio output
CN108958695B (zh) * 2018-06-28 2023-10-20 努比亚技术有限公司 音频输出方法、装置及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594422A (zh) * 2008-05-28 2009-12-02 鸿富锦精密工业(深圳)有限公司 可选择音频信号输出方式的移动终端
US20170161014A1 (en) * 2014-06-27 2017-06-08 Kabushiki Kaisha Toshiba Electronic device and method
CN104301782A (zh) * 2014-10-20 2015-01-21 三星电子(中国)研发中心 用于输出音频的方法、装置和终端
CN107526565A (zh) * 2017-08-31 2017-12-29 珠海格力电器股份有限公司 一种界面显示控制方法、移动终端
CN109165004A (zh) * 2018-08-16 2019-01-08 努比亚技术有限公司 双屏终端音频输出方法、终端及计算机可读存储介质
CN110597478A (zh) * 2019-08-29 2019-12-20 维沃移动通信有限公司 一种音频输出方法及电子设备

Also Published As

Publication number Publication date
CN110597478A (zh) 2019-12-20

Similar Documents

Publication Publication Date Title
WO2021098678A1 (zh) 投屏控制方法及电子设备
WO2021104365A1 (zh) 对象分享方法及电子设备
US11496835B2 (en) Speaker control method and mobile terminal
WO2021082741A1 (zh) 显示方法及电子设备
WO2021037074A1 (zh) 音频输出方法及电子设备
WO2021083087A1 (zh) 截屏方法及终端设备
WO2021204045A1 (zh) 音频的控制方法及电子设备
WO2020186964A1 (zh) 音频信号的输出方法及终端设备
WO2020238449A1 (zh) 通知消息的处理方法及终端
WO2021104230A1 (zh) 同步方法及电子设备
WO2020151525A1 (zh) 消息发送方法及终端设备
WO2021083256A1 (zh) 触控响应方法及电子设备
US11354017B2 (en) Display method and mobile terminal
WO2021109961A1 (zh) 快捷标识生成方法、电子设备及介质
WO2021057290A1 (zh) 信息控制方法及电子设备
WO2020215969A1 (zh) 内容输入方法及终端设备
WO2020199783A1 (zh) 界面显示方法及终端设备
WO2021136141A1 (zh) 播放方法及电子设备
WO2021129850A1 (zh) 语音消息播放方法及电子设备
WO2021068885A1 (zh) 控制方法及电子设备
WO2020192297A1 (zh) 屏幕界面切换方法及终端设备
WO2020211596A1 (zh) 控制方法及终端设备
WO2021082740A1 (zh) 进度调节方法及电子设备
WO2020215982A1 (zh) 桌面图标管理方法及终端设备
WO2021088706A1 (zh) 应用程序的控制方法和电子设备

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: 20856197

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20856197

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20856197

Country of ref document: EP

Kind code of ref document: A1

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20856197

Country of ref document: EP

Kind code of ref document: A1