WO2023240649A1 - Method and apparatus for updating wake-up priority - Google Patents

Method and apparatus for updating wake-up priority Download PDF

Info

Publication number
WO2023240649A1
WO2023240649A1 PCT/CN2022/099622 CN2022099622W WO2023240649A1 WO 2023240649 A1 WO2023240649 A1 WO 2023240649A1 CN 2022099622 W CN2022099622 W CN 2022099622W WO 2023240649 A1 WO2023240649 A1 WO 2023240649A1
Authority
WO
WIPO (PCT)
Prior art keywords
priority
voice
voice device
wake
characteristic value
Prior art date
Application number
PCT/CN2022/099622
Other languages
French (fr)
Chinese (zh)
Inventor
蒋雅兰
Original Assignee
北京小米移动软件有限公司
北京小米松果电子有限公司
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 北京小米移动软件有限公司, 北京小米松果电子有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/099622 priority Critical patent/WO2023240649A1/en
Priority to CN202280004240.1A priority patent/CN117598016A/en
Publication of WO2023240649A1 publication Critical patent/WO2023240649A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • 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

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a method and device for updating a wake-up priority.
  • the priority policies for the response of these multiple voice devices can be set in advance.
  • the server will update the priority policy. Send to any voice device. After receiving the user's voice wake-up command, any voice device will then send the updated priority policy to other voice devices, so that each voice device can use the new priority policy after receiving the user's voice wake-up command next time.
  • Priority policy responds.
  • the update process of the above priority policy the synchronization process of each voice device is not synchronized, and the wrong voice device may be determined to respond. Therefore, it is crucial to update the multi-voice device wake-up priority policy.
  • Embodiments of the present disclosure provide a method and device for updating a wake-up priority.
  • an embodiment of the present disclosure provides a method for updating a wake-up priority, which is applied to a first voice device, including:
  • Obtain a priority policy update instruction sent by the server wherein the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice when the first voice device obtains the voice wake-up instruction. Wake up command to respond;
  • the priority parameter is sent to each second voice device belonging to the same group network as the first voice device.
  • the method further includes:
  • a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value.
  • the priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
  • a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
  • the method further includes:
  • a voice device that responds to the voice wake-up instruction is determined from the first voice device and the second voice device.
  • Voice devices that respond to commands including:
  • the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
  • the method further includes:
  • the priority parameter is sent again to each second voice device.
  • sending the priority parameter to each second voice device belonging to the same network as the first voice device includes:
  • an embodiment of the present disclosure provides a device for updating a wake-up priority, which is configured on the first voice device side and includes:
  • a parsing module configured to obtain a priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine when the first voice device obtains a voice wake-up instruction. Whether to respond to the voice wake-up command;
  • An update module configured to update the stored historical parameters associated with the priority parameter based on the priority parameter to obtain an updated priority parameter set
  • a sending module configured to send the priority parameter to each second voice device belonging to the same network as the first voice device.
  • the priority parameter includes at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state.
  • the priority parameters include: priority policy version number.
  • a first determination module is also included for:
  • a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value.
  • the priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
  • a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
  • Optional also includes:
  • a receiving module configured to receive a fourth characteristic value sent by the second voice device, wherein the fourth characteristic value is used to characterize the second voice device based on the priority when receiving a voice wake-up instruction.
  • the priority level determined by the level parameter;
  • a second determination module configured to determine, based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, the first voice device and the second voice device, which is suitable for the voice device.
  • a voice device that wakes up in response to a command.
  • the second determination module is specifically used for:
  • the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
  • the sending module is also used for:
  • the priority parameter is sent again to each second voice device.
  • the sending module is specifically used for:
  • an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute instructions stored in the memory.
  • the instructions are executable to implement the method for updating the wake-up priority proposed by the embodiment of the first aspect of the present disclosure.
  • embodiments of the present disclosure provide a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute what is proposed in the embodiment of the first aspect of the present disclosure.
  • the wake-up priority update method is a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute what is proposed in the embodiment of the first aspect of the present disclosure.
  • an embodiment of the present disclosure provides a computer program product.
  • the computer program When the computer program is executed by a processor of an electronic device, the electronic device can perform the wake-up priority updating method proposed in the embodiment of the first aspect of the present disclosure.
  • the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, priority
  • the strategy is used to determine whether to respond to the voice wake-up command when the first voice device obtains the voice wake-up command.
  • the stored historical parameters associated with the priority parameter can be updated to obtain the updated
  • the priority parameter set is sent to each second voice device in the same network as the first voice device. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network.
  • Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
  • Figure 1 is a flow chart of a method for updating a wake-up priority according to an embodiment of the present disclosure
  • Figure 2 is a flow chart of a method for updating wake-up priority according to an embodiment of the present disclosure
  • Figure 3 is a flow chart of a method for updating wake-up priority according to an embodiment of the present disclosure
  • Figure 3A is a flow chart of a wake-up priority update process according to an embodiment of the present disclosure
  • Figure 4 is a schematic structural diagram of a device for updating a wake-up priority according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the method for updating the wake-up priority in the embodiment of the present disclosure can be executed by the device for updating the wake-up priority provided by the embodiment of the present disclosure, and the device can be configured in an electronic device.
  • Figure 1 is a schematic flowchart of a method for updating a wake-up priority provided by an embodiment of the present disclosure. The method is applied to a first voice device.
  • the wake-up priority updating method may include the following steps:
  • Step 101 Obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction. to respond.
  • the priority policy can be synchronized to each voice device in the group when each voice device starts the network, and can then be dynamically adjusted through the server. For example, when the priority policy needs to be updated, the server will deliver the updated priority policy to any voice device. After receiving the user's voice wake-up command, any voice device will then send the updated priority policy to other voice devices, so that each voice device can use the new priority policy after receiving the user's voice wake-up command next time. Priority policy responds. In the update process of the above priority policy, the synchronization process of each voice device is not synchronized, and the wrong voice device may be determined to respond.
  • the first voice device can obtain the priority policy update instruction sent by the server, and then by parsing the priority policy update instruction, the priority parameters contained therein can be determined, and then based on the priority Parameters are processed subsequently, so as to avoid the occurrence of the voice device being out of synchronization in the priority synchronization process.
  • the voice device in the present disclosure may be an electronic device that supports the voice wake-up function.
  • the electronic device has a microphone and a speaker on the hardware, and the software is installed with recognition software that can recognize the user's voice, so that when it recognizes that the user's voice contains the wake-up word, it can make a response such as a response. Therefore, the voice device in the present disclosure can be a speaker, a TV, a refrigerator, a water dispenser, and other devices including a voice wake-up function.
  • the priority policy update instruction may include one priority parameter, or may include multiple priority parameters, etc. This disclosure does not limit this.
  • the priority parameter may include at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state.
  • the impulse response (RIR) generated by a sound source in the room can usually be simply divided into three parts: direct sound, early reflections and reverberation sound. (reverberations).
  • the direct sound energy value corresponding to the voice wake-up command may be the same, or may be different.
  • the direct sound energy threshold in this disclosure can be the limit value of direct sound energy set by the server. The server can adjust the direct sound energy threshold according to the historical usage data of the voice device, or it can also adjust it according to other methods, etc. etc., this disclosure does not limit this.
  • the direct sound energy threshold of the voice wake-up instruction contained in the priority parameter is "2"; or, by parsing the obtained priority policy update instruction,
  • the priority parameters include the priority level of the voice device in the playback state as "0x1230" and the priority level in the mute state as "0x1001".
  • the direct sound energy threshold of the voice wake-up instruction contained in the priority parameter is "1.68”
  • the priority level of the voice device in the playback state is "0x1330”
  • the The priority level in the mute state is "0x1011” and so on, which is not limited by this disclosure.
  • the priority parameter may include one of the above, or may include multiple of the above, such as the direct sound energy threshold including the voice wake-up command, the priority level of the voice device in the playback state; or it may also include the voice
  • This disclosure does not limit the direct sound energy threshold of the wake-up command, the priority level of the voice device in the playback state, the priority level in the mute state, etc.
  • the priority parameter may also include a priority policy version number
  • the priority policy version number may represent the uniqueness of the priority parameter. Therefore, in the embodiment of the present disclosure, the server can determine the corresponding priority policy version number based on the priority parameter to be sent, and carry the priority parameter and priority policy version number in the priority policy update instruction, etc., This disclosure does not limit this.
  • the server can send priority policy update instructions according to a set period, or can also send priority policy update instructions according to actual needs, etc. This disclosure does not limit this.
  • Step 102 Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set.
  • the stored historical parameters are: the energy threshold corresponding to the direct sound energy is 1.58, and the corresponding priority level in the voice device playback state is: 001; if the priority parameters are determined based on the priority policy update instruction is "Direct Sound Energy Threshold is 2", then the stored "Direct Sound Energy Threshold 1.58" associated with this priority parameter can be updated, then the updated priority parameter set can be: Direct Sound Energy Threshold is 2 , the corresponding priority level in the voice device playback state is: 001.
  • the stored historical parameters are: the direct sound energy threshold is 2, the corresponding priority level when the voice device is playing is: 005, and the corresponding priority level when the voice device is muting is: 002; if the determined The priority parameter is "direct sound energy threshold is 2.5, in playback state: 004, in mute state: 003", then the associated historical parameters can be updated based on this priority parameter, and the updated priority parameter set can The following are: the direct sound energy threshold is 2.5, the corresponding priority level when the voice device is playing is: 004, and the corresponding priority level when the voice device is mute is: 003.
  • Step 103 Send priority parameters to each second voice device that belongs to the same network as the first voice device.
  • the first voice device and the second voice device belong to the same network, and the second voice device and the first voice device may be of the same type, or may be different, and so on.
  • the first voice device is a "speaker”
  • the second voice device may be a “speaker”, or it may be a "mobile phone”, a "TV”, etc. This disclosure does not limit this.
  • the second voice device there may be one second voice device in the same group network, or there may be multiple second voice devices.
  • the first voice device is a "speaker”
  • the second voice device may be a "speaker”
  • the second voice device 1 may be a "speaker”.
  • the second voice device 2 can be a “television”
  • the second voice device 3 can be a “speaker”, etc. This disclosure does not limit this.
  • the first voice device can send the priority parameter to each second voice device in the same network through broadcast, or it can also send the priority parameter to each second voice device in the same network through unicast. Sending priority parameters, etc., this disclosure does not limit this.
  • the first voice device can parse the priority policy update instruction to determine the priority parameter, and then can send the priority parameter to Each second voice device in the same group network, so that each second voice device can learn the priority parameter, so that the second voice device in the same group network with the same type as the first voice device can receive priority parameters and automatically update the priority policy, thereby ensuring the synchronization and timeliness of the priority policy update process between different voice devices. Therefore, for multiple voice devices in the same network, a more accurate voice device can be determined based on the synchronously updated priority policy to respond to the voice wake-up command issued by the user, thus improving the accuracy of the response of the voice device. and reliability, and also improves user experience.
  • step 102 may be executed first, and then step 103 may be executed; or step 103 may be executed first, and then step 102 may be executed; or step 102 and step 103 may be executed at the same time, etc. This disclosure does not limit this.
  • the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes the priority parameter, and the priority policy is used when the first voice device obtains the voice wake-up instruction. Determine whether to respond to the voice wake-up command, and then update the stored historical parameters associated with the priority parameters based on the priority parameters to obtain the updated priority parameter set and send it to the same group as the first voice device
  • Each second voice device in the network sends priority parameters. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network.
  • Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
  • FIG. 2 is a schematic flowchart of a method for updating a wake-up priority provided by an embodiment of the present disclosure. The method is applied to the first voice device. As shown in Figure 2, the wake-up priority updating method may include the following steps:
  • Step 201 Obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction.
  • the priority parameter may include at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state. For example, it may include one of the above, or may include multiple of the above, etc., and this disclosure does not limit this.
  • the priority parameter may also include: a priority policy version number, which may be used to represent the uniqueness of the priority parameter, etc. This disclosure does not limit this.
  • Step 202 Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set.
  • Step 203 Send priority parameters to each second voice device that belongs to the same network as the first voice device.
  • Step 204 When a voice wake-up command is received, determine the direct sound energy value in the voice wake-up command and the working status of the first voice device when the voice wake-up command is received.
  • the voice wake-up instruction can give the user an instruction to wake up the voice device, for example, it can be "Little X classmate", “Little Y little Y”, etc. This disclosure does not limit this.
  • the direct sound energy value can be understood as the energy value when the voice device receives the voice wake-up command; the first voice device can determine the direct sound energy value in the voice wake-up command in any desirable way, and this disclosure does not do this. limited.
  • the first voice device may be in a variety of working states when receiving the voice wake-up command, such as a playback state, a mute state, etc. This disclosure does not limit this.
  • the first voice device can determine the direct sound energy value in the voice wake-up command after receiving the voice wake-up command "Little For example, it can be "1.3", “2”, etc., and this disclosure does not limit this.
  • Step 205 Based on the updated priority parameter set, determine the first characteristic value corresponding to the direct sound energy value and the second characteristic value corresponding to the working state, where the first characteristic value is used to characterize the current priority corresponding to the direct sound energy value. level, the second characteristic value is used to characterize the priority level corresponding to the current working status.
  • the updated priority parameter set is: direct sound energy threshold 2
  • the priority level when the direct sound energy value is greater than the direct sound energy threshold is "01”
  • the priority level when the direct sound energy value is less than the direct sound energy threshold is expressed as "00”
  • the priority level corresponding to the playback state of the voice device is "0x1770”
  • the priority level corresponding to the mute state of the voice device is "0x1388”.
  • the first voice device determines that the direct sound energy value in the voice wake-up instruction is "2.5" when receiving the voice wake-up command, and 2.5 is greater than 2, then it can be determined that the first characteristic value corresponding to the current direct sound energy value is: 01 ; If the working state of the first voice device is "playing state” when receiving the voice wake-up command, then it can be determined that the second characteristic value corresponding to the working state is "0x1770", which is not limited by this disclosure.
  • Step 206 Determine a third characteristic value corresponding to the first voice device based on the first characteristic value and the second characteristic value, where the third characteristic value is used to represent the current corresponding priority level of the first voice device.
  • the two can be fused to determine the third characteristic value corresponding to the first voice device, etc. This disclosure does not limit this.
  • the first eigenvalue and the second eigenvalue can be spliced, for example, the first eigenvalue can be used as the high bit and the second eigenvalue can be used as the low bit; or the second eigenvalue can be used as the high bit and the second eigenvalue.
  • the eigenvalues are used as low bits for splicing, etc. This disclosure does not limit this.
  • the third feature value obtained after splicing the two can be “0x011770”; or, if the first feature value is "0x00", The second characteristic value is "0x1770”, then the third characteristic value obtained after splicing the two can be "0x001770", which can be abbreviated as "0x1770”, etc. This disclosure does not limit this.
  • the third characteristic value can also be related to the current network status of the voice device and the performance of the voice device, such as waking up the engine.
  • the corresponding feature values are related, so in the embodiment of the present disclosure, the first feature value can be shifted to the left first, and then the shifted value can be spliced with the second feature value to reserve enough space. Represents other eigenvalues and so on.
  • the direct sound energy threshold is 2
  • the corresponding first characteristic value can be expressed as "0x01”. If the direct sound energy value is less than the direct sound energy threshold, then The corresponding first feature value may be represented as "0x00”. If the first voice device is in the playing state, the corresponding second characteristic value can be expressed as "0x1770”. If the first voice device is in the mute state, the corresponding second characteristic value can be expressed as "0x1338".
  • the first eigenvalue can also be shifted to the left first, for example, it can be shifted 30 bits to the left, and then spliced with the second eigenvalue to obtain the corresponding third eigenvalue.
  • the third eigenvalue can be as shown in Table 1 shown.
  • the first voice device when it receives a voice wake-up command, it can determine the direct sound energy value and the current working status in the voice wake-up command, and then combine it with the updated priority parameter set to determine The third characteristic value used to characterize the current priority level of the first voice device is determined, thereby making the determined third characteristic value more accurate and reliable.
  • Step 207 Receive a fourth characteristic value sent by the second voice device, where the fourth characteristic value is used to represent the priority level determined by the second voice device based on the priority parameter when receiving the voice wake-up instruction.
  • the first voice device can send the priority parameter to each second voice device in the same network, so that each second voice device can receive the priority parameter. .
  • the second voice device of the same type as the first voice device can update the associated historical parameters based on the priority parameter to obtain the corresponding updated priority parameter set, and then receive the voice wake-up command.
  • the corresponding fourth feature value can be determined based on the updated priority parameter set.
  • a second voice device of a different type from the first voice device receives a voice wake-up instruction
  • its corresponding fourth characteristic value can be determined based on historical parameters.
  • Each second voice device can then send the determined fourth characteristic value to the first voice device and so on, and this disclosure does not limit this.
  • the first voice device can also send the determined first characteristic value to each second voice device in the same group network, so that each voice device in the same group network can communicate with each other and learn in time.
  • Characteristic values corresponding to each voice device that can represent the priority level are provided, thereby providing conditions for accurately determining the voice device that responds to the voice wake-up command.
  • Step 208 Based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, determine the voice device that responds to the voice wake-up command from the first voice device and the second voice device.
  • the first voice device after receiving each fourth feature value, may compare each fourth feature value with the third voice device.
  • the three characteristic values are sorted to determine the voice device that responds to the voice wake-up command.
  • the voice device corresponding to the highest feature value among the third feature value and the fourth feature value can be determined as the voice device that responds to the voice wake-up instruction.
  • the third characteristic value corresponding to the first voice device is: 0x0110
  • the fourth characteristic value 1 corresponding to the second voice device 1 is: 0x0100
  • the fourth characteristic value 2 corresponding to the second voice device 2 is: 0x0101
  • the voice device corresponding to the highest direct sound energy value among the voice wake-up commands among the multiple highest eigenvalues can be determined as the voice device that responds to the voice wake-up command.
  • the direct sound energy values of the voice wake-up instructions in the two fourth eigenvalues can be further compared. If the direct sound energy value 1 corresponding to the fourth eigenvalue 1 is: 2.58, and the direct sound energy value 2 corresponding to the fourth eigenvalue 3 is: 2.1, since 2.58 is greater than 2.1, then the second corresponding to the fourth eigenvalue 1 can be
  • the voice device 1 is determined to be a voice device that responds to voice wake-up instructions, etc. This disclosure does not limit this.
  • the priority policy update instruction sent by the server can be obtained, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction. Respond, and then update the stored historical parameters associated with the priority parameters based on the priority parameters to obtain the updated priority parameter set.
  • the voice wake-up command is received, determine whether the voice wake-up command is in progress. The direct sound energy value and the working status of the first voice device when receiving the voice wake-up command can then be determined based on the updated priority parameter set.
  • the first voice device can parse the priority policy update instruction sent by the server to determine the priority parameter contained therein, and then update the historical parameters associated with the priority parameter, and update the priority
  • the parameters are sent to each second voice device in the same network, so that each voice device in the same network can update the priority policy synchronously, ensuring the real-time and accuracy of the priority policy update, and thus
  • the voice device that responds to the voice wake-up command can be determined based on the determined third feature value and the received fourth feature value corresponding to the second voice device, thereby improving user experience. Accuracy and reliability in responding to voice wake-up commands.
  • FIG. 3 is a schematic flowchart of a method for updating a wake-up priority provided by an embodiment of the present disclosure. The method is applied to the first voice device. As shown in Figure 3, the wake-up priority updating method may include the following steps:
  • Step 302 Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set.
  • Step 303 Send priority parameters to each second voice device that belongs to the same network as the first voice device.
  • the first voice device can monitor each second voice device to obtain the confirmation message returned by the second voice device. If no confirmation message is received from any second voice device, it may indicate that any second voice device may not have successfully received the priority parameter. In order to ensure the priority policy synchronization process of each voice device in the same network synchronization, then the priority parameters can be sent to the second voice device again.
  • the first voice device receives the confirmation message returned by each second voice device within the preset time period after the priority parameter is sent, it can indicate that each second voice device in the network has received the confirmation message. This priority parameter, then there is no need to send the priority parameter to the second voice device again.
  • the first voice device may first determine the version number corresponding to the updated priority parameter set, and then send the updated priority parameter set and the corresponding version number to each second voice device.
  • the first voice service can obtain the corresponding priority policy version number by parsing the priority policy update instruction; Or the first voice device may also store the current version number of the historical parameters associated with the priority parameter and the version number update rule, and update the current version number to determine the corresponding version number corresponding to the updated priority parameter level.
  • Priority policy version number, etc. this disclosure does not limit this.
  • a second voice device receives the priority parameter set and the corresponding version number sent by the first voice device, it parses it and determines that the release version number is "1.0.2". If it is currently If the priority parameter set corresponding to the "1.0.2" version number is stored, the currently newly received priority parameter set can be discarded. Or, if the version number corresponding to the currently stored priority parameter set is "1.0.1", you can directly use the newly received priority parameter set corresponding to "1.0.2” to update the priority parameter set corresponding to "1.0.1" The parameter set is replaced to ensure the accuracy and reliability of the priority parameter set as much as possible, etc. This disclosure does not limit this.
  • the wake-up priority updating method provided by the present disclosure can be applied to any type of voice device, such as speakers, TVs, refrigerators, water dispensers and other devices that support voice operation. This disclosure does not do this. limited.
  • the server can send a priority policy update instruction. For example, it can be sent to the first voice device A. Then the first voice device A can first respond to the priority policy update instruction after receiving the priority policy update instruction sent by the server.
  • the priority policy update instruction is parsed to determine the priority parameter contained therein, and based on the priority parameter, the stored historical parameters associated with the priority parameter are updated to obtain an updated priority parameter set.
  • the first voice device A can also send the determined priority parameter to a second voice device in the same group network, such as to the second voice device B, so that the second voice device B can use the priority parameter based on the priority parameter.
  • the level parameters update the associated historical parameters to update the priority policy.
  • the first voice device A and the second voice device B When the first voice device A and the second voice device B receive the user's voice wake-up command, that is, they are in the engine wake-up state, at this time, the first voice device A and the second voice device B can communicate and transmit, and use The new priority policy is used to make decisions, that is, the updated priority parameter set is used to determine the voice device that responds to the voice wake-up command.
  • the first voice device A can determine the current third characteristic value according to the updated priority parameter set, and communicate with the second voice device B. For example, the first voice device A can The third feature value is sent to the second voice device B, and the fourth feature value sent by the second voice device B is received. If the third feature value is greater than the fourth feature value, then the first voice device A can be determined to be the target of the second voice device B. A voice device that responds to voice wake-up commands.
  • the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine when the first voice device obtains the voice wake-up instruction. Whether to respond to the voice wake-up command, the stored historical parameters associated with the priority parameters can be updated based on the priority parameters to obtain the updated priority parameter set.
  • the first voice device can also send a message to the first voice device. Each second voice device that the voice device belongs to in the same network sends the priority parameter. Then, within the preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, you can send a message to the second voice device. The voice device sends the priority parameters again.
  • the first voice device can determine the priority parameter after parsing the priority policy update instruction sent by the server, update the currently associated historical parameters, and send the priority parameter to the device in the same network.
  • Each second voice device when it fails to receive the confirmation message sent by any second voice device, sends the priority parameter again, so that each second voice device in the same group network can receive the priority parameter as much as possible. level parameters to achieve synchronous updates of priority policies, ensuring the real-time and accuracy of priority policy updates.
  • FIG. 4 is a schematic structural diagram of a device for updating a wake-up priority according to an embodiment of the present disclosure.
  • the wake-up priority updating device 400 is configured on the first voice device side.
  • the device 400 includes: a parsing module 410 , an updating module 420 , and a sending module 430 .
  • the parsing module 410 is used to obtain a priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to obtain voice wake-up instructions on the first voice device. Determine whether to respond to the voice wake-up command when commanding;
  • the update module 420 is configured to update the stored historical parameters associated with the priority parameter based on the priority parameter to obtain an updated priority parameter set;
  • the sending module 430 is configured to send the priority parameter to each second voice device belonging to the same network as the first voice device.
  • the priority parameter includes at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state.
  • the priority parameters include: priority policy version number.
  • a first determination module is also included for:
  • a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value.
  • the priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
  • a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
  • Optional also includes:
  • a second determination module configured to determine, based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, the first voice device and the second voice device, which is suitable for the voice device.
  • a voice device that wakes up in response to a command.
  • the sending module 430 is also used to:
  • the sending module is specifically used for:
  • the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, and the priority policy is used to When the device obtains the voice wake-up command, it determines whether to respond to the voice wake-up command. Then, based on the priority parameter, it can update the stored historical parameters associated with the priority parameter to obtain the updated priority parameter set and send it to the device.
  • Each second voice device in the same network as the first voice device sends a priority parameter. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network.
  • Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
  • FIG. 5 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device 200 includes: a memory 210 and a processor 220 , and a bus 230 connecting different components (including the memory 210 and the processor 220 ).
  • the memory 210 is used to store executable instructions of the processor 220; the processor 201 is configured to call and execute the executable instructions stored in the memory 202 to implement the wake-up priority updating method proposed in the above embodiments of the present disclosure.
  • Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnect
  • Electronic device 200 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 200, including volatile and nonvolatile media, removable and non-removable media.
  • Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and/or cache memory 250 .
  • Electronic device 200 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 260 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 5, commonly referred to as a "hard drive”).
  • a disk drive may be provided for reading and writing removable non-volatile disks (e.g., "floppy disks"), and for removable non-volatile optical disks (e.g., CD-ROM, DVD-ROM). or other optical media) that can read and write optical disc drives.
  • each drive may be connected to bus 230 through one or more data media interfaces.
  • the memory 210 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
  • a program/utility 280 having a set of (at least one) program modules 270, which may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other programs Modules, as well as program data, each of these examples or some combination may include an implementation of a network environment.
  • Program modules 270 generally perform functions and/or methods in the embodiments described in this disclosure.
  • Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 200, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 292.
  • the electronic device 200 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 293.
  • network adapter 293 communicates with other modules of electronic device 200 via bus 230.
  • the processor 220 executes various functional applications and data processing by running programs stored in the memory 210 .
  • the first voice device can first obtain the priority policy update instruction sent by the server, wherein the priority policy update instruction includes the priority parameter, and the priority policy is used to obtain the voice when the first voice device When waking up the command, it is judged whether to respond to the voice wake-up command, and then based on the priority parameter, the stored historical parameters associated with the priority parameter can be updated to obtain the updated priority parameter set and send it to the first voice
  • the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network.
  • Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
  • embodiments of the present disclosure also propose a non-transitory computer-readable storage medium.
  • the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the aforementioned wake-up.
  • Priority update method When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the aforementioned wake-up. Priority update method.
  • embodiments of the present disclosure also provide a computer program product.
  • the computer program When the computer program is executed by a processor of an electronic device, the electronic device can perform the aforementioned method for updating the wake-up priority.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs.
  • the computer program When the computer program is loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present disclosure are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer program may be stored in or transferred from one computer-readable storage medium to another, for example, the computer program may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
  • magnetic media e.g., floppy disks, hard disks, magnetic tapes
  • optical media e.g., high-density digital video discs (DVD)
  • DVD digital video discs
  • semiconductor media e.g., solid state disks, SSD
  • At least one in the present disclosure can also be described as one or more, and the plurality can be two, three, four or more, and the present disclosure is not limited.
  • the technical feature is distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D” etc.
  • the technical features described in “first”, “second”, “third”, “A”, “B”, “C” and “D” are in no particular order or order.
  • each table in this disclosure can be configured or predefined.
  • the values of the information in each table are only examples and can be configured as other values, which is not limited by this disclosure.
  • it is not necessarily required to configure all the correspondences shown in each table.
  • the corresponding relationships shown in some rows may not be configured.
  • appropriate deformation adjustments can be made based on the above table, such as splitting, merging, etc.
  • the names of the parameters shown in the titles of the above tables may also be other names understandable by the communication device, and the values or expressions of the parameters may also be other values or expressions understandable by the communication device.
  • other data structures can also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables or hash tables. wait.
  • Predefinition in this disclosure may be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, solidification, or pre-burning.

