Disclosure of Invention
Aiming at the problems, the invention discloses a playing method of an intelligent sound box, which specifically comprises the following steps:
s1, receiving a voice instruction acquired by a Bluetooth headset through a voice recognition function of the Bluetooth headset;
s2, based on the voice command, sending a sound content acquisition request to a background server to acquire sound content;
S3, judging whether the sound content can be played or not, if so, executing the step S4, and if not, executing the step S5;
S4, public playing the sound content, and synchronizing the sound content to the Bluetooth earphone for playing;
and S5, sending the sound content to the Bluetooth headset for playing.
Further, the step S1 includes:
s11, judging whether to disable a voice recognition function;
and S12, if yes, receiving a voice instruction acquired by the Bluetooth headset through the voice recognition function of the Bluetooth headset.
Further, before the step S1, the method further includes:
S01, periodically polling to search whether a Bluetooth headset exists around the intelligent sound box;
s02, if yes, judging whether the Bluetooth headset is not connected, and if yes, executing a step S03;
s03, judging whether the Bluetooth headset exists in an authorization list;
and S04, if so, sending a connection request to the Bluetooth headset to connect with the Bluetooth headset.
Further, before the step S01, the method further includes:
acquiring an authorization list synchronized by a background server;
And sending authorization feedback information to a background server so that the background server forwards the authorization feedback information to a terminal APP.
Further, the authorization list comprises the device names and configuration information of the authorized Bluetooth headset selected by the user through the terminal APP.
Based on the playing method of the intelligent sound box disclosed by the invention, correspondingly, the invention also provides a playing system of the intelligent sound box, which comprises the following steps:
the first receiving module is used for receiving a voice instruction acquired by the Bluetooth headset through the voice recognition function of the Bluetooth headset;
the first sending module is used for sending a sound content acquisition request to a background server to acquire sound content based on the voice command;
The first judging module is used for judging whether the sound content can be played in a public way;
The first playing module is used for publicly playing the sound content and synchronizing the sound content to the Bluetooth earphone for playing;
And the second sending module is used for sending the sound content to the Bluetooth headset for playing.
Further, the first receiving module includes:
and the second judging module is used for judging whether the voice recognition function is forbidden.
Further, the playing system further includes:
the polling searching module is used for periodically polling and searching whether a Bluetooth headset exists around the intelligent sound box;
the third judging module is used for judging whether the Bluetooth headset is not connected;
a fourth judging module, configured to judge whether the bluetooth headset exists in the authorization list;
And the third sending module is used for sending a connection request to the Bluetooth headset so as to be connected with the Bluetooth headset.
Further, the playing system further includes:
The list acquisition module is used for acquiring an authorization list synchronized by the background server;
And the fourth sending module is used for sending the authorization feedback information to the background server so that the background server forwards the authorization feedback information to the terminal APP.
Further, the authorization list in the playing system comprises the device name and configuration information of the authorized Bluetooth headset selected by the user through the APP terminal.
The invention has the beneficial effects that:
Besides the fact that the intelligent sound box can realize the public playing of sound content, the playing method of the intelligent sound box can select to play the sound content independently through synchronizing the sound content to the Bluetooth earphone to meet the actual playing demands of different users in different environments, in addition, the voice command of the user can be recognized through the voice recognition function of the Bluetooth earphone to be sent to the intelligent sound box to obtain the corresponding sound content, the problem that the voice recognition distance of the intelligent sound box is limited can be effectively solved, the problem that the voice command of the user cannot be recognized accurately due to noisy environment can be avoided, misrecognition of the voice command is avoided, the accuracy of voice recognition is effectively improved, and the method is good in practicability.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
Example 1
Referring to fig. 1, the present embodiment provides a playing method of an intelligent sound box, where the playing method specifically includes the following steps:
s1, receiving a voice instruction acquired by a Bluetooth headset through a voice recognition function of the Bluetooth headset;
S2, based on the voice instruction, sending a sound content acquisition request to a background server to acquire sound content;
s3, judging whether the sound content can be played publicly, if so, executing a step S4, otherwise, executing a step S5;
S4, the sound content is played in a public mode, and the sound content is synchronized to the Bluetooth earphone for playing;
and S5, sending the sound content to the Bluetooth headset for playing.
It should be noted that, the intelligent sound box in this embodiment also has a voice recognition function, that is, the intelligent sound box itself can recognize the voice information in the environment where the intelligent sound box is located, however, when the environment where the intelligent sound box is located is noisy, the intelligent sound box is easy to cause that the intelligent sound box cannot accurately recognize the voice instruction issued by the user or erroneously recognize the voice instruction issued by the user, in addition, the distance that the intelligent sound box itself can recognize the voice instruction within a certain distance around the intelligent sound box is limited, which has a larger limitation.
Based on the above, the playing method provided by the embodiment can select the voice command sent by the user based on the voice recognition function of the Bluetooth headset, so that the problems that the voice recognition function of the intelligent sound box can mistakenly recognize the voice command of the user and the voice recognition accuracy of the intelligent sound box is low in a noisy environment can be effectively avoided, in addition, the voice command of the user is recognized through the Bluetooth headset, the voice recognition distance can be effectively increased, and meanwhile, the interference of other voices can be avoided. Specifically, referring to fig. 2, the playing method provided in this embodiment includes the following steps for a process of obtaining a voice command sent by a user:
s11, judging whether to disable a voice recognition function;
S12, if yes, receiving a voice instruction acquired by the Bluetooth headset through the voice recognition function of the Bluetooth headset, and if not, selecting a voice instruction sent by a user through the voice recognition function of the intelligent sound box.
The voice recognition function of the intelligent sound box is disabled (namely, whether the voice recognition function of the intelligent sound box is disabled) is judged by the playing system of the intelligent sound box, if the voice recognition function of the intelligent sound box is disabled, a voice command sent by a user is recognized through the voice recognition function of the Bluetooth headset, the voice command recognized by the Bluetooth headset is sent to the intelligent sound box, so that the voice command of the user is acquired by the intelligent sound box, and if the voice recognition function of the intelligent sound box is not disabled, the voice command of the user can be selected to be recognized based on the voice recognition function of the intelligent sound box, and also the voice command of the user can be acquired through the recognition of the Bluetooth headset.
It should be noted that, for the operation of whether to disable the voice recognition function of the intelligent sound box, besides being able to be set directly through the intelligent sound box itself, the operation can also be set through a bluetooth headset connected with the intelligent sound box or a terminal APP having a binding relationship with the intelligent sound box.
Note that, the sound content referred to in step S2 may be music content that the user wants to play music, news content that the user wants to listen to, announcement content, or the like.
It should be noted that, the playing of the sound content can be performed through the bluetooth headset, so that the bluetooth headset user can independently listen to the sound content, and the playing function of the intelligent sound box can also perform the public playing of the sound content, so that all people in the environment where the intelligent sound box is located can listen to the sound content, thereby meeting the playing requirements of the intelligent sound box under different conditions.
Namely, the steps S3 to S5 can be detailed as follows:
After the playing system of the intelligent sound box acquires the sound content fed back by the background server, whether the acquired sound content is played in a public mode or not is selected, if the acquired sound content is selected to be played in a public mode, the sound content can be played in a public mode through the playing function of the intelligent sound box, all people in the environment where the intelligent sound box is located can hear the sound content, or a user of the Bluetooth headset can hear the sound content by selecting to play the sound content through the Bluetooth headset, if the sound content is selected not to be played in a public mode, the playing system sends the sound content to the Bluetooth headset, and therefore the sound content can only be played through the Bluetooth headset, the effect that the Bluetooth headset user independently listens to the sound content is achieved, other people who do not need to listen to the sound content can be prevented from being influenced, and good user experience effects are achieved.
It should be noted that, whether to select the setting of public broadcast sound content to the intelligent audio amplifier, except can directly set up through intelligent audio amplifier itself, still can set up through bluetooth headset that is connected with intelligent audio amplifier or terminal APP that binds mutually with intelligent audio amplifier.
It should be noted that, before playing the sound content by using the playing method of the intelligent sound box provided by the embodiment, the intelligent sound box needs to be connected with the bluetooth headset near the intelligent sound box so as to realize interaction of voice instructions between the intelligent sound box and the bluetooth headset. Based on this, referring to fig. 3, the following steps should be further included before step S1:
S01, periodically polling to search whether a Bluetooth headset exists around the intelligent sound box;
S02, if yes, judging whether the Bluetooth headset is not connected, and if yes, executing a step S03;
s03, judging whether the Bluetooth headset exists in an authorization list;
S04, if yes, a connection request is sent to the Bluetooth headset to be connected with the Bluetooth headset, and if not, the intelligent sound box is indicated to be incapable of being connected with the Bluetooth headset, and the connection request is not needed to be sent.
For the judgment result of the "whether the Bluetooth headset exists around the timing polling search intelligent sound box" in the step S01, the operation to be adopted includes, in addition to the step S02, if not, continuing to execute the step S01.
For the judgment result of "judging whether the bluetooth headset is not connected" in step S02, the steps to be taken include, in addition to step S03, if not, no judgment as to whether the bluetooth headset is authorized.
The time interval of the timing polling in this embodiment may be set by the APP terminal or the background server connected to the smart box. Besides being connected and bound with the intelligent sound box, the APP terminal can be connected with the Bluetooth headset to enable the APP terminal to acquire the equipment name and configuration information of the Bluetooth headset.
Referring to fig. 4, the process for acquiring the authorization list in step S03 includes the following steps:
acquiring an authorization list synchronized by a background server;
and sending the authorization feedback information to the background server so that the background server forwards the authorization feedback information to the terminal APP.
The intelligent sound box acquires the authorization list synchronized by the background server, and then the intelligent sound box acquires the authorization list synchronized by the background server and then sends corresponding authorization feedback information to the background server, and the background server forwards the authorization feedback information to the terminal APP, so that a user can know the related information of the authorized Bluetooth headset through the terminal APP.
It should be noted that, the authorization list in this embodiment should include the device name and configuration information of the bluetooth headset that the user selects to authorize through the terminal APP.
It should be noted that the process of obtaining the authorization list in this embodiment may be described as that the user connects with the bluetooth headset by operating the terminal APP that has a binding relationship with the smart speaker, and obtains the device name and configuration information of the bluetooth headset through the terminal APP (after obtaining the bluetooth device name and configuration information, the connection relationship between the terminal APP and the bluetooth headset may be disconnected), further, the user may select the bluetooth headset to be authorized through the related information of the bluetooth headset displayed by the terminal APP, and send an authorization request containing the device name and configuration information of the bluetooth headset to the background server, and the background server processes the authorization request to authorize the bluetooth headset and add the bluetooth headset to the authorization list, and the background server synchronously sends the authorization list to the smart speaker.
Based on the playing method of the intelligent sound box provided in the embodiment, correspondingly, the embodiment also provides a playing system of the intelligent sound box, where the playing system is set in the intelligent sound box, referring to fig. 5, and the playing system includes:
the first receiving module is used for receiving a voice instruction acquired by the Bluetooth headset through the voice recognition function of the Bluetooth headset;
the first sending module is used for sending a sound content acquisition request to a background server to acquire sound content based on the voice command;
The first judging module is used for judging whether the sound content can be played in a public way;
The first playing module is used for publicly playing the sound content and synchronizing the sound content to the Bluetooth earphone for playing;
And the second sending module is used for sending the sound content to the Bluetooth headset for playing.
Referring to fig. 6, the first receiving module includes:
and the second judging module is used for judging whether the voice recognition function is forbidden.
It should be noted that, referring to fig. 7, the module for connecting the smart speaker and the bluetooth headset in the playing system includes:
the polling searching module is used for periodically polling and searching whether a Bluetooth headset exists around the intelligent sound box;
the third judging module is used for judging whether the Bluetooth headset is not connected;
a fourth judging module, configured to judge whether the bluetooth headset exists in the authorization list;
And the third sending module is used for sending a connection request to the Bluetooth headset so as to be connected with the Bluetooth headset.
It should be noted that, referring to fig. 8, the modules for the intelligent sound box to obtain the authorization list in the playing system include:
The list acquisition module is used for acquiring an authorization list synchronized by the background server;
And the fourth sending module is used for sending the authorization feedback information to the background server so that the background server forwards the authorization feedback information to the terminal APP.
It should be noted that, the authorization list obtained by the playing system provided in this embodiment includes the device name and configuration information of the authorized bluetooth headset selected by the user through the APP terminal.
In addition, the voice command of the user can be identified through the voice identification function of the Bluetooth headset to be sent to the intelligent sound box to obtain the corresponding voice content, the problem that the voice identification distance of the intelligent sound box is limited can be effectively solved, the problem that the voice command of the user cannot be accurately identified due to noisy environment can be avoided, misidentification of the voice command is avoided, the accuracy of voice identification is effectively improved, and the method has good practicability.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.