Playing control method and system of Bluetooth sound box and intelligent device
Technical Field
The invention belongs to the technical field of mobile terminals, and particularly relates to a playing control method and system of a Bluetooth sound box and intelligent equipment.
Background
The Bluetooth sound box is a product closely related to the life of people, can bring fine hearing enjoyment to people, even if product technology has obtained very big improvement in these years, the function is also more abundant, but the Bluetooth sound box product on the existing market still has the function not enough, and a series of problems such as manufacturing process is simple restrict the more extensive popularization of product.
Most bluetooth speaker can only play the music simple, can not be interactive with the high in the clouds, and some intelligent WIF audio amplifier though can be interactive with the high in the clouds, nevertheless because the codec speech data, awaken up etc. all handle in bluetooth speaker local, the memory to bluetooth speaker and the requirement of timely response ability are high, lead to hardware with high costs, the consumption is big.
In summary, when the existing intelligent bluetooth speaker interacts with the cloud, the requirement for the memory and the timely response capability of the bluetooth speaker is high, which results in the problems of high hardware cost and large power consumption of the bluetooth speaker.
Disclosure of Invention
In view of this, embodiments of the present invention provide a play control method and system for a bluetooth speaker, and an intelligent device, so as to solve the problems in the prior art that when an intelligent bluetooth speaker interacts with a cloud, requirements on a memory and a timely response capability of the bluetooth speaker are high, which results in high hardware cost and large power consumption of the bluetooth speaker.
The first aspect of the present invention provides a method for controlling playback of a bluetooth speaker, where the method for controlling playback of a bluetooth speaker includes:
when the Bluetooth sound box monitors a wake-up event, sending a wake-up notice to the mobile equipment according to the wake-up event, so that the mobile equipment establishes a second Bluetooth channel based on the wake-up notice;
recording the voice information;
sending the recorded voice information to the mobile equipment through the second Bluetooth channel, so that the mobile equipment uploads the voice information to a cloud server and obtains content to be played from the cloud server;
and receiving the content to be played sent by the mobile equipment, and playing the content to be played.
The second aspect of the present invention provides a method for controlling playback of a bluetooth speaker, where the method for controlling playback of a bluetooth speaker includes:
when a wake-up notice sent by the Bluetooth sound box is detected, establishing a second Bluetooth channel so that the Bluetooth sound box sends user recording through the second Bluetooth channel;
monitoring and waiting for the Bluetooth sound box to send voice information;
if the voice information sent by the Bluetooth sound box is monitored, sending the voice information to a cloud server so that the cloud server can determine the content to be played based on the voice information;
and receiving the content to be played sent by the cloud server, and sending the content to be played to the Bluetooth sound box, so that the Bluetooth sound box plays the content to be played.
A third aspect of the present invention provides a bluetooth speaker, including:
the notification unit is used for sending a wake-up notice to the mobile equipment according to the wake-up event when the Bluetooth sound box monitors the wake-up event, so that the mobile equipment establishes a second Bluetooth channel based on the wake-up notice;
the recording unit is used for recording the voice information;
the voice sending unit is used for sending the recorded voice information to the mobile equipment through the second Bluetooth channel so that the mobile equipment uploads the voice information to a cloud server and obtains content to be played from the cloud server;
and the playing unit is used for receiving the content to be played sent by the mobile equipment and playing the content to be played.
A fourth aspect of the present invention provides a mobile device, comprising:
the channel establishing unit is used for establishing a second Bluetooth channel when the awakening notification sent by the Bluetooth sound box is detected, so that the Bluetooth sound box sends the user record through the second Bluetooth channel;
the channel establishing unit is also used for monitoring and waiting for the Bluetooth sound box to send voice information;
the recording processing unit is used for sending the voice information to a cloud server if the voice information sent by the Bluetooth sound box is monitored, so that the cloud server determines the content to be played based on the voice information;
and the playing control unit is used for receiving the content to be played sent by the cloud server and sending the content to be played to the Bluetooth sound box, so that the Bluetooth sound box plays the content to be played.
The fifth aspect of the present invention provides a play control system for a bluetooth speaker, where the play control system for the bluetooth speaker includes a bluetooth speaker, a mobile device, and a cloud server:
the Bluetooth sound box is used for sending a wake-up notice to the mobile equipment according to the wake-up event when the wake-up event is monitored;
the mobile equipment is used for receiving the awakening notice sent by the Bluetooth sound box and establishing a second Bluetooth channel;
the Bluetooth sound box is also used for recording voice information and sending the recorded voice information to the mobile equipment through the second Bluetooth channel;
the mobile equipment is also used for receiving voice information sent by the Bluetooth sound box and sending the voice information to a cloud server;
the cloud server is used for receiving the voice information sent by the mobile equipment, analyzing the voice information and determining the content to be played corresponding to the voice information according to the analysis processing result; sending the determined content to be played corresponding to the voice information to the mobile equipment;
the mobile device is further configured to receive content to be played corresponding to the voice information sent by the cloud server, and send the content to be played to the bluetooth sound box;
the Bluetooth sound box is also used for playing the content to be played.
A sixth aspect of the present invention provides an intelligent device, including: the bluetooth speaker system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for controlling the playback of the bluetooth speaker system according to the first aspect when executing the computer program.
A seventh aspect of the present invention provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the play control method for a bluetooth speaker as described in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, when a Bluetooth sound box monitors a wake-up event, a wake-up notice is sent to a mobile device according to the wake-up event, so that the mobile device establishes a second Bluetooth channel based on the wake-up notice, then records voice information, and sends the recorded voice information to the mobile device through the second Bluetooth channel, so that the mobile device uploads the voice information to a cloud server, acquires content to be played from the cloud server, receives the content to be played sent by the mobile device, and plays the content to be played, in the scheme, the Bluetooth sound box wakes up when monitoring the wake-up event, and transfers the processing of the voice information to the mobile device, and the mobile device and the cloud server interact with each other, thereby improving the response efficiency of the interaction, and simultaneously, reducing the power consumption of the Bluetooth sound box and the hardware cost of the Bluetooth sound box, the user experience is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a system architecture diagram of a play control system of a bluetooth speaker according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for controlling playback of a bluetooth sound box at a side of the bluetooth sound box according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for controlling the playing of a bluetooth speaker at a mobile device side according to an embodiment of the present invention;
fig. 4 is an interaction flowchart of a play control method for a bluetooth speaker according to an embodiment of the present invention;
fig. 5 is a block diagram of an intelligent bluetooth speaker according to an embodiment of the present invention;
fig. 6 is a block diagram of a mobile device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an intelligent device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one:
Fig. 1 is a system architecture diagram illustrating a play control system of a bluetooth speaker according to a first embodiment of the present invention, which is detailed as follows: for convenience of explanation, only portions related to the embodiments of the present invention are shown.
Referring to fig. 1, the play control system of the bluetooth speaker includes a bluetooth speaker 1, a mobile device 2, and a cloud server 3, wherein:
the Bluetooth sound box 1 is in a first Bluetooth channel (SPP) sleep state, and when a wake-up event is monitored, a wake-up notice is sent to the mobile device 2 through the first Bluetooth channel according to the wake-up event;
the mobile device 2 is used for receiving the awakening notification sent by the Bluetooth sound box 1 and establishing a second Bluetooth channel with the Bluetooth sound box 1;
the Bluetooth sound box 1 is further configured to record voice information and send the recorded voice information to the mobile device 2 through the second Bluetooth channel;
the mobile device 2 is further configured to receive voice information sent by the bluetooth sound box 1, and send the voice information to the cloud server 2;
the cloud server 2 is configured to receive the voice information sent by the mobile device 2, analyze the voice information, and determine a content to be played corresponding to the voice information according to an analysis result; sending the determined content to be played corresponding to the voice information to the mobile device 2;
the mobile device 2 is further configured to receive content to be played corresponding to the voice information sent by the cloud server 2, and send the content to be played to the bluetooth sound box 1 through a second bluetooth channel (SCO) or an A2DP bluetooth channel;
the bluetooth sound box 1 is further configured to play the content to be played.
Specifically, the mobile device 2 includes, but is not limited to, a mobile device 2 with communication capability such as a mobile phone, a notebook, a tablet computer, and the like. The plurality of mobile devices 2 may be connected to the cloud server 3 in a wired manner or a wireless manner.
Optionally, the play control system of the bluetooth sound box 1 may use a bluetooth technology to establish a wireless connection between the bluetooth sound box 1 and the mobile device 2, and may also use a serial port technology or a USB interface technology to establish a wired connection between the bluetooth sound box 1 and the mobile device 2.
In the first embodiment of the present invention, when a bluetooth speaker monitors a wake-up event, a wake-up notification is sent to the mobile device according to the wake-up event, the mobile device receives the wake-up notification sent by the bluetooth speaker, establishes a second bluetooth channel, the bluetooth speaker records voice information, and sends the recorded voice information to the mobile device through the second bluetooth channel, the mobile device receives the voice information sent by the bluetooth speaker, sends the voice information to a cloud server, the cloud server receives the voice information sent by the mobile device, analyzes the voice information, determines content to be played corresponding to the voice information according to an analysis result, sends the determined content to be played corresponding to the voice information to the mobile device, and the mobile device receives content to be played corresponding to the voice information sent by the cloud server, the content to be played is sent to the Bluetooth sound box, so that the Bluetooth sound box plays the content to be played, the Bluetooth sound box is awakened when monitoring an awakening event in the scheme, the processing of voice information is transferred to the mobile device, interaction is carried out by the mobile device and the cloud server, the interactive response efficiency is improved, meanwhile, the power consumption of the Bluetooth sound box and the hardware cost of the Bluetooth sound box can be reduced, and the user experience is enhanced.
Example two:
Fig. 2 shows an implementation process of a play control method for a bluetooth speaker according to an embodiment of the present invention, in this embodiment, an execution main body of the process is the bluetooth speaker shown in fig. 1, which is detailed as follows:
step S201, when the Bluetooth sound box monitors a wake-up event, sending a wake-up notice to the mobile device according to the wake-up event, so that the mobile device establishes a second Bluetooth channel based on the wake-up notice.
In the embodiment of the invention, the Bluetooth loudspeaker box supports Bluetooth communication, and the Bluetooth loudspeaker box is provided with the wake-up module for monitoring the wake-up event. Wherein the wake-up event comprises voice wake-up and/or key wake-up. When the Bluetooth sound box is in a sleep state, the awakening module continuously monitors voice in the environment where the Bluetooth sound box is located, and/or a user triggers through a key on the Bluetooth sound box. Optionally, the wake-up module is further configured to listen for a gesture-induced trigger wake-up. Further, to eliminate noise interference, the voice monitored by the wake-up module is a voice meeting a preset condition, for example, a voice not lower than a preset loudness of sound.
Optionally, to effectively wake up the bluetooth speaker, the step S201 includes:
a1: and when the awakening event is voice awakening, monitoring voice data of the current environment.
A2: if the voice data are monitored, judging whether the voice data comprise awakening keywords or not. The awakening keyword is a preset keyword for awakening the Bluetooth sound box and can be set when the Bluetooth sound box is initialized by a user. Specifically, the monitored voice data is converted into text information, word segmentation processing is carried out, word segmentation is matched with words in a preset keyword word bank, if the keywords matched with the word segmentation exist in the voice keyword word bank, the word segmentation is determined to be awakening keywords, the Bluetooth sound box is awakened to enter a working state, otherwise, the fact that the awakening keywords do not exist in the voice data is determined, and the Bluetooth sound box is continuously in a sleeping state.
A3: and if the first Bluetooth channel comprises the awakening keyword, establishing a first Bluetooth channel. The first Bluetooth channel is a Bluetooth message channel and is used for sending a message notice. Specifically, the first bluetooth channel is a bluetooth serial protocol channel spp (serialportprofile) and is used for sending/receiving a notification of a small data volume.
A4: and sending a wake-up notice to the mobile equipment based on the first Bluetooth channel.
Specifically, the bluetooth speaker performs keyword recognition on the detected voice data, and if the voice data is recognized to have a wake-up keyword, the bluetooth speaker is woken up, a first bluetooth channel is established, a wake-up notification is sent to the mobile device connected with the bluetooth speaker, that is, the mobile device is notified to prepare for acquiring voice information.
Step S202, recording the voice information.
In the embodiment of the invention, the sound recording is carried out through Bluetooth telephone voice data (SCO), namely the Bluetooth sound box supports Bluetooth voice recording. Specifically, when the mobile device receives the wakeup notification, a second bluetooth channel is established, and after the second bluetooth channel is established, the bluetooth sound box records the voice information in the current environment.
Step S203, the recorded voice information is sent to the mobile equipment through the second Bluetooth channel, so that the mobile equipment uploads the voice information to a cloud server, and content to be played is obtained from the cloud server.
Specifically, the bluetooth speaker directly sends the recorded voice information to the mobile device through the second bluetooth channel, and the voice information is processed by the mobile device. In the embodiment of the invention, the mobile equipment uploads the voice information sent by the Bluetooth sound box to the cloud server, and the cloud server determines the content to be played according to the voice information. Further, when receiving the voice information uploaded by the mobile device, the cloud server acquires account information logged in when the mobile device uploads the voice information, searches a historical play record corresponding to the account information in the cloud server according to the account information, determines content to be played according to the historical play record and the voice information, and sends the determined content to be played to the mobile device. Optionally, when receiving the voice information uploaded by the mobile device, the cloud server obtains a device identification code of a bluetooth sound box connected to the mobile device, and searches for a historical play record corresponding to the bluetooth sound box in the cloud server according to the device identification code.
Optionally, when the wake-up event is voice wake-up, in order to avoid voice interference of multiple persons, and improve the efficiency of sending the voice information, when the voice information of the current environment is recorded by the bluetooth speaker, the recorded voice feature of the voice information is compared with the voice feature of the voice in the wake-up event, if the voice features of the voice information are the same as the voice feature of the voice in the wake-up event, the voice of the same user is determined, and the recorded voice information is sent to the mobile device through the second bluetooth channel. If not, the voice of different users is judged, the recorded voice information is deleted, and the occupation of the Bluetooth sound box cache is reduced.
Step S204, receiving the content to be played sent by the mobile equipment, and playing the content to be played.
Specifically, the bluetooth speaker receives the content to be played, which is sent by the mobile device through a third bluetooth channel, where the third bluetooth channel is a channel for sending the content to be played, and may be a bluetooth voice playing channel. Further, the third bluetooth channel is A2DP (Advanced Audio Distribution Profile bluetooth Audio transmission model protocol), and is mainly used for playing music.
In the embodiment of the present invention, the first bluetooth channel, the second bluetooth channel and the third bluetooth channel are independent and non-crossed channels, so that the decrease of the playing efficiency of the bluetooth speaker due to data crossing is avoided.
In the second embodiment of the present invention, when a bluetooth speaker monitors a wake-up event, a wake-up notification is sent to a mobile device according to the wake-up event, so that the mobile device establishes a second bluetooth channel based on the wake-up notification, then records voice information, and sends the recorded voice information to the mobile device through the second bluetooth channel, so that the mobile device uploads the voice information to a cloud server, and obtains a content to be played from the cloud server, receives the content to be played sent by the mobile device, and plays the content to be played, in this scheme, the bluetooth speaker wakes up when monitoring the wake-up event, and transfers processing of the voice information to the mobile device, and the mobile device and the cloud server interact with each other, so as to improve response efficiency of the interaction, and simultaneously, reduce power consumption of the bluetooth speaker and hardware cost of the bluetooth speaker, the user experience is enhanced.
EXAMPLE III:
Fig. 3 shows an implementation process of the play control method for a bluetooth speaker according to an embodiment of the present invention, in this embodiment, an execution main body of the process is the mobile device 2 shown in fig. 1, which is detailed as follows:
step S301, when a wakeup notification sent by the Bluetooth sound box is detected, a second Bluetooth channel is established, so that the Bluetooth sound box sends a user record through the second Bluetooth channel.
The second Bluetooth channel is a Bluetooth recording channel and used for the Bluetooth sound box to record voice information and send the voice information to the mobile device. And the mobile equipment immediately establishes a second Bluetooth channel after receiving the awakening notification sent by the Bluetooth sound box. The second bluetooth channel is an SCO (Synchronous Connection organized bluetooth Connection Oriented) voice channel and is mainly used for voice transmission.
Step S302, monitoring and waiting for the Bluetooth sound box to send voice information.
Optionally, in the embodiment of the present invention, when the mobile device does not monitor the voice information sent by the bluetooth speaker within the preset time, the second bluetooth channel is closed, so as to reduce power consumption of the bluetooth speaker and the mobile device.
Step S303, if the voice information sent by the Bluetooth sound box is monitored, sending the voice information to a cloud server, so that the cloud server determines the content to be played based on the voice information.
In the embodiment of the invention, the mobile device sends the voice information to the cloud server, and simultaneously sends the account information logged on the mobile device to the cloud server, or sends the device identification code of the bluetooth sound box connected with the mobile device to the cloud server, so that the cloud server searches the historical play record of the bluetooth sound box according to the account information or the device identification code of the bluetooth sound box.
Step S304, receiving the content to be played sent by the cloud server, and sending the content to be played to the Bluetooth sound box, so that the Bluetooth sound box plays the content to be played.
In a third embodiment of the present invention, when detecting a wake-up notification sent by a bluetooth speaker, a mobile device establishes a second bluetooth channel, so that the bluetooth speaker sends a user recording through the second bluetooth channel, monitors to wait for the bluetooth speaker to send voice information, and if the voice information sent by the bluetooth speaker is monitored, sends the voice information to a cloud server, so that the cloud server determines a content to be played based on the voice information, receives the content to be played sent by the cloud server, and sends the content to be played to the bluetooth speaker, so that the bluetooth speaker plays the content to be played. According to the scheme, the mobile device establishes the second Bluetooth channel after detecting the awakening notification sent by the Bluetooth sound box, the Bluetooth sound box is used for inputting and sending voice information, the processing of the voice information is transferred to the mobile device, interaction is carried out by the mobile device and the cloud server, hardware of the mobile device is fully utilized, the interaction response efficiency is improved, meanwhile, the power consumption of the Bluetooth sound box and the hardware cost of the Bluetooth sound box can be reduced, and the user experience is enhanced.
Example four:
Fig. 4 shows an interaction flow diagram of a play control method for a bluetooth speaker according to an embodiment of the present invention, where an execution main body participating in the interaction flow includes the bluetooth speaker 1, the mobile device 2, and the cloud server 3 in fig. 1, and an implementation principle of the interaction flow is consistent with an implementation principle of each execution main body side described in fig. 2 to fig. 3, so that only the interaction flow is described briefly, which is not repeated:
1. monitoring a wake-up event by the Bluetooth sound box;
2. when the Bluetooth sound box monitors a wake-up event, sending a wake-up notice to the mobile equipment according to the wake-up event;
3. the mobile equipment receives the awakening notice sent by the Bluetooth sound box and establishes a second Bluetooth channel;
4. the Bluetooth sound box records voice information;
5. sending the recorded voice information to the mobile equipment through the second Bluetooth channel;
6. the mobile equipment receives voice information sent by the Bluetooth sound box and sends the voice information to a cloud server;
7. the cloud server receives voice information sent by the mobile equipment, analyzes the voice information, and determines content to be played corresponding to the voice information according to an analysis processing result;
8. sending the determined content to be played corresponding to the voice information to the mobile equipment;
9. the mobile equipment receives the content to be played corresponding to the voice information sent by the cloud server, and sends the content to be played to the Bluetooth sound box;
10. and the Bluetooth sound box receives and plays the content to be played.
In the fourth embodiment of the present invention, when a bluetooth speaker monitors a wake-up event, a wake-up notification is sent to the mobile device according to the wake-up event, the mobile device receives the wake-up notification sent by the bluetooth speaker, establishes a second bluetooth channel, the bluetooth speaker records voice information, and sends the recorded voice information to the mobile device through the second bluetooth channel, the mobile device receives the voice information sent by the bluetooth speaker, sends the voice information to a cloud server, the cloud server receives the voice information sent by the mobile device, analyzes the voice information, determines content to be played corresponding to the voice information according to an analysis result, sends the determined content to be played corresponding to the voice information to the mobile device, and the mobile device receives content to be played corresponding to the voice information sent by the cloud server, the content to be played is sent to the Bluetooth sound box, so that the Bluetooth sound box plays the content to be played, the Bluetooth sound box is awakened when monitoring an awakening event in the scheme, the processing of voice information is transferred to the mobile device, interaction is carried out by the mobile device and the cloud server, the interactive response efficiency is improved, meanwhile, the power consumption of the Bluetooth sound box and the hardware cost of the Bluetooth sound box can be reduced, and the user experience is enhanced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
EXAMPLE five:
Fig. 5 shows a block diagram of a structure of an intelligent bluetooth speaker, which is the bluetooth speaker 1 shown in fig. 1 and is used for implementing the playing control method of the bluetooth speaker described in fig. 2 to fig. 4 of the present invention. For convenience of explanation, only the parts related to the present embodiment are shown, and detailed as follows:
as shown in fig. 5, an intelligent bluetooth speaker, the intelligent bluetooth speaker includes: a notification unit 51, a recording unit 52, a voice sending unit 53, a playing unit 54, wherein:
the notification unit 51 is configured to, when the bluetooth speaker monitors a wake-up event, send a wake-up notification to the mobile device according to the wake-up event, so that the mobile device establishes a second bluetooth channel based on the wake-up notification;
a recording unit 52 for recording voice information;
the voice sending unit 53 is configured to send the recorded voice information to the mobile device through the second bluetooth channel, so that the mobile device uploads the voice information to a cloud server and obtains a content to be played from the cloud server;
the playing unit 54 is configured to receive the content to be played sent by the mobile device, and play the content to be played.
Optionally, the wake event comprises a voice wake and/or a key wake.
Optionally, the notification unit 51 includes:
the voice detection module is used for monitoring the voice data of the current environment when the awakening event is voice awakening;
the keyword judgment module is used for judging whether the voice data comprises a wake-up keyword or not if the voice data is monitored;
the channel establishing module is used for establishing a first Bluetooth channel if the channel establishing module comprises a wake-up keyword;
and the notification sending module is used for sending a wakeup notification to the mobile equipment based on the first Bluetooth channel.
In the fifth embodiment of the present invention, when a bluetooth speaker monitors a wake-up event, a wake-up notification is sent to a mobile device according to the wake-up event, so that the mobile device establishes a second bluetooth channel based on the wake-up notification, then records voice information, and sends the recorded voice information to the mobile device through the second bluetooth channel, so that the mobile device uploads the voice information to a cloud server, and obtains a content to be played from the cloud server, receives the content to be played sent by the mobile device, and plays the content to be played, in this scheme, the bluetooth speaker wakes up when monitoring the wake-up event, and transfers processing of the voice information to the mobile device, and the mobile device and the cloud server interact with each other, so as to improve response efficiency of the interaction, and simultaneously, reduce power consumption of the bluetooth speaker and hardware cost of the bluetooth speaker, the user experience is enhanced.
EXAMPLE six:
Fig. 6 shows a block diagram of a mobile device according to an embodiment of the present invention, where the mobile device is the mobile device 2 shown in fig. 1, and is used to implement the play control method for the bluetooth speaker shown in fig. 2 to fig. 4 according to the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
As shown in fig. 6, a mobile device includes a channel establishing unit 61, a recording processing unit 62, and a play control unit 63, wherein:
the channel establishing unit 61 is configured to establish a second bluetooth channel when detecting a wakeup notification sent by the bluetooth speaker, so that the bluetooth speaker sends a user record through the second bluetooth channel;
the channel establishing unit 61 is further configured to monitor and wait for the bluetooth speaker to send voice information;
the recording processing unit 62 is configured to send the voice information to a cloud server if the voice information sent by the bluetooth speaker is monitored, so that the cloud server determines content to be played based on the voice information;
and the playing control unit 63 is configured to receive the content to be played sent by the cloud server, and send the content to be played to the bluetooth speaker, so that the bluetooth speaker plays the content to be played.
Optionally, the play control unit 63 includes:
the channel establishing module is used for receiving the content to be played sent by the cloud server and establishing a third Bluetooth channel;
and the playing control module is used for sending the content to be played to the Bluetooth sound box through the third Bluetooth channel so that the Bluetooth sound box plays the content to be played.
In a sixth embodiment of the present invention, when detecting a wakeup notification sent by a bluetooth speaker, a mobile device establishes a second bluetooth channel, so that the bluetooth speaker sends a user recording through the second bluetooth channel, monitors to wait for the bluetooth speaker to send voice information, and if the voice information sent by the bluetooth speaker is monitored, sends the voice information to a cloud server, so that the cloud server determines a content to be played based on the voice information, receives the content to be played sent by the cloud server, and sends the content to be played to the bluetooth speaker, so that the bluetooth speaker plays the content to be played. According to the scheme, the mobile device establishes the second Bluetooth channel after detecting the awakening notification sent by the Bluetooth sound box, the Bluetooth sound box is used for inputting and sending voice information, the processing of the voice information is transferred to the mobile device, interaction is carried out by the mobile device and the cloud server, hardware of the mobile device is fully utilized, the interaction response efficiency is improved, meanwhile, the power consumption of the Bluetooth sound box and the hardware cost of the Bluetooth sound box can be reduced, and the user experience is enhanced.
Example seven:
fig. 7 is a schematic diagram of an intelligent device according to an embodiment of the present invention. As shown in fig. 7, the smart device 7 of this embodiment includes: a processor 70, a memory 71 and a computer program 72 stored in said memory 71 and operable on said processor 70, for example a playback control program for a bluetooth sound box. When the processor 70 executes the computer program 72, the steps in the above-mentioned embodiments of the method for controlling the playback of the bluetooth speaker, such as the steps 201 to 204 shown in fig. 2, are implemented. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the units 51 to 54 shown in fig. 5.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 72 in the smart device 7. For example, the computer program 72 may be divided into a notification unit, a recording unit, a voice sending unit, and a playing unit, and the specific functions of each unit are as follows:
the notification unit is used for sending a wake-up notice to the mobile equipment according to the wake-up event when the Bluetooth sound box monitors the wake-up event, so that the mobile equipment establishes a second Bluetooth channel based on the wake-up notice;
the recording unit is used for recording the voice information;
the voice sending unit is used for sending the recorded voice information to the mobile equipment through the second Bluetooth channel so that the mobile equipment uploads the voice information to a cloud server and obtains content to be played from the cloud server;
and the playing unit is used for receiving the content to be played sent by the mobile equipment and playing the content to be played.
The smart device 7 may be a bluetooth speaker or the like. The intelligent device 7 may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a smart device 7 and does not constitute a limitation of the smart device 7 and may include more or less components than those shown, or some components in combination, or different components, for example the smart device may also include input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, 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, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the smart device 7, such as a hard disk or a memory of the smart device 7. The memory 71 may also be an external storage device of the Smart device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the Smart device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the smart device 7. The memory 71 is used for storing the computer program and other programs and data required by the smart device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.