CN105630586B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105630586B
CN105630586B CN201410601610.7A CN201410601610A CN105630586B CN 105630586 B CN105630586 B CN 105630586B CN 201410601610 A CN201410601610 A CN 201410601610A CN 105630586 B CN105630586 B CN 105630586B
Authority
CN
China
Prior art keywords
sound output
audio information
application program
detection result
output device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410601610.7A
Other languages
Chinese (zh)
Other versions
CN105630586A (en
Inventor
刘国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410601610.7A priority Critical patent/CN105630586B/en
Publication of CN105630586A publication Critical patent/CN105630586A/en
Application granted granted Critical
Publication of CN105630586B publication Critical patent/CN105630586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an information processing method and electronic equipment, which can achieve the technical effect of automatically selecting matched sound output equipment according to the type of an application program and/or environmental information. The information processing method is used in an electronic device, the electronic device comprises N sound output devices, N is an integer greater than or equal to 2, and the method comprises the following steps: when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment; determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information; outputting the first audio information through the first sound output device.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device.
Background
With the development of technology, most electronic devices have been equipped with sound output devices for outputting various audio information, such as a computer, which can output audio information through a headset or a speaker. Meanwhile, in daily work and life of people, more and more audio applications are applied, for example, when a plurality of programs such as voice call application, music playing, multimedia file browsing and the like are simultaneously operated, a plurality of audio signals can be simultaneously generated on electronic equipment such as a computer and the like.
In the prior art, a common technical solution for outputting multiple pieces of audio information generally is to output multiple pieces of audio information generated by all application programs through one output device, for example, browsing a web page while running a hundredth music box to listen to a song, where both the song and the background sound of the web page are output from a speaker; if the user plugs in the headset, the speaker automatically mutes.
In the process of implementing the technical solution of the embodiment of the present application, the inventor of the present application finds that at least the following technical problems exist in the prior art:
because the electronic equipment in the prior art can output a plurality of audio information with different contents when simultaneously running different types of application programs. For example, when instant messaging audio information needs to be output, other audio information being output is often interrupted in order to ensure the listening effect of a user. Therefore, the electronic device in the prior art has the technical problem that different sound output devices cannot be selected according to different situations such as the type of audio information and the environment information where the electronic device is located.
Due to the technical problems in the prior art, a user cannot perform personalized management on the output mode of the audio information, so that the electronic equipment in the prior art has the problem of poor user experience.
Disclosure of Invention
The application provides an information processing method and electronic equipment, which are used for solving the technical problem that different sound output equipment cannot be selected according to different situations such as the type of audio information and environment information where the electronic equipment is located in the prior art, so that the technical effect of automatically selecting the matched sound output equipment according to the type of an application program and/or the environment information is achieved. In one aspect, an embodiment of the present application provides an information processing method applied to an electronic device, where the electronic device includes N sound output devices, where N is an integer greater than or equal to 2, and the method includes:
when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information;
outputting the first audio information through the first sound output device.
Optionally, the determining, based on the application type and/or the environmental information, a first sound output device matched with the first audio information from the N sound output devices specifically includes:
detecting whether the first application program belongs to an instant messaging application program or not according to the type of the first application program to obtain a first detection result;
detecting whether a loudspeaker exists in the N sound output devices or not according to the environment information to obtain a second detection result;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first detection result and the second detection result.
Optionally, when the N sound output devices include an earphone and the speaker, the determining, based on the first detection result and the second detection result, a first sound output device matched with the first audio information from the N sound output devices specifically includes:
when the first detection result is yes, determining the earphone as the first sound output equipment matched with the first audio information;
when the first detection result is negative and the second detection result is negative, determining that the earphone is the first sound output device matched with the first audio information;
and when the first detection result is negative and the second detection result is positive, determining that the loudspeaker is the first sound output device matched with the first audio information.
Optionally, after the determining, based on the application type and/or the environmental information, a first sound output device matching the first audio information from the N sound output devices, the method further includes:
obtaining a first operation of a user, wherein the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices;
and responding to the first operation, and outputting the first audio information through the second audio output equipment.
Optionally, when second audio information corresponding to a second application is in a state of being output through the first sound output device, the outputting the first audio information through the first sound output device specifically includes:
obtaining a second application program type to which the second application program belongs;
detecting whether the first application program type is the same as the second application program type or not, and obtaining a third detection result;
when the third detection result is negative, outputting the second audio information through the second sound output device, and outputting the first audio information through the first sound output device;
and when the third detection result is yes, outputting the first audio information through the first sound output equipment.
Optionally, when the third detection result is yes, outputting the first audio information through the first sound output device specifically includes:
obtaining a second operation of the user, wherein the second operation is an operation for specifying the second audio information to pass through the second audio output device;
responding to the second operation, and outputting the first audio information through the second audio output device;
outputting the first audio information through the first sound output device.
Optionally, when the third detection result is yes, outputting the first audio information through the first sound output device specifically includes:
determining the second sound output device from the N sound output devices based on the second application type and/or the environment information;
outputting the second audio information through the second audio output device;
outputting the first audio information through the first sound output device.
On the other hand, an embodiment of the present application further provides an electronic device, which includes N sound output devices, where N is an integer greater than or equal to 2, and the electronic device specifically includes:
the electronic device comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for obtaining a first application program type to which a first application program belongs and/or environmental information of the electronic device when first audio information corresponding to the first application program is required to be output;
the judging module is used for determining first sound output equipment matched with the first audio information from the N sound output equipment based on the first application program type and/or the environment information;
and the first output control module is used for outputting the first audio information through the first sound output equipment.
Optionally, the determining module specifically includes:
the first detection unit is used for detecting whether the first application program belongs to the instant messaging application program or not according to the type of the first application program to obtain a first detection result;
the second detection unit is used for detecting whether a loudspeaker exists in the N sound output devices according to the environment information to obtain a second detection result;
a first determining unit configured to determine, based on the first detection result and the second detection result, a first sound output apparatus that matches the first audio information from the N sound output apparatuses.
Optionally, when the N sound output devices include an earphone and the speaker, the first determining unit specifically includes:
a first determining subunit, configured to determine that the earphone is the first sound output device matched with the first audio information when the first detection result is yes;
a second determining subunit, configured to determine that the earphone is the first sound output device matched with the first audio information when the first detection result is negative and the second detection result is negative;
a third determining subunit, configured to determine that the speaker is the first sound output device matched with the first audio information when the first detection result is negative and the second detection result is positive.
Optionally, the electronic device further includes:
a second detection module, configured to obtain a first operation of a user, where the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices;
and the second output control module is used for responding to the first operation and outputting the first audio information through the second audio output equipment.
Optionally, when second audio information corresponding to a second application is in a state of being output through the first sound output device, the first output control module specifically includes:
a third detection unit, configured to obtain a second application type to which the second application belongs;
the fourth detection unit is used for detecting whether the first application program type is the same as the second application program type or not and obtaining a third detection result;
a second output control unit configured to output the second audio information through the second sound output device and output the first audio information through the first sound output device when the third detection result is no;
a third output control unit configured to output the first audio information through the first sound output device when the third detection result is yes.
Optionally, the third output control unit specifically includes:
a first detection subunit, configured to obtain a second operation of the user, where the second operation is an operation for specifying that the second audio information passes through the second audio output device;
a first output control subunit operable to output the first audio information through the second audio output device in response to the second operation;
a second output control subunit, configured to output the first audio information through the first sound output device.
Optionally, the second output control unit specifically includes:
a fourth determining subunit, configured to determine, based on the second application type and/or the environment information, the second sound output apparatus from the N sound output apparatuses;
a third output control subunit configured to output the second audio information through the second sound output device;
a fourth output control subunit, configured to output the first audio information through the first sound output device.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
according to the technical scheme of the embodiment of the application, the electronic equipment can automatically select different sound output equipment according to different types of the application programs and/or different pieces of environment information. Therefore, the technical problem that different sound output devices cannot be selected according to different situations such as the type of audio information and environment information where the electronic device is located in the electronic device in the prior art can be solved. And then the technical effect of automatically selecting the matched sound output equipment according to the type of the application program and/or the environment information is realized.
Furthermore, according to the technical scheme in the embodiment of the application, different sound output devices can be automatically selected for different audio information, and a user can manually select the sound output devices. Meanwhile, according to the selection result, the audio information being output can be switched to another sound output device to be output without interruption. Therefore, the problem that in the prior art, a user cannot perform personalized management on the output mode of the audio information, and the user experience of the electronic equipment is poor can be solved. And then the effect of improving the user experience is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a flowchart of a first implementation manner of an information processing method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an implementation of step S102 according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a second implementation manner of an information processing method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a specific implementation of step S103 according to an embodiment of the present application;
fig. 5 is a flowchart of a first implementation manner of step S404 in the first embodiment of the present application;
fig. 6 is a flowchart of a second implementation manner of step S404 in the first embodiment of the present application;
fig. 7 is a structural diagram of an electronic device according to a second embodiment of the present application.
Detailed Description
The embodiment of the application provides an information processing method and electronic equipment, and is used for solving the technical problem that the electronic equipment in the prior art cannot select different sound output equipment according to different situations such as the type of audio information and environment information where the electronic equipment is located, so as to achieve the technical effect of automatically selecting matched sound output equipment according to the type of an application program and/or the environment information.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
in one aspect, an information processing method is used in an electronic device, where the electronic device includes N sound output devices, where N is an integer greater than or equal to 2, and the method includes:
when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information;
outputting the first audio information through the first sound output device.
In the technical scheme, the electronic equipment detects the type of the application program needing to output the audio information and parameters such as the environment information, and automatically selects the most matched sound output equipment to output the audio information, thereby realizing the technical effect of automatically selecting the matched sound output equipment according to the type of the application program and/or the environment information.
In order to better understand the technical solutions, the technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and examples of the present invention may be combined with each other without conflict.
Example one
An embodiment provided by the application provides an information processing method, which is applied to an electronic device, wherein the electronic device comprises two or more than two sound output devices. In a specific implementation process, the electronic device may be a computer, a smart phone, or other electronic devices; the sound output device may be a wired earphone, a bluetooth earphone, an electronic device built-in speaker, a hi-fi stereo, or other sound output devices, which are not examples of the embodiment of the present application.
Referring to fig. 1 to 6, an information processing method in the present application includes:
the first implementation manner of the information processing method is that the electronic device automatically selects a sound output device of the audio information, and the specific implementation steps are as follows:
s101: when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment.
S102: determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information.
And S103, outputting the first audio information through the first sound output equipment.
In this embodiment of the present application, the step S102 includes the following steps in a specific implementation process:
s201: and detecting whether the first application program belongs to an instant messaging application program or not according to the type of the first application program to obtain a first detection result.
S202: and detecting whether a loudspeaker exists in the N sound output devices according to the environment information to obtain a second detection result.
S203: determining a first sound output device matched with the first audio information from the N sound output devices based on the first detection result and the second detection result.
In this embodiment of the application, when the N sound output devices include an earphone and a speaker, step S203 specifically includes:
when the first detection result is yes, determining that the earphone is the first sound output device matched with the first audio information.
And when the first detection result is negative and the second detection result is negative, determining that the earphone is the first sound output equipment matched with the first audio information.
And when the first detection result is negative and the second detection result is positive, determining that the loudspeaker is the first sound output device matched with the first audio information.
In the embodiment of the present application, in addition to automatically selecting different sound output devices for different audio information through an electronic device, a second implementation manner of the information processing method is that a user selects a sound output device for audio information through a manual manner, and the specific implementation steps are as follows:
s301: obtaining a first operation of a user, wherein the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices.
S302: and responding to the first operation, and outputting the first audio information through the second audio output equipment.
In this embodiment of the application, when the second audio information corresponding to the second application program is in the state of being output through the first sound output device on the electronic device, if there is first audio information corresponding to the first application program that needs to be output, the specific implementation steps of step S103 are:
s401: and obtaining a second application program type to which the second application program belongs.
S402: and detecting whether the first application program type is the same as the second application program type or not to obtain a third detection result.
S403: and when the third detection result is negative, outputting the second audio information through the second sound output device, and outputting the first audio information through the first sound output device.
S404: and when the third detection result is yes, outputting the first audio information through the first sound output equipment.
In the embodiment of the application, the sound output device of the second audio information can be manually selected and switched by a user, or the sound output device of the second audio information can be automatically selected and switched by an electronic device. Therefore, there are two specific implementations of step S404.
The first implementation manner is that the sound output device of the second audio information is manually selected and switched by a user. In the specific implementation process, the method comprises the following steps:
s501: and obtaining a second operation of the user, wherein the second operation is an operation for specifying the second audio information to pass through the second audio output device.
S502: and responding to the second operation, and outputting the first audio information through the second audio output equipment.
S503: outputting the first audio information through the first sound output device.
The second implementation manner is that the sound output device of the second audio information is automatically selected and switched through the electronic device. In the specific implementation process, the method comprises the following steps:
s601: determining the second sound output device from the N sound output devices based on the second application type and/or the environment information.
S602: and outputting the second audio information through the second audio output device.
S603: outputting the first audio information through the first sound output device.
In the following, the electronic device is a computer, the sound output device includes a speaker (or a hi-fi sound), and an earphone, the audio information to be output may be a song played by a music player, a voice call output by communication software, or an alarm sound generated when a system program is in error. A specific implementation process of the method in the embodiment of the present application is described.
Suppose that a user wants to run an application QQ on a computer to make a voice call with a friend.
First, step S101 is performed, namely: when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment.
At this time, the computer obtains the type of the application program to be run and the environmental information of the electronic device by detecting the specific application software program to be run and scanning the sound output device of the computer. For example, when the computer obtains the application to be run as a QQ, and when the sound output devices include speakers (hi-fi), and headphones.
After step S101 is executed, the method of the embodiment of the present application executes step S102, that is: determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information. The detailed process, i.e. the computer needs to execute steps S201, S202 and S203.
Specifically, at this time, the computer determines that the QQ belongs to the instant messaging application according to the application type of the QQ. Most of the audio information required to be output by the application program is the content of the call between the users, so that the application program has higher privacy requirement. Thus, in general, users are more inclined to select a sound output mode with higher privacy, for example, output through headphones. Furthermore, the computer can know the information of the sound output equipment obtained by detection, and the sound output equipment comprises a loudspeaker (or a high-fidelity sound box) and an earphone. Based on the output requirement of the audio information generated by the instant communication application program, the computer determines the earphone as a sound output device matched with the QQ by default, and outputs the audio information required to be output by the QQ through the earphone.
Alternatively, if the computer is not to be operated at this time as a QQ, but rather as a "Cool I" music player. The computer detects that the application to be run is not a more private application and may have a better listening experience through the speaker (or hi-fi) output. However, by detecting the information of the sound output device, the computer is found not to be equipped with a loudspeaker (or a high-fidelity sound box), namely, the computer determines the earphone as the sound output device matched with the QQ by default, and outputs the audio information which needs to be output by the cool me through the earphone.
In contrast, if it is found that a speaker (or hi-fi) is provided by detecting the sound output device information, the computer determines by default that the speaker (or hi-fi) is a sound output device matching "cool me", and outputs the audio information that "cool me" needs to output through the speaker (or hi-fi).
Of course, besides automatically selecting and outputting audio information through a computer, a user can also designate a sound output device for outputting certain audio information in a manual selection mode.
Specifically, for music played by "cool me", for example, the computer defaults to output through speakers (or hi-fi stereo). If the user is in an environment where it is inconvenient to play out sound, such as an office, and wants to listen through the HiFi headset at this time, the user can select the HiFi headset as a sound output device of the "cool me" audio information by a selection operation. At this time, the computer first executes step S301, that is: obtaining a first operation of a user, wherein the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices. After obtaining the operation instruction of the HiFi headset as the sound output device of the "cool me" audio information designated by the user, the computer performs step S302: and responding to the first operation, and outputting the first audio information through the second audio output equipment. Namely, the audio information that the "cool me" needs to be output is output through the HiFi headphones.
In the embodiment of the present application, when the audio information corresponding to one application program on the electronic device is being output on one of the audio output devices, if another application program needs to be run and output the corresponding audio information, the computer performs corresponding processing by executing steps S401 to S404. The following description will be made by taking the operations of two applications, QQ and "cool me" as an example.
Assume that the user's computer is running "cool me" and songs are played through speakers (or hi-fi stereo) according to the computer's default selection. At this time, the user receives the voice call request from the friend on the QQ, and the computer is going to operate the voice call function of the QQ and output the voice information.
First, the computer executes step S401, and it is detected that the application types of QQ and "cool me" to be run are obtained. Then, step S402 is executed to compare whether the application types of the two are the same. Through comparison, the QQ is an instant messaging application program with strong privacy, but the 'Cool me' is not, so that the two application programs are different in type. And thus the sound output device selected by default is also different. At this time, the computer executes step S403 to directly output the audio information generated by the QQ through the headphones without changing the sound output device of the audio information generated by "cool me".
However, if the user's computer is running "cool me" and playing songs through a speaker (or hi-fi stereo), the computer determines that the types of applications of "cool me" and IE obtained by detection are the same in the case where the IE browser running on the computer needs to play background music on a web page. At this time, the computer executes step S404: and when the third detection result is yes, outputting the first audio information through the first sound output equipment. That is, the background music to be played by the IE is also directly output through the speaker (or hi-fi stereo).
In the embodiment of the application, when the computer of the user runs "cool me" and plays a song through the HiFi headset, the "FaceTime" application shows that the video communication of the buddy nail is requesting to be connected. Since "FaceTime" belongs to an instant messaging application with relatively strong privacy, the user may wish to output audio information through a headset. Certainly, in order to ensure the listening effect of the user and not to interrupt the playing songs, the sound output device of the songs played by the cool me can be manually selected and switched by the user, and the sound output device can also be automatically selected and switched by the electronic device.
The first implementation mode is manual selection and switching by a user, and the specific implementation process is as follows:
when the user selects an output device other than the HiFi headset on the computer, such as a speaker (or hi-fi stereo) as the sound output device for the "cool me" song. The computer first executes step S501: and obtaining a second operation of the user, wherein the second operation is an operation for specifying the second audio information to pass through the second audio output device. And by performing step S502: and responding to the second operation, and outputting the first audio information through the second audio output equipment. That is, in response to the specified selection operation, the song played by "cool me" is output through the speaker (or hi-fi stereo). Then, step S603 is executed: outputting the first audio information through the first sound output device. That is, the call audio information generated by the "FaceTime" is output through the HiFi headset.
The second implementation mode is that the electronic equipment automatically selects and switches, and the specific implementation process is as follows:
when the computer receives a "FaceTime" video communication request from the buddy nail of the buddy nail, the computer first executes step S601 when detecting that the audio information output device generated by the "FaceTime" is occupied by "cool me": determining the second sound output device from the N sound output devices based on the second application type and/or the environment information. That is, one sound output device is selected among other sound output devices other than the occupied HiFi headphones as a sound output device of the song played by "cool me", such as a speaker (or hi-fi stereo). Then, step S602 is performed: and outputting the second audio information through the second audio output device. The song played by "cool me" is output through a speaker (or hi-fi stereo). Then, step S603 is performed: outputting the first audio information through the first sound output device. And outputting the call audio information generated by the FaceTime through a HiFi earphone.
Example two
Based on the same inventive concept, referring to fig. 7, an embodiment of the present application provides an electronic device, including N sound output devices, where N is an integer greater than or equal to 2, and the electronic device specifically includes:
the first detection module 10 is configured to, when first audio information corresponding to a first application program needs to be output, obtain a first application program type to which the first application program belongs and/or environment information of the electronic device;
a determining module 20, configured to determine, based on the first application type and/or the environment information, a first sound output device that matches the first audio information from the N sound output devices;
a first output control module 30, configured to output the first audio information through the first sound output device.
The determining module 20 specifically includes:
the first detection unit is used for detecting whether the first application program belongs to the instant messaging application program or not according to the type of the first application program to obtain a first detection result;
the second detection unit is used for detecting whether a loudspeaker exists in the N sound output devices according to the environment information to obtain a second detection result;
a first determining unit configured to determine, based on the first detection result and the second detection result, a first sound output apparatus that matches the first audio information from the N sound output apparatuses.
When the N sound output devices include an earphone and the speaker, the first determining unit specifically includes:
a first determining subunit, configured to determine that the earphone is the first sound output device matched with the first audio information when the first detection result is yes;
a second determining subunit, configured to determine that the earphone is the first sound output device matched with the first audio information when the first detection result is negative and the second detection result is negative;
a third determining subunit, configured to determine that the speaker is the first sound output device matched with the first audio information when the first detection result is negative and the second detection result is positive.
In order to allow a user to specify a sound output device for a certain audio information by means of manual selection. The electronic device further includes:
a second detection module, configured to obtain a first operation of a user, where the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices;
and the second output control module is used for responding to the first operation and outputting the first audio information through the second audio output equipment.
In order to realize that an audio output device is automatically selected for outputting new audio information, the first output control module 30 specifically includes:
a third detection unit, configured to obtain a second application type to which the second application belongs;
the fourth detection unit is used for detecting whether the first application program type is the same as the second application program type or not and obtaining a third detection result;
a second output control unit configured to output the second audio information through the second sound output device and output the first audio information through the first sound output device when the third detection result is no;
a third output control unit configured to output the first audio information through the first sound output device when the third detection result is yes.
In order to facilitate a user to manually select and switch the sound output device of the second audio information, the third output control unit specifically includes:
a first detection subunit, configured to obtain a second operation of the user, where the second operation is an operation for specifying that the second audio information passes through the second audio output device;
a first output control subunit operable to output the first audio information through the second audio output device in response to the second operation;
a second output control subunit, configured to output the first audio information through the first sound output device.
In order to enable the sound output device to automatically select and switch the second audio information through the electronic device, the second output control unit specifically includes:
a fourth determining subunit, configured to determine, based on the second application type and/or the environment information, the second sound output apparatus from the N sound output apparatuses;
a third output control subunit configured to output the second audio information through the second sound output device;
a fourth output control subunit, configured to output the first audio information through the first sound output device.
One or more technical solutions provided in the embodiments of the present application have at least one or more of the following technical effects:
according to the technical scheme of the embodiment of the application, the electronic equipment can automatically select different sound output equipment according to different types of the application programs and/or different pieces of environment information. Therefore, the technical problem that different sound output devices cannot be selected according to different situations such as the type of audio information and environment information where the electronic device is located in the electronic device in the prior art can be solved. And then the technical effect of automatically selecting the matched sound output equipment according to the type of the application program and/or the environment information is realized.
Furthermore, according to the technical scheme in the embodiment of the application, different sound output devices can be automatically selected for different audio information, and a user can manually select the sound output devices. Meanwhile, according to the selection result, the audio information being output can be switched to another sound output device to be output without interruption. Therefore, the problem that in the prior art, a user cannot perform personalized management on the output mode of the audio information, and the user experience of the electronic equipment is poor can be solved. And then the effect of improving the user experience is realized.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to the image obtaining and image processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information;
outputting the first audio information through the first sound output device.
Optionally, the step of storing in the storage medium: the computer program instructions for determining, from the N sound output devices, a first sound output device that matches the first audio information based on the application type and/or the environment information, when executed, specifically include the following steps:
detecting whether the first application program belongs to an instant messaging application program or not according to the type of the first application program to obtain a first detection result;
detecting whether a loudspeaker exists in the N sound output devices or not according to the environment information to obtain a second detection result;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first detection result and the second detection result.
Optionally, the step of storing in the storage medium: when the N sound output devices include an earphone and the speaker, the determining, based on the first detection result and the second detection result, a computer program instruction corresponding to a first sound output device matched with the first audio information from the N sound output devices specifically includes the following steps:
when the first detection result is yes, determining the earphone as the first sound output equipment matched with the first audio information;
when the first detection result is negative and the second detection result is negative, determining that the earphone is the first sound output device matched with the first audio information;
and when the first detection result is negative and the second detection result is positive, determining that the loudspeaker is the first sound output device matched with the first audio information.
Optionally, the step of storing in the storage medium: the computer program instructions corresponding to the determination of the first sound output device matched with the first audio information from the N sound output devices based on the application program type and/or the environment information specifically include the following steps:
obtaining a first operation of a user, wherein the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices;
and responding to the first operation, and outputting the first audio information through the second audio output equipment.
Optionally, the step of storing in the storage medium: when second audio information corresponding to a second application program is in a state of being output through the first sound output device, outputting a computer program instruction corresponding to the first audio information through the first sound output device, specifically including the following steps:
obtaining a second application program type to which the second application program belongs;
detecting whether the first application program type is the same as the second application program type or not, and obtaining a third detection result;
when the third detection result is negative, outputting the second audio information through the second sound output device, and outputting the first audio information through the first sound output device;
and when the third detection result is yes, outputting the first audio information through the first sound output equipment.
Optionally, the step of storing in the storage medium: when the third detection result is yes, outputting a computer program instruction corresponding to the first audio information through the first sound output device, specifically including the following steps:
obtaining a second operation of the user, wherein the second operation is an operation for specifying the second audio information to pass through the second audio output device;
responding to the second operation, and outputting the first audio information through the second audio output device;
outputting the first audio information through the first sound output device.
Optionally, the step of storing in the storage medium: when the third detection result is yes, outputting a computer program instruction corresponding to the first audio information through the first sound output device, specifically including the following steps:
determining the second sound output device from the N sound output devices based on the second application type and/or the environment information;
outputting the second audio information through the second audio output device;
outputting the first audio information through the first sound output device.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. An information processing method used in an electronic device including N sound output devices, N being an integer of 2 or more, the method comprising:
when first audio information corresponding to a first application program needs to be output, obtaining a first application program type to which the first application program belongs and/or environment information of the electronic equipment;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first application program type and/or the environment information;
outputting the first audio information through the first sound output device;
the determining, based on the application type and/or the environment information, a first sound output device matched with the first audio information from the N sound output devices specifically includes:
detecting whether the first application program belongs to an instant messaging application program or not according to the type of the first application program to obtain a first detection result;
detecting whether a loudspeaker exists in the N sound output devices or not according to the environment information to obtain a second detection result;
determining a first sound output device matched with the first audio information from the N sound output devices based on the first detection result and the second detection result;
when second audio information corresponding to a second application program is in a state of being output through the first sound output device, the determining, from the N sound output devices, a first sound output device that matches the first audio information specifically includes:
obtaining a second application program type to which the second application program belongs;
detecting whether the first application program type is the same as the second application program type or not, and obtaining a third detection result;
when the third detection result is negative, outputting the second audio information through a second sound output device, and outputting the first audio information through the first sound output device;
and when the third detection result is yes, outputting the first audio information through the first sound output equipment.
2. The method of claim 1, wherein when the N sound output devices include headphones and the speaker, the determining, from the N sound output devices, a first sound output device that matches the first audio information based on the first detection result and the second detection result, specifically comprises:
when the first detection result is yes, determining the earphone as the first sound output equipment matched with the first audio information;
when the first detection result is negative and the second detection result is negative, determining that the earphone is the first sound output device matched with the first audio information;
and when the first detection result is negative and the second detection result is positive, determining that the loudspeaker is the first sound output device matched with the first audio information.
3. The method of any of claims 1-2, wherein after the determining, from the N sound output devices, a first sound output device that matches the first audio information based on the application type and/or the environmental information, the method further comprises:
obtaining a first operation of a user, wherein the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices;
and responding to the first operation, and outputting the first audio information through the second audio output equipment.
4. The method as claimed in claim 3, wherein outputting the first audio information through the first sound output device when the third detection result is yes comprises:
determining the second sound output device from the N sound output devices based on the second application type and/or the environment information;
outputting the second audio information through the second audio output device;
outputting the first audio information through the first sound output device.
5. An electronic device includes N sound output devices, where N is an integer greater than or equal to 2, and the electronic device specifically includes:
the electronic device comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for obtaining a first application program type to which a first application program belongs and/or environmental information of the electronic device when first audio information corresponding to the first application program is required to be output;
the judging module is used for determining first sound output equipment matched with the first audio information from the N sound output equipment based on the first application program type and/or the environment information;
the first output control module is used for outputting the first audio information through the first sound output equipment;
wherein, the judging module specifically comprises:
the first detection unit is used for detecting whether the first application program belongs to the instant messaging application program or not according to the type of the first application program to obtain a first detection result;
the second detection unit is used for detecting whether a loudspeaker exists in the N sound output devices according to the environment information to obtain a second detection result;
a first determining unit configured to determine, from the N sound output apparatuses, a first sound output apparatus that matches the first audio information based on the first detection result and the second detection result;
when second audio information corresponding to a second application program is in a state of being output through the first sound output device, the first determining unit is specifically configured to:
obtaining a second application program type to which the second application program belongs;
detecting whether the first application program type is the same as the second application program type or not, and obtaining a third detection result;
when the third detection result is negative, outputting the second audio information through a second sound output device, and outputting the first audio information through the first sound output device;
and when the third detection result is yes, outputting the first audio information through the first sound output equipment.
6. The electronic device according to claim 5, wherein when the N sound output devices include an earphone and the speaker, the first determining unit specifically includes:
a first output determination subunit, configured to determine that the earphone is the first sound output device that matches the first audio information when the first detection result is yes;
a second determining subunit, configured to determine that the earphone is the first sound output device matched with the first audio information when the first detection result is negative and the second detection result is negative;
a third determining subunit, configured to determine that the speaker is the first sound output device matched with the first audio information when the first detection result is negative and the second detection result is positive.
7. The electronic device of any of claims 5-6, wherein the electronic device further comprises:
a second detection module, configured to obtain a first operation of a user, where the first operation is an operation for specifying that the first audio information passes through a second sound output device different from the first sound output device in the N sound output devices;
and the second output control module is used for responding to the first operation and outputting the first audio information through the second audio output equipment.
8. The electronic device of claim 7, wherein the second output control unit specifically comprises:
a fourth determining subunit, configured to determine, based on the second application type and/or the environment information, the second sound output apparatus from the N sound output apparatuses;
a third output control subunit configured to output the second audio information through the second sound output device;
a fourth output control subunit, configured to output the first audio information through the first sound output device.
CN201410601610.7A 2014-10-30 2014-10-30 Information processing method and electronic equipment Active CN105630586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410601610.7A CN105630586B (en) 2014-10-30 2014-10-30 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410601610.7A CN105630586B (en) 2014-10-30 2014-10-30 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105630586A CN105630586A (en) 2016-06-01
CN105630586B true CN105630586B (en) 2020-03-24

Family

ID=56045565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410601610.7A Active CN105630586B (en) 2014-10-30 2014-10-30 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105630586B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293599A (en) * 2016-07-29 2017-01-04 联想(北京)有限公司 A kind of output control method, electronic equipment and output system
CN106302997B (en) * 2016-07-29 2020-02-21 联想(北京)有限公司 Output control method, electronic equipment and system
WO2018027850A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for pushing music according to program type, and pushing system
CN107277693B (en) * 2017-07-17 2020-03-17 青岛海信移动通信技术股份有限公司 Audio device calling method and device
CN109151172A (en) * 2018-07-23 2019-01-04 Oppo广东移动通信有限公司 Audio output control method and relevant device
CN109284080B (en) * 2018-09-04 2021-01-05 Oppo广东移动通信有限公司 Sound effect adjusting method and device, electronic equipment and storage medium
CN109714487A (en) * 2019-01-25 2019-05-03 合肥星空物联信息科技有限公司 A kind of method that more equipment play audio simultaneously
CN110032356A (en) * 2019-03-29 2019-07-19 联想(北京)有限公司 Information processing method and electronic equipment
CN110286874A (en) * 2019-06-28 2019-09-27 联想(北京)有限公司 A kind of processing method and electronic equipment
CN110413252A (en) * 2019-07-05 2019-11-05 深圳前海达闼云端智能科技有限公司 A kind of audio-frequency inputting method and its device, terminal
CN111459456B (en) * 2020-04-07 2023-03-14 维沃移动通信有限公司 Audio control method and electronic equipment
CN112286481A (en) * 2020-10-28 2021-01-29 维沃移动通信(杭州)有限公司 Audio output method and electronic equipment
CN112394901A (en) * 2020-11-24 2021-02-23 维沃移动通信有限公司 Audio output mode adjusting method and device and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001333161A (en) * 2000-05-18 2001-11-30 Nec Corp Portable terminal
CN101867657B (en) * 2010-06-24 2014-03-12 中兴通讯股份有限公司南京分公司 Method and device for switching audio output equipment on mobile phone
CN102611961B (en) * 2011-01-20 2014-08-06 三星电子(中国)研发中心 Method and device for switching multi-channel audios of terminal
CN102821195A (en) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal and multi-audio-frequency output method
CN103200311A (en) * 2013-02-25 2013-07-10 华为终端有限公司 Control method and control device of communication terminal conversation audio passage and communication terminal
CN103593127A (en) * 2013-11-25 2014-02-19 华为终端有限公司 Method for selecting audio output devices and terminal

Also Published As

Publication number Publication date
CN105630586A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105630586B (en) Information processing method and electronic equipment
CN105679345B (en) Audio processing method and electronic equipment
JP6214780B2 (en) Software applications and zones
US9654757B2 (en) Method, apparatus, and computer program product for including device playback preferences in multimedia metadata
US20170270897A1 (en) Earphone system for mobile device and method for operating the same
CN106302997B (en) Output control method, electronic equipment and system
CN106303816B (en) Information control method and electronic equipment
CN103295604B (en) Method, device and terminal that a kind of control terminal is play
TW201145904A (en) Method for controlling surrounding device and mobile device and computer program product using the method
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
AU2013211541A1 (en) Mobile apparatus and control method thereof
CN105702271A (en) Multimedia playing method and electronic equipment
US10326842B2 (en) Terminal connection device, processing information execution system, processing information execution method
CN106303003A (en) The method of a kind of application recommendation and terminal
TWI539837B (en) Audio player and control method thereof
CN106537933B (en) Portable loudspeaker
JP6213879B2 (en) Information processing apparatus and control method
CN108574914B (en) Method and device for adjusting multicast playback file of sound box and receiving end
CN102664033A (en) Method of realizing multipoint break-point memory continue-play of portable speaker
CN113423007B (en) Control method and device for multi-audio playing, electronic equipment and storage medium
CN103945305A (en) Information processing method and electronic equipment
CN113760219A (en) Information processing method and device
CN108292142B (en) Computer, method of controlling computer, and computer-readable medium
CN110708627B (en) Earphone and control method thereof
CN104750453A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant