CN111770416B - Loudspeaker control method and device and electronic equipment - Google Patents

Loudspeaker control method and device and electronic equipment Download PDF

Info

Publication number
CN111770416B
CN111770416B CN202010574225.3A CN202010574225A CN111770416B CN 111770416 B CN111770416 B CN 111770416B CN 202010574225 A CN202010574225 A CN 202010574225A CN 111770416 B CN111770416 B CN 111770416B
Authority
CN
China
Prior art keywords
electronic device
speaker
loudspeaker
input
electronic equipment
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
CN202010574225.3A
Other languages
Chinese (zh)
Other versions
CN111770416A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010574225.3A priority Critical patent/CN111770416B/en
Publication of CN111770416A publication Critical patent/CN111770416A/en
Application granted granted Critical
Publication of CN111770416B publication Critical patent/CN111770416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/02Spatial or constructional arrangements of loudspeakers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a loudspeaker control method and device and electronic equipment, and belongs to the technical field of communication. The problem that the effect of playing audio by the electronic equipment is poor can be solved. The method is applied to a first electronic device and comprises the following steps: under the condition that the first electronic equipment is in contact with the second electronic equipment, controlling the first loudspeaker and the second loudspeaker to be started; the first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device. The method can be applied to a scene that two electronic devices are used for realizing stereo playing.

Description

Loudspeaker control method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a loudspeaker control playing method and device and electronic equipment.
Background
With the development of electronic technology, electronic devices may play audio through speakers installed in the electronic devices. For example, a user may play songs that the user likes in a playback mode through a speaker of the electronic device.
At present, based on the structural design limitations of electronic devices, such as the thickness requirement of the electronic devices and the size requirement of the internal cavities of the electronic devices, smaller and thinner speakers are generally used in the electronic devices. Generally, when audio is played in a speaker in a play mode, the electronic device has a poor audio playing effect because the direction and the level of sound emitted by the speaker are single.
Disclosure of Invention
The embodiment of the application aims to provide a loudspeaker control device, a loudspeaker control device and electronic equipment, and the problem that the effect of playing audio by the electronic equipment is poor can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a speaker control method, where the method is applied to a first electronic device, and the method includes: under the condition that the first electronic equipment is in contact with the second electronic equipment, controlling the first loudspeaker and the second loudspeaker to be started; the first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device.
In a second aspect, an embodiment of the present application provides a speaker control apparatus, which is applied to a first electronic device, and includes a processing module;
the processing module is used for controlling the first loudspeaker and the second loudspeaker to be started under the condition that the first electronic equipment is in contact with the second electronic equipment; the first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a headset, including: the control module, and the second loudspeaker, the third loudspeaker and the electromagnetic sensor connected with the control module, the second loudspeaker is a loudspeaker of the external speaker, the third loudspeaker is a loudspeaker of the earphone; the control module is used for sending an indication signal to the electronic equipment, receiving a control signal sent by the electronic equipment and controlling the second loudspeaker to be started according to the control signal under the condition that the electromagnetic sensor detects that the earphone is contacted with the electronic equipment; wherein the indication signal is used for indicating that the earphone is in contact with the electronic equipment.
In a fifth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, and the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the first electronic device is in contact with the second electronic device, the first electronic device controls the first loudspeaker of the first electronic device and the second loudspeaker of the second electronic device to be turned on. Through the scheme, when the first electronic equipment is in contact with the second electronic equipment, the first electronic equipment can control the first loudspeaker of the first electronic equipment and the second loudspeaker of the second electronic equipment to be started, and the first loudspeaker and the second loudspeaker belong to different electronic equipment respectively and are arranged at different positions of different electronic equipment, so that when the audio is played through the first loudspeaker and the second loudspeaker, the layers of the audio can be enriched, a stereo playing effect is generated, and the audio playing effect of the electronic equipment is improved.
Drawings
Fig. 1 is a schematic diagram of a speaker control method according to an embodiment of the present disclosure;
fig. 2 is a second schematic diagram of a speaker control method according to an embodiment of the present application;
fig. 3 is a third schematic diagram of a speaker control method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating an operation of connecting a first electronic device and a second electronic device according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram of a speaker control method according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a user operation of turning on a speaker of an electronic device according to an embodiment of the present application;
fig. 7 is a fifth schematic diagram of a speaker control method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an earphone according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a speaker control apparatus according to an embodiment of the present application;
fig. 10 is a second schematic structural diagram of a speaker control apparatus according to a second embodiment of the present application;
fig. 11 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure;
fig. 12 is a second hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. The objects distinguished by "first", "second", and the like are usually a class, and the number of the objects is not limited, and for example, the first object may be one or a plurality of objects. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a speaker control method provided in the embodiments of the present application with reference to the accompanying drawings.
In this embodiment, the first electronic device may control the speaker of the first electronic device and the speaker of the second electronic device to be turned on according to a contact condition of the first electronic device and the second electronic device, so as to turn on the stereo mode. Specifically, when the first electronic device and the second electronic device are in contact, the first electronic device receives an indication signal indicating the contact sent by the second electronic device, and then controls a first speaker of the first electronic device and a second speaker of the second electronic device to be turned on according to the indication signal. So for first speaker and second speaker can play the audio frequency with the playback mode simultaneously, because the mounted position of first speaker and second speaker is different, thereby richen the level of audio playback, produce stereo broadcast effect, and then improve the effect of electronic equipment broadcast audio frequency.
Example 1
As shown in fig. 1, an embodiment of the present application provides a speaker control method applied to a first electronic device, and the method may include step 101 described below.
Step 101, under the condition that the first electronic device is in contact with the second electronic device, the first electronic device controls the first loudspeaker and the second loudspeaker to be turned on.
The first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device.
Optionally, in this embodiment of the application, the first electronic device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, and the like, and the non-mobile electronic device may be a server, a network-attached storage, a personal computer, a television, and the like, and the embodiment of the present application is not particularly limited.
Optionally, in this embodiment of the application, the second electronic device may be a portable device or apparatus capable of playing audio. Specifically, the second electronic device may be any one of: wired earphone, wireless earphone, single speaker bluetooth speaker, have the intelligent bracelet of single speaker etc.. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
In the embodiment of the present application, the first electronic device and the second electronic device are in contact with each other, which means that the first electronic device and the second electronic device are in contact connection. The contact connection may be a contact connection capable of transmitting signals, such as an electrical connection, a magnetic connection, or the like. The contact connection may also be a connection that is not capable of transmitting signals, in which case the first electronic device and the second electronic device may transmit signals via other connection, such as a short-range wireless communication technology.
Optionally, in this embodiment of the application, the first electronic device controlling the second speaker of the terrestrial electronic device to be turned on may be implemented in the following two ways: in a first implementation manner, when the first electronic device and the second electronic device are in a contact connection capable of transmitting signals, the first electronic device may send information for controlling to turn on the second speaker to the second electronic device through the contact connection, so as to trigger the second electronic device to control to turn on the second speaker according to the information. In a second implementation manner, in a case that the first electronic device and the second electronic device are in a contact connection that is incapable of transmitting signals, after the first electronic device and the second electronic device are connected through a wireless short-range communication technology (for example, a wireless bluetooth connection), the first electronic device may send information for controlling to turn on the second speaker to the second electronic device, and the second electronic device may control to turn on the second speaker according to the received information. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
It should be noted that, the following embodiments of the present application are specifically described by taking the above implementation manner two as an example, and the implementation manner one may be implemented by referring to the related art, which is not described in detail herein.
The embodiment of the application provides a loudspeaker control method, and under the condition that a first electronic device is in contact with a second electronic device, the first electronic device controls a first loudspeaker of the first electronic device and a second loudspeaker of the second electronic device to be turned on. Through the scheme, when the first electronic equipment is in contact with the second electronic equipment, the first electronic equipment can control the first loudspeaker of the first electronic equipment and the second loudspeaker of the second electronic equipment to be started, and the first loudspeaker and the second loudspeaker belong to different electronic equipment respectively and are arranged at different positions of different electronic equipment, so that when the audio is played through the first loudspeaker and the second loudspeaker, the layers of the audio can be enriched, a stereo playing effect is generated, and the audio playing effect of the electronic equipment is improved.
Alternatively, as shown in fig. 2 in conjunction with fig. 1, the step 101 may specifically include the following step 102 and step 103.
And 102, the first electronic equipment receives an indication signal sent by the second electronic equipment.
The indication signal is used for indicating that the first electronic device is in contact with the second electronic device.
In this embodiment, a first electronic device and a second electronic device are connected in a contact manner, and the first electronic device can receive an indication signal sent by the second electronic device, where the indication signal is used to indicate that the first electronic device and the second electronic device are in contact.
Optionally, in this embodiment of the application, the first electronic device and the second electronic device are in contact in a magnetic connection manner or in contact in an electrical connection manner.
Optionally, in this embodiment of the application, if the first electronic device and the second electronic device are in contact in a magnetic connection manner, the specific connection manner may be any one of the following manners: in the mode 1, a first electromagnetic device (e.g., an electromagnet) is provided on a housing of the first electronic device, a second electromagnetic device (e.g., an electromagnetic sensor or an electromagnet) is provided in the second electronic device, and the first electronic device and the second electronic device are in magnetic contact with each other when the first electromagnetic device and the second electromagnetic device are magnetically connected. In mode 2, the first electronic device housing is provided with an armature, and the second electronic device is provided with a second electromagnetic device (e.g., an electromagnetic sensor or an electromagnet), and the first electronic device and the second electronic device are in magnetic contact with each other when the second electromagnetic device is magnetically connected to the armature. Mode 3, the first electronic device housing is provided with a first electromagnetic device, the second electronic device is provided with an armature, and the first electronic device and the second electronic device are in magnetic connection contact under the condition that the first electromagnetic device is in magnetic connection with the armature. The method may be determined according to actual use conditions, and the embodiment of the present application is not particularly limited.
In the embodiment of the present application, the housing of the first electronic device may be a detachable housing, and specifically, may be a housing of a detachable mobile terminal. Such as a detachable protective case for a cell phone, etc.
Optionally, in this embodiment of the application, if the first electronic device and the second electronic device are in contact in an electrically connecting manner, the specific connecting manner may be any one of the following manners: in mode 1, the first electronic device has a data interface through which the second electronic device can be electrically connected to and in contact with the first electronic device. Mode 2, a small hole is formed in the first electronic device, an interface and an armature are arranged in the small hole, one end of the second electronic device, which is provided with the electromagnetic device, is inserted into the small hole of the first electronic device, the second electronic device is magnetically attracted and fixed to the first electronic device, and the first electronic device can be in electrical contact with the second electronic device through the interface (at this time, the first electronic device and the second electronic device are also in magnetic contact). The specific characteristics can be determined according to actual use conditions, and the embodiments of the present application are not particularly limited.
In addition, in the embodiment of the present application, both the magnetic connection manner and the electrical connection manner of the first electronic device and the second electronic device may be in a plug-in connection.
Optionally, in this embodiment of the application, when the first electronic device and the second electronic device are connected, the second electronic device may send the indication signal to the first electronic device through magnetic communication, wired communication, or short-range wireless communication technology. Wherein the short-range wireless communication technology may include at least one of: hlilink protocol, WIFI technology (i.e., IEEE802.11 protocol), Bluetooth technology (Bluetooth), Near Field Communication (NFC), Light Fidelity (LiFi), and the like. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
It should be noted that, in the following embodiments, the second electronic device and the first electronic device send the indication signal through the bluetooth technology as an example for illustration. Specifically, in the case where the first electronic device and the second electronic device can be in magnetic connection contact, the second electronic device may transmit the indication signal through bluetooth technology, that is, the magnetic connection contact may serve as a trigger condition for transmitting the indication signal.
And 103, controlling the first loudspeaker and the second loudspeaker to be started by the first electronic equipment according to the indication signal.
In addition, in the embodiment of the present application, the first speaker is a loud speaker of the first electronic device, and the second speaker is a loud speaker of the second electronic device. The loudspeaker is a loudspeaker suitable for a loudspeaker mode, and the loudspeaker usually has a discharge power of 0.5W to 5W (watt), for example, a loudspeaker of a mobile phone. The earpiece speaker refers to a speaker suitable for earpiece mode, and is mostly a small-sized moving-coil or moving-iron speaker, and the power of such a speaker is usually between 10mW and 100mW (milliwatt), for example, a speaker of a wireless bluetooth headset.
Optionally, in this embodiment of the application, the second electronic device may further include a third speaker suitable for an earpiece mode, and this embodiment of the application does not specifically limit an on state or an off state of the third speaker. It is understood that when the third speaker and the second speaker are turned on simultaneously, since the power of the second speaker is significantly higher than that of the third speaker, the user may not hear the playing sound of the third speaker when playing audio, and only hear the playing sound of the second speaker.
Optionally, in this embodiment of the application, the manner of controlling the first speaker and the second speaker to be turned on by the first electronic device according to the indication signal may be any of the following manners: in the method a, under the condition that the first electronic device and the second electronic device are magnetically connected, the first electronic device controls the first speaker to be turned on, and the magnetic connection can be performed through the magnetic connection to control the second speaker to be turned on. In the mode B, in the case where the first electronic device and the second electronic device are electrically connected (wired electrical connection, for example, through a data line and an interface), the first electronic device controls the first speaker to be turned on, and may control the second speaker to be turned on through the electrical connection. In the method C, in the case that the first electronic device and the second electronic device are wirelessly connected (for example, bluetooth connection), the first electronic device controls the first speaker to turn on, and may send a control signal to the second electronic device through the wireless communication technology to control the second electronic device to turn on the second speaker (refer to the related description in step 102a below). The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
Alternatively, referring to fig. 2, as shown in fig. 3, the step 103 may be specifically implemented by the following step 103 a.
And 103a, the first electronic device sends a control signal to the second electronic device according to the indication signal.
The control signal is used for controlling the second electronic device to start the second loudspeaker.
Optionally, in this embodiment of the application, after the first electronic device receives the indication signal, the first electronic device generates a control signal according to the indication signal, and sends the control signal to the second electronic device.
Optionally, in this embodiment of the application, the manner of generating the control signal according to the indication signal may specifically be that the first electronic device reads the indication signal (the indication signal may specifically include information used for indicating connection between the first electronic device and the second electronic device and information of connection stability between the first electronic device and the second electronic device), and determines whether stability information included in the indication signal satisfies the first condition. Under the condition that a first condition is met, the first electronic equipment generates a control signal according to the indication signal; and when the first condition is not met, the first electronic equipment continues to receive the indication signal for judgment. The first condition is used for judging the stability of the connection between the first electronic device and the second electronic device, and the stability can be specifically expressed by using a signal loss parameter, a signal attenuation parameter, a packet loss rate of signal transmission and the like.
It can be understood that, since the first electronic device can send a control signal for controlling the turning on of the second speaker to the second electronic device according to the indication signal, the second electronic device can control the turning on of the second speaker according to the received control signal. Therefore, when the audio is played, the first loudspeaker and the second loudspeaker can play the audio at the same time to form a stereo playing effect, so that the audio playing effect of the electronic equipment is improved, and the use experience of a user is improved.
Optionally, after step 103, the method for controlling a speaker provided in the embodiment of the present application further includes step 104.
And 104, outputting audio signals through the first loudspeaker and the second loudspeaker.
The fact that the audio signals are output through the first speaker and the second speaker means that the first electronic device outputs the audio signals through the first speaker and the second electronic device outputs the audio signals through the second speaker together.
Specifically, in a case where the first electronic device plays audio, the first electronic device plays the audio through the first speaker, and the second electronic device also plays the audio through the second speaker. Due to the different distribution positions of the two loudspeakers, the user can hear the playing sound of the spatial distribution of the two players, namely, the stereo playing effect is formed.
It can be understood that, since the electronic device can play the audio using the first speaker and the second speaker simultaneously, a stereo playing effect is formed, and the audio playing effect of the electronic device is mentioned.
It should be noted that the following embodiments are exemplarily illustrated by taking bluetooth connection between the first electronic device and the second electronic device as an example.
Illustratively, fig. 4 is a schematic diagram of an operation of a first electronic device and a second electronic device connected. It is assumed that the top of the first electronic device 001 is provided with an armature, one end of the second electronic device 002 is provided with an electromagnetic sensor (refer to the electromagnetic sensor in embodiment 3), and the electromagnetic sensor can be magnetically attracted to the armature. The first electronic device 001 and the second electronic device 002 are connected via bluetooth. As shown in fig. 4, when one end of the second electronic device 002 is magnetically connected to the top of the first electronic device 001, the second electronic device 002 transmits an indication signal indicating that the first electronic device 001 and the second electronic device 002 are in contact with each other to the first electronic device 001 through bluetooth. The first electronic device 001 receives the indication signal to control the first speaker 003 of the first electronic device to turn on, and sends control information to the second electronic device 002 through bluetooth to control the second speaker 004 of the second electronic device 002 to turn on. As such, the first speaker 003 and the second speaker 004 can simultaneously play audio in a playback mode.
It is understood that the first electronic device may receive an indication signal sent by the second electronic device to indicate that the first electronic device and the second electronic device are in contact, and control the first speaker of the first electronic device and the second speaker of the second electronic device to be turned on according to the indication signal. Through the scheme, because the installation positions of the first loudspeaker and the second loudspeaker are different, the first loudspeaker and the second loudspeaker are simultaneously started, and when the audio is played, the hierarchy of the audio can be enriched, a stereo playing effect is generated, and the audio playing effect of the electronic equipment is improved.
Optionally, with reference to fig. 2, as shown in fig. 5, after step 102 and before step 103, the speaker control method provided in the embodiment of the present application further includes the following step 105 and step 106, and accordingly, step 103 may be specifically implemented by the following step 103 b.
And 105, displaying the target prompt information by the first electronic equipment.
The target prompt information is used for prompting a user whether to start stereo playing.
Optionally, in this embodiment of the application, the target prompt information is used to prompt a user whether to start stereo playing. Specifically, the target prompt message may be at least one of the following: prompting to start character information of the stereo playing, prompting to start pictures of the stereo playing, prompting to start animation of the stereo playing, and the like. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
Optionally, in this embodiment of the application, the first electronic device may highlight the target prompt information, and specifically, in a case that the first electronic device displays the target prompt information, the first electronic device may output a prompt audio to prompt the user to view the target prompt information; the first electronic device can also output vibration information to prompt the user to watch the target prompt information; the first electronic device may also highlight a reminder indication (e.g., exclamation mark, etc.) to prompt the user to view the target reminder information. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
Step 106, the first electronic device receives a first input of the target prompt message.
Optionally, in this embodiment of the application, the first input is used to select the target indication information, or select a virtual key in the target indication information. Specifically, the first input may be a touch input of the user to the target indication information or a virtual key in the target indication information. The touch input may be any one of the following: single click input, double click input, long press input, drag input along a preset trajectory, and the like. The method may be determined according to actual use requirements, and embodiments of the present application are not specifically limited.
Optionally, in this embodiment of the application, the target prompt message may include at least one virtual key, where the virtual key may correspond to different functions, and a user may trigger the first electronic device to perform different operations according to inputs of the different virtual keys.
Illustratively, assume that the target hint information includes: an "on" virtual key for triggering the electronic device to turn on stereo mode (i.e., a mode in which the first speaker and the second speaker are turned on) and an "off" virtual key for triggering the electronic device to turn off stereo mode (i.e., a mode in which the first speaker and the second speaker are turned off). If the user clicks the "start" virtual key, the electronic device turns on the first speaker and the second speaker in response to the single-click input (i.e., the first input) to start the stereo mode.
And 103b, the first electronic device responds to the first input and controls the first loudspeaker and the second loudspeaker to be started according to the indication signal.
It should be noted that, reference may be made to the above description in step 102 and step 102a for a manner of controlling the first speaker and the second speaker to be turned on according to the indication signal, and details are not repeated here.
For example, fig. 6 is a schematic diagram of a user operation of turning on a speaker of an electronic device. It is assumed that the top of the first electronic device 001 is provided with an armature, one end of the second electronic device 002 is provided with an electromagnetic sensor, and the electromagnetic sensor can magnetically attract the armature. The first electronic device 001 and the second electronic device 002 are connected via bluetooth. Under the condition that the one end of second electronic equipment 002 is inhaled with the top magnetism of first electronic equipment 001 and is connected, second electronic equipment 002 sends the instruction signal that instructs first electronic equipment 001 and second electronic equipment 002 contact to first electronic equipment 001 through the bluetooth. The first electronic device 001 receives the indication signal, and as shown in fig. 6, displays a prompt message 005 (i.e., a target prompt message), and the user can click "on" in the prompt message 005, trigger the first electronic device 001 to turn on the first speaker 003, and send control information to the second electronic device 002 through bluetooth to control the second speaker 004 of the second electronic device 002 to turn on. As such, the first speaker 003 and the second speaker 004 can simultaneously play audio in a playback mode, i.e., the stereo mode is turned on.
It can be understood that, after the first electronic device receives the indication signal sent by the second electronic device, the first electronic device may display a target prompt message for prompting the user whether to start stereo playback, and the user may control the start of the first speaker and the second speaker by inputting the target prompt message. Therefore, the user can select whether to start stereo playing according to actual use requirements, so that the man-machine interaction performance is improved, the user can use the stereo playing conveniently, and the use experience of the user is improved.
Optionally, with reference to fig. 2, as shown in fig. 7, after step 103, the method for controlling a speaker provided in the embodiment of the present application further includes step 107 described below.
And step 107, the first electronic device adjusts the output parameters of the target loudspeaker according to the target information.
The target information is input by a user or a current use state of the first electronic device, and the target loudspeaker is a first loudspeaker and/or a second loudspeaker.
Optionally, in this embodiment of the application, the output parameter of the target speaker may include at least one of: volume parameters of the speaker, delay parameters of the speaker, mode parameters of the speaker, etc. The volume parameter of the loudspeaker is used for controlling the output volume of the loudspeaker; the time delay parameter of the loudspeaker is used for controlling the time delay of the loudspeaker when outputting audio; the mode parameter of the speaker is used to determine a playing mode of the speaker, and may be specifically set according to an actual use requirement, which is not specifically limited in the embodiments of the present application.
For example, it is assumed that the volume of the speaker is provided with five gears from which the volume parameter of the speaker can select a specific volume gear, for example, three gears. The play mode may include: a bass play mode, an echo play mode, a rock play mode, etc.
Optionally, in this embodiment of the application, the method for adjusting the output parameter of the target speaker by the first electronic device according to the target information may be specifically implemented in the following two ways:
in a first mode
Optionally, in this embodiment of the application, after the first electronic device controls the first speaker and the second speaker to be turned on according to the indication signal, the first electronic device may display a target control, where the target control includes a plurality of control items, and each control item is used to control one output parameter of the speaker. The first electronic device may then adjust output parameters of the target speaker based on a first target input to the target control by the user (i.e., the first target input includes target information. The first target input is used for adjusting parameters of a plurality of control items in the target control, and the first target input may be, for example, an input for setting parameters of the plurality of control items for a user.
For example, assume that after the first speaker and the second speaker are turned on, the first electronic device displays a target control, which includes a volume parameter control item and a time delay parameter control item. The user can manually set the volume parameter to be in the third gear through the volume parameter control item, and manually set the delay parameter to be in the 1.5 second through the delay parameter control item, and the first electronic device can respond to the manual setting operation of the user (namely, the first target input including the target information), and set the volume parameter in the output parameters of the loudspeaker to be in the third gear and the delay parameter to be in the 1.5 second.
Mode two
Optionally, in this embodiment of the application, the first electronic device automatically adjusts an output parameter of the target speaker according to the current use state.
In this embodiment, the current usage state specifically refers to a current usage scenario of the first electronic device, an application currently running, and the like. Wherein the current usage scenario may be any one of: game scenes, music scenes, video scenes, call scenes, and the like. The setting can be specifically performed according to actual use requirements, and the embodiment of the application is not particularly limited.
Optionally, when the current usage scene of the first electronic device is a game scene, the first electronic device may identify a ratio of the target main body in the game picture to the display picture, and automatically adjust the output parameter of the target speaker. Wherein the target subject may be a character of the user in the game, a vehicle operated, or the like.
For example, the output parameter of the target speaker is taken as a volume parameter for example. Assuming that a game interface currently displayed by a user is an interface of a racing game, operating a racing car A of 5 racing cars in a game picture by the user, and when the proportion of the racing car A in the display picture is less than 20% in the picture displayed by the game, setting a volume parameter of a first loudspeaker to be a first gear; when the proportion of the racing car A in the display picture is less than 40% and more than 20%, the volume parameter of the first loudspeaker is in the second gear; when the proportion of the racing car A in the display picture is less than 60% and more than 40%, the volume parameter of the first loudspeaker is in a third gear; when the proportion of the racing car A in the display picture is less than 80% and more than 60%, the volume parameter of the first loudspeaker is in a fourth gear; when the proportion of the racing car A in the display picture is more than 80%, the volume parameter of the first loudspeaker is in five steps. In this way, the first electronic device adjusts the output volume of the target speaker according to the change of the ratio of the racing car on the display screen.
Optionally, when the current usage scenario of the first electronic device is a music scenario, the first electronic device may identify a currently played music type, and automatically adjust the output parameter of the target speaker. Wherein the music types include: soft music, pop music, famous music, rock music, beautiful music, etc. The setting can be specifically performed according to actual use requirements, and the embodiment of the application is not particularly limited.
For example, the output parameter of the target speaker is taken as a volume parameter for example. If the current playing is light music, the first electronic device correspondingly adjusts the output volume of the target loudspeaker to be a first gear; if the current playing is the popular music, the first electronic device correspondingly adjusts the output volume of the target loudspeaker to be in a third gear; and if the current playing is rock music, the first electronic equipment correspondingly adjusts the output volume of the target loudspeaker to be five grades.
Optionally, when the current usage scene of the first electronic device is a video scene or a call scene, the first electronic device may adjust the output parameter of the target speaker according to an output parameter preset by a user to output.
Optionally, in this embodiment of the application, under the condition that the scenes are switched to be used, the output parameters of the target speaker are adjusted by adopting a corresponding adjustment manner based on the currently used scene, and the output is performed.
For example, assuming that the current usage scenario of the first electronic device is a music scenario, the first electronic device may recognize that the currently played music is rock music, and the corresponding first electronic device adjusts the output volume of the target speaker to be in fifth gear. At this time, the electronic device has an incoming call, and when the user answers the incoming call, the first electronic device switches to the volume of the target speaker corresponding to the call scene, for example, the third gear. This allows the input parameters of the target loudspeaker to be adapted to the current scene.
It is understood that the first electronic device may adjust the output parameters of the target speaker according to the user input or the current usage state of the first electronic device, so that the input parameters of the target speaker are adapted to the current usage scenario or the user's requirement. Therefore, the stereo mode is convenient for the user to use, and the use experience of the user is improved.
Optionally, in this embodiment of the present application, the second speaker is a directional speaker, and after step 103, the speaker control method provided in this embodiment of the present application may further include the following step 108 and step 109.
Step 108, the first electronic device receives a second input.
The second input is an input for adjusting the relative position of the second electronic device and the first electronic device;
in this embodiment, the second input is used to adjust a relative position between the second electronic device and the first electronic device. Specifically, the second input may be an input to the first electronic device, for example, a user adjusts a position of the first electronic device; the second input may also be an input to the second electronic device, e.g., a user adjusting a position of the second electronic device; the second input may also be an input to the first electronic device and the second electronic device at the same time, for example, a user simultaneously adjusts the positions of the first electronic device and the second electronic device so that the relative positions of the first electronic device and the second electronic device change.
Optionally, in this embodiment of the application, the second input may specifically be any one of the following: the orientation of the electronic device is changed, the position of the electronic device is moved, the position and the orientation of the electronic device are changed at the same time, and the like, and the electronic device can be specifically determined according to actual use requirements, and the embodiment of the application is not specifically limited.
In the embodiment of the present application, the second speaker is a directional speaker, and the directional speaker is used for outputting audio in a specific direction. When the position of the second electronic device changes, so that the relative position between the first electronic device and the second electronic device changes, the direction of the second electronic device outputting the audio also changes.
And step 109, the first electronic device responds to the second input and adjusts the direction of the audio output by the second electronic device.
It should be noted that the first electronic device may control the direction in which the second speaker of the second electronic device outputs audio. Specifically, the first electronic device adjusts an output parameter of the directional speaker (i.e., the second speaker) to change a direction in which the second speaker outputs audio; alternatively, where the second input changes the relative position of the second speaker (e.g., changes the orientation of the second speaker or changes the position of the second speaker), the direction of the output audio of the second speaker changes.
Optionally, in this embodiment of the application, a user may simultaneously adjust the relative position of the second speaker and the output parameter of the second speaker according to a use requirement, so as to change the direction of the audio output by the second speaker.
It can be understood that the user can adjust the relative position between the first loudspeaker and the second loudspeaker according to the actual use requirement to change the audio output direction of the second loudspeaker, so that the output stereo effect is more obvious, the user requirement is more met, and the use experience of the user is further improved.
Example 2
The embodiment of the present application provides a speaker control method, which is applied to a second electronic device and may include the following step 301.
Step 301, when the first electronic device is in contact with the second electronic device, the second electronic device sends an indication signal to the first electronic device.
The indication signal is used for indicating that the first electronic device is in contact with the second electronic device.
It should be noted that, in this embodiment of the application, for the description of the first electronic device, the second electronic device and the indication signal, reference may be specifically made to the related description in step 101, and details are not described here again.
Optionally, in this embodiment of the present application, after step 301, the method for controlling a speaker provided in this embodiment of the present application may further include step 302 described below.
Step 302, the second electronic device receives a control signal sent by the first electronic device.
The control signal is used for controlling the second electronic device to start the second loudspeaker.
It should be noted that, in the embodiment of the present application, the description of the control signal may specifically refer to the description in step 102 and step 102a, and is not repeated herein.
Optionally, in this embodiment of the application, the second electronic device may control, according to the control signal, the turning on of the second speaker through a control module of the second electronic device.
The application provides a loudspeaker control method, wherein when a first electronic device is in contact with a second electronic device, the second electronic device sends an indication signal for indicating that the first electronic device is in contact with the second electronic device to the first electronic device. Then, the second electronic device receives the control signal sent by the first electronic device and controls the second loudspeaker to be started. Therefore, the second loudspeaker can be controlled to be turned on according to actual use requirements, and the effect of playing audio is improved.
Example 3
As shown in fig. 8, an embodiment of the present application provides a headset 800, including: a control module 801, and a second speaker 802, a third speaker 803 and an electromagnetic sensor 804 connected to the control module 801, wherein the second speaker 802 is a loud speaker and the third speaker 803 is an earpiece speaker.
And the control module 801 is used for sending an indication signal to the electronic device and receiving a control signal sent by the electronic device when the electromagnetic sensor 804 detects that the earphone 800 is in contact with the electronic device, and controlling the second loudspeaker 802 to be turned on according to the control signal.
The indication signal is used to indicate that the headset 800 is in contact with the electronic device.
Optionally, in this embodiment of the application, the earphone 800 may be the second electronic device in embodiment 1. Specifically, the headset 800 may be a bluetooth headset, that is, the headset and the electronic device (e.g., the first electronic device) may be connected via bluetooth to transmit the indication signal and the control signal to each other.
In the embodiment of the present application, in the earphone 800, the second speaker 802 is an external speaker, the third speaker 803 is an earpiece speaker, and when the second speaker and the first speaker of the electronic device are turned on simultaneously, the stereo mode is entered. At this time, whether the third speaker is turned on or not is not particularly limited in the present application.
In addition, for the description of the play-out mode of the second speaker and the earpiece mode of the third speaker, reference may be made to the related description in step 103 in embodiment 1, and details are not repeated here.
Optionally, in this embodiment of the application, the control module may specifically include: the electronic device comprises a transceiver module and a processing module, wherein the transceiver module can be specifically used for sending an indication signal to the electronic device and receiving a control signal sent by the electronic device. For example, the transceiver module may be a bluetooth transceiver module. The processing module may be specifically configured to control the second speaker to be turned on according to the received control signal. The determination may be specifically performed according to actual use requirements, and the embodiment of the present application is not specifically limited.
It should be noted that, in the embodiment of the present application, the electromagnetic sensor may be replaced according to specific use requirements, and the present application is not limited specifically. The electromagnetic sensor described above is only one preferred way to achieve this function. For example, the electromagnetic sensor is replaced by a pressure sensor, and when the contact pressure between the earphone and the electronic device is larger than a preset value, the earphone is determined to be in contact with the electronic device, and an indication signal is sent to the electronic device. For another example, the electromagnetic sensor is replaced by an infrared sensor, and when the earphone and the electronic device are located at preset positions, the earphone is determined to be in contact with the electronic device, and an indication signal is sent to the electronic device.
For example, as shown in fig. 8, assuming that the headset 800 is a bluetooth headset, the headset 800 has a bluetooth connection with an electronic device, the default setting is the earpiece mode of the electronic device, and the headset turns on the third speaker 803. When the electromagnetic sensor 804 in the headset 800 detects that the headset 800 is in contact with the electronic device, the electromagnetic sensor 804 sends first target information to the control module 801, the first target information indicating that the headset 800 is in contact with the electronic device. The control module 801 sends an indication signal for indicating that the headset 800 is in contact with the electronic device to the electronic device through bluetooth connection, and the electronic device sends a control signal to the headset 800 after receiving the indication signal. The control module 801 receives the control signal and turns on the second speaker 802 according to the control signal. At this time, the earphone 800 may output audio in a playback mode through the second speaker 802.
The present application provides a headset, comprising: the control module to and the second speaker, third speaker and the electromagnetic sensor who are connected with control module, the second speaker is the loudspeaker of putting outward, and the third speaker is the earphone speaker. Under the condition that the electromagnetic sensor detects that the earphone is in contact with the electronic equipment, the control module sends an indication signal to the electronic equipment and receives a control signal sent by the electronic equipment to turn on the second loudspeaker. So, can open the second speaker according to the control of in-service use demand to make the level of the audio frequency of broadcast abundanter, produce stereo broadcast effect, and then improve the effect of electronic equipment broadcast audio frequency.
In the speaker control method provided in the embodiments of the present application, the execution subject may be a speaker control apparatus, or a control module in the speaker control apparatus for executing the speaker control method. In the embodiment of the present application, a speaker control apparatus executing a speaker control method is taken as an example, and the apparatus provided in the embodiment of the present application is described.
As shown in fig. 9, an embodiment of the present application provides a speaker control apparatus 900. The speaker control apparatus 900 includes a processing module 901.
The processing module 901 is configured to control the first speaker and the second speaker to be turned on when the first electronic device is in contact with the second electronic device. The first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device.
Alternatively, with reference to fig. 9 and as shown in fig. 10, an embodiment of the present application provides a speaker control apparatus 900. The speaker control apparatus 900 may further comprise a transceiver module 902. The transceiver module 902 may be configured to receive an indication signal sent by the second electronic device, where the indication signal indicates that the first electronic device and the second electronic device are in contact. The processing module 901 may be configured to control the first speaker and the second speaker to turn on according to the indication signal received by the transceiver module 902.
Optionally, as shown in fig. 10, the speaker control apparatus 900 according to the embodiment of the present application further includes: a display module 903 and a receiving module 904. The display module 903 may be configured to display a target prompt message, where the target prompt message is used to prompt a user whether to start stereo playback. The receiving module 904 may be configured to receive a first input of the target prompt message. The processing module 901 may be specifically configured to, in response to the first input received by the receiving module 904, control the first speaker and the second speaker to be turned on according to the indication signal.
Optionally, as shown in fig. 10, the second speaker is a directional speaker, and the speaker control apparatus 900 provided in the embodiment of the present application further includes an adjusting module 905. The receiving module 904 may further be configured to receive a second input, where the second input is an input for adjusting a relative position of the second electronic device and the first electronic device. An adjusting module 905, configured to adjust a direction in which the second electronic device outputs audio in response to the second input received by the receiving module 904.
Optionally, as shown in fig. 10, the adjusting module 905 may be configured to adjust an output parameter of the target speaker according to target information, where the target information is input by a user or a current usage state of the first electronic device. Wherein the target speaker is a first speaker and/or a second speaker.
The speaker control apparatus in the embodiment of the present application may be a functional entity and/or a functional module in an electronic device, which executes a speaker control method, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The speaker control apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The speaker control device provided in the embodiment of the present application can implement each process implemented by the speaker control device in the method embodiments of fig. 1 to fig. 10, and for avoiding repetition, details are not described here again.
The embodiment of the application provides a speaker control device, when first electronic equipment and second electronic equipment contact, first electronic equipment can control its self first speaker and second electronic equipment's second speaker and open, because first speaker and second speaker belong to different electronic equipment respectively, and the different positions at different electronic equipment of installation between them, consequently when playing audio through first speaker and second speaker, can richen the level of audio frequency, produce stereo broadcast effect, thereby improve the effect that electronic equipment played audio frequency.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in this embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction stored in the memory 1102 and executable on the processor 1101, where the program or the instruction is executed by the processor 1101 to implement each process of the above-mentioned speaker control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 2000 includes, but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, and a processor 2010.
Among other things, the input unit 2004 may include a graphic processor 20041 and a microphone 20042, the display unit 2006 may include a display panel 20061, the user input unit 2007 may include a touch panel 20071 and other input devices 20072, and the memory 2009 may be used to store software programs (e.g., an operating system, an application program required for at least one function), and various data.
Those skilled in the art will appreciate that the electronic device 2000 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 2010 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 2010 may be configured to control the first speaker and the second speaker to be turned on when the first electronic device is in contact with the second electronic device. The first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device.
The embodiment of the application provides an electronic device, when first electronic equipment and second electronic equipment contact, first electronic equipment can control its self first speaker and second electronic equipment's second speaker and open, because first speaker and second speaker belong to different electronic equipment respectively, and the different positions at different electronic equipment of installation between them, consequently when playing audio through first speaker and second speaker, can richen the level of audio frequency, produce stereo broadcast effect, thereby improve the effect that electronic equipment played the audio frequency.
Optionally, in this embodiment of the application, the radio frequency unit 2001 may be configured to receive an indication signal sent by the second electronic device, where the indication signal is used to indicate that the first electronic device and the second electronic device are in contact. The processor 2010 may be configured to control the first speaker and the second speaker to be turned on according to the indication signal received by the radio frequency unit 2001.
It is understood that the first electronic device may receive an indication signal sent by the second electronic device to indicate that the first electronic device and the second electronic device are in contact, and control the first speaker of the first electronic device and the second speaker of the second electronic device to be turned on according to the indication signal. Through the scheme, because the installation positions of the first loudspeaker and the second loudspeaker are different, the first loudspeaker and the second loudspeaker are simultaneously started, and when the audio is played, the hierarchy of the audio can be enriched, a stereo playing effect is generated, and the audio playing effect of the electronic equipment is improved.
Optionally, in this embodiment of the application, the processor 2010 may be specifically configured to control the radio frequency unit 2001 to send a control signal to the second electronic device according to the indication signal, where the control signal may be used to control the second electronic device to turn on the second speaker.
It can be understood that, since the first electronic device can send a control signal for controlling the turning on of the second speaker to the second electronic device according to the indication signal, the second electronic device can control the turning on of the second speaker according to the received control signal. Therefore, when the audio is played, the first loudspeaker and the second loudspeaker can play the audio at the same time to form a stereo playing effect, so that the audio playing effect of the electronic equipment is improved, and the use experience of a user is improved.
Alternatively, in the embodiment of the present application, the audio output unit 2003 may be configured to output an audio signal through the first speaker and the second speaker.
It can be understood that, since the electronic device can play the audio using the first speaker and the second speaker simultaneously, a stereo playing effect is formed, and the audio playing effect of the electronic device is mentioned.
Optionally, in this embodiment of the application, the first electronic device and the second electronic device are in contact in a magnetic connection manner or in contact in an electrical connection manner.
Optionally, in this embodiment of the application, the display unit 2006 may be configured to display target prompt information, where the target prompt information is used to prompt a user whether to start stereo playing. The user input unit 2007 may be used to receive a first input of the target prompt information. The processor 2010, in particular, may be configured to control the first speaker and the second speaker to be turned on according to the indication signal in response to the first input received by the user input unit 2007.
It can be understood that, after the first electronic device receives the indication signal sent by the second electronic device, the first electronic device may display a target prompt message for prompting the user whether to start stereo playback, and the user may control the start of the first speaker and the second speaker by inputting the target prompt message. Therefore, the user can select whether to start stereo playing according to actual use requirements, so that the man-machine interaction performance is improved, the user can use the stereo playing conveniently, and the use experience of the user is improved.
Optionally, in this embodiment of the application, the user input unit 2007 may be further configured to receive a second input, where the second input is an input for adjusting a relative position of the second electronic device and the first electronic device. A processor 2010 for adjusting a direction in which the second electronic device outputs audio in response to the second input received by the user input unit 2007.
It can be understood that the user can adjust the relative position between the first loudspeaker and the second loudspeaker according to the actual use requirement to change the audio output direction of the second loudspeaker, so that the output stereo effect is more obvious, the user requirement is more met, and the use experience of the user is further improved.
Optionally, in this embodiment of the application, the processor 2010 may be configured to adjust an output parameter of the target speaker according to target information, where the target information is input by a user or a current use state of the first electronic device. Wherein the target speaker is a first speaker and/or a second speaker.
It is understood that the first electronic device may adjust the output parameter of the target speaker according to the user input or the current usage state of the first electronic device, so that the input parameter of the target speaker is adapted to the current usage scenario or the user's requirement. Therefore, the stereo mode is convenient for the user to use, and the use experience of the user is improved.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned speaker control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the speaker control method, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (7)

1. A loudspeaker control method is applied to first electronic equipment, and is characterized in that the method comprises the following steps:
under the condition that the first electronic equipment is in contact with the second electronic equipment, controlling the first loudspeaker and the second loudspeaker to be started;
under the condition that the first electronic equipment is contacted with the second electronic equipment, controlling the first loudspeaker and the second loudspeaker to be started comprises the following steps:
receiving an indication signal sent by a second electronic device, wherein the indication signal is used for indicating that the first electronic device is in contact with the second electronic device;
controlling the first loudspeaker and the second loudspeaker to be started according to the indication signal;
outputting the same audio signal through the first speaker and the second speaker simultaneously;
the first loudspeaker is a loudspeaker of the first electronic device, and the second loudspeaker is a loudspeaker of the second electronic device;
the second speaker is a directional speaker, the method further comprising:
receiving a second input, wherein the second input is an input for adjusting the relative position of the second electronic device and the first electronic device, and the second input is an input for the first electronic device;
adjusting a direction in which audio is output by the second electronic device in response to the second input;
the adjusting the direction in which the second electronic device outputs audio comprises:
and controlling the direction of the audio output by the second loudspeaker in the second electronic equipment.
2. The method of claim 1, wherein after receiving the indication signal transmitted by the second electronic device, the method further comprises:
displaying target prompt information, wherein the target prompt information is used for prompting a user whether to start stereo playing;
receiving a first input of the target prompt message;
the controlling the first loudspeaker and the second loudspeaker to be started according to the indication signal comprises:
and responding to the first input, and controlling the first loudspeaker and the second loudspeaker to be switched on according to the indication signal.
3. The method of any of claims 1-2, wherein after controlling the first speaker and the second speaker to turn on, the method further comprises:
adjusting output parameters of a target loudspeaker according to target information, wherein the target information is input by a user or the current using state of the first electronic equipment;
wherein the target speaker is the first speaker and/or the second speaker.
4. A loudspeaker control device is applied to first electronic equipment and is characterized by comprising a processing module and a transceiving module;
the processing module is used for controlling the first loudspeaker and the second loudspeaker to be started under the condition that the first electronic equipment is in contact with the second electronic equipment;
the transceiver module is used for receiving an indication signal sent by second electronic equipment, wherein the indication signal is used for indicating that the first electronic equipment is in contact with the second electronic equipment;
the processing module is specifically used for controlling the first loudspeaker and the second loudspeaker to be started according to the indication signal;
the processing module is also used for outputting the same audio signal through the first loudspeaker and the second loudspeaker at the same time;
the first loudspeaker is a loudspeaker of the first electronic device, and the second loudspeaker is a loudspeaker of the second electronic device;
the second speaker is a directional speaker; the device further comprises: the device comprises a receiving module and an adjusting module;
the receiving module is further configured to receive a second input, where the second input is an input for adjusting a relative position of the second electronic device and the first electronic device, and the second input is an input for the first electronic device;
the adjusting module is configured to adjust a direction in which the second electronic device outputs audio in response to the second input received by the receiving module;
the adjusting module is specifically configured to control a direction in which a second speaker in the second electronic device outputs audio.
5. The apparatus of claim 4, further comprising: a display module and a receiving module;
the display module is used for displaying target prompt information, and the target prompt information is used for prompting a user whether to start stereo playing;
the receiving module is used for receiving a first input of the target prompt message;
the processing module is specifically configured to control the first speaker and the second speaker to be turned on according to the indication signal in response to the first input received by the receiving module.
6. The apparatus of any one of claims 4 to 5, further comprising an adjustment module;
the adjusting module is used for adjusting the output parameters of the target loudspeaker according to target information, wherein the target information is input by a user or the current using state of the first electronic equipment;
wherein the target speaker is the first speaker and/or the second speaker.
7. An earphone, characterized in that the earphone comprises: the control module, and a second speaker, a third speaker and an electromagnetic sensor which are connected with the control module, wherein the second speaker is an external speaker, and the third speaker is an earphone speaker;
the control module is used for sending an indication signal to the electronic equipment, receiving a control signal sent by the electronic equipment and controlling the second loudspeaker to be turned on according to the control signal under the condition that the electromagnetic sensor detects that the earphone is in contact with the electronic equipment;
wherein the indication signal is used for indicating that the earphone is in contact with the electronic equipment;
the electronic device is applied to the speaker control method according to any one of claims 1 to 3.
CN202010574225.3A 2020-06-22 2020-06-22 Loudspeaker control method and device and electronic equipment Active CN111770416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010574225.3A CN111770416B (en) 2020-06-22 2020-06-22 Loudspeaker control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010574225.3A CN111770416B (en) 2020-06-22 2020-06-22 Loudspeaker control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111770416A CN111770416A (en) 2020-10-13
CN111770416B true CN111770416B (en) 2022-08-02

Family

ID=72721704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010574225.3A Active CN111770416B (en) 2020-06-22 2020-06-22 Loudspeaker control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111770416B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492073B (en) * 2020-11-24 2021-09-28 捷开通讯(深圳)有限公司 Audio playing method and device, storage medium and mobile terminal
CN115904303A (en) * 2021-05-21 2023-04-04 荣耀终端有限公司 Method and equipment for playing sound
CN113326017A (en) * 2021-06-01 2021-08-31 南昌勤胜电子科技有限公司 Loudspeaker parameter configuration method and device, electronic equipment and storage medium
CN113709281A (en) * 2021-08-24 2021-11-26 Oppo广东移动通信有限公司 Control method, electronic device and external playing system
CN113746982B (en) * 2021-08-25 2023-02-28 维沃移动通信(杭州)有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640029A (en) * 2013-11-06 2015-05-20 索尼公司 Audio outputting method and device, and electronic device
CN111093137A (en) * 2019-12-27 2020-05-01 维沃移动通信有限公司 Volume control method, volume control equipment and computer readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200908669A (en) * 2007-08-15 2009-02-16 Cotron Corp Stereo bluetooth headset
CN102143421B (en) * 2010-02-02 2013-06-05 华为终端有限公司 Terminal and method for processing audio of terminal
CN201854433U (en) * 2010-08-10 2011-06-01 上海华勤通讯技术有限公司 Mobile phone capable of outputting voice frequency by cooperation
CN103167372A (en) * 2013-04-09 2013-06-19 北京兴科迪科技有限公司 Bluetooth headset with hands-free function and vehicle with same
CN103929691A (en) * 2014-03-20 2014-07-16 联想(北京)有限公司 Information processing method and electronic equipment
KR20170082405A (en) * 2016-01-06 2017-07-14 삼성전자주식회사 Ear wearable type wireless device and system supporting the same
CN106454645A (en) * 2016-11-15 2017-02-22 深圳天珑无线科技有限公司 Method for broadcasting stereophonic sound with inter-linked equipment, stereophonic sound broadcasting system and audio equipment
CN106792365B (en) * 2016-11-23 2020-10-02 广东小天才科技有限公司 Audio playing method and device
CN108419183A (en) * 2018-03-29 2018-08-17 联想(北京)有限公司 The audio-frequency processing method and electronic equipment of a kind of electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640029A (en) * 2013-11-06 2015-05-20 索尼公司 Audio outputting method and device, and electronic device
CN111093137A (en) * 2019-12-27 2020-05-01 维沃移动通信有限公司 Volume control method, volume control equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111770416A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN111770416B (en) Loudspeaker control method and device and electronic equipment
US9762317B2 (en) Playing synchronized mutichannel media on a combination of devices
CN108966067B (en) Play control method and related product
WO2020156251A1 (en) Audio playing and collection method, apparatus and device and readable storage medium
US20110087964A1 (en) Method for indicating a volume of an audio sink of a portable electronic device
CN105959878B (en) The control method and device of stereo component system
CN106454644B (en) Audio playing method and device
US8949115B2 (en) Terminal device, audio output method, and information processing system
WO2023284477A1 (en) Interaction method and related apparatus
CN106506437B (en) Audio data processing method and device
CN104796642A (en) A dual-mode Bluetooth sound-box television system and a dual-mode Bluetooth audio playing control method thereof
WO2024021736A1 (en) Transmission method, apparatus, and system for bluetooth multimedia packet, and device
CN109614470A (en) Answer processing method, device, terminal and the readable storage medium storing program for executing of information
WO2023011370A1 (en) Audio playing method and apparatus
JP4364024B2 (en) Mobile device
WO2023185589A1 (en) Volume control method and electronic device
CN105635916A (en) Audio processing method and apparatus
WO2024021735A1 (en) Bluetooth multimedia packet transmission method and apparatus, device, system, and storage medium
CN103716550B (en) For reducing the method and apparatus that the stand-by period is presented
WO2023169367A1 (en) Audio playing method and electronic device
WO2023160204A1 (en) Audio processing method, and electronic device
CN107124512B (en) The switching method and apparatus of audio-frequency play mode
CN113115155B (en) Wireless earphone control method, wireless earphone control device and electronic equipment
CN113746982B (en) Audio playing control method and device, electronic equipment and readable storage medium
CN114567840B (en) Audio output method and device, mobile terminal and storage medium

Legal Events

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