Disclosure of Invention
In order to overcome at least one of the deficiencies in the prior art, a first aspect of embodiments of the present application is to provide a method for determining a playback device, which is applied to a mobile terminal, and the method includes:
acquiring a state identifier of a wireless earphone, wherein the state identifier is used for indicating the current storage state of the wireless earphone;
determining target playing equipment from alternative playing equipment according to the state identifier, wherein the alternative playing equipment comprises the wireless earphone and a storage box used for storing the wireless earphone, and the storage box is provided with an audio playing device and a communication device used for communicating with the mobile terminal;
and configuring the target playing device as a device for playing audio data.
Optionally, the step of determining a target playback device from alternative playback devices according to the state identifier includes:
if the state identification indicates that the wireless earphone is not stored in the storage box, determining the wireless earphone as the target playing device;
and if the state identification indicates that the wireless earphone is stored in the storage box and the storage box is in a first use state, determining the storage box as the target playing equipment.
Optionally, the alternative playback device further includes the mobile terminal, and the step of determining the target playback device from the alternative playback devices according to the state identifier further includes:
and if the state identification indicates that the wireless earphone is stored in the storage box and the storage box is in a second use state different from the first use state, determining the mobile terminal as the target playing device.
A second aspect of an embodiment of the present application is to provide a playback device determination method applied to an earphone storage system including wireless earphones and a storage case configured to store the wireless earphones, the storage case being provided with an audio playback device and a communication device for communicating with a mobile terminal, the method including:
detecting the accommodating state of the wireless earphone through the accommodating box;
and sending a state identifier for identifying the storage state to the mobile terminal.
Optionally, the storage state includes that the wireless earphone is not stored in the storage box, the wireless earphone is stored in the storage box, and the storage box is in a first use state, and the wireless earphone is stored in the storage box, and the storage box is in a second use state different from the first use state.
Optionally, the method further comprises:
detecting a current wearing state through the wireless earphone, and sending a state identifier for indicating the wearing state to the storage box;
and sending the state identification for indicating the wearing state to the mobile terminal through the storage box.
Optionally, the storage box is further provided with a sound recording device, and the method further comprises:
acquiring a control instruction sent by the mobile terminal;
enabling the recording device according to the control instruction;
and audio data are collected through the recording device, and the audio data collected by the recording device are sent to the mobile terminal.
A third aspect of an embodiment of the present application is to provide an earphone storage system, which includes a wireless earphone and a storage box, wherein the storage box is configured to store the wireless earphone, and the storage box is configured with an audio playing device and a communication device for communicating with a mobile terminal;
the storage box is used for detecting the storage state of the wireless earphone and sending the mark of the storage state to the mobile terminal.
A fourth aspect of the embodiments of the present application is to provide a playback device determination apparatus, which is applied to a mobile terminal, where the playback device determination apparatus includes:
the system comprises an identification acquisition module, a storage module and a control module, wherein the identification acquisition module is used for acquiring a state identification of the wireless earphone, and the state identification is used for indicating the current storage state of the wireless earphone;
the target determining module is used for determining target playing equipment from alternative playing equipment according to the state identifier, wherein the alternative playing equipment comprises the wireless earphone and a storage box used for storing the wireless earphone, and the storage box is provided with an audio playing device and a communication device used for communicating with the mobile terminal;
and the target configuration module configures the target playing device as a device for playing audio data.
A fifth aspect of embodiments of the present application is to provide an electronic device, where the electronic device includes a processor and a memory, where the memory stores therein machine-executable instructions that are executable by the processor, and when the machine-executable instructions are executed by the processor, the method for determining a playback device is implemented.
A sixth aspect of embodiments of the present application is directed to a storage medium storing a computer program that, when executed by a processor, implements a playback device determination method.
Compared with the prior art, the method has the following beneficial effects:
the embodiment of the application provides a playing device determining method and device, an earphone accommodating system and an electronic device. In the playing equipment determining method, the mobile terminal determines a target audio playing equipment from the wireless earphone and a storage box configured with an audio playing device by acquiring the current storage state of the wireless earphone; which is configured as a device for playing audio data. Because this receiver disposes audio playback device, can regard as the audio amplifier to use. The mobile terminal automatically switches the equipment for playing the audio data through the storage state of the earphone, so that a user can freely switch between the storage box and the wireless earphone without operating the mobile terminal, the complex operation of the user is reduced, and the user experience is improved.
Detailed Description
In order to make the technical solutions of the embodiments of the present application clearer, the technical solutions of 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 embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The embodiment of the application provides a playing device determining method which is applied to a mobile terminal. Referring to fig. 1, it should be understood that the storage box 300 provided in the embodiment of the present application is configured with an audio playing device, so that the storage box 300 can be used not only for storing the wireless earphones 200, but also as a sound box device. Of course, since the wireless headset 200 needs to carry its own power source, the wireless headset 200 itself has a small volume, and thus the wireless headset 200 also has a problem of short endurance. In order to improve the endurance of the wireless headset 200, the storage case 300 may also be used as a charging case for the wireless headset 200 to charge the stored wireless headset 200.
Since the storage case 300 can be used as a speaker, it is necessary to select a target playback device between the wireless headphones 200 and the storage case 300 to play back audio data. As a possible implementation, the user may select a device as the target playback device through the mobile terminal 100. In this manner, the user is required to select among the mobile terminals 100, that is, the user is required to take out the mobile terminal 100 every time of switching, and thus, the operation is complicated.
Referring to fig. 2, a flowchart of a method for determining a playing device according to an embodiment of the present application is shown. The individual steps of the process are described in detail below.
Step S100, a status flag of the wireless headset 200 is obtained, where the status flag is used to indicate a current storage status of the wireless headset 200.
It should be understood that the storage state of the wireless headset 200 includes the storage in the headset case, the storage case 300 is in the first usage state and is stored in the storage case 300, and the storage case 300 is in the second usage state different from the first usage state and is not stored in the storage case 300. The above states are marked by different state flags so that the mobile terminal 100 determines the current storage state of the wireless headset 200 and the use state of the storage case 300 by the state flags.
Specifically, when the storage case 300 is in the first use state, the lid of the storage case 300 is in an unclosed or opened state; when the storage case 300 is in the second use state, the lid of the storage case 300 is in a closed or closed state; the first usage state of the storage case 300 is different from the second usage state of the cover, and may be different whether the cover is opened or closed, or different in structural operation, or different in operation mode.
Step S200, determining a target playing device from alternative playing devices according to the status identifier, where the alternative playing devices include a wireless headset 200 and a storage box 300 for storing the wireless headset 200, and the storage box 300 is configured with an audio playing device and a communication device for communicating with the mobile terminal 100.
Since wireless headset 200 is not once stored in storage case 300, it means that the user is currently using or will use wireless headset 200. Based on the characteristic, a target playback device that plays the audio data is determined.
Step S300, configuring the target playing device as a device for playing audio data.
After the mobile terminal 100 determines the target playing device, once the audio data needs to be played, the audio data is sent to the corresponding target playing device.
The embodiment of the application provides a playing device determining method and device, an earphone accommodating system and an electronic device. In the playing device determining method, the mobile terminal 100 determines a target audio playing device from the wireless headset 200 and the storage box 300 configured with an audio playing device by acquiring the current storage state of the wireless headset 200; which is configured as a device for playing audio data. Since this storage case 300 is provided with an audio playback device, it can be used as a sound box. The mobile terminal 100 automatically switches the device for playing the audio data through the storage state of the earphone, so that the user can freely switch between the storage box 300 and the wireless earphone 200 without operating the mobile terminal 100, the complex operation of the user on the mobile terminal 100 is reduced, and the user experience is improved.
When the target playback device is determined based on the status identifier, as a possible implementation manner, if the status identifier indicates that the wireless headset 200 is not stored in the storage box 300, the mobile terminal 100 determines the wireless headset 200 as the target playback device. If the status flag indicates that the wireless headset 200 is stored in the storage case 300 and the storage case 300 is in the first use status, that is, the lid of the storage case 300 is not closed, the mobile terminal 100 determines the storage case 300 as the target playback device.
It should be appreciated that a user typically places the mobile terminal 100 in a bag when the user does not need to use the mobile terminal 100 (e.g., a smartphone). By the method for determining the playing device provided by the embodiment of the application, when the user needs to use the wireless headset 200, the user only needs to take the wireless headset 200 out of the storage box 300, and the mobile terminal 100 automatically takes the wireless headset 200 as the target playing device. Similarly, when the user wants to play music through the storage case 300 or to function as a sound amplifying device, the mobile terminal 100 automatically uses the storage case 300 as a target playing device by only storing the wireless headset 200 in the storage case 300 and keeping the storage case 300 in the first use state, that is, keeping the cover of the storage case 300 open. In the above handover process, the user does not need to directly operate the mobile terminal 100 in the package, so that the mobile terminal 100 seems to be able to "push" the mind of the user, and the user experience can be improved.
Of course, when the user does not need to use either the wireless headset 200 or the storage case 300 as a speaker, the user only needs to store the wireless headset 200 in the storage case and adjust the storage case 300 to the second use state, that is, close the lid of the storage case 300. At this time, when the mobile terminal 100 needs to play the audio data, the audio data is played locally, that is, directly played at the mobile terminal 100.
In addition, when the wireless headset 200 is not stored in the storage case 300, there may be two cases. In one case, the wireless headset 200 is worn by a user; in the second case, the wireless headset 200 is simply taken out from the storage case 300 by the user, but is not worn. In case two, the wireless headset 200 plays the audio data, which will certainly cause a certain power consumption. Therefore, the status indicator is also used to indicate the wearing status of the wireless headset 200, and when the mobile terminal 100 detects that the wireless headset 200 is not accommodated in the accommodating case 300 and worn by the user, the audio data is sent to the wireless headset 200 for playing.
It should be understood that the wireless headset 200 may detect whether the wireless headset 200 is worn by the user through an in-ear sensor.
The embodiment of the present application further provides a playing device determining method, which is applied to an earphone storage system including a wireless earphone 200 and a storage case 300, wherein the storage case 300 is used for storing the wireless earphone 200, and the storage case 300 is configured with an audio playing device and a communication device for communicating with the mobile terminal 100.
In the playback device determination method, the headphone housing system detects the housing state of the wireless headphones 200 using the housing case 300, and transmits a state flag for indicating the housing state to the mobile terminal 100.
It should be understood that the wireless headset 200 includes a first contact electrode. The storage case 300 includes a second contact electrode. The housing case 300 detects whether the second contact electrode is in contact with the first contact electrode of the wireless headset 200, and determines whether the wireless headset 200 is housed in the housing case 300.
The storage states include a first usage state in which the wireless headset 200 is not stored in the storage case 300, the wireless headset 200 is stored in the storage case 300, and the storage case 300 is in the first usage state, and a second usage state in which the wireless headset 200 is stored in the storage case 300, and the storage case 300 is in the second usage state different from the first usage state.
Specifically, when the storage case 300 is in the first use state, the lid of the storage case 300 is in an unclosed or opened state; when the storage case 300 is in the second use state, the lid of the storage case 300 is in a closed or closed state; the first usage state of the storage case 300 is different from the second usage state of the cover, and may be different whether the cover is opened or closed, or different in structural operation, or different in operation mode.
To ensure that the wireless headset 200 is worn by the user, the audio data is played. The earphone storage system detects the current wearing state through the wireless earphone 200, and sends a state identifier for indicating the wearing state to the storage box 300; the status flag indicating the wearing status is transmitted to the mobile terminal 100 through the storage box 300.
Since all the status data of the wireless headset 200 are forwarded to the mobile terminal 100 through the storage box 300, the mobile terminal 100 does not need to establish a communication connection specifically for the wireless headset 200 to receive the status identifier of the wireless headset 200, and the status identifier of the wireless headset 200 is analyzed separately.
Optionally, the storage case 300 is further provided with a sound recording device. The storage box 300 acquires a control instruction sent by the mobile terminal 100, and starts the recording device according to the control instruction; the audio data is collected by the recording device, and the audio data collected by the recording device is sent to the mobile terminal 100.
As a possible example, since the storage case 300 can be used as a speaker, when a user is doing housework, the storage case 300 can play music and place the mobile terminal 100 at a remote location for charging. Since the current target playback device is the storage box 300, when the mobile terminal 100 receives an incoming call, it automatically answers the call and controls the storage box 300 to start the recording device, so that the user can complete the call through the storage box 300.
The embodiment of the present application further provides an earphone storage system, which includes a wireless earphone 200 and a storage box 300, wherein the storage box 300 is used for storing the wireless earphone 200, and the storage box 300 is configured with an audio playing device and a communication device for communicating with the mobile terminal 100. The storage case 300 also detects the storage state of the wireless headset 200 and transmits a state flag of the storage state to the mobile terminal 100.
The embodiment of the present application further provides a playing device determining apparatus, which is applied to the mobile terminal 100. Referring to fig. 3, the playing device determining apparatus includes at least one functional module that can be stored in the memory 120 in the form of software. Functionally divided, the playback device determining means may include:
an identifier obtaining module 1101, configured to obtain a status identifier of the wireless headset 200, where the status identifier is used to indicate a current storage status of the wireless headset 200.
In the embodiment of the present application, the identity acquisition module 1101 is configured to perform step S100 in fig. 2, and as to the detailed description of the identity acquisition module 1101, reference may be made to the detailed description of step S100.
An object determining module 1102, configured to determine an object playing device from alternative playing devices according to the state identifier, where the alternative playing devices include the wireless headset 200 and a storage box 300 for storing the wireless headset 200, where the storage box 300 is configured with an audio playing device and a communication device for communicating with the mobile terminal 100.
In the embodiment of the present application, the goal determining module 1102 is configured to execute step S200 in fig. 2, and regarding a similar description of the goal determining module 1102, reference may be made to the detailed description of step S200.
A target configuring module 1103, configured to configure the target playback device as a device that plays audio data.
In this application, the target configuration module 1103 is configured to execute the step S300 in fig. 2, and for the detailed description of the target configuration module 1103, reference may be made to the detailed description of the step S300.
The embodiment of the application also provides the electronic equipment. Referring to fig. 4, the electronic device includes a processor 130, a communication unit 140, and a processor 120, where the processor 130 stores machine executable instructions capable of being executed by the processor 120, and the machine executable instructions, when executed by the processor 130, implement the playback device determining method. As one possible example, the electronic device may be a mobile terminal 100.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction.
The communication unit 140 is used to establish a communication connection with a communication device thereof and to transmit and receive data. In one possible example, the communication unit is a bluetooth communication module. When the electronic equipment is a mobile terminal, the mobile terminal is in communication connection with the wireless earphone and the storage box through the Bluetooth. Wherein, this wireless earphone and receiver send the state sign through low-power consumption bluetooth.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor 130 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program is executed by the processor 130, the method for determining a playback device is implemented.
In summary, the present application provides a method and an apparatus for determining a playback device, an earphone storage system, and an electronic device. In the playing equipment determining method, the mobile terminal determines a target audio playing equipment from the wireless earphone and a storage box configured with an audio playing device by acquiring the current storage state of the wireless earphone; which is configured as a device for playing audio data. Because this receiver disposes audio playback device, can regard as the audio amplifier to use. The mobile terminal automatically switches the equipment for playing the audio data through the storage state of the earphone, so that a user can freely switch between the storage box and the wireless earphone without operating the mobile terminal, the complex operation of the user on the mobile terminal is reduced, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and all such changes or substitutions are included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.