Abstract

Disclosed in the embodiments of the present disclosure are a method and apparatus for updating a wake-up priority. The method is applied to a first voice device. The method comprises: receiving a priority policy updating instruction sent by a server, wherein the priority policy updating instruction comprises priority parameters, and a priority policy is used for determining, when a first voice device acquires a voice wake-up instruction, whether to respond to the voice wake-up instruction; on the basis of the priority parameters, updating stored historical parameters associated with the priority parameters, so as to acquire an updated priority parameter set; and sending the priority parameters to each second voice device belonging to the same network as the first voice device. Therefore, a first voice device can update historical parameters on the basis of priority parameters sent by a server, and send the priority parameters to second voice devices in the same network as the first voice device, such that the voice devices in the same network can synchronously update a priority policy, thus ensuring the timeliness of updating the priority policy.

Description

一种唤醒优先级的更新方法及装置A method and device for updating wake-up priority 技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种唤醒优先级的更新方法及装置。The present disclosure relates to the field of computer technology, and in particular, to a method and device for updating a wake-up priority.
背景技术Background technique
随着计算机的发展,人工智能应用的也越来越广泛,对于语音设备来说,若同一空间内有多个语音设备,在用户发出语音唤醒指令后,多个语音设备可能都会进行响应,从而可能会造成混乱。With the development of computers, artificial intelligence applications are becoming more and more widespread. For voice devices, if there are multiple voice devices in the same space, after the user issues a voice wake-up command, the multiple voice devices may respond, thus May cause confusion.
相关技术中,对于多个语音设备同时存在的情况,可以提前设定这多个语音设备进行响应的优先级策略,在需要进行优先级策略更新时,服务器会将更新后的优先级策略,下发给任一语音设备。该任一语音设备在接收到用户的语音唤醒指令后,再将更新后的优先级策略发送给其他语音设备,从而各个语音设备即可在下一次再接收到用户的语音唤醒指令后,使用新的优先级策略进行响应。上述优先级策略的更新过程,各语音设备的同步过程不同步,可能会确定出错误的语音设备来进行响应。由此,如何对多语音设备唤醒优先级策略进行更新,显得至关重要。In related technologies, for the situation where multiple voice devices exist at the same time, the priority policies for the response of these multiple voice devices can be set in advance. When the priority policy needs to be updated, the server will update the priority policy. Send to any voice device. After receiving the user's voice wake-up command, any voice device will then send the updated priority policy to other voice devices, so that each voice device can use the new priority policy after receiving the user's voice wake-up command next time. Priority policy responds. In the update process of the above priority policy, the synchronization process of each voice device is not synchronized, and the wrong voice device may be determined to respond. Therefore, it is crucial to update the multi-voice device wake-up priority policy.
发明内容Contents of the invention
本公开实施例提供一种唤醒优先级的更新方法及装置。Embodiments of the present disclosure provide a method and device for updating a wake-up priority.
第一方面,本公开实施例提供一种唤醒优先级的更新方法,应用于第一语音设备,包括:In a first aspect, an embodiment of the present disclosure provides a method for updating a wake-up priority, which is applied to a first voice device, including:
获取服务器发送的优先级策略更新指令,其中,所述优先级策略更新指令包括优先级参数,所述优先级策略用于在所述第一语音设备获取到语音唤醒指令时判断是否对所述语音唤醒指令进行应答;Obtain a priority policy update instruction sent by the server, wherein the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice when the first voice device obtains the voice wake-up instruction. Wake up command to respond;
基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集;Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set;
向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数。The priority parameter is sent to each second voice device belonging to the same group network as the first voice device.
可选的,在所述基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集之后,还包括:Optionally, after updating the stored historical parameters associated with the priority parameter based on the priority parameter to obtain an updated priority parameter set, the method further includes:
在接收到语音唤醒指令的情况下,确定所述语音唤醒指令到达所述第一语音设备时的直达声能量值及所述第一语音设备在接收到所述语音唤醒指令时的工作状态;When a voice wake-up command is received, determine the direct sound energy value when the voice wake-up command reaches the first voice device and the working state of the first voice device when the voice wake-up command is received;
基于所述更新后的优先级参数集,确定所述直达声能量值对应的第一特征值及所述工作状态对应的第二特征值,其中,所述第一特征值用于表征所述直达声能量值当前对应的优先级级别,所述第二特征值用于表征所述工作状态当前对应的优先级级别;Based on the updated priority parameter set, a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value. The priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
基于所述第一特征值及所述第二特征值,确定所述第一语音设备对应的第三特征值,其中,所述第三特征值用于表征所述第一语音设备当前对应的优先级级别。Based on the first characteristic value and the second characteristic value, a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
可选的,在向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数之后,还包括:Optionally, after sending the priority parameter to each second voice device belonging to the same group network as the first voice device, the method further includes:
接收所述第二语音设备发送的第四特征值,其中,所述第四特征值用于表征所述第二语音设备在接收到语音唤醒指令的情况下,基于所述优先级参数确定出的优先级级别;Receive a fourth characteristic value sent by the second voice device, wherein the fourth characteristic value is used to characterize the second voice device determined based on the priority parameter when receiving a voice wake-up instruction. priority level;
基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备。Based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, a voice device that responds to the voice wake-up instruction is determined from the first voice device and the second voice device. .
可选的,所述基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备,包括:Optionally, based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, determine the voice wake-up function from the first voice device and the second voice device. Voice devices that respond to commands, including:
将所述第三特征值及所述第四特征值中最高特征值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备;或者,Determine the voice device corresponding to the highest feature value among the third feature value and the fourth feature value as the voice device that responds to the voice wake-up instruction; or,
在最高特征值有多个的情况下,将所述多个最高特征值中所述语音唤醒指令中最高直达声能量值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备。In the case where there are multiple highest characteristic values, the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
可选的,在所述向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数之后,还包括:Optionally, after sending the priority parameter to each second voice device belonging to the same group network as the first voice device, the method further includes:
在所述优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,向每个所述第二语音设备再次发送所述优先级参数。Within a preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, the priority parameter is sent again to each second voice device.
可选的,所述向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数,包括:Optionally, sending the priority parameter to each second voice device belonging to the same network as the first voice device includes:
确定所述更新后的优先级参数集对应的优先级策略版本号;Determine the priority policy version number corresponding to the updated priority parameter set;
向每个所述第二语音设备发送所述更新后的优先级参数集及对应的优先级策略版本号。Send the updated priority parameter set and the corresponding priority policy version number to each of the second voice devices.
第二方面,本公开实施例提供一种唤醒优先级的更新装置,配置在第一语音设备侧,包括:In a second aspect, an embodiment of the present disclosure provides a device for updating a wake-up priority, which is configured on the first voice device side and includes:
解析模块,用于获取服务器发送的优先级策略更新指令,其中,所述优先级策略更新指令包括优先级参数,所述优先级策略用于在所述第一语音设备获取到语音唤醒指令时判断是否对所述语音唤醒指令进行应答;A parsing module configured to obtain a priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine when the first voice device obtains a voice wake-up instruction. Whether to respond to the voice wake-up command;
更新模块,用于基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集;An update module, configured to update the stored historical parameters associated with the priority parameter based on the priority parameter to obtain an updated priority parameter set;
发送模块,用于向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数。A sending module, configured to send the priority parameter to each second voice device belonging to the same network as the first voice device.
可选的,所述优先级参数包括以下至少一项:语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别。Optionally, the priority parameter includes at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state.
可选的,所述优先级参数包括:优先级策略版本号。Optionally, the priority parameters include: priority policy version number.
可选的,还包括第一确定模块,用于:Optionally, a first determination module is also included for:
在接收到语音唤醒指令的情况下,确定所述语音唤醒指令到达所述第一语音设备时的直达声能量值及所述第一语音设备在接收到所述语音唤醒指令时的工作状态;When a voice wake-up command is received, determine the direct sound energy value when the voice wake-up command reaches the first voice device and the working state of the first voice device when the voice wake-up command is received;
基于所述更新后的优先级参数集,确定所述直达声能量值对应的第一特征值及所述工作状态对应的第二特征值,其中,所述第一特征值用于表征所述直达声能量值当前对应的优先级级别,所述第二特征值用于表征所述工作状态当前对应的优先级级别;Based on the updated priority parameter set, a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value. The priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
基于所述第一特征值及所述第二特征值,确定所述第一语音设备对应的第三特征值,其中,所述第三特征值用于表征所述第一语音设备当前对应的优先级级别。Based on the first characteristic value and the second characteristic value, a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
可选的,还包括:Optional, also includes:
接收模块,用于接收所述第二语音设备发送的第四特征值,其中,所述第四特征值用于表征所述第二语音设备在接收到语音唤醒指令的情况下,基于所述优先级参数确定出的优先级级别;A receiving module, configured to receive a fourth characteristic value sent by the second voice device, wherein the fourth characteristic value is used to characterize the second voice device based on the priority when receiving a voice wake-up instruction. The priority level determined by the level parameter;
第二确定模块,用于基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备。A second determination module, configured to determine, based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, the first voice device and the second voice device, which is suitable for the voice device. A voice device that wakes up in response to a command.
可选的,所述第二确定模块,具体用于:Optionally, the second determination module is specifically used for:
将所述第三特征值及所述第四特征值中最高特征值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备;或者,Determine the voice device corresponding to the highest feature value among the third feature value and the fourth feature value as the voice device that responds to the voice wake-up instruction; or,
在最高特征值有多个的情况下,将所述多个最高特征值中所述语音唤醒指令中最高直达声能量值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备。In the case where there are multiple highest characteristic values, the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
可选的,所述发送模块,还用于:Optionally, the sending module is also used for:
在所述优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,向每个所述第二语音设备再次发送所述优先级参数。Within a preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, the priority parameter is sent again to each second voice device.
可选的,所述发送模块,具体用于:Optional, the sending module is specifically used for:
确定所述更新后的优先级参数集对应的优先级策略版本号;Determine the priority policy version number corresponding to the updated priority parameter set;
向每个所述第二语音设备发送所述更新后的优先级参数集及对应的优先级策略版本号。Send the updated priority parameter set and the corresponding priority policy version number to each of the second voice devices.
第三方面,本公开实施例提供一种电子设备,包括:处理器;用于存储所述处理器的可执行指令的存储器;其中,所述处理器被配置为调用并执行所述存储器存储的可执行指令,以实现本公开第一方面实施例提出的唤醒优先级的更新方法。In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute instructions stored in the memory. The instructions are executable to implement the method for updating the wake-up priority proposed by the embodiment of the first aspect of the present disclosure.
第四方面,本公开实施例提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开第一方面实施例提出的唤醒优先级的更新方法。In a fourth aspect, embodiments of the present disclosure provide a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute what is proposed in the embodiment of the first aspect of the present disclosure. The wake-up priority update method.
第五方面,本公开实施例提供一种计算机程序产品,该计算机程序由电子设备的处理器执行时,使得电子设备能够执行本公开第一方面实施例提出的唤醒优先级的更新方法。In a fifth aspect, an embodiment of the present disclosure provides a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can perform the wake-up priority updating method proposed in the embodiment of the first aspect of the present disclosure.
本公开提供的唤醒优先级的更新方法、装置、电子设备及存储介质,第一语音设备可以先获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令中包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答,之后可以基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集,并向与第一语音设备同一组网内的每个第二语音设备发送优先级参数。由此,第一语音设备可以通过对优先级策略更新指令进行解析,以确定优先级参数,并对与该优先级参数关联的历史参数进行更新,之后可以将该优先级参数发送给同一组网内的每个第二语音设备,从而可以使得同一组网内的各语音设备,可以实现对优先级策略的同步更新,从而保证了优先级策略更新的实时性和准确性,进而提高了对用户语音唤醒指令进行响应的准确性和可靠性。According to the method, device, electronic device and storage medium for updating the wake-up priority provided by the present disclosure, the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, priority The strategy is used to determine whether to respond to the voice wake-up command when the first voice device obtains the voice wake-up command. Then, based on the priority parameter, the stored historical parameters associated with the priority parameter can be updated to obtain the updated The priority parameter set is sent to each second voice device in the same network as the first voice device. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network. Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或背景技术中的技术方案,下面将对本公开实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the disclosure or the background technology, the drawings required to be used in the embodiments or the background technology of the disclosure will be described below.
图1是根据本公开实施例的唤醒优先级的更新方法的流程图;Figure 1 is a flow chart of a method for updating a wake-up priority according to an embodiment of the present disclosure;
图2是根据本公开实施例的唤醒优先级的更新方法的流程图;Figure 2 is a flow chart of a method for updating wake-up priority according to an embodiment of the present disclosure;
图3是根据本公开实施例的唤醒优先级的更新方法的流程图;Figure 3 is a flow chart of a method for updating wake-up priority according to an embodiment of the present disclosure;
图3A是根据本公开实施例的唤醒优先级的更新过程的流程图;Figure 3A is a flow chart of a wake-up priority update process according to an embodiment of the present disclosure;
图4是根据本公开实施例的唤醒优先级的更新装置的结构示意图;Figure 4 is a schematic structural diagram of a device for updating a wake-up priority according to an embodiment of the present disclosure;
图5是根据本公开实施例的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present disclosure and are not to be construed as limitations of the present disclosure.
下面参考附图描述本公开实施例的唤醒优先级的更新方法、装置、电子设备及存储介质。The method, device, electronic device, and storage medium for updating wake-up priority according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
本公开实施例的唤醒优先级的更新方法,可由本公开实施例提供的唤醒优先级的更新装置执行,该装置可配置于电子设备中。The method for updating the wake-up priority in the embodiment of the present disclosure can be executed by the device for updating the wake-up priority provided by the embodiment of the present disclosure, and the device can be configured in an electronic device.
图1为本公开实施例提供的一种唤醒优先级的更新方法的流程示意图,该方法应用于 第一语音设备。Figure 1 is a schematic flowchart of a method for updating a wake-up priority provided by an embodiment of the present disclosure. The method is applied to a first voice device.
如图1所示,该唤醒优先级的更新方法可以包括以下步骤:As shown in Figure 1, the wake-up priority updating method may include the following steps:
步骤101,获取服务器发送的优先级策略更新指令的情况下,其中,优先级策略更新指令包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答。Step 101: Obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction. to respond.
可以理解的是,若同一空间内有多个语音设备,在用户发出语音唤醒指令后,多个语音设备可能都会进行响应,从而可能会造成混乱。通常,对于多个语音设备同时存在的情况,可以在各个语音设备启动组网时,将优先级策略同步给组内各个语音设备,之后可以通过服务器动态调整。比如,在需要进行优先级策略更新时,服务器会将更新后的优先级策略,下发给任一语音设备。该任一语音设备在接收到用户的语音唤醒指令后,再将更新后的优先级策略发送给其他语音设备,从而各个语音设备即可在下一次再接收到用户的语音唤醒指令后,使用新的优先级策略进行响应。上述优先级策略的更新过程,各语音设备的同步过程不同步,可能会确定出错误的语音设备来进行响应。It is understandable that if there are multiple voice devices in the same space, after the user issues a voice wake-up command, multiple voice devices may respond, which may cause confusion. Usually, when multiple voice devices exist at the same time, the priority policy can be synchronized to each voice device in the group when each voice device starts the network, and can then be dynamically adjusted through the server. For example, when the priority policy needs to be updated, the server will deliver the updated priority policy to any voice device. After receiving the user's voice wake-up command, any voice device will then send the updated priority policy to other voice devices, so that each voice device can use the new priority policy after receiving the user's voice wake-up command next time. Priority policy responds. In the update process of the above priority policy, the synchronization process of each voice device is not synchronized, and the wrong voice device may be determined to respond.
从而,本公开实施例中,第一语音设备可以获取服务器发送的优先级策略更新指令,之后通过对该优先级策略更新指令进行解析,可以确定其中包含的优先级参数,之后可以基于该优先级参数进行后续处理,从而尽量避免语音设备对优先级同步过程不同步情况的发生。Therefore, in the embodiment of the present disclosure, the first voice device can obtain the priority policy update instruction sent by the server, and then by parsing the priority policy update instruction, the priority parameters contained therein can be determined, and then based on the priority Parameters are processed subsequently, so as to avoid the occurrence of the voice device being out of synchronization in the priority synchronization process.
可以理解的是,本公开中的语音设备,可以为支持语音唤醒功能的电子设备。该电子设备在硬件上具有麦克风和扬声器,软件上安装有能够识别用户语音的识别软件,从而在识别到用户语音中包含唤醒词时,可以做出应答等响应动作。从而,本公开中的语音设备,可以是包含语音唤醒功能的音箱、电视、冰箱、饮水机等设备。It can be understood that the voice device in the present disclosure may be an electronic device that supports the voice wake-up function. The electronic device has a microphone and a speaker on the hardware, and the software is installed with recognition software that can recognize the user's voice, so that when it recognizes that the user's voice contains the wake-up word, it can make a response such as a response. Therefore, the voice device in the present disclosure can be a speaker, a TV, a refrigerator, a water dispenser, and other devices including a voice wake-up function.
另外,优先级策略更新指令中,可以包含一个优先级参数,或者也可以包含多个优先级参数等等,本公开对此不做限定。In addition, the priority policy update instruction may include one priority parameter, or may include multiple priority parameters, etc. This disclosure does not limit this.
可选的,优先级参数可以包括以下至少一项:语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别。Optionally, the priority parameter may include at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state.
可以理解的是,通常可以将房间内的一个声源产生的冲激响应(room impulse response,RIR)简单分为三个部分:直达声(direct sound)、早期反射声(early reflections)和混响声(reverberations)。通常,同一语音唤醒指令,对于不同位置的语音设备来说,该语音唤醒指令所对应的直达声能量值可能相同,或者也可能不同等。本公开中的直达声能量阈值,可以为服务器设定的直达声能量的界限值,服务器可以根据语音设备的历史使用数据对直达声能量阈值进行调整,或者也可以根据其他方式对其进行调整等等,本公开对此不做限定。It can be understood that the impulse response (RIR) generated by a sound source in the room can usually be simply divided into three parts: direct sound, early reflections and reverberation sound. (reverberations). Usually, for the same voice wake-up command, for voice devices in different locations, the direct sound energy value corresponding to the voice wake-up command may be the same, or may be different. The direct sound energy threshold in this disclosure can be the limit value of direct sound energy set by the server. The server can adjust the direct sound energy threshold according to the historical usage data of the voice device, or it can also adjust it according to other methods, etc. etc., this disclosure does not limit this.
举例来说,通过对获取的优先级策略更新指令进行解析,确定优先级参数中包含的语音唤醒指令的直达声能量阈值为“2”;或者,通过对获取的优先级策略更新指令进行解析,确定优先级参数中包含语音设备在播放状态下的优先级级别为“0x1230”和在静音状态下的优先级级别为“0x1001”。或者,通过对获取的优先级策略更新指令进行解析,确定优先级参数中包含的语音唤醒指令的直达声能量阈值为“1.68”、语音设备在播放状态下的优先级级别为“0x1330”和在静音状态下的优先级级别为“0x1011”等等,本公开对此不做限定。For example, by parsing the obtained priority policy update instruction, it is determined that the direct sound energy threshold of the voice wake-up instruction contained in the priority parameter is "2"; or, by parsing the obtained priority policy update instruction, The priority parameters include the priority level of the voice device in the playback state as "0x1230" and the priority level in the mute state as "0x1001". Or, by parsing the obtained priority policy update instruction, it is determined that the direct sound energy threshold of the voice wake-up instruction contained in the priority parameter is "1.68", the priority level of the voice device in the playback state is "0x1330" and the The priority level in the mute state is "0x1011" and so on, which is not limited by this disclosure.
可以理解的是,优先级参数中可以包含上述一项,或者也可以包含上述多项,比如包含语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别;或者还可以包含语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别等等,本公开对此不做限定。It can be understood that the priority parameter may include one of the above, or may include multiple of the above, such as the direct sound energy threshold including the voice wake-up command, the priority level of the voice device in the playback state; or it may also include the voice This disclosure does not limit the direct sound energy threshold of the wake-up command, the priority level of the voice device in the playback state, the priority level in the mute state, etc.
可选的,优先级参数中还可以包括优先级策略版本号,该优先级策略版本号可以表征优先级参数的唯一性。从而,本公开实施例中,服务器可以基于待发送的优先级参数,确 定出对应的优先级策略版本号,并在优先级策略更新指令中携带该优先级参数及优先级策略版本号等等,本公开对此不做限定。Optionally, the priority parameter may also include a priority policy version number, and the priority policy version number may represent the uniqueness of the priority parameter. Therefore, in the embodiment of the present disclosure, the server can determine the corresponding priority policy version number based on the priority parameter to be sent, and carry the priority parameter and priority policy version number in the priority policy update instruction, etc., This disclosure does not limit this.
可以理解的是,服务器可以按照设定的周期发送优先级策略更新指令,或者也可以根据实际需要发送优先级策略更新指令等等,本公开对此不做限定。It can be understood that the server can send priority policy update instructions according to a set period, or can also send priority policy update instructions according to actual needs, etc. This disclosure does not limit this.
步骤102,基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集。Step 102: Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set.
举例来说,若已存储的历史参数分别为:直达声能量对应的能量阈值为1.58、语音设备播放状态下对应的优先级级别为:001;若基于优先级策略更新指令确定出的优先级参数为“直达声能量阈值为2”,那么可以对已存储的与该优先级参数关联的“直达声能量阈值1.58”进行更新,那么更新后的优先级参数集可以为:直达声能量阈值为2、语音设备播放状态下对应的优先级级别为:001。For example, if the stored historical parameters are: the energy threshold corresponding to the direct sound energy is 1.58, and the corresponding priority level in the voice device playback state is: 001; if the priority parameters are determined based on the priority policy update instruction is "Direct Sound Energy Threshold is 2", then the stored "Direct Sound Energy Threshold 1.58" associated with this priority parameter can be updated, then the updated priority parameter set can be: Direct Sound Energy Threshold is 2 , the corresponding priority level in the voice device playback state is: 001.
或者,若已存储的历史参数分别为:直达声能量阈值为2、语音设备播放状态下对应的优先级级别为:005、语音设备静音状态下对应的优先级级别为:002;若确定出的优先级参数为“直达声能量阈值为2.5、播放状态下:004、静音状态下:003”,那么基于可以基于该优先级参数,对关联的历史参数进行更新,更新后的优先级参数集可以为:直达声能量阈值为2.5、语音设备播放状态下对应的优先级级别为:004、语音设备静音状态下对应的优先级级别为:003。Or, if the stored historical parameters are: the direct sound energy threshold is 2, the corresponding priority level when the voice device is playing is: 005, and the corresponding priority level when the voice device is muting is: 002; if the determined The priority parameter is "direct sound energy threshold is 2.5, in playback state: 004, in mute state: 003", then the associated historical parameters can be updated based on this priority parameter, and the updated priority parameter set can The following are: the direct sound energy threshold is 2.5, the corresponding priority level when the voice device is playing is: 004, and the corresponding priority level when the voice device is mute is: 003.
需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中优先级参数、历史参数以及优先级参数集等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the priority parameters, history parameters, priority parameter sets, etc. in the embodiments of the present disclosure.
步骤103,向与第一语音设备属于同一组网内的每个第二语音设备发送优先级参数。Step 103: Send priority parameters to each second voice device that belongs to the same network as the first voice device.
其中,第一语音设备与第二语音设备属于同一组网,第二语音设备与第一语音设备的类型,可能相同,或者也可能不同等等。比如,在第一语音设备为“音箱”的情况下,第二语音设备可能为“音箱”,或者也可能为“手机”、“电视”等等,本公开对此不做限定。The first voice device and the second voice device belong to the same network, and the second voice device and the first voice device may be of the same type, or may be different, and so on. For example, when the first voice device is a "speaker", the second voice device may be a "speaker", or it may be a "mobile phone", a "TV", etc. This disclosure does not limit this.
可以理解的是,同一组网内的第二语音设备可能为一个,或者也可能为多个。比如,若第一语音设备为“音箱”,第二语音设备可能为“音箱”;或者有多个第二语音设备时,若第一语音设备为“音箱”,第二语音设备1可以为“手机”、第二语音设备2可以为“电视”、第二语音设备3可以为“音箱”等等,本公开对此不做限定。It can be understood that there may be one second voice device in the same group network, or there may be multiple second voice devices. For example, if the first voice device is a "speaker", the second voice device may be a "speaker"; or when there are multiple second voice devices, if the first voice device is a "speaker", the second voice device 1 may be a "speaker". "Mobile phone", the second voice device 2 can be a "television", the second voice device 3 can be a "speaker", etc. This disclosure does not limit this.
可选的,第一语音设备可以通过广播形式,向同一组网内的每个第二语音设备发送优先级参数,或者也可以通过单播形式,向同一组网内的每个第二语音设备发送优先级参数等等,本公开对此不做限定。Optionally, the first voice device can send the priority parameter to each second voice device in the same network through broadcast, or it can also send the priority parameter to each second voice device in the same network through unicast. Sending priority parameters, etc., this disclosure does not limit this.
可以理解的是,第一语音设备在接收到服务器发送的优先级策略更新指令之后,可以通过对该优先级策略更新指令进行解析,以确定出优先级参数,之后可以将该优先级参数发送给同一组网内的每个第二语音设备,以使每个第二语音设备可以获知到该优先级参数,从而同一组网内与该第一语音设备类型相同的第二语音设备,可以基于接收的优先级参数,自动对优先级策略进行更新,从而保证了不同语音设备间优先级策略更新过程的同步性与及时性。从而对于同一组网内的多个语音设备,可以基于同步更新的优先级策略,确定出较为准确的语音设备,以对用户发出的语音唤醒指令进行响应,从而提高了语音设备进行响应的准确性和可靠性,也提高了用户体验。It can be understood that, after receiving the priority policy update instruction sent by the server, the first voice device can parse the priority policy update instruction to determine the priority parameter, and then can send the priority parameter to Each second voice device in the same group network, so that each second voice device can learn the priority parameter, so that the second voice device in the same group network with the same type as the first voice device can receive priority parameters and automatically update the priority policy, thereby ensuring the synchronization and timeliness of the priority policy update process between different voice devices. Therefore, for multiple voice devices in the same network, a more accurate voice device can be determined based on the synchronously updated priority policy to respond to the voice wake-up command issued by the user, thus improving the accuracy of the response of the voice device. and reliability, and also improves user experience.
需要说明的是,可以先执行步骤102,再执行步骤103;或者也可以先执行步骤103,再执行步骤102;或者还可以同时执行步骤102和步骤103等等,本公开对此不做限定。It should be noted that step 102 may be executed first, and then step 103 may be executed; or step 103 may be executed first, and then step 102 may be executed; or step 102 and step 103 may be executed at the same time, etc. This disclosure does not limit this.
本公开实施例,第一语音设备可以先获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令中包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答,之后可以基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集,并向与第一语音设备同 一组网内的每个第二语音设备发送优先级参数。由此,第一语音设备可以通过对优先级策略更新指令进行解析,以确定优先级参数,并对与该优先级参数关联的历史参数进行更新,之后可以将该优先级参数发送给同一组网内的每个第二语音设备,从而可以使得同一组网内的各语音设备,可以实现对优先级策略的同步更新,从而保证了优先级策略更新的实时性和准确性,进而提高了对用户语音唤醒指令进行响应的准确性和可靠性。In this embodiment of the present disclosure, the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes the priority parameter, and the priority policy is used when the first voice device obtains the voice wake-up instruction. Determine whether to respond to the voice wake-up command, and then update the stored historical parameters associated with the priority parameters based on the priority parameters to obtain the updated priority parameter set and send it to the same group as the first voice device Each second voice device in the network sends priority parameters. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network. Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
图2为本公开实施例提供的一种唤醒优先级的更新方法的流程示意图,该方法应用于第一语音设备。如图2所示,该唤醒优先级的更新方法可以包括以下步骤:FIG. 2 is a schematic flowchart of a method for updating a wake-up priority provided by an embodiment of the present disclosure. The method is applied to the first voice device. As shown in Figure 2, the wake-up priority updating method may include the following steps:
步骤201,获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答。可选的,优先级参数可以包括以下至少一项:语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别。比如,可以包括上述一项,或者也可以包括上述多项等等,本公开对此不做限定。Step 201: Obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction. Optionally, the priority parameter may include at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state. For example, it may include one of the above, or may include multiple of the above, etc., and this disclosure does not limit this.
可选的,优先级参数中还可以包括:优先级策略版本号,其可以用于表征优先级参数的唯一性等等,本公开对此不做限定。Optionally, the priority parameter may also include: a priority policy version number, which may be used to represent the uniqueness of the priority parameter, etc. This disclosure does not limit this.
步骤202,基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集。Step 202: Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set.
步骤203,向与第一语音设备属于同一组网内的每个第二语音设备发送优先级参数。Step 203: Send priority parameters to each second voice device that belongs to the same network as the first voice device.
需要说明的是,步骤201至步骤203的具体内容及实现方式,可以参照本公开其他个实施例的说明,此处不再赘述。It should be noted that for the specific contents and implementation methods of steps 201 to 203, reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.
步骤204,在接收到语音唤醒指令的情况下,确定语音唤醒指令中直达声能量值及第一语音设备在接收到语音唤醒指令时的工作状态。Step 204: When a voice wake-up command is received, determine the direct sound energy value in the voice wake-up command and the working status of the first voice device when the voice wake-up command is received.
其中,语音唤醒指令可以为用户发出对语音设备进行唤醒的指令,比如可以为“小X同学”、“小Y小Y”等等,本公开对此不做限定。Among them, the voice wake-up instruction can give the user an instruction to wake up the voice device, for example, it can be "Little X classmate", "Little Y little Y", etc. This disclosure does not limit this.
另外,直达声能量值可以理解为,语音设备接收到语音唤醒指令时的能量值;第一语音设备可以通过任何可取的方式,确定出语音唤醒指令中直达声能量值,本公开对此不做限定。In addition, the direct sound energy value can be understood as the energy value when the voice device receives the voice wake-up command; the first voice device can determine the direct sound energy value in the voice wake-up command in any desirable way, and this disclosure does not do this. limited.
另外,第一语音设备在接收到语音唤醒指令时的工作状态,可以有多种,比如可以为播放状态,或者也可以为静音状态等等,本公开对此不做限定。In addition, the first voice device may be in a variety of working states when receiving the voice wake-up command, such as a playback state, a mute state, etc. This disclosure does not limit this.
举例来说,若用户发出的语音唤醒指令为“小X同学”,那么第一语音设备在接收到该语音唤醒指令“小X同学”后,可以确定出该语音唤醒指令中直达声能量值,比如可以为“1.3”、“2”等等,本公开对此不做限定。For example, if the voice wake-up command issued by the user is "Little X, classmate", then the first voice device can determine the direct sound energy value in the voice wake-up command after receiving the voice wake-up command "Little For example, it can be "1.3", "2", etc., and this disclosure does not limit this.
步骤205,基于更新后的优先级参数集,确定直达声能量值对应的第一特征值及工作状态对应的第二特征值,其中,第一特征值用于表征直达声能量值当前对应的优先级级别,第二特征值用于表征工作状态当前对应的优先级级别。Step 205: Based on the updated priority parameter set, determine the first characteristic value corresponding to the direct sound energy value and the second characteristic value corresponding to the working state, where the first characteristic value is used to characterize the current priority corresponding to the direct sound energy value. level, the second characteristic value is used to characterize the priority level corresponding to the current working status.
举例来说,若更新后的优先级参数集为:直达声能量阈值2,直达声能量值大于直达声能量阈值时的优先级级别为“01”、直达声能量值小于直达声能量阈值表示为“00”;语音设备播放状态对应的优先级级别为“0x1770”、语音设备静音状态对应的优先级级别为“0x1388”。若第一语音设备在接收到语音唤醒指令时,确定出该语音唤醒指令中直达声能量值为“2.5”,2.5大于2,那么可以确定当前直达声能量值对应的第一特征值为:01;若第一语音设备在接收到该语音唤醒指令时的工作状态为“播放状态”,那么可以确定该工作状态对应的第二特征值为“0x1770”,本公开对此不做限定。For example, if the updated priority parameter set is: direct sound energy threshold 2, the priority level when the direct sound energy value is greater than the direct sound energy threshold is "01", and the priority level when the direct sound energy value is less than the direct sound energy threshold is expressed as "00"; the priority level corresponding to the playback state of the voice device is "0x1770", and the priority level corresponding to the mute state of the voice device is "0x1388". If the first voice device determines that the direct sound energy value in the voice wake-up instruction is "2.5" when receiving the voice wake-up command, and 2.5 is greater than 2, then it can be determined that the first characteristic value corresponding to the current direct sound energy value is: 01 ; If the working state of the first voice device is "playing state" when receiving the voice wake-up command, then it can be determined that the second characteristic value corresponding to the working state is "0x1770", which is not limited by this disclosure.
步骤206,基于第一特征值及第二特征值,确定第一语音设备对应的第三特征值,其中,第三特征值用于表征第一语音设备当前对应的优先级级别。Step 206: Determine a third characteristic value corresponding to the first voice device based on the first characteristic value and the second characteristic value, where the third characteristic value is used to represent the current corresponding priority level of the first voice device.
可以理解的是,在确定出第一特征值及第二特征值后,可以将二者进行融合,以确定出第一语音设备对应的第三特征值等等,本公开对此不做限定。It can be understood that after the first characteristic value and the second characteristic value are determined, the two can be fused to determine the third characteristic value corresponding to the first voice device, etc. This disclosure does not limit this.
举例来说,可以将第一特征值与第二特征值进行拼接,比如可以将第一特征值作为高位、第二特征值作为低位进行拼接;或者也可以将第二特征值作为高位、第二特征值作为低位进行拼接等等,本公开对此不做限定。For example, the first eigenvalue and the second eigenvalue can be spliced, for example, the first eigenvalue can be used as the high bit and the second eigenvalue can be used as the low bit; or the second eigenvalue can be used as the high bit and the second eigenvalue. The eigenvalues are used as low bits for splicing, etc. This disclosure does not limit this.
比如,若第一特征值为“0x01”、第二特征值为“0x1770”,那么二者拼接后得到的第三特征值可以为“0x011770”;或者,若第一特征值为“0x00”、第二特征值为“0x1770”,那么二者拼接后得到的第三特征值可以为“0x001770”,可以将其简记为“0x1770”等等,本公开对此不做限定。For example, if the first feature value is "0x01" and the second feature value is "0x1770", then the third feature value obtained after splicing the two can be "0x011770"; or, if the first feature value is "0x00", The second characteristic value is "0x1770", then the third characteristic value obtained after splicing the two can be "0x001770", which can be abbreviated as "0x1770", etc. This disclosure does not limit this.
可选的,第三特征值除与直达声能量值对应的第一特征值、工作状态对应的第二特征值相关外,还可以与语音设备当前的网络状态、语音设备的性能,比如唤醒引擎等对应的特征值相关,从而本公开实施例中,还可以先将第一特征值向左进行移位,之后将移位后的数值与第二特征值进行拼接,以预留足够的空间来表示其他特征值等等。Optionally, in addition to the first characteristic value corresponding to the direct sound energy value and the second characteristic value corresponding to the working state, the third characteristic value can also be related to the current network status of the voice device and the performance of the voice device, such as waking up the engine. The corresponding feature values are related, so in the embodiment of the present disclosure, the first feature value can be shifted to the left first, and then the shifted value can be spliced with the second feature value to reserve enough space. Represents other eigenvalues and so on.
比如,在直达声能量阈值为2的情况下,若直达声能量值大于直达声能量阈值,那么对应的第一特征值可以表示为“0x01”、若直达声能量值小于直达声能量阈值,那么对应的第一特征值可以表示为“0x00”。若第一语音设备处于播放状态,那么对应的第二特征值可以表示为“0x1770”,若第一语音设备处于静音状态,那么对应的第二特征值可以表示为“0x1338”。此外,还可以先将第一特征值向左进行移位,比如可以左移30位,之后再和第二特征值进行拼接,以得到相应的第三特征值,第三特征值可以如下表1所示。For example, when the direct sound energy threshold is 2, if the direct sound energy value is greater than the direct sound energy threshold, then the corresponding first characteristic value can be expressed as "0x01". If the direct sound energy value is less than the direct sound energy threshold, then The corresponding first feature value may be represented as "0x00". If the first voice device is in the playing state, the corresponding second characteristic value can be expressed as "0x1770". If the first voice device is in the mute state, the corresponding second characteristic value can be expressed as "0x1338". In addition, the first eigenvalue can also be shifted to the left first, for example, it can be shifted 30 bits to the left, and then spliced with the second eigenvalue to obtain the corresponding third eigenvalue. The third eigenvalue can be as shown in Table 1 shown.
表1Table 1
Figure PCTCN2022099622-appb-000001
Figure PCTCN2022099622-appb-000001
需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中第一特征值、第二特征值、第三特征值等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the first characteristic value, the second characteristic value, the third characteristic value, etc. in the embodiments of the present disclosure.
从而,本公开实施例中,第一语音设备在接收到语音唤醒指令的情况下,可以确定该语音唤醒指令中直达声能量值及当前的工作状态,之后结合更新后的优先级参数集,可以确定出用于表征第一语音设备当前优先级级别的第三特征值,从而可以使得确定出的第三特征值更为准确和可靠。Therefore, in the embodiment of the present disclosure, when the first voice device receives a voice wake-up command, it can determine the direct sound energy value and the current working status in the voice wake-up command, and then combine it with the updated priority parameter set to determine The third characteristic value used to characterize the current priority level of the first voice device is determined, thereby making the determined third characteristic value more accurate and reliable.
步骤207,接收第二语音设备发送的第四特征值,其中,第四特征值用于表征第二语音设备在接收到语音唤醒指令的情况下,基于优先级参数确定出的优先级级别。Step 207: Receive a fourth characteristic value sent by the second voice device, where the fourth characteristic value is used to represent the priority level determined by the second voice device based on the priority parameter when receiving the voice wake-up instruction.
可以理解的是,第一语音设备在确定出优先级参数后,可以向同一组网内的每个第二语音设备发送优先级参数,以使每个第二语音设备可以接收到该优先级参数。那么与第一语音设备类型相同的第二语音设备,可以基于该优先级参数,对关联的历史参数进行更新,以得到对应更新后的优先级参数集,之后在接收到语音唤醒指令的情况下,可以基于该更新后的优先级参数集,确定出与其所对应的第四特征值。而与第一语音设备类型不同的第二语音设备,在接收到语音唤醒指令的情况下,可以基于历史参数,确定出其所对应的第四特征值。之后每个第二语音设备,可以将确定出的第四特征值发送给第一语音设备等等,本公开对此不做限定。It can be understood that, after determining the priority parameter, the first voice device can send the priority parameter to each second voice device in the same network, so that each second voice device can receive the priority parameter. . Then the second voice device of the same type as the first voice device can update the associated historical parameters based on the priority parameter to obtain the corresponding updated priority parameter set, and then receive the voice wake-up command. , the corresponding fourth feature value can be determined based on the updated priority parameter set. When a second voice device of a different type from the first voice device receives a voice wake-up instruction, its corresponding fourth characteristic value can be determined based on historical parameters. Each second voice device can then send the determined fourth characteristic value to the first voice device and so on, and this disclosure does not limit this.
可选的,第一语音设备也可以将确定出的第一特征值发送给同一组网内的各个第二语音设备,从而同一组网内的各个语音设备之间可以进行通信传输,以及时获知到各个语音设备对应的可表征优先级级别的特征值,从而为准确地确定对语音唤醒指令进行响应的语音设备提供了条件。Optionally, the first voice device can also send the determined first characteristic value to each second voice device in the same group network, so that each voice device in the same group network can communicate with each other and learn in time. Characteristic values corresponding to each voice device that can represent the priority level are provided, thereby providing conditions for accurately determining the voice device that responds to the voice wake-up command.
步骤208,基于第四特征值及第一语音设备对应的第三特征值,从第一语音设备及第二语音设备中,确定出对语音唤醒指令进行响应的语音设备。Step 208: Based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, determine the voice device that responds to the voice wake-up command from the first voice device and the second voice device.
可以理解的是,由于同一组网内的第二语音设备可能为一个,或者也可能为多个,那么第一语音设备在接收到各个第四特征值后,可以将各个第四特征值与第三特征值进行排序,从而确定出对语音唤醒指令进行响应的语音设备。It can be understood that since there may be one or more second voice devices in the same network, the first voice device, after receiving each fourth feature value, may compare each fourth feature value with the third voice device. The three characteristic values are sorted to determine the voice device that responds to the voice wake-up command.
可选的,可以将第三特征值及第四特征值中最高特征值对应的语音设备,确定为对语音唤醒指令进行响应的语音设备。Optionally, the voice device corresponding to the highest feature value among the third feature value and the fourth feature value can be determined as the voice device that responds to the voice wake-up instruction.
举例来说,若第一语音设备对应的第三特征值为:0x0110,第二语音设备1对应的第四特征值1为:0x0100,第二语音设备2对应的第四特征值2为:0x0101,那么可以确定其中“0x0110”为最高特征值,从而可以将“0x0110”所对应的第一语音设备确定为对语音唤醒指令进行响应的语音设备等等,本公开对此不做限定。For example, if the third characteristic value corresponding to the first voice device is: 0x0110, the fourth characteristic value 1 corresponding to the second voice device 1 is: 0x0100, and the fourth characteristic value 2 corresponding to the second voice device 2 is: 0x0101 , then it can be determined that "0x0110" is the highest characteristic value, so that the first voice device corresponding to "0x0110" can be determined as the voice device that responds to the voice wake-up command, etc. This disclosure does not limit this.
可选的,也可以在最高特征值有多个的情况下,将多个最高特征值中语音唤醒指令中最高直达声能量值对应的语音设备,确定为对语音唤醒指令进行响应的语音设备。Optionally, when there are multiple highest eigenvalues, the voice device corresponding to the highest direct sound energy value among the voice wake-up commands among the multiple highest eigenvalues can be determined as the voice device that responds to the voice wake-up command.
举例来说,若最高特征值有2个,分别为第四特征值1和第四特征值3,那么可以进一步比较这两个第四特征值中语音唤醒指令中直达声能量值。若第四特征值1对应的直达声能量值1为:2.58,第四特征值3对应的直达声能量值2为:2.1,由于2.58大于2.1,那么可以将第四特征值1对应的第二语音设备1,确定为对语音唤醒指令进行响应的语音设备等等,本公开对此不做限定。For example, if there are two highest eigenvalues, namely the fourth eigenvalue 1 and the fourth eigenvalue 3, then the direct sound energy values of the voice wake-up instructions in the two fourth eigenvalues can be further compared. If the direct sound energy value 1 corresponding to the fourth eigenvalue 1 is: 2.58, and the direct sound energy value 2 corresponding to the fourth eigenvalue 3 is: 2.1, since 2.58 is greater than 2.1, then the second corresponding to the fourth eigenvalue 1 can be The voice device 1 is determined to be a voice device that responds to voice wake-up instructions, etc. This disclosure does not limit this.
可选的,在最高特征值有多个的情况下,也可以根据需要调整进一步比较的数值。比如,可以进一步比较多个最高特征值对应的语音设备的网络状态、唤醒引擎的性能等等,本公开对此不做限定。Optionally, when there are multiple highest eigenvalues, the values for further comparison can also be adjusted as needed. For example, the network status of the voice devices corresponding to multiple highest characteristic values, the performance of the wake-up engine, etc. can be further compared, and this disclosure does not limit this.
本公开实施例,可以获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答,之后可以基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集,在接收到语音唤醒指令的情况下,确定语音唤醒指令中直达声能量值及第一语音设备在接收到语音唤醒指令时的工作状态,之后可以基于更新后的优先级参数集,确定直达声能量值对应的第一特征值及工作状态对应的第二特征值,之后可以基于第一特征值及第二特征值,确定第一语音设备对应的第三特征值,还可以接收第二语音设备发送的第四特征值,并基于第四特征值及第一语音设备对应的第三特征值,从第一语音设备及第二语音设备中,确定出对语音唤醒指令进行响应的语音设备。由此,第一语音设备可以通过对服务器发送的优先级策略更新指令进行解析,以确定出其中包含的优先级参数,进而对与该优先级参数关联的历史参数进行更新,并将该优先级参数发送给同一组网内的每个第二语音设备,从而可以使得同一组网内的各语音设备可以实现对优先级策略的同步更新,保证了优先级策略更新的实时性和准确性,进而在接收到语音唤醒指令的情况下,可以基于确定出的第三特征值及接收的第二语音设备对应的第四特征值,确定出对语音唤醒指令进行响应的语音设备,从而提高了对用户语音唤醒指令进行响应的准确性和可靠性。In the embodiment of the present disclosure, the priority policy update instruction sent by the server can be obtained, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction. Respond, and then update the stored historical parameters associated with the priority parameters based on the priority parameters to obtain the updated priority parameter set. When the voice wake-up command is received, determine whether the voice wake-up command is in progress. The direct sound energy value and the working status of the first voice device when receiving the voice wake-up command can then be determined based on the updated priority parameter set. The first characteristic value corresponding to the direct sound energy value and the second characteristic corresponding to the working status can be determined value, and then the third feature value corresponding to the first voice device can be determined based on the first feature value and the second feature value, and the fourth feature value sent by the second voice device can also be received, and the third feature value corresponding to the first voice device can be determined based on the fourth feature value and the first feature value. The third characteristic value corresponding to the voice device determines the voice device that responds to the voice wake-up command from the first voice device and the second voice device. Therefore, the first voice device can parse the priority policy update instruction sent by the server to determine the priority parameter contained therein, and then update the historical parameters associated with the priority parameter, and update the priority The parameters are sent to each second voice device in the same network, so that each voice device in the same network can update the priority policy synchronously, ensuring the real-time and accuracy of the priority policy update, and thus When a voice wake-up command is received, the voice device that responds to the voice wake-up command can be determined based on the determined third feature value and the received fourth feature value corresponding to the second voice device, thereby improving user experience. Accuracy and reliability in responding to voice wake-up commands.
图3为本公开实施例提供的一种唤醒优先级的更新方法的流程示意图,该方法应用于第一语音设备。如图3所示,该唤醒优先级的更新方法可以包括以下步骤:FIG. 3 is a schematic flowchart of a method for updating a wake-up priority provided by an embodiment of the present disclosure. The method is applied to the first voice device. As shown in Figure 3, the wake-up priority updating method may include the following steps:
步骤301,获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答。Step 301: Obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, and the priority policy is used to determine whether to respond to the voice wake-up instruction when the first voice device obtains the voice wake-up instruction.
步骤302,基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集。Step 302: Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set.
步骤303,向与第一语音设备属于同一组网内的每个第二语音设备发送优先级参数。Step 303: Send priority parameters to each second voice device that belongs to the same network as the first voice device.
需要说明的是,步骤301至步骤303的具体内容及实现方式,可以参照本公开其他各实施例的说明,此处不再赘述。It should be noted that for the specific contents and implementation methods of steps 301 to 303, reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.
步骤304,在优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,向第二语音设备再次发送优先级参数。Step 304: If no confirmation message is received from any second voice device within a preset time period after the priority parameter is sent, the priority parameter is sent to the second voice device again.
其中,预设时长可以为提前设定的数值,比如可以为100毫秒、1毫秒、2秒等等,本公开对此不做限定。The preset duration may be a value set in advance, such as 100 milliseconds, 1 millisecond, 2 seconds, etc., and this disclosure does not limit this.
另外,确认消息,可以为第二语音设备发送的消息,用以表征其已成功接收到第一语音设备发送的优先级参数,其可以为任意形式的确认消息等等,本公开对此不做限定。In addition, the confirmation message can be a message sent by the second voice device to indicate that it has successfully received the priority parameter sent by the first voice device. It can be a confirmation message in any form, etc. This disclosure does not do this. limited.
可以理解的是,第一语音设备在将优先级参数发送给同一组网内的每个第二语音设备后,可以对各个第二语音设备进行监听,以获取第二语音设备返回的确认消息。若未接收到任一第二语音设备返回的确认消息,可以表明该任一第二语音设备可能未成功接收到该优先级参数,那么为了保证同一组网内的各语音设备优先级策略同步过程的同步性,那么可以向第二语音设备再次发送优先级参数。It can be understood that, after sending the priority parameter to each second voice device in the same network, the first voice device can monitor each second voice device to obtain the confirmation message returned by the second voice device. If no confirmation message is received from any second voice device, it may indicate that any second voice device may not have successfully received the priority parameter. In order to ensure the priority policy synchronization process of each voice device in the same network synchronization, then the priority parameters can be sent to the second voice device again.
可选的,第一语音设备可以向未返回确认消息的任一第二语音设备,再次发送优先级参数;或者也可以以广播形式,向同一组网内的每个第二语音设备发送优先级参数等等,本公开对此不做限定。Optionally, the first voice device can send the priority parameter again to any second voice device that has not returned a confirmation message; or it can also send the priority parameter to each second voice device in the same network in the form of broadcast. Parameters, etc., this disclosure does not limit this.
另外,若第一语音设备在优先级参数发送后的预设时长内,接收到每个第二语音设备返回的确认消息,那么可以表明该组网内的每个第二语音设备,均接收到了该优先级参数,那么无需向第二语音设备再次发送优先级参数。In addition, if the first voice device receives the confirmation message returned by each second voice device within the preset time period after the priority parameter is sent, it can indicate that each second voice device in the network has received the confirmation message. This priority parameter, then there is no need to send the priority parameter to the second voice device again.
可选的,第一语音设备可以先确定更新后的优先级参数集对应的版本号,之后再向每个第二语音设备发送更新后的优先级参数集及对应的版本号。Optionally, the first voice device may first determine the version number corresponding to the updated priority parameter set, and then send the updated priority parameter set and the corresponding version number to each second voice device.
其中,版本号可以用于表征优先级参数集的唯一性,优先级参数集不同,其对应的版本号也不同等等,本公开对此不做限定。The version number can be used to represent the uniqueness of the priority parameter set. Different priority parameter sets have different corresponding version numbers, etc. This disclosure does not limit this.
可以理解的是,若服务器发送的优先级策略更新指令中包含优先级策略版本号,那么第一语音服务通过对该优先级策略更新指令进行解析,即可获取到对应的优先级策略版本号;或者第一语音设备也可以已存储的与优先级参数关联的历史参数当前的版本号,以及版本号更新规则,对当前的版本号进行更新,以确定出与更新后的优先级参数级对应的优先级策略版本号等等,本公开对此不做限定。It can be understood that if the priority policy update instruction sent by the server contains the priority policy version number, then the first voice service can obtain the corresponding priority policy version number by parsing the priority policy update instruction; Or the first voice device may also store the current version number of the historical parameters associated with the priority parameter and the version number update rule, and update the current version number to determine the corresponding version number corresponding to the updated priority parameter level. Priority policy version number, etc., this disclosure does not limit this.
可以理解的是,第一语音设备在基于优先级参数,确定出优先级参数集后,在向同一组网内的每个第二语音设备发送优先级参数时,可以先确定出更新后的优先级参数集对应的版本号,比如为“1.0.1”,那么可以将更新后的优先级参数集及“1.0.1”发送给每个第二语音设备,以使与第一语音设备类型相同的第二语音设备,可以直接利用接收到的优先级参数集及对应的版本号,对已存储的历史参数进行替换等等,本公开对此不做限定。It can be understood that, after the first voice device determines the priority parameter set based on the priority parameters, when sending the priority parameters to each second voice device in the same group network, the first voice device may first determine the updated priority. The version number corresponding to the priority parameter set, such as "1.0.1", then the updated priority parameter set and "1.0.1" can be sent to each second voice device to make it the same type as the first voice device The second voice device can directly use the received priority parameter set and the corresponding version number to replace the stored historical parameters, etc. This disclosure does not limit this.
可选的,若第一语音设备在更新后的优先级参数集及对应的版本号发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,可以向第二语音设备再次发送更新后的优先级参数集及对应的版本号。从而,第二语音设备可以基于版本号确定当前的优先级参数集是否已成功接收,从而减少了数据处理过程,节省了时间。Optionally, if the first voice device does not receive a confirmation message returned by any second voice device within a preset time period after sending the updated priority parameter set and the corresponding version number, it may send a confirmation message to the second voice device. Send the updated priority parameter set and corresponding version number again. Therefore, the second voice device can determine whether the current priority parameter set has been successfully received based on the version number, thereby reducing the data processing process and saving time.
举例来说,若某一第二语音设备接收到第一语音设备发送的优先级参数集及对应的版本号后,通过对其进行解析,确定出版本号为“1.0.2”,若当前已存储有“1.0.2”版本号对应的优先级参数集,那么可以丢弃当前新接收的优先级参数集。或者,若当前存储的优先级参数集对应的版本号为“1.0.1”,那么可以直接利用新接收到“1.0.2”对应的优先级参数集,对“1.0.1”对应的优先级参数集进行替换,从而保证尽量保证优先级参数集的准确性和可靠性等等,本公开对此不做限定。For example, if a second voice device receives the priority parameter set and the corresponding version number sent by the first voice device, it parses it and determines that the release version number is "1.0.2". If it is currently If the priority parameter set corresponding to the "1.0.2" version number is stored, the currently newly received priority parameter set can be discarded. Or, if the version number corresponding to the currently stored priority parameter set is "1.0.1", you can directly use the newly received priority parameter set corresponding to "1.0.2" to update the priority parameter set corresponding to "1.0.1" The parameter set is replaced to ensure the accuracy and reliability of the priority parameter set as much as possible, etc. This disclosure does not limit this.
需要说明的是,本公开提供的唤醒优先级的更新方法,可以适用于任何类型的语音设备中,比如可以为支持语音操作的音箱、电视、冰箱、饮水机等设备,本公开对此不做限 定。It should be noted that the wake-up priority updating method provided by the present disclosure can be applied to any type of voice device, such as speakers, TVs, refrigerators, water dispensers and other devices that support voice operation. This disclosure does not do this. limited.
下面结合图3A对本公开提供的唤醒优先级的更新过程进行说明。The update process of the wake-up priority provided by the present disclosure will be described below with reference to FIG. 3A.
由图3A可知,服务器可以发送优先级策略更新指令,比如可以将其下发给第一语音设备A,那么第一语音设备A在接收到服务器发送的优先级策略更新指令后,可以先对该优先级策略更新指令进行解析,以确定其中包含的优先级参数,并基于该优先级参数,对已存储的与该优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集。As can be seen from Figure 3A, the server can send a priority policy update instruction. For example, it can be sent to the first voice device A. Then the first voice device A can first respond to the priority policy update instruction after receiving the priority policy update instruction sent by the server. The priority policy update instruction is parsed to determine the priority parameter contained therein, and based on the priority parameter, the stored historical parameters associated with the priority parameter are updated to obtain an updated priority parameter set.
另外,该第一语音设备A还可以将确定出的优先级参数,发送给同一组网内的第二语音设备,比如发送给第二语音设备B,以使第二语音设备B可以基于该优先级参数对关联的历史参数进行更新,从而实现对优先级策略的更新。In addition, the first voice device A can also send the determined priority parameter to a second voice device in the same group network, such as to the second voice device B, so that the second voice device B can use the priority parameter based on the priority parameter. The level parameters update the associated historical parameters to update the priority policy.
在第一语音设备A和第二语音设备B接收到用户的语音唤醒指令时,也即其处于引擎唤醒状态,此时第一语音设备A和第二语音设备B间可以进行通信传输,并使用新的优先级策略进行决策,也即使用更新后的优先级参数集,确定出对该语音唤醒指令进行响应的语音设备。When the first voice device A and the second voice device B receive the user's voice wake-up command, that is, they are in the engine wake-up state, at this time, the first voice device A and the second voice device B can communicate and transmit, and use The new priority policy is used to make decisions, that is, the updated priority parameter set is used to determine the voice device that responds to the voice wake-up command.
比如,第一语音设备A在接收到用户发送的语音唤醒指令后,可以按照更新后的优先级参数集确定当前的第三特征值,并与第二语音设备B进行通信传输,比如可以将该第三特征值发送给第二语音设备B,并接收第二语音设备B发送的第四特征值,若第三特征值大于第四特征值,那么可以将该第一语音设备A确定为对该语音唤醒指令进行响应的语音设备。For example, after receiving the voice wake-up command sent by the user, the first voice device A can determine the current third characteristic value according to the updated priority parameter set, and communicate with the second voice device B. For example, the first voice device A can The third feature value is sent to the second voice device B, and the fourth feature value sent by the second voice device B is received. If the third feature value is greater than the fourth feature value, then the first voice device A can be determined to be the target of the second voice device B. A voice device that responds to voice wake-up commands.
需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中对唤醒优先级的更新过程等的限定。It should be noted that the above example is only a schematic illustration and cannot be used as a limitation on the update process of the wake-up priority in the embodiment of the present disclosure.
本公开实施例,第一语音设备可以先获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答,之后可以基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集,第一语音设备还可以向与第一语音设备属于同一组网内的每个第二语音设备发送优先级参数,之后在优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,可以向第二语音设备再次发送优先级参数。由此,第一语音设备可以在对服务器发送的优先级策略更新指令进行解析后,确定出优先级参数,对当前关联的历史参数进行更新,并将该优先级参数发送给同一组网内的每个第二语音设备,并在未成功接收到任一第二语音设备发送的确认消息时,再次发送优先级参数,从而可以使得同一组网内的各第二语音设备尽可能接收到该优先级参数,实现对优先级策略的同步更新,保证了优先级策略更新的实时性和准确性,In this embodiment of the present disclosure, the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine when the first voice device obtains the voice wake-up instruction. Whether to respond to the voice wake-up command, the stored historical parameters associated with the priority parameters can be updated based on the priority parameters to obtain the updated priority parameter set. The first voice device can also send a message to the first voice device. Each second voice device that the voice device belongs to in the same network sends the priority parameter. Then, within the preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, you can send a message to the second voice device. The voice device sends the priority parameters again. As a result, the first voice device can determine the priority parameter after parsing the priority policy update instruction sent by the server, update the currently associated historical parameters, and send the priority parameter to the device in the same network. Each second voice device, when it fails to receive the confirmation message sent by any second voice device, sends the priority parameter again, so that each second voice device in the same group network can receive the priority parameter as much as possible. level parameters to achieve synchronous updates of priority policies, ensuring the real-time and accuracy of priority policy updates.
本公开实施例还提出了一种唤醒优先级的更新装置,图4是根据本公开实施例的唤醒优先级的更新装置的结构示意图。An embodiment of the present disclosure also provides a device for updating a wake-up priority. FIG. 4 is a schematic structural diagram of a device for updating a wake-up priority according to an embodiment of the present disclosure.
如图4所示,该唤醒优先级的更新装置400,被配置在第一语音设备侧,所述装置400,包括:解析模块410、更新模块420、及发送模块430。As shown in FIG. 4 , the wake-up priority updating device 400 is configured on the first voice device side. The device 400 includes: a parsing module 410 , an updating module 420 , and a sending module 430 .
其中,解析模块410,用于获取服务器发送的优先级策略更新指令,其中,所述优先级策略更新指令包括优先级参数,所述优先级策略用于在所述第一语音设备获取到语音唤醒指令时判断是否对所述语音唤醒指令进行应答;The parsing module 410 is used to obtain a priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to obtain voice wake-up instructions on the first voice device. Determine whether to respond to the voice wake-up command when commanding;
更新模块420,用于基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集;The update module 420 is configured to update the stored historical parameters associated with the priority parameter based on the priority parameter to obtain an updated priority parameter set;
发送模块430,用于向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数。The sending module 430 is configured to send the priority parameter to each second voice device belonging to the same network as the first voice device.
可选的,所述优先级参数包括以下至少一项:语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别。Optionally, the priority parameter includes at least one of the following: the direct sound energy threshold of the voice wake-up instruction, the priority level of the voice device in the playback state and the priority level in the mute state.
可选的,所述优先级参数包括:优先级策略版本号。Optionally, the priority parameters include: priority policy version number.
可选的,还包括第一确定模块,用于:Optionally, a first determination module is also included for:
在接收到语音唤醒指令的情况下,确定所述语音唤醒指令到达所述第一语音设备时的直达声能量值及所述第一语音设备在接收到所述语音唤醒指令时的工作状态;When a voice wake-up command is received, determine the direct sound energy value when the voice wake-up command reaches the first voice device and the working state of the first voice device when the voice wake-up command is received;
基于所述更新后的优先级参数集,确定所述直达声能量值对应的第一特征值及所述工作状态对应的第二特征值,其中,所述第一特征值用于表征所述直达声能量值当前对应的优先级级别,所述第二特征值用于表征所述工作状态当前对应的优先级级别;Based on the updated priority parameter set, a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value. The priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
基于所述第一特征值及所述第二特征值,确定所述第一语音设备对应的第三特征值,其中,所述第三特征值用于表征所述第一语音设备当前对应的优先级级别。Based on the first characteristic value and the second characteristic value, a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
可选的,还包括:Optional, also includes:
接收模块,用于接收所述第二语音设备发送的第四特征值,其中,所述第四特征值用于表征所述第二语音设备在接收到语音唤醒指令的情况下,基于所述优先级参数确定出的优先级级别;A receiving module, configured to receive a fourth characteristic value sent by the second voice device, wherein the fourth characteristic value is used to characterize the second voice device based on the priority when receiving a voice wake-up instruction. The priority level determined by the level parameter;
第二确定模块,用于基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备。A second determination module, configured to determine, based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, the first voice device and the second voice device, which is suitable for the voice device. A voice device that wakes up in response to a command.
可选的,所述第二确定模块,具体用于:Optionally, the second determination module is specifically used for:
将所述第三特征值及所述第四特征值中最高特征值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备;或者,Determine the voice device corresponding to the highest feature value among the third feature value and the fourth feature value as the voice device that responds to the voice wake-up instruction; or,
在最高特征值有多个的情况下,将所述多个最高特征值中所述语音唤醒指令中最高直达声能量值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备。In the case where there are multiple highest characteristic values, the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
可选的,所述发送模块430,还用于:Optionally, the sending module 430 is also used to:
在所述优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,向每个所述第二语音设备再次发送所述优先级参数。Within a preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, the priority parameter is sent again to each second voice device.
可选的,所述发送模块,具体用于:Optional, the sending module is specifically used for:
确定所述更新后的优先级参数集对应的优先级策略版本号;Determine the priority policy version number corresponding to the updated priority parameter set;
向每个所述第二语音设备发送所述更新后的优先级参数集及对应的优先级策略版本号。Send the updated priority parameter set and the corresponding priority policy version number to each of the second voice devices.
本公开实施例中的上述各模块的功能及具体实现原理,可参照上述各方法实施例,此处不再赘述。For the functions and specific implementation principles of the above-mentioned modules in the embodiments of the present disclosure, reference may be made to the above-mentioned method embodiments and will not be described again here.
本公开实施例的唤醒优先级的更新装置,第一语音设备可以先获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令中包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答,之后可以基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集,并向与第一语音设备同一组网内的每个第二语音设备发送优先级参数。由此,第一语音设备可以通过对优先级策略更新指令进行解析,以确定优先级参数,并对与该优先级参数关联的历史参数进行更新,之后可以将该优先级参数发送给同一组网内的每个第二语音设备,从而可以使得同一组网内的各语音设备,可以实现对优先级策略的同步更新,从而保证了优先级策略更新的实时性和准确性,进而提高了对用户语音唤醒指令进行响应的准确性和可靠性。In the wake-up priority update device of the embodiment of the present disclosure, the first voice device can first obtain the priority policy update instruction sent by the server, where the priority policy update instruction includes priority parameters, and the priority policy is used to When the device obtains the voice wake-up command, it determines whether to respond to the voice wake-up command. Then, based on the priority parameter, it can update the stored historical parameters associated with the priority parameter to obtain the updated priority parameter set and send it to the device. Each second voice device in the same network as the first voice device sends a priority parameter. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network. Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
图5是根据本公开实施例的电子设备的结构框图。FIG. 5 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
如图5所示,该电子设备200包括:存储器210和处理器220,连接不同组件(包括存储器210和处理器220)的总线230。As shown in FIG. 5 , the electronic device 200 includes: a memory 210 and a processor 220 , and a bus 230 connecting different components (including the memory 210 and the processor 220 ).
其中,存储器210用于存储处理器220的可执行指令;处理器201被配置为调用并执行存储器202存储的可执行指令,以实现本公开上述实施例提出的唤醒优先级的更新方法。The memory 210 is used to store executable instructions of the processor 220; the processor 201 is configured to call and execute the executable instructions stored in the memory 202 to implement the wake-up priority updating method proposed in the above embodiments of the present disclosure.
总线230表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外 围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。 Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
电子设备200典型地包括多种电子设备可读介质。这些介质可以是任何能够被电子设备200访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Electronic device 200 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 200, including volatile and nonvolatile media, removable and non-removable media.
存储器210还可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)240和/或高速缓存存储器250。电子设备200可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统260可以用于读写不可移动的、非易失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线230相连。存储器210可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本公开各实施例的功能。 Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and/or cache memory 250 . Electronic device 200 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 260 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a disk drive may be provided for reading and writing removable non-volatile disks (e.g., "floppy disks"), and for removable non-volatile optical disks (e.g., CD-ROM, DVD-ROM). or other optical media) that can read and write optical disc drives. In these cases, each drive may be connected to bus 230 through one or more data media interfaces. The memory 210 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
具有一组(至少一个)程序模块270的程序/实用工具280,可以存储在例如存储器210中,这样的程序模块270包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块270通常执行本公开所描述的实施例中的功能和/或方法。A program/utility 280 having a set of (at least one) program modules 270, which may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other programs Modules, as well as program data, each of these examples or some combination may include an implementation of a network environment. Program modules 270 generally perform functions and/or methods in the embodiments described in this disclosure.
电子设备200也可以与一个或多个外部设备290(例如键盘、指向设备、显示器291等)通信,还可与一个或者多个使得用户能与该电子设备200交互的设备通信,和/或与使得该电子设备200能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口292进行。并且,电子设备200还可以通过网络适配器293与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器293通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备200使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。 Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 200, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 292. Furthermore, the electronic device 200 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 293. As shown, network adapter 293 communicates with other modules of electronic device 200 via bus 230. It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
处理器220通过运行存储在存储器210中的程序,从而执行各种功能应用以及数据处理。The processor 220 executes various functional applications and data processing by running programs stored in the memory 210 .
需要说明的是,本公开实施例的电子设备的实施过程参见前述对本公开实施例的唤醒优先级的更新方法的解释说明,此处不再赘述。It should be noted that, for the implementation process of the electronic device according to the embodiment of the present disclosure, please refer to the foregoing explanation of the method for updating the wake-up priority in the embodiment of the present disclosure, and will not be described again here.
本公开实施例的电子设备,第一语音设备可以先获取服务器发送的优先级策略更新指令,其中,优先级策略更新指令中包括优先级参数,优先级策略用于在第一语音设备获取到语音唤醒指令时判断是否对语音唤醒指令进行应答,之后可以基于优先级参数,对已存储的与优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集,并向与第一语音设备同一组网内的每个第二语音设备发送优先级参数。由此,第一语音设备可以通过对优先级策略更新指令进行解析,以确定优先级参数,并对与该优先级参数关联的历史参数进行更新,之后可以将该优先级参数发送给同一组网内的每个第二语音设备,从而可以使得同一组网内的各语音设备,可以实现对优先级策略的同步更新,从而保证了优先级策略更新的实时性和准确性,进而提高了对用户语音唤醒指令进行响应的准确性和可靠性。In the electronic device according to the embodiment of the present disclosure, the first voice device can first obtain the priority policy update instruction sent by the server, wherein the priority policy update instruction includes the priority parameter, and the priority policy is used to obtain the voice when the first voice device When waking up the command, it is judged whether to respond to the voice wake-up command, and then based on the priority parameter, the stored historical parameters associated with the priority parameter can be updated to obtain the updated priority parameter set and send it to the first voice Each second voice device in the same network group of the device sends priority parameters. Therefore, the first voice device can determine the priority parameter by parsing the priority policy update instruction, update the historical parameters associated with the priority parameter, and then send the priority parameter to the same group network. Each second voice device in the same network can realize synchronous update of the priority policy for each voice device in the same network, thus ensuring the real-time and accuracy of the priority policy update, thereby improving the user experience. Accuracy and reliability in responding to voice wake-up commands.
为了实现上述实施例,本公开实施例还提出了一种非临时性计算机可读存储介质,该存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如前所述的唤醒优先级的更新方法。In order to implement the above embodiments, embodiments of the present disclosure also propose a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the aforementioned wake-up. Priority update method.
为了实现上述实施例,本公开实施例还提供一种计算机程序产品,该计算机程序由电 子设备的处理器执行时,使得电子设备能够执行如前所述的唤醒优先级的更新方法。In order to implement the above embodiments, embodiments of the present disclosure also provide a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can perform the aforementioned method for updating the wake-up priority.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序。在计算机上加载和执行所述计算机程序时,全部或部分地产生按照本公开实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机程序可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present disclosure are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program may be stored in or transferred from one computer-readable storage medium to another, for example, the computer program may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
本领域普通技术人员可以理解:本公开中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本公开实施例的范围,也表示先后顺序。Those of ordinary skill in the art can understand that the first, second, and other numerical numbers involved in this disclosure are only for convenience of description and are not used to limit the scope of the embodiments of the disclosure, nor to indicate the order.
本公开中的至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本公开不做限制。在本公开实施例中,对于一种技术特征,通过“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”等区分该种技术特征中的技术特征,该“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”描述的技术特征间无先后顺序或者大小顺序。At least one in the present disclosure can also be described as one or more, and the plurality can be two, three, four or more, and the present disclosure is not limited. In the embodiment of the present disclosure, for a technical feature, the technical feature is distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D” etc. The technical features described in "first", "second", "third", "A", "B", "C" and "D" are in no particular order or order.
本公开中各表所示的对应关系可以被配置,也可以是预定义的。各表中的信息的取值仅仅是举例,可以配置为其他值,本公开并不限定。在配置信息与各参数的对应关系时,并不一定要求必须配置各表中示意出的所有对应关系。例如,本公开中的表格中,某些行示出的对应关系也可以不配置。又例如,可以基于上述表格做适当的变形调整,例如,拆分,合并等等。上述各表中标题示出参数的名称也可以采用通信装置可理解的其他名称,其参数的取值或表示方式也可以通信装置可理解的其他取值或表示方式。上述各表在实现时,也可以采用其他的数据结构,例如可以采用数组、队列、容器、栈、线性表、指针、链表、树、图、结构体、类、堆、散列表或哈希表等。The corresponding relationships shown in each table in this disclosure can be configured or predefined. The values of the information in each table are only examples and can be configured as other values, which is not limited by this disclosure. When configuring the correspondence between information and each parameter, it is not necessarily required to configure all the correspondences shown in each table. For example, in the table in this disclosure, the corresponding relationships shown in some rows may not be configured. For another example, appropriate deformation adjustments can be made based on the above table, such as splitting, merging, etc. The names of the parameters shown in the titles of the above tables may also be other names understandable by the communication device, and the values or expressions of the parameters may also be other values or expressions understandable by the communication device. When implementing the above tables, other data structures can also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables or hash tables. wait.
本公开中的预定义可以理解为定义、预先定义、存储、预存储、预协商、预配置、固化、或预烧制。Predefinition in this disclosure may be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, solidification, or pre-burning.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of this disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure. should be covered by the protection scope of this disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (18)

  1. 一种唤醒优先级的更新方法,应用于第一语音设备,所述方法包括:A wake-up priority updating method, applied to a first voice device, the method includes:
    获取服务器发送的优先级策略更新指令,其中,所述优先级策略更新指令包括优先级参数,所述优先级策略用于在所述第一语音设备获取到语音唤醒指令时判断是否对所述语音唤醒指令进行应答;Obtain a priority policy update instruction sent by the server, wherein the priority policy update instruction includes a priority parameter, and the priority policy is used to determine whether to respond to the voice when the first voice device obtains the voice wake-up instruction. Wake up command to respond;
    基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集;Based on the priority parameter, update the stored historical parameters associated with the priority parameter to obtain an updated priority parameter set;
    向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数。The priority parameter is sent to each second voice device belonging to the same group network as the first voice device.
  2. 如权利要求1所述的方法,其中,所述优先级参数包括以下至少一项:语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别。The method of claim 1, wherein the priority parameter includes at least one of the following: a direct sound energy threshold of a voice wake-up instruction, a priority level of the voice device in a playback state and a priority level in a mute state. .
  3. 如权利要求1所述的方法,其中,所述优先级参数包括:优先级策略版本号。The method of claim 1, wherein the priority parameter includes: a priority policy version number.
  4. 如权利要求1所述的方法,其中,在所述基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集之后,还包括:The method of claim 1, wherein after updating the stored historical parameters associated with the priority parameters based on the priority parameters to obtain an updated priority parameter set, further include:
    在接收到语音唤醒指令的情况下,确定所述语音唤醒指令中直达声能量值及所述第一语音设备在接收到所述语音唤醒指令时的工作状态;When a voice wake-up command is received, determine the direct sound energy value in the voice wake-up command and the working state of the first voice device when receiving the voice wake-up command;
    基于所述更新后的优先级参数集,确定所述直达声能量值对应的第一特征值及所述工作状态对应的第二特征值,其中,所述第一特征值用于表征所述直达声能量值当前对应的优先级级别,所述第二特征值用于表征所述工作状态当前对应的优先级级别;Based on the updated priority parameter set, a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value. The priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
    基于所述第一特征值及所述第二特征值,确定所述第一语音设备对应的第三特征值,其中,所述第三特征值用于表征所述第一语音设备当前对应的优先级级别。Based on the first characteristic value and the second characteristic value, a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
  5. 如权利要求1所述的方法,其中,在向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数之后,还包括:The method of claim 1, wherein, after sending the priority parameter to each second voice device belonging to the same group network as the first voice device, further comprising:
    接收所述第二语音设备发送的第四特征值,其中,所述第四特征值用于表征所述第二语音设备在接收到语音唤醒指令的情况下,基于所述优先级参数确定出的优先级级别;Receive a fourth characteristic value sent by the second voice device, wherein the fourth characteristic value is used to characterize the second voice device determined based on the priority parameter when receiving a voice wake-up instruction. priority level;
    基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备。Based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, a voice device that responds to the voice wake-up instruction is determined from the first voice device and the second voice device. .
  6. 如权利要求5所述的方法,其中,所述基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备,包括:The method of claim 5, wherein based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, from the first voice device and the second voice device, Determine the voice device that responds to the voice wake-up command, including:
    将所述第三特征值及所述第四特征值中最高特征值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备;或者,Determine the voice device corresponding to the highest feature value among the third feature value and the fourth feature value as the voice device that responds to the voice wake-up instruction; or,
    在最高特征值有多个的情况下,将所述多个最高特征值中所述语音唤醒指令中最高直达声能量值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备。In the case where there are multiple highest characteristic values, the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
  7. 如权利要求1-6任一所述的方法,其中,在所述向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数之后,还包括:The method according to any one of claims 1 to 6, wherein after sending the priority parameter to each second voice device belonging to the same group network as the first voice device, it further includes:
    在所述优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,向每个所述第二语音设备再次发送所述优先级参数。Within a preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, the priority parameter is sent again to each second voice device.
  8. 如权利要求7所述的方法,其中,所述向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数,包括:The method of claim 7, wherein sending the priority parameter to each second voice device belonging to the same network as the first voice device includes:
    确定所述更新后的优先级参数集对应的优先级策略版本号;Determine the priority policy version number corresponding to the updated priority parameter set;
    向每个所述第二语音设备发送所述更新后的优先级参数集及对应的优先级策略版本号。Send the updated priority parameter set and the corresponding priority policy version number to each of the second voice devices.
  9. 一种唤醒优先级的更新装置,配置在第一语音设备侧,所述装置包括:A wake-up priority update device, configured on the first voice device side, the device includes:
    解析模块,用于获取服务器发送的优先级策略更新指令,其中,所述优先级策略更新指令包括优先级参数,所述优先级策略用于在所述第一语音设备获取到语音唤醒指令时判断是否对所述语音唤醒指令进行应答;A parsing module configured to obtain a priority policy update instruction sent by the server, where the priority policy update instruction includes a priority parameter, and the priority policy is used to determine when the first voice device obtains a voice wake-up instruction. Whether to respond to the voice wake-up command;
    更新模块,用于基于所述优先级参数,对已存储的与所述优先级参数关联的历史参数进行更新,以获取更新后的优先级参数集;An update module, configured to update the stored historical parameters associated with the priority parameter based on the priority parameter to obtain an updated priority parameter set;
    发送模块,用于向与所述第一语音设备属于同一组网内的每个第二语音设备发送所述优先级参数。A sending module, configured to send the priority parameter to each second voice device belonging to the same network as the first voice device.
  10. 如权利要求9所述的装置,其中,所述优先级参数包括以下至少一项:语音唤醒指令的直达声能量阈值、语音设备在播放状态下的优先级级别和在静音状态下的优先级级别。The device of claim 9, wherein the priority parameter includes at least one of the following: a direct sound energy threshold of a voice wake-up instruction, a priority level of the voice device in a playback state and a priority level in a mute state. .
  11. 如权利要求9所述的装置,其中,所述优先级参数包括:优先级策略版本号。The apparatus of claim 9, wherein the priority parameter includes: a priority policy version number.
  12. 如权利要求9所述的装置,其中,还包括第一确定模块,用于:The device of claim 9, further comprising a first determining module for:
    在接收到语音唤醒指令的情况下,确定所述语音唤醒指令到达所述第一语音设备时的直达声能量值及所述第一语音设备在接收到所述语音唤醒指令时的工作状态;When a voice wake-up command is received, determine the direct sound energy value when the voice wake-up command reaches the first voice device and the working state of the first voice device when the voice wake-up command is received;
    基于所述更新后的优先级参数集,确定所述直达声能量值对应的第一特征值及所述工作状态对应的第二特征值,其中,所述第一特征值用于表征所述直达声能量值当前对应的优先级级别,所述第二特征值用于表征所述工作状态当前对应的优先级级别;Based on the updated priority parameter set, a first characteristic value corresponding to the direct sound energy value and a second characteristic value corresponding to the working state are determined, wherein the first characteristic value is used to characterize the direct sound energy value. The priority level currently corresponding to the sound energy value, and the second characteristic value is used to characterize the priority level currently corresponding to the working state;
    基于所述第一特征值及所述第二特征值,确定所述第一语音设备对应的第三特征值,其中,所述第三特征值用于表征所述第一语音设备当前对应的优先级级别。Based on the first characteristic value and the second characteristic value, a third characteristic value corresponding to the first voice device is determined, wherein the third characteristic value is used to characterize the current priority corresponding to the first voice device. grade level.
  13. 如权利要求12所述的装置,其中,还包括:The device of claim 12, further comprising:
    接收模块,用于接收所述第二语音设备发送的第四特征值,其中,所述第四特征值用于表征所述第二语音设备在接收到语音唤醒指令的情况下,基于所述优先级参数确定出的优先级级别;A receiving module, configured to receive a fourth characteristic value sent by the second voice device, wherein the fourth characteristic value is used to characterize the second voice device based on the priority when receiving a voice wake-up instruction. The priority level determined by the level parameter;
    第二确定模块,用于基于所述第四特征值及所述第一语音设备对应的第三特征值,从所述第一语音设备及所述第二语音设备中,确定出对所述语音唤醒指令进行响应的语音设备。A second determination module, configured to determine, based on the fourth characteristic value and the third characteristic value corresponding to the first voice device, the first voice device and the second voice device, which is suitable for the voice device. A voice device that wakes up in response to a command.
  14. 如权利要求13所述的装置,其中,所述第二确定模块,具体用于:The device according to claim 13, wherein the second determination module is specifically used to:
    将所述第三特征值及所述第四特征值中最高特征值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备;或者,Determine the voice device corresponding to the highest feature value among the third feature value and the fourth feature value as the voice device that responds to the voice wake-up instruction; or,
    在最高特征值有多个的情况下,将所述多个最高特征值中所述语音唤醒指令中最高直达声能量值对应的语音设备,确定为对所述语音唤醒指令进行响应的语音设备。In the case where there are multiple highest characteristic values, the voice device corresponding to the highest direct sound energy value in the voice wake-up command among the multiple highest feature values is determined as the voice device that responds to the voice wake-up command.
  15. 如权利要求9-14任一所述的装置,其中,所述发送模块,还用于:The device according to any one of claims 9-14, wherein the sending module is also used for:
    在所述优先级参数发送后的预设时长内,未接收到任一第二语音设备返回的确认消息,向每个所述第二语音设备再次发送所述优先级参数。Within a preset time period after the priority parameter is sent, if no confirmation message is received from any second voice device, the priority parameter is sent again to each second voice device.
  16. 如权利要求15所述的装置,其中,所述发送模块,具体用于:The device according to claim 15, wherein the sending module is specifically used for:
    确定所述更新后的优先级参数集对应的优先级策略版本号;Determine the priority policy version number corresponding to the updated priority parameter set;
    向每个所述第二语音设备发送所述更新后的优先级参数集及对应的优先级策略版本号。Send the updated priority parameter set and the corresponding priority policy version number to each of the second voice devices.
  17. 一种电子设备,其中,包括:An electronic device, including:
    处理器;processor;
    用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions for the processor;
    其中,所述处理器被配置为调用并执行所述存储器存储的可执行指令,以实现如权利要求1-8中任一项所述的唤醒优先级的更新方法。Wherein, the processor is configured to call and execute executable instructions stored in the memory to implement the method for updating the wake-up priority as described in any one of claims 1-8.
  18. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1-8中任一项所述的唤醒优先级的更新方法。A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the wake-up priority as described in any one of claims 1-8 Update method.
PCT/CN2022/099622 2022-06-17 2022-06-17 Method and apparatus for updating wake-up priority WO2023240649A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/099622 WO2023240649A1 (en) 2022-06-17 2022-06-17 Method and apparatus for updating wake-up priority
CN202280004240.1A CN117598016A (en) 2022-06-17 2022-06-17 Wakeup priority updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099622 WO2023240649A1 (en) 2022-06-17 2022-06-17 Method and apparatus for updating wake-up priority

Publications (1)

Publication Number Publication Date
WO2023240649A1 true WO2023240649A1 (en) 2023-12-21

Family

ID=89192919

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099622 WO2023240649A1 (en) 2022-06-17 2022-06-17 Method and apparatus for updating wake-up priority

Country Status (2)

Country Link
CN (1) CN117598016A (en)
WO (1) WO2023240649A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132282A (en) * 2018-11-01 2020-05-08 华为终端有限公司 Application processor awakening method and device applied to mobile terminal
CN111128155A (en) * 2019-12-05 2020-05-08 珠海格力电器股份有限公司 Awakening method, device, equipment and medium for intelligent equipment
CN112201242A (en) * 2020-09-29 2021-01-08 北京小米移动软件有限公司 Method and device for waking up equipment, electronic equipment and storage medium
CN112445147A (en) * 2020-11-24 2021-03-05 深圳市欧瑞博科技股份有限公司 Awakening method, system and device of intelligent equipment, electronic equipment and storage medium
US20220044685A1 (en) * 2019-04-26 2022-02-10 Guangdong Midea White Home Appliance Technology Innovation Center Co., Ltd. Voice Recognition Device, Waking-Up and Responding Method of the Same, and Computer Storage Medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132282A (en) * 2018-11-01 2020-05-08 华为终端有限公司 Application processor awakening method and device applied to mobile terminal
US20220044685A1 (en) * 2019-04-26 2022-02-10 Guangdong Midea White Home Appliance Technology Innovation Center Co., Ltd. Voice Recognition Device, Waking-Up and Responding Method of the Same, and Computer Storage Medium
CN111128155A (en) * 2019-12-05 2020-05-08 珠海格力电器股份有限公司 Awakening method, device, equipment and medium for intelligent equipment
CN112201242A (en) * 2020-09-29 2021-01-08 北京小米移动软件有限公司 Method and device for waking up equipment, electronic equipment and storage medium
CN112445147A (en) * 2020-11-24 2021-03-05 深圳市欧瑞博科技股份有限公司 Awakening method, system and device of intelligent equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117598016A (en) 2024-02-23

Similar Documents

Publication Publication Date Title
US11282520B2 (en) Method, apparatus and device for interaction of intelligent voice devices, and storage medium
US11800002B2 (en) Audio data routing between multiple wirelessly connected devices
US9666190B2 (en) Speech recognition using loosely coupled components
JP2019204103A (en) Wake-up method for voice smart device, wake-up apparatus therefor, smart device, and computer-readable storage medium
WO2018133307A1 (en) Method and terminal for implementing voice control
CN107731231B (en) Method for supporting multi-cloud-end voice service and storage device
US20190229945A1 (en) Device control system, device control method, and non-transitory computer readable storage medium
US11875085B2 (en) Audio rendering device and audio configurator device for audio stream selection, and related methods
US9386613B2 (en) Wireless network system and connecting method thereof
US11398233B2 (en) Smart service method, apparatus and device
CN113573172A (en) Dual-device audio playing method and device, electronic device and storage medium
CN110086941B (en) Voice playing method and device and terminal equipment
CN112188342A (en) Equalization parameter determination method and device, electronic equipment and storage medium
CN113012695B (en) Intelligent control method and device, electronic equipment and computer readable storage medium
WO2023240649A1 (en) Method and apparatus for updating wake-up priority
US11948565B2 (en) Combining device or assistant-specific hotwords in a single utterance
CN111435318A (en) Dex optimization method of application program and terminal
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
CN114465837B (en) Collaborative wake-up processing method and device for intelligent voice equipment
US20220215835A1 (en) Evaluating user device activations
US11418839B2 (en) Automatic media control
WO2021169585A1 (en) Method for arbitration between devices in local area network environment, electronic devices, and local area network system
CN113411796A (en) Audio transmission system, method and storage medium for group-by-group Bluetooth device
CN113342759A (en) Content sharing method, device, equipment and storage medium
US11109209B2 (en) Bluetooth device, method of operating bluetooth device, and non-transitory computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22946330

Country of ref document: EP

Kind code of ref document: A1