CN107146609B - Switching method and device of playing resources and intelligent equipment - Google Patents

Switching method and device of playing resources and intelligent equipment Download PDF

Info

Publication number
CN107146609B
CN107146609B CN201710229838.1A CN201710229838A CN107146609B CN 107146609 B CN107146609 B CN 107146609B CN 201710229838 A CN201710229838 A CN 201710229838A CN 107146609 B CN107146609 B CN 107146609B
Authority
CN
China
Prior art keywords
resource
type
playing
instruction
play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710229838.1A
Other languages
Chinese (zh)
Other versions
CN107146609A (en
Inventor
朱俞溪
胡伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Orion Star Technology Co Ltd
Original Assignee
Beijing Orion Star Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Orion Star Technology Co Ltd filed Critical Beijing Orion Star Technology Co Ltd
Priority to CN201710229838.1A priority Critical patent/CN107146609B/en
Publication of CN107146609A publication Critical patent/CN107146609A/en
Application granted granted Critical
Publication of CN107146609B publication Critical patent/CN107146609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

The embodiment of the invention discloses a switching method and a device of playing resources and intelligent equipment, and on the first hand, after receiving voice information corresponding to a resource switching instruction, the intelligent equipment can automatically establish Bluetooth connection with terminal equipment, so that the operation is convenient; in the second aspect, the intelligent device includes different players, the different players play different types of resources, and after receiving the resources sent by other devices (cloud server or terminal device), the intelligent device marks the types of the resources first and then controls the players corresponding to the types of the resources to play the resources; therefore, if the intelligent device receives the second playing resource sent by the terminal device when playing the first playing resource (for example, the resource sent by the cloud server), the intelligent device can distinguish the two resources, and the playing error rate can be reduced.

Description

Switching method and device of playing resources and intelligent equipment
Technical Field
The present invention relates to the technical field of intelligent devices, and in particular, to a method and an apparatus for switching a playback resource, and an intelligent device.
Background
In the prior art, a plurality of intelligent devices with playing functions are provided, such as intelligent sound boxes. At present, the resource types that intelligent audio amplifier can play are more and more various. For example, the smart sound box can be connected with terminal devices such as a mobile phone and a tablet computer in a bluetooth manner to play resources stored in the terminal devices, and can also be connected with the cloud server to play resources in the cloud server. In this way, the user can enjoy richer playing resources.
Generally, when playing multimedia resources, these smart speakers cannot distinguish different types of playing resources. For example, the broadcast resource transmitted through the bluetooth protocol and the broadcast resource transmitted by the cloud server belong to different resource types, and a general smart speaker cannot distinguish the two types of resources.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for switching playing resources and intelligent equipment, so as to reduce the playing error rate.
In order to achieve the above object, an embodiment of the present invention discloses a method for switching a playing resource, which is applied to an intelligent device, where the intelligent device includes a first type player and a second type player; the method comprises the following steps:
under the condition that the first type player is used for playing a first playing resource marked as a first type, first voice information sent by a user is received;
if the first voice information corresponds to a resource switching instruction, establishing Bluetooth connection with the terminal equipment according to the resource switching instruction; wherein the resource switching instruction is: switching to an instruction for playing terminal equipment resources;
if a second playing resource sent by the terminal equipment through a Bluetooth protocol is received, marking the second playing resource as a second type;
controlling the first type player to stop playing a first playing resource marked as a first type;
and controlling the second type player to play a second play resource marked as a second type.
Optionally, after the step of receiving the first voice information sent by the user, the method may further include:
sending the first voice information to a cloud server so that the cloud server analyzes the first voice information, and determining a resource switching instruction corresponding to the first voice information according to an analysis result;
receiving the resource switching instruction sent by the cloud server;
alternatively, the first and second electrodes may be,
analyzing the first voice information;
and determining a resource switching instruction corresponding to the first voice message according to the analysis result.
Optionally, after the step of controlling the second type player to play the second play resource marked as the second type, the method may further include:
receiving second voice information sent by a user;
obtaining a first type control instruction corresponding to the second voice information, wherein the first type control instruction is a control instruction for the terminal equipment;
and sending the first type of control instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment performs play control according to the first type of control instruction.
Optionally, the step of sending the first type of control instruction to the terminal device through a bluetooth protocol, so that the terminal device performs play control according to the first type of control instruction, may include:
if the first type of control instruction is a play instruction:
sending a playing instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment determines a second playing resource to be played according to the playing instruction and sends the determined second playing resource to the intelligent equipment;
receiving a second playing resource sent by the terminal equipment;
marking the second playing resource as a second type;
controlling the second type player to play a second play resource marked as a second type;
or, if the first type of control instruction is a stop instruction:
sending a stop instruction to the terminal equipment so that the terminal equipment stops sending a second playing resource to the intelligent equipment according to the stop instruction;
or, if the first type of control instruction is a switching instruction:
sending a switching instruction to the terminal device, so that the terminal device determines a new second playing resource according to the switching instruction, and replaces the playing resource currently transmitted to the intelligent device with the new second playing resource;
receiving the new second playing resource;
marking the new second playing resource as a second type;
and controlling the second type player to play a new second playing resource marked as a second type.
Optionally, before the step of receiving the first voice information sent by the user, the method may further include:
receiving third voice information sent by a user;
sending the third voice information to a cloud server so that the cloud server analyzes the third voice information: if the third voice message carries a resource identifier, judging whether a target first playing resource corresponding to the resource identifier is stored in the intelligent equipment or not according to a record of the resource sent by the cloud server; if yes, sending a playing instruction to the intelligent equipment; if not, acquiring the target first playing resource, and sending the target first playing resource to the intelligent equipment; if the second voice information carries a second type of control instruction, sending the carried second type of control instruction to the intelligent equipment;
if the playing instruction is received:
searching the target first playing resource in a first playing resource stored locally according to the playing instruction;
controlling the first type player to play the searched target first playing resource;
if a target first playing resource sent by the cloud server is received:
marking the target first playing resource as a first type;
controlling the first type player to play a target first play resource marked as a first type;
if the second type of control instruction is received;
and controlling the current playing resources in the first type of player according to the second type of control instruction.
Optionally, the step of controlling the current playing resource in the first type of player according to the second type of control instruction may include:
if the second type of control instruction is a play instruction or a switching instruction:
determining a first playing resource to be played in the locally stored first playing resources according to the playing instruction or the switching instruction;
controlling the first type player to play the first playing resource to be played;
or if the second type of control instruction is a stop instruction, controlling the first type of player to stop playing the current playing resource.
Optionally, the smart device further includes a third type player, and the method may further include:
acquiring prompt tone resources;
marking the prompt tone resource as a third type;
and after receiving an instruction of outputting the prompt tone, controlling the third type player to play the prompt tone resource marked as the third type.
In order to achieve the above object, an embodiment of the present invention further discloses a switching device for playing resources, which is applied to an intelligent device, where the intelligent device includes a first type player and a second type player; the device comprises:
the first receiving module is used for receiving first voice information sent by a user under the condition that the first playing resource marked as a first type is played by using the first type player;
the connection establishing module is used for establishing Bluetooth connection with the terminal equipment according to the resource switching instruction under the condition that the first voice information corresponds to the resource switching instruction; wherein the resource switching instruction is: switching to an instruction for playing terminal equipment resources;
the first marking module is used for marking a second playing resource into a second type under the condition of receiving the second playing resource sent by the terminal equipment through a Bluetooth protocol;
the first control module is used for controlling the first type player to stop playing the first playing resource marked as the first type; and controlling the second type player to play a second play resource marked as a second type.
Optionally, the apparatus may further include:
the first obtaining module is used for sending the first voice information to a cloud server so that the cloud server can analyze the first voice information, and determining a resource switching instruction corresponding to the first voice information according to an analysis result; receiving the resource switching instruction sent by the cloud server;
alternatively, the first and second electrodes may be,
analyzing the first voice information; and determining a resource switching instruction corresponding to the first voice message according to the analysis result.
Optionally, the apparatus may further include:
the second receiving module is used for receiving second voice information sent by a user;
a second obtaining module, configured to obtain a first type of control instruction corresponding to the second voice information, where the first type of control instruction is a control instruction for the terminal device;
and the first sending module is used for sending the first type of control instruction to the terminal equipment through a Bluetooth protocol so as to enable the terminal equipment to carry out play control according to the first type of control instruction.
Optionally, the first sending module may be specifically configured to:
if the first type of control instruction is a play instruction:
sending a playing instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment determines a second playing resource to be played according to the playing instruction and sends the determined second playing resource to the intelligent equipment;
receiving a second playing resource sent by the terminal equipment;
marking the second playing resource as a second type;
controlling the second type player to play a second play resource marked as a second type;
or, if the first type of control instruction is a stop instruction:
sending a stop instruction to the terminal equipment so that the terminal equipment stops sending a second playing resource to the intelligent equipment according to the stop instruction;
or, if the first type of control instruction is a switching instruction:
sending a switching instruction to the terminal device, so that the terminal device determines a new second playing resource according to the switching instruction, and replaces the playing resource currently transmitted to the intelligent device with the new second playing resource;
receiving the new second playing resource;
marking the new second playing resource as a second type;
and controlling the second type player to play a new second playing resource marked as a second type.
Optionally, the apparatus may further include:
the third receiving module is used for receiving third voice information sent by the user;
the second sending module is configured to send the third voice information to a cloud server, so that the cloud server analyzes the third voice information: if the third voice message carries a resource identifier, judging whether a target first playing resource corresponding to the resource identifier is stored in the intelligent equipment or not according to a record of the resource sent by the cloud server; if yes, sending a playing instruction to the intelligent equipment; if not, acquiring the target first playing resource, and sending the target first playing resource to the intelligent equipment; if the second voice information carries a second type of control instruction, sending the carried second type of control instruction to the intelligent equipment;
the fourth receiving module is used for receiving a playing instruction sent by the cloud server;
the searching module is used for searching the target first playing resource in the locally stored first playing resource according to the playing instruction received by the fourth receiving module;
the second control module is used for controlling the first type player to play the searched target first playing resource;
a fifth receiving module, configured to receive the target first playback resource sent by the cloud server:
a second marking module, configured to mark the target first playback resource received by the fifth receiving module as a first type;
the third control module is used for controlling the first-class player to play the target first playing resource marked as the first type by the second marking module;
the sixth receiving module is used for receiving the second type of control instruction sent by the cloud server;
and the fourth control module is used for controlling the current playing resources in the first-class player according to the second-class control instruction received by the sixth receiving module.
Optionally, the fourth control module may be specifically configured to:
if the second type of control instruction is a play instruction or a switching instruction:
determining a first playing resource to be played in the locally stored first playing resources according to the playing instruction or the switching instruction;
controlling the first type player to play the first playing resource to be played;
or if the second type of control instruction is a stop instruction, controlling the first type of player to stop playing the current playing resource.
Optionally, the smart device further includes a third type player, and the apparatus may further include:
the acquisition module is used for acquiring prompt tone resources;
a third marking module, configured to mark the alert tone resource as a third type;
and the fifth control module is used for controlling the third type player to play the prompt tone resource marked as the third type after receiving the prompt tone output instruction.
In order to achieve the above object, an embodiment of the present invention further discloses an intelligent device, where the intelligent device includes a first type player and a second type player; the smart device further comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the intelligent equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the switching method of the play resources as claimed above.
By applying the embodiment of the invention, on the first aspect, after receiving the voice information corresponding to the resource switching instruction, the intelligent device can automatically establish the Bluetooth connection with the terminal device, and the operation is convenient; in the second aspect, the intelligent device includes different players, the different players play different types of resources, and after receiving the resources sent by other devices (cloud server or terminal device), the intelligent device marks the types of the resources first and then controls the players corresponding to the types of the resources to play the resources; therefore, if the intelligent device receives the second playing resource sent by the terminal device when playing the first playing resource (for example, the resource sent by the cloud server), the intelligent device can distinguish the two resources, and the playing error rate can be reduced.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a method for switching a playback resource according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a method for switching a playing resource according to an embodiment of the present invention;
fig. 4 is a third flowchart illustrating a method for switching a playing resource according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a switching apparatus for playing resources according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an intelligent device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
In order to solve the foregoing technical problems, embodiments of the present invention provide a method and an apparatus for switching a playing resource, and an intelligent device, where the method and the apparatus may be applied to various intelligent devices with a playing function, such as an intelligent sound box and an intelligent player, and are not limited specifically.
The intelligent device in the embodiment of the present invention includes different players, such as a first type player and a second type player, which play different types of resources: the first type player plays the first playing resource, and the second type player plays the second playing resource. Specifically, the second playing resource may be a resource that is understood to be transmitted through a bluetooth protocol, such as a resource that is sent by the terminal device through the bluetooth protocol; the first playing resource may be understood as a resource that is not transmitted through the bluetooth protocol, such as a resource sent by the cloud server.
First, a method for switching a broadcast resource according to an embodiment of the present invention is described in detail below.
Fig. 1 is a first flowchart of a method for switching a play resource according to an embodiment of the present invention, including:
s101: in the case of playing a first play resource marked as a first type using a first type player, first voice information transmitted by a user is received.
Before the scheme is executed, the intelligent device plays a first playing resource, and the first playing resource can be a resource acquired from the cloud server.
Describing the interaction between the smart device and the cloud server, as shown in fig. 3, the smart device may perform the following steps:
s301: and receiving third voice information sent by the user.
The third voice message may be information carrying resource identifiers (song names "red bean" and "legend"), such as "i want to listen to" red bean "," i want to listen to "legend"; alternatively, the information carrying the control command may be "play", "pause", "previous", "next", "stop", and the like.
S302: and sending the third voice information to a cloud server.
The intelligent device is in communication connection with the cloud server. The cloud server analyzes the third voice information after receiving the third voice information, and according to different analysis results, the cloud server has the following conditions:
1. assuming that the voice message received in S301 is "i want to listen to" red bean ", the cloud server analyzes the voice message, and determines that the third voice message carries a resource identifier (song name" red bean ").
The cloud server stores a record of sending resources to the intelligent device, the intelligent device stores the resources sent by the cloud server, and the cloud server can judge whether a target first playing resource (a song of red bean) corresponding to the resource identifier is stored in the intelligent device according to the record of sending resources stored by the cloud server.
As an implementation manner, the record may include a resource identifier and a sending time, and the smart device cleans resources stored in the smart device at intervals of a preset period (cleaning period); the cloud server can judge whether a target first playing resource corresponding to the resource identifier exists in the intelligent device or not by combining the current time period, the cleaning period of the intelligent device and the resource identifier and sending time contained in the record.
For example, the smart device may clean up resources stored in the smart device per month, and if the current time period is 2017 for 4 months, and a record included in the record stored in the cloud server is ' ormosia ' -sending time 2017 for 2 months ', it may be determined that the ' ormosia ' resource has been deleted in the smart device.
Or, as another embodiment, the record may only include a resource identifier, and the smart device cleans the resource stored in the smart device at preset intervals (cleaning cycles); the cloud server also cleans the record of the sending resource stored by the cloud server every preset period (cleaning period). The cleaning cycle of the intelligent device is consistent with that of the cloud server, so that the cloud server can judge whether the target first playing resource corresponding to the resource identifier exists in the intelligent device or not only according to the resource identifier contained in the record.
For example, the smart device cleans up the resources stored in the smart device every month, and the cloud server cleans up the stored records every month. In this case, the record may only include the resource identifier, and the record stored in the cloud server includes a record of "red bean", and it may be determined that the intelligent device stores the resource of "red bean".
And if the cloud server judges that the target first playing resource corresponding to the resource identifier is stored in the intelligent equipment, sending a playing instruction to the intelligent equipment. After receiving the playing instruction, the intelligent device executes the following steps:
s303: searching a target first playing resource in a first playing resource stored locally according to the playing instruction;
s304: and controlling the first type player to play the searched target first playing resource.
In this embodiment, a resource acquired from the cloud server is referred to as a first playing resource, and the first playing resource locally stored in the smart device is also acquired from the cloud server.
2. Assuming that the cloud server judges a target first playing resource corresponding to the resource identifier which is not stored in the intelligent device, the cloud server acquires the target first playing resource and sends the target first playing resource to the intelligent device. After receiving the target first playing resource, the intelligent device executes the following steps:
s305: marking the target first playing resource as a first type;
s306: the first type of player is controlled to play a target first play asset marked as a first type.
3. Assume that the third voice message received in S301 is information carrying control instructions, such as "play", "pause", "previous", "next", "stop", and the like. The cloud server analyzes the voice information and determines that the third voice information carries a second type of control instruction. In this embodiment, the control instruction for the smart device is referred to as a second type of control instruction.
The cloud server sends the second type of control instruction to the intelligent device, and after receiving the second type of control instruction, the intelligent device executes S307: and controlling the current playing resources in the first type of player according to the second type of control instruction.
It can be understood that the first playing resource locally stored by the smart device is also obtained from the cloud server, and the first playing resource is also controlled by the first player.
Specifically, in the case of the 3 rd scenario, the following schemes may be further included:
(1) if the second type of control instruction is a play instruction:
and the intelligent equipment determines a first playing resource to be played in the locally stored first playing resources according to the playing instruction or the switching instruction.
If the voice information received in S301 is "play" or other similar information, the cloud server analyzes the voice information, and then sends a second type of control instruction to the smart device as a play instruction.
After receiving the playing instruction, the intelligent device can determine a resource to be played in a first playing resource stored locally according to a playing rule of the intelligent device; and controlling the first type player to play the first playing resource to be played.
It is understood that the playing rule of the smart device may be "sequential playing", "single track loop", "random playing", and so on. Under the play rule of "sequential play", the smart device may determine, according to the play record, a part of the resources that have not been played last time as the resources to be played, or may also determine the first resource in the resource sequence as the resource to be played. Under the play rule of the single-song cycle, the intelligent device may determine a part of the resource that has not been played last time as the resource to be played, or may also determine the single song in the cycle as the resource to be played. Under the play rule of "random play", the intelligent device may determine, according to the play record, a part of the resources that have not been played last time as the resources to be played, or may also randomly determine resources in the resource sequence as the resources to be played.
There are many ways for the smart device to determine the resource to be played, which are not listed here.
(2) If the second type of control instruction is a switching instruction:
the intelligent equipment determines a first playing resource to be played in the locally stored first playing resources according to the switching instruction; and controlling the first type player to play the first playing resource to be played.
If the voice information received in S301 is "previous", "next", or other similar information, the cloud server analyzes the voice information, and then sends a second type of control instruction to the smart device as a switching instruction.
After receiving the switching instruction, the intelligent device can determine the resource to be played in the locally stored first playing resource according to the playing rule of the intelligent device; and controlling the first type player to play the resource to be played.
It is understood that the playing rule of the smart device may be "sequential playing", "single track loop", "random playing", and so on. For example, if the received voice message is "next", under the play rule of "sequential play", the smart device may determine the next resource in the resource sequence as the resource to be played according to the play record. Under the play rule of the single-song loop, the intelligent device can determine the next resource of the single song in the loop as the resource to be played. Under the play rule of "random play", the smart device may randomly determine the resource in the resource sequence as the resource to be played.
There are many ways for the smart device to determine the resource to be played, which are not listed here.
(3) And if the second type of control instruction is a stop instruction, controlling the first type of player to stop playing the current playing resource.
If the third voice message received in S301 is a message such as "pause", "close", or "stop", the cloud server analyzes the voice message, and then sends a second type of control instruction to the smart device as a stop instruction, and the smart device controls the first type of player to stop playing the current playing resource after receiving the stop instruction.
By applying the embodiment of the invention shown in fig. 3, the intelligent device can interact with the cloud server and acquire the first playing resource from the cloud server, so that the intelligent device can control the first player to play the first playing resource. In addition, in the embodiment shown in fig. 3, after receiving the first playing resource sent by the cloud server, the smart device marks the first playing resource as the first type, and then controls the first type player to play the first playing resource marked as the first type.
Specifically, the first type may be a Music type, or may be other types, and is not limited specifically.
S102: and if the first voice information corresponds to a resource switching instruction, establishing Bluetooth connection with the terminal equipment according to the resource switching instruction.
Wherein the resource switching instruction is: and switching to the instruction for playing the terminal equipment resource.
If the first voice message received in S101 includes information such as "switch to terminal device", the voice message corresponds to a resource switching instruction, and this embodiment provides the following manner to obtain the resource switching instruction corresponding to the first voice message:
firstly, the intelligent device sends the first voice message to a cloud server; the cloud server analyzes the first voice message and determines a resource switching instruction corresponding to the first voice message according to an analysis result; and the intelligent equipment receives the resource switching instruction sent by the cloud server.
The technical personnel in the field can understand that a relatively rich semantic library can be stored in the cloud server, the cloud server can convert the received first voice information into text information, match the text information with information in the semantic library, and determine a resource switching instruction according to a matching result.
For example, assuming that the first voice message received in S101 is "resource in playing terminal device", the smart device sends the first voice message to the cloud server, the cloud server converts the first voice message into text message "resource in playing terminal device", matches the text message with information in the semantic library, determines that the text message represents switching to terminal device, and the cloud server sends a resource switching instruction "switching to terminal device" to the smart device.
By applying the implementation mode, a richer semantic library can be stored in the cloud server, the user intention can be analyzed more accurately, and the user experience is better.
In a second embodiment, the smart device parses the received first voice message in S101, and determines a resource switching instruction corresponding to the first voice message according to a parsing result.
In this embodiment, the smart device has a semantic parsing function, and the smart device itself may store a semantic library. The intelligent device can convert the received first voice information into text information, match the text information with information in a semantic library of the intelligent device, and determine a resource switching instruction according to a matching result.
For example, assuming that the first voice information received in S101 is "a resource in the playing terminal device", the intelligent device converts the first voice information into text information "a resource in the playing terminal device", matches the text information with information in its semantic library, and determines that the text information represents switching to the terminal device, that is, determines a resource switching instruction corresponding to the first voice information.
Or, it is also reasonable that the intelligent device may perform modeling by a machine learning algorithm to obtain an instruction model, input the first speech information into the instruction model for recognition, and determine a corresponding resource switching instruction according to a recognition result.
By applying the implementation mode, the intelligent device does not need to interact with the cloud server, the resource switching instruction can be determined by the intelligent device, the response is sensitive, and the user waiting time is short.
It should be noted that, when the intelligent device plays the first play resource, the bluetooth connection between the intelligent device and the terminal device is disconnected. And after the intelligent equipment obtains the resource switching instruction, starting the Bluetooth function of the intelligent equipment, and establishing Bluetooth connection with the terminal equipment.
Those skilled in the art will appreciate that Bluetooth (Bluetooth) is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. The terminal device may be a mobile phone, a tablet computer, or the like, and is not limited specifically. The intelligent device may play the playing resources in the terminal device, such as audio resources and video resources, through a bluetooth protocol, which is not limited specifically.
In this case, as shown in fig. 2, the smart device is connected to the terminal device via bluetooth, and the smart device is connected to the cloud server via communication.
S103: and if a second playing resource sent by the terminal equipment through a Bluetooth protocol is received, marking the second playing resource as a second type.
As an implementation manner, after the intelligent device establishes the bluetooth connection with the terminal device, the terminal device may directly determine the second playing resource to be played, and send the determined second playing resource to the intelligent device.
Or, as another implementation, after the intelligent device establishes connection with the terminal device, and the intelligent device further receives voice information such as "request for resources in the terminal device" sent by the user, the intelligent device sends a play instruction to the terminal device, and after the terminal device receives the play instruction, the terminal device determines a second play resource to be played, and sends the determined second play resource to the intelligent device.
In this embodiment, the resource transmitted through the bluetooth protocol is referred to as a second playback resource.
In the two embodiments, the terminal device may determine the second playing resource to be played in the playing resources stored in the terminal device according to its own playing rule.
It is understood that the playing rule of the terminal device may be "sequential playing", "single track loop", "random playing", and so on. Under the play rule of "sequential play", the terminal device may determine, according to the play record, a part of the resource that has not been played last time as the resource to be played, or may also determine the first resource in the resource sequence as the resource to be played. Under the play rule of the "single track loop", the terminal device may determine a part of the resource that has not been played last time as the resource to be played, or may also determine the single track of the loop as the resource to be played. Under the play rule of "random play", the terminal device may determine, according to the play record, a part of the resources that have not been played last time as the resources to be played, or may also randomly determine resources in the resource sequence as the resources to be played.
There are many ways for the terminal device to determine the resource to be played, which are not listed here.
And after the intelligent equipment receives the second playing resource sent by the terminal equipment, marking the second playing resource as a second type. Specifically, the second type may be Ring type, or may be other types, which is not limited specifically.
S104: controlling the first type player to stop playing the first playing resource marked as the first type; and controlling the second type player to play the second playing resource marked as the second type.
It will be appreciated that prior to executing the present solution, a first type of player in the smart device is playing a first playback asset, which is marked as a first type. In S103, the smart device receives the second playback resource and marks it as the second type.
That is, at this time, two resources exist in the smart device, and since the two resources are already marked, the smart device can distinguish one resource as a Music type resource and the other resource as a Ring type resource.
Since the user requests a handover to the terminal device (first voice information), that is to say the user requests a resource in the terminal device, that is to say a resource of the Ring type; thus, the smart device controls the first type of player to stop playing the asset marked as Music type and controls the second type of player to play the asset marked as Ring type.
With the embodiment of the invention shown in fig. 1, on the first hand, after receiving the voice message switched to the terminal device, the intelligent device can automatically establish bluetooth connection with the terminal device, and the operation is convenient; in the second aspect, the intelligent device includes different players, the different players play different types of resources, and after receiving the resources sent by other devices (cloud server or terminal device), the intelligent device marks the types of the resources first and then controls the players corresponding to the types of the resources to play the resources; therefore, if the intelligent device receives the second playing resource sent by the terminal device when playing the first playing resource (for example, the resource sent by the cloud server), the intelligent device can distinguish the two resources, and the playing error rate can be reduced.
Fig. 4 is a second flowchart illustrating a method for switching a playback resource according to an embodiment of the present invention, where the embodiment shown in fig. 4 of the present invention is based on the embodiment shown in fig. 1, and the following scheme is added after S104:
s401: and receiving second voice information sent by the user.
After the embodiment shown in fig. 1, the smart device has switched to play the resource in the terminal device, where the second voice message is a voice message for the terminal device, such as "play", "pause", "previous", "next", "stop", and other messages carrying control instructions.
S102: and acquiring a first type of control instruction corresponding to the second voice information.
In this embodiment, the control instruction for the terminal device is referred to as a first type of control instruction.
The application scenario of this embodiment may be as shown in fig. 2, where the smart device is connected to the terminal device via bluetooth, and in addition, the smart device may be connected to the cloud server via communication.
For example, the following implementation manner is introduced in the embodiment of the present invention to obtain the first type of control instruction, or other manners may also be adopted, which is not limited specifically.
In the first embodiment, the smart device may send the second voice message received in S401 to the cloud server; the cloud server can analyze the second voice information, determine a first type of control instruction corresponding to the second voice information according to an analysis result, and then send the determined first type of control instruction to the intelligent device; therefore, the intelligent equipment obtains the first type of control instruction corresponding to the second voice information.
Those skilled in the art can understand that a relatively rich semantic library can be stored in the cloud server, the cloud server can convert the received second voice information into text information, match the text information with information in the semantic library, and determine the first type of control instruction according to a matching result.
For example, assuming that the second voice message received in S401 is "next", the smart device sends the second voice message to the cloud server, the cloud server converts the second voice message into a text message "next", matches the text message with information in the semantic library, determines that the text message indicates switching of a next playback resource, and the cloud server sends a first type of control command "switching of a next playback resource" to the smart device.
By applying the implementation mode, a richer semantic library can be stored in the cloud server, the user intention can be analyzed more accurately, and the user experience is better.
In a second embodiment, the smart device parses the received second voice message in S401, and determines a first type of control instruction corresponding to the second voice message according to a parsing result.
In this embodiment, the smart device has a semantic parsing function, and the smart device itself may store a semantic library. The intelligent device can convert the received second voice information into text information, match the text information with information in a semantic library of the intelligent device, and determine the first type of control instruction according to a matching result.
For example, assuming that the second voice message received in S401 is "next", the intelligent device converts the second voice message into a text message "next", matches the text message with information in its semantic library, and determines that the text message indicates switching of the next playback resource, that is, determines that the first control instruction is "switching of the next playback resource".
Or, it is also reasonable that the intelligent device may perform modeling by a machine learning algorithm to obtain an instruction model, input the second speech information into the instruction model for recognition, and determine the corresponding first type of control instruction according to the recognition result.
By applying the implementation mode, the intelligent device does not need to interact with the cloud server, the intelligent device can determine the control command, the response is sensitive, and the waiting time of a user is short.
S403: and sending the first type of control instruction to terminal equipment through a Bluetooth protocol so that the terminal equipment performs play control according to the first type of control instruction.
As shown in fig. 2, the smart device is connected to the terminal device via bluetooth, and the smart device may send a first type of control command to the terminal device via a bluetooth protocol.
Illustratively, the first type of control instruction may be divided into a play instruction, a stop instruction, and a switch instruction.
Specifically, the playing instruction may be understood as an instruction for playing a resource in the terminal device, and after receiving the playing instruction, the terminal device may determine the resource to be played according to its own playing rule.
For example, if the first type of control instruction obtained in S402 is a play instruction, the smart device sends the play instruction to the terminal device through a bluetooth protocol. And after receiving the playing instruction, the terminal equipment determines a second playing resource to be played.
As an embodiment, the terminal device may check the last playing record, and determine the resource to be played from the playing resources stored in the terminal device according to the playing record.
It is understood that the playing rule of the terminal device may be "sequential playing", "single track loop", "random playing", and so on. Under the play rule of "sequential play", the terminal device may determine, according to the play record, a part of the resource that has not been played last time as a resource to be played, or may also determine a first part of the resource in the resource sequence as a resource to be played. Under the play rule of the "single track loop", the terminal device may determine a part of the resource that has not been played last time as the resource to be played, or may also determine the single track of the loop as the resource to be played. Under the play rule of "random play", the terminal device may determine, according to the play record, a part of the resources that have not been played last time as the resources to be played, or may also randomly determine resources in the resource sequence as the resources to be played.
There are many ways for the terminal device to determine the resource to be played, which are not listed here.
As will be appreciated by those skilled in the art, the resources transmitted via the bluetooth protocol are transmitted in the form of a data stream. The smart device may mark the data stream (the second playback resource to be played) as the second type after receiving it, and control the second type player to play it.
The stop instruction may be understood as an instruction to stop playing the resource in the terminal device, such as an instruction to pause, close, stop, etc.
For example, if the first type of control instruction obtained in S402 is a stop instruction, the smart device sends the stop instruction to the terminal device through the bluetooth protocol. After receiving the stop instruction, the terminal device may stop sending the second play resource to be played to the intelligent device.
According to the above description, the resources transmitted by the bluetooth protocol are transmitted in the form of data streams, so that the smart device stops playing after the terminal device stops transmitting the resources to the smart device.
Specifically, the switching instruction may be understood as an instruction for switching the playing resource, such as "previous" or "next". After receiving the switching instruction, the terminal device can switch to play other resources according to its own playing rules.
For example, if the first type of control instruction obtained in S402 is a switching instruction, the smart device sends the switching instruction to the terminal device through a bluetooth protocol. After receiving the switching instruction, the terminal device determines a new second playing resource, that is, a resource to be played, and sends the new second playing resource to the intelligent device.
According to the above description, the playing rule of the terminal device may be "sequential playing", "single track loop", "random playing", and the like. Under the play rule of "sequential play" or "single track loop", the terminal device may determine the next resource in the resource sequence as the resource to be played. Under the play rule of "random play", the terminal device may randomly determine the resource in the resource sequence as the resource to be played.
There are many ways for the terminal device to determine the resource to be played, which are not listed here. Therefore, after the terminal device replaces the playing resource currently transmitted to the intelligent device with the new second playing resource, the intelligent device receives the new second playing resource, marks the new second playing resource as the second type, and controls the second player to play the marked second playing resource.
By applying the embodiment shown in fig. 4 of the present invention, the intelligent device obtains the control instruction corresponding to the voice information, and sends the control instruction to the terminal device, so that the terminal device performs play control according to the control instruction. Therefore, the user can control the playing of the terminal equipment only by sending a control instruction to the intelligent equipment through voice, the operation is simple, and the convenience of operation is improved.
As an implementation manner, the intelligent device further includes a third type player, where the third type player plays a resource of a third type; the following scheme can be further included:
acquiring prompt tone resources; marking the prompt tone resource as a third type; and after receiving an instruction of outputting the prompt tone, controlling the third type player to play the prompt tone resource marked as the third type.
According to the above description, in this embodiment, the resource acquired from the cloud server is of the first type, the resource acquired from the terminal device is of the second type, and besides, the alert tone resource may be marked as the third type. The third type may be an alarm type, and is not particularly limited.
The prompt tone can be understood as the words when the intelligent device interacts with the user, for example, the intelligent device can have an information broadcasting function, and the intelligent device can be used as a prompt tone resource when playing weather forecast to the user, wherein the words "today is clear, the temperature is 10-20 ℃, and the air quality is good".
After obtaining the prompt tone resource, marking the prompt tone resource as a third type, thus, after receiving the instruction of outputting the prompt tone, controlling a third type player to play the prompt tone resource marked as the third type.
By applying the embodiment, the prompt tone resource is marked as the third type, and different resources are further distinguished.
As a specific embodiment, the smart device may first execute the scheme in fig. 3, and after S304, execute the scheme in fig. 1, and after S104, execute the scheme in fig. 4, and the specific steps may be:
S301、S302、S305、S306、S101、S102、S103、S104、S401、S402、S403。
that is to say, the smart device may interact with the cloud server first, obtain the first playing resource from the cloud server, mark the first playing resource as the first type, and control the first type player to play the first playing resource marked as the first type; if the intelligent equipment receives the first voice information sent by the user at the moment, the user requests to switch to the terminal equipment; under the condition, the intelligent device obtains a resource switching instruction corresponding to the first voice information, and establishes Bluetooth connection with the terminal device according to the resource switching instruction; then, if the intelligent device receives a second playing resource sent by the terminal device through Bluetooth, the second playing resource is marked as a second type, the first type player is controlled to stop playing the first playing resource marked as the first type, and the second type player is controlled to play the second playing resource marked as the second type, so that the intelligent device is switched to play the resource in the terminal device; and then, the intelligent device can receive the second voice information, acquire a control instruction corresponding to the second voice information, and control the terminal device according to the control instruction.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a device for switching a play resource.
Fig. 5 is a schematic structural diagram of a device for switching a playback resource according to an embodiment of the present invention, including:
a first receiving module 501, configured to receive first voice information sent by a user when the first type player is used to play a first play resource marked as a first type;
a connection establishing module 502, configured to establish a bluetooth connection with a terminal device according to a resource switching instruction when the first voice information corresponds to the resource switching instruction; wherein the resource switching instruction is: switching to an instruction for playing terminal equipment resources;
a first marking module 503, configured to mark a second play resource, sent by the terminal device through a bluetooth protocol, as a second type when the second play resource is received;
a first control module 504, configured to control the first type player to stop playing a first playing resource marked as a first type; and controlling the second type player to play a second play resource marked as a second type.
As an embodiment, the apparatus may further include:
a first obtaining module (not shown in the figures) for: sending the first voice information to a cloud server so that the cloud server analyzes the first voice information, and determining a resource switching instruction corresponding to the first voice information according to an analysis result; receiving the resource switching instruction sent by the cloud server;
alternatively, the first and second electrodes may be,
analyzing the first voice information; and determining a resource switching instruction corresponding to the first voice message according to the analysis result.
As an embodiment, the apparatus may further include:
the second receiving module is used for receiving second voice information sent by a user;
a second obtaining module, configured to obtain a first type of control instruction corresponding to the second voice information, where the first type of control instruction is a control instruction for the terminal device;
and the first sending module is used for sending the first type of control instruction to the terminal equipment through a Bluetooth protocol so as to enable the terminal equipment to carry out play control according to the first type of control instruction.
As an embodiment, the first sending module may be specifically configured to:
if the first type of control instruction is a play instruction:
sending a playing instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment determines a second playing resource to be played according to the playing instruction and sends the determined second playing resource to the intelligent equipment;
receiving a second playing resource sent by the terminal equipment;
marking the second playing resource as a second type;
controlling the second type player to play a second play resource marked as a second type;
or, if the first type of control instruction is a stop instruction:
sending a stop instruction to the terminal equipment so that the terminal equipment stops sending a second playing resource to the intelligent equipment according to the stop instruction;
or, if the first type of control instruction is a switching instruction:
sending a switching instruction to the terminal device, so that the terminal device determines a new second playing resource according to the switching instruction, and replaces the playing resource currently transmitted to the intelligent device with the new second playing resource;
receiving the new second playing resource;
marking the new second playing resource as a second type;
and controlling the second type player to play a new second playing resource marked as a second type.
As an embodiment, the apparatus may further include:
the third receiving module is used for receiving third voice information sent by the user;
the second sending module is configured to send the third voice information to a cloud server, so that the cloud server analyzes the third voice information: if the third voice message carries a resource identifier, judging whether a target first playing resource corresponding to the resource identifier is stored in the intelligent equipment or not according to a record of the resource sent by the cloud server; if yes, sending a playing instruction to the intelligent equipment; if not, acquiring the target first playing resource, and sending the target first playing resource to the intelligent equipment; if the second voice information carries a second type of control instruction, sending the carried second type of control instruction to the intelligent equipment;
the fourth receiving module is used for receiving a playing instruction sent by the cloud server;
the searching module is used for searching the target first playing resource in the locally stored first playing resource according to the playing instruction received by the fourth receiving module;
the second control module is used for controlling the first type player to play the searched target first playing resource;
a fifth receiving module, configured to receive the target first playback resource sent by the cloud server:
a second marking module, configured to mark the target first playback resource received by the fifth receiving module as a first type;
the third control module is used for controlling the first-class player to play the target first playing resource marked as the first type by the second marking module;
the sixth receiving module is used for receiving the second type of control instruction sent by the cloud server;
and the fourth control module is used for controlling the current playing resources in the first-class player according to the second-class control instruction received by the sixth receiving module.
As an embodiment, the fourth control module may specifically be configured to:
if the second type of control instruction is a play instruction or a switching instruction:
determining a first playing resource to be played in the locally stored first playing resources according to the playing instruction or the switching instruction;
controlling the first type player to play the first playing resource to be played;
or if the second type of control instruction is a stop instruction, controlling the first type of player to stop playing the current playing resource.
As an embodiment, the smart device may further include a third type player, and the apparatus may further include:
the acquisition module is used for acquiring prompt tone resources;
a third marking module, configured to mark the alert tone resource as a third type;
and the fifth control module is used for controlling the third type player to play the prompt tone resource marked as the third type after receiving the prompt tone output instruction.
With the embodiment of the invention shown in fig. 5, in the first aspect, after receiving the voice message corresponding to the resource switching instruction, the intelligent device can automatically establish bluetooth connection with the terminal device, and the operation is convenient; in the second aspect, the intelligent device includes different players, the different players play different types of resources, and after receiving the resources sent by other devices (cloud server or terminal device), the intelligent device marks the types of the resources first and then controls the players corresponding to the types of the resources to play the resources; therefore, if the intelligent device receives the second playing resource sent by the terminal device when playing the first playing resource (for example, the resource sent by the cloud server), the intelligent device can distinguish the two resources, and the playing error rate can be reduced.
An embodiment of the present invention further provides an intelligent device, as shown in fig. 6, including: a housing 601, a processor 602, a memory 603, a circuit board 604, and a power supply circuit 605; in addition, the smart device also includes a first type player and a second type player (not shown in the figure). Wherein, the circuit board 604 is arranged inside the space enclosed by the housing 601, and the processor 602 and the memory 603 are arranged on the circuit board 604; a power supply circuit 605 for supplying power to each circuit or device of the smart device; the memory 603 is used for storing executable program code; the processor 602 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 603, for executing the switching method of the play resource, the method comprising:
under the condition that the first type player is used for playing a first playing resource marked as a first type, first voice information sent by a user is received;
if the first voice information corresponds to a resource switching instruction, establishing Bluetooth connection with the terminal equipment according to the resource switching instruction; wherein the resource switching instruction is: switching to an instruction for playing terminal equipment resources;
if a second playing resource sent by the terminal equipment through a Bluetooth protocol is received, marking the second playing resource as a second type;
controlling the first type player to stop playing a first playing resource marked as a first type;
and controlling the second type player to play a second play resource marked as a second type.
The intelligent device can be an intelligent sound box, an intelligent player and the like, and is not limited specifically.
With the embodiment of the invention shown in fig. 6, on the first hand, after receiving the voice message corresponding to the resource switching instruction, the intelligent device can automatically establish bluetooth connection with the terminal device, and the operation is convenient; in the second aspect, the intelligent device includes different players, the different players play different types of resources, and after receiving the resources sent by other devices (cloud server or terminal device), the intelligent device marks the types of the resources first and then controls the players corresponding to the types of the resources to play the resources; therefore, if the intelligent device receives the second playing resource sent by the terminal device when playing the first playing resource (for example, the resource sent by the cloud server), the intelligent device can distinguish the two resources, and the playing error rate can be reduced.
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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A switching method of playing resources is characterized in that the switching method is applied to intelligent equipment, and the intelligent equipment comprises a first type player and a second type player; the method comprises the following steps:
under the condition that the first type player is used for playing a first playing resource marked as a first type, first voice information sent by a user is received;
if the first voice information corresponds to a resource switching instruction, establishing Bluetooth connection with the terminal equipment according to the resource switching instruction; wherein the resource switching instruction is: switching to an instruction for playing terminal equipment resources;
if a second playing resource sent by the terminal equipment through a Bluetooth protocol is received, marking the second playing resource as a second type;
controlling the first type player to stop playing a first playing resource marked as a first type;
and controlling the second type player to play a second play resource marked as a second type.
2. The method of claim 1, further comprising, after the step of receiving the first voice message sent by the user:
sending the first voice information to a cloud server so that the cloud server analyzes the first voice information, and determining a resource switching instruction corresponding to the first voice information according to an analysis result;
receiving the resource switching instruction sent by the cloud server;
alternatively, the first and second electrodes may be,
analyzing the first voice information;
and determining a resource switching instruction corresponding to the first voice message according to the analysis result.
3. The method of claim 1, wherein after the step of controlling the second type player to play the second play resource marked as the second type, the method further comprises:
receiving second voice information sent by a user;
obtaining a first type control instruction corresponding to the second voice information, wherein the first type control instruction is a control instruction for the terminal equipment;
and sending the first type of control instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment performs play control according to the first type of control instruction.
4. The method according to claim 3, wherein the step of sending the first type of control command to the terminal device via the bluetooth protocol, so that the terminal device performs play control according to the first type of control command comprises:
if the first type of control instruction is a play instruction:
sending a playing instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment determines a second playing resource to be played according to the playing instruction and sends the determined second playing resource to the intelligent equipment;
receiving a second playing resource sent by the terminal equipment;
marking the second playing resource as a second type;
controlling the second type player to play a second play resource marked as a second type;
or, if the first type of control instruction is a stop instruction:
sending a stop instruction to the terminal equipment so that the terminal equipment stops sending a second playing resource to the intelligent equipment according to the stop instruction;
or, if the first type of control instruction is a switching instruction:
sending a switching instruction to the terminal device, so that the terminal device determines a new second playing resource according to the switching instruction, and replaces the playing resource currently transmitted to the intelligent device with the new second playing resource;
receiving the new second playing resource;
marking the new second playing resource as a second type;
and controlling the second type player to play a new second playing resource marked as a second type.
5. The method of claim 1, further comprising, before the step of receiving the first voice message sent by the user:
receiving third voice information sent by a user;
sending the third voice information to a cloud server so that the cloud server analyzes the third voice information: if the third voice message carries a resource identifier, judging whether a target first playing resource corresponding to the resource identifier is stored in the intelligent equipment or not according to a record of the resource sent by the cloud server; if yes, sending a playing instruction to the intelligent equipment; if not, acquiring the target first playing resource, and sending the target first playing resource to the intelligent equipment; if the third voice information carries a second type of control instruction, sending the carried second type of control instruction to the intelligent equipment;
if the playing instruction is received:
searching the target first playing resource in a first playing resource stored locally according to the playing instruction;
controlling the first type player to play the searched target first playing resource;
if a target first playing resource sent by the cloud server is received:
marking the target first playing resource as a first type;
controlling the first type player to play a target first play resource marked as a first type;
if the second type of control instruction is received;
and controlling the current playing resources in the first type of player according to the second type of control instruction.
6. The method according to claim 5, wherein the step of controlling the current playing resources in the first type of player according to the second type of control instruction comprises:
if the second type of control instruction is a play instruction or a switching instruction:
determining a first playing resource to be played in the locally stored first playing resources according to the playing instruction or the switching instruction;
controlling the first type player to play the first playing resource to be played;
or if the second type of control instruction is a stop instruction, controlling the first type of player to stop playing the current playing resource.
7. The method of claim 1, wherein the smart device further comprises a third type of player, the method further comprising:
acquiring prompt tone resources;
marking the prompt tone resource as a third type;
and after receiving an instruction of outputting the prompt tone, controlling the third type player to play the prompt tone resource marked as the third type.
8. A switching device for playing resources is characterized in that the switching device is applied to intelligent equipment, and the intelligent equipment comprises a first type player and a second type player; the device comprises:
the first receiving module is used for receiving first voice information sent by a user under the condition that the first playing resource marked as a first type is played by using the first type player;
the connection establishing module is used for establishing Bluetooth connection with the terminal equipment according to the resource switching instruction under the condition that the first voice information corresponds to the resource switching instruction; wherein the resource switching instruction is: switching to an instruction for playing terminal equipment resources;
the first marking module is used for marking a second playing resource into a second type under the condition of receiving the second playing resource sent by the terminal equipment through a Bluetooth protocol;
the first control module is used for controlling the first type player to stop playing the first playing resource marked as the first type; and controlling the second type player to play a second play resource marked as a second type.
9. The apparatus of claim 8, further comprising:
the first obtaining module is used for sending the first voice information to a cloud server so that the cloud server can analyze the first voice information, and determining a resource switching instruction corresponding to the first voice information according to an analysis result; receiving the resource switching instruction sent by the cloud server;
alternatively, the first and second electrodes may be,
analyzing the first voice information; and determining a resource switching instruction corresponding to the first voice message according to the analysis result.
10. The apparatus of claim 8, further comprising:
the second receiving module is used for receiving second voice information sent by a user;
a second obtaining module, configured to obtain a first type of control instruction corresponding to the second voice information, where the first type of control instruction is a control instruction for the terminal device;
and the first sending module is used for sending the first type of control instruction to the terminal equipment through a Bluetooth protocol so as to enable the terminal equipment to carry out play control according to the first type of control instruction.
11. The apparatus of claim 10, wherein the first sending module is specifically configured to:
if the first type of control instruction is a play instruction:
sending a playing instruction to the terminal equipment through a Bluetooth protocol so that the terminal equipment determines a second playing resource to be played according to the playing instruction and sends the determined second playing resource to the intelligent equipment;
receiving a second playing resource sent by the terminal equipment;
marking the second playing resource as a second type;
controlling the second type player to play a second play resource marked as a second type;
or, if the first type of control instruction is a stop instruction:
sending a stop instruction to the terminal equipment so that the terminal equipment stops sending a second playing resource to the intelligent equipment according to the stop instruction;
or, if the first type of control instruction is a switching instruction:
sending a switching instruction to the terminal device, so that the terminal device determines a new second playing resource according to the switching instruction, and replaces the playing resource currently transmitted to the intelligent device with the new second playing resource;
receiving the new second playing resource;
marking the new second playing resource as a second type;
and controlling the second type player to play a new second playing resource marked as a second type.
12. The apparatus of claim 8, further comprising:
the third receiving module is used for receiving third voice information sent by the user;
the second sending module is configured to send the third voice information to a cloud server, so that the cloud server analyzes the third voice information: if the third voice message carries a resource identifier, judging whether a target first playing resource corresponding to the resource identifier is stored in the intelligent equipment or not according to a record of the resource sent by the cloud server; if yes, sending a playing instruction to the intelligent equipment; if not, acquiring the target first playing resource, and sending the target first playing resource to the intelligent equipment; if the third voice information carries a second type of control instruction, sending the carried second type of control instruction to the intelligent equipment;
the fourth receiving module is used for receiving a playing instruction sent by the cloud server;
the searching module is used for searching the target first playing resource in the locally stored first playing resource according to the playing instruction received by the fourth receiving module;
the second control module is used for controlling the first type player to play the searched target first playing resource;
a fifth receiving module, configured to receive the target first playback resource sent by the cloud server:
a second marking module, configured to mark the target first playback resource received by the fifth receiving module as a first type;
the third control module is used for controlling the first-class player to play the target first playing resource marked as the first type by the second marking module;
the sixth receiving module is used for receiving the second type of control instruction sent by the cloud server;
and the fourth control module is used for controlling the current playing resources in the first-class player according to the second-class control instruction received by the sixth receiving module.
13. The apparatus of claim 12, wherein the fourth control module is specifically configured to:
if the second type of control instruction is a play instruction or a switching instruction:
determining a first playing resource to be played in the locally stored first playing resources according to the playing instruction or the switching instruction;
controlling the first type player to play the first playing resource to be played;
or if the second type of control instruction is a stop instruction, controlling the first type of player to stop playing the current playing resource.
14. The apparatus of claim 8, wherein the smart device further comprises a third type of player, the apparatus further comprising:
the acquisition module is used for acquiring prompt tone resources;
a third marking module, configured to mark the alert tone resource as a third type;
and the fifth control module is used for controlling the third type player to play the prompt tone resource marked as the third type after receiving the prompt tone output instruction.
15. The intelligent device is characterized in that the intelligent device comprises a first type player and a second type player; the smart device further comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the intelligent equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the switching method of the playback resources according to any one of claims 1 to 7.
CN201710229838.1A 2017-04-10 2017-04-10 Switching method and device of playing resources and intelligent equipment Active CN107146609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710229838.1A CN107146609B (en) 2017-04-10 2017-04-10 Switching method and device of playing resources and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710229838.1A CN107146609B (en) 2017-04-10 2017-04-10 Switching method and device of playing resources and intelligent equipment

Publications (2)

Publication Number Publication Date
CN107146609A CN107146609A (en) 2017-09-08
CN107146609B true CN107146609B (en) 2020-05-15

Family

ID=59773667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710229838.1A Active CN107146609B (en) 2017-04-10 2017-04-10 Switching method and device of playing resources and intelligent equipment

Country Status (1)

Country Link
CN (1) CN107146609B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881978B (en) * 2018-06-29 2020-03-20 百度在线网络技术(北京)有限公司 Resource playing method and device for intelligent equipment
CN110010139B (en) * 2019-03-28 2021-12-21 南昌黑鲨科技有限公司 Audio input/output method, system and computer readable storage medium
CN110600031B (en) * 2019-09-16 2023-10-17 深圳Tcl新技术有限公司 Playback control method, playback apparatus, and computer-readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101262700B1 (en) * 2011-08-05 2013-05-08 삼성전자주식회사 Method for Controlling Electronic Apparatus based on Voice Recognition and Motion Recognition, and Electric Apparatus thereof
CA2891742C (en) * 2014-05-15 2023-11-28 Tyco Safety Products Canada Ltd. System and method for processing control commands in a voice interactive system
CN106297780A (en) * 2015-06-03 2017-01-04 深圳市轻生活科技有限公司 A kind of voice interactive method and system and Intelligent voice broadcasting terminal
CN105072482B (en) * 2015-08-25 2018-01-26 广东欧珀移动通信有限公司 The control method for playing back and device of a kind of multimedia play equipment
CN105898466A (en) * 2015-12-15 2016-08-24 乐视致新电子科技(天津)有限公司 Audio processing method and device and terminal equipment
CN105652674A (en) * 2015-12-30 2016-06-08 生迪智慧科技有限公司 Wireless voice unvarnished transmission device and control terminal

Also Published As

Publication number Publication date
CN107146609A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
CN107146608B (en) Playing control method and device and intelligent equipment
CN109194427B (en) Campus broadcasting system based on IP network
CN104934048A (en) Sound effect regulation method and device
CN104091423B (en) A kind of method for transmitting signals and family's order programme
CN102265578A (en) System and method of switching from streaming content to local content
CN107146609B (en) Switching method and device of playing resources and intelligent equipment
CN106155470B (en) A kind of audio file generation method and device
CN104732989B (en) Intelligent music broadcasting control system and its control method
KR20150042584A (en) Content providing apparatus, system and method for content recommendation
WO2019128829A1 (en) Action execution method and apparatus, storage medium and electronic apparatus
CN110636403A (en) Wireless earphone pairing method, system and storage medium
CN109271130A (en) Audio frequency playing method, medium, device and calculating equipment
CN111199743A (en) Audio coding format determining method and device, storage medium and electronic equipment
KR100871840B1 (en) Ubiquitous home media service apparatus and method based single media multi device, and home media service system and method using it
CN112004146A (en) Audio playing method and system, television and storage medium
CN107318042A (en) A kind of channel choosing method and intelligent television based on speech recognition
CN204215585U (en) Children-story machine
US8903527B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
CN105703987B (en) A kind of audio-video frequency playing system control method and device
CN105681886A (en) Playback device Bluetooth connection control method and device, and playback device
CN112086082A (en) Voice interaction method for karaoke on television, television and storage medium
CN111161734A (en) Voice interaction method and device based on designated scene
JP2015115879A (en) Remote control system, and user terminal and viewing device thereof
JP2013197812A (en) Audio equipment control program and mobile telephone
CN105847905B (en) A kind of audio-video frequency playing system control method and device

Legal Events

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