CN117877474A - Response method and device for controlling voice, storage medium and electronic device - Google Patents

Response method and device for controlling voice, storage medium and electronic device Download PDF

Info

Publication number
CN117877474A
CN117877474A CN202311819403.4A CN202311819403A CN117877474A CN 117877474 A CN117877474 A CN 117877474A CN 202311819403 A CN202311819403 A CN 202311819403A CN 117877474 A CN117877474 A CN 117877474A
Authority
CN
China
Prior art keywords
target
test
playing
equipment
control voice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311819403.4A
Other languages
Chinese (zh)
Inventor
张燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202311819403.4A priority Critical patent/CN117877474A/en
Publication of CN117877474A publication Critical patent/CN117877474A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a response method and device for control voice, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the response method for control voice comprises the following steps: setting corresponding playing states for a plurality of test devices in a target area; under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices; and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice. By adopting the scheme, the problem of poor testing flexibility when testing the response effect of the voice control household appliance in the prior art is solved.

Description

Response method and device for controlling voice, storage medium and electronic device
Technical Field
The present application relates to the technical field of smart home, and in particular, to a method and apparatus for controlling voice response, a storage medium, and an electronic apparatus.
Background
When the home appliance is controlled by voice, aiming at partial users, the home space (room/floor) is complex, and under the condition that the number of home binding devices is large, if the user voice is sent to play the control type intention and the device is not clear, which device can be selected to execute according to the current playing state of the device under the user account, for example: the user's family living room has audio amplifier, background music, bedroom has air conditioner, kitchen has refrigerator etc. only background music is playing music at present, and the user says the music of closing the living room to audio amplifier, and current living room only background music is in the play music state, so select living room background music to carry out closing music.
Aiming at the requirements, according to the user speaking, inquiring a device list and a playing state under the home, verifying the correctness of the selected executing device, and binding different devices and changing the playing state of the devices to simulate different scenes in the traditional test.
Aiming at the problem of poor testing flexibility when testing the response effect of the voice control household appliance in the related technology, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a response method and device for controlling voice, a storage medium and an electronic device, so as to at least solve the problem of poor testing flexibility when testing the response effect of voice-controlled household appliances.
According to an embodiment of the present application, there is provided a response method for controlling voice, including: setting corresponding playing states for a plurality of test devices in a target area; under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices; and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice.
Optionally, setting corresponding playing states for the plurality of test devices in the target area includes: determining play status fields set for interface parameters of the plurality of test devices, wherein different values of the play status fields are used for indicating different play statuses; and setting playing state fields of the plurality of test devices according to the to-be-performed test scene of the target area so as to set corresponding playing states for the plurality of test devices.
Optionally, determining that the playing state is the playing target test device from the device list includes: determining a play event indicated by the control voice; screening a first device set supporting the play event from the device list; and determining that the playing state is the playing target test equipment from the first equipment set.
Optionally, determining that the playing state is the playing target test device from the device list includes: determining a target subarea where the target object is currently located, wherein the target subarea comprises: a plurality of target subregions; screening a second device set from the device list, wherein the second device set comprises: a device identification of the test device located in the target sub-region; and determining that the playing state is the playing target test equipment from the second equipment set.
Optionally, after determining that the playing state is the playing target test device from the device list, the method further includes: under the condition that a plurality of target test devices are screened according to the device list, determining the accumulated time for playing the multimedia resources by the plurality of target test devices, wherein the multimedia resources are the multimedia resources being played by the target test devices; and determining the target test equipment with the longest accumulated time as the target test equipment responding to the control voice.
Optionally, before setting the corresponding playing states for the plurality of test devices in the target area, the method further includes: acquiring a test scene to be performed in the target area; setting test parameters of the target area according to the test scene, wherein the test parameters comprise at least one of the following: the device list comprises a device identifier, playing states of the plurality of test devices and a plurality of target subareas contained in the target area.
Optionally, after controlling the target test device to respond to the control voice, the method further includes: and directly controlling the target test equipment in the equipment list to respond to the control voice under the condition that the test scene of the target area is not changed and the control voice is received again.
According to another embodiment of the present application, there is provided a response device for controlling voice, including: the setting module is used for setting corresponding playing states for a plurality of test devices in the target area; the device comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring a device list corresponding to a target area under the condition that a target object sends out control voice and the control voice does not indicate test devices to be responded to the control voice, and the device list comprises: device identifications of the plurality of test devices; and the response module is used for determining the playing state as the playing target test equipment from the equipment list and controlling the target test equipment to respond to the control voice.
According to yet another embodiment of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described response method of controlling speech when run.
According to yet another embodiment of the present application, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above-mentioned response method for controlling voice through the computer program.
In the embodiment of the application, corresponding playing states are set for a plurality of test devices in a target area; under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices; and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice. By adopting the scheme, the problem of poor testing flexibility when testing the response effect of the voice control household appliance in the prior art is solved, and the technical effect of improving testing flexibility and efficiency is achieved because the playing state can be flexibly set.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an alternative method of controlling voice response in accordance with an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of controlling the response of speech according to an embodiment of the present application;
FIG. 3 is an alternative interface parameter illustration in accordance with an embodiment of the present application;
FIG. 4 is a schematic illustration of an alternative test flow according to an embodiment of the present application;
fig. 5 is a block diagram of an alternative speech-controlled response device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of an embodiment of the present application, a response method for controlling speech is provided. The response method of the control voice is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described response method of controlling voice may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, a refrigerator device, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a response method for controlling voice is provided, and the response method is applied to a computer terminal, and fig. 2 is a flowchart of an alternative response method for controlling voice according to an embodiment of the present application, where the flowchart includes steps S202 to S206 as follows:
step S202: setting corresponding playing states for a plurality of test devices in a target area;
as an alternative embodiment, the test device may be a device commonly found in the current smart home technology field, including but not limited to a speaker, background music, air conditioner, and refrigerator.
In an exemplary embodiment, setting corresponding playing states for a plurality of test devices in the target area may be achieved by the following steps S11-S12:
step S11: determining play status fields set for interface parameters of the plurality of test devices, wherein different values of the play status fields are used for indicating different play statuses;
as an alternative embodiment, the interface of the test equipment may be https:// air service.
As an alternative embodiment, true may be used to indicate that play is occurring, false may be used to indicate that no play is occurring.
Step S12: and setting playing state fields of the plurality of test devices according to the to-be-performed test scene of the target area so as to set corresponding playing states for the plurality of test devices.
As an alternative embodiment, assuming that the plurality of test devices are a speaker, background music, and an air conditioner, and the current test scene is that the background music is playing music, the playing state may be set as follows: sound box |false # 0002|background music |true # 0003|air conditioner|false #0004.
In an exemplary embodiment, before setting the corresponding playing states for the plurality of test devices in the target area, the following steps S21-S22 are further provided:
step S21: acquiring a test scene to be performed in the target area;
step S22: setting test parameters of the target area according to the test scene, wherein the test parameters comprise at least one of the following: the device list comprises a device identifier, playing states of the plurality of test devices and a plurality of target subareas contained in the target area.
As an optional embodiment, the test scenario may be that there are multiple binding devices in the home space of the target object, and the home space environment is complex, where the execution device is selected according to the playing state under the condition that the target object is speaking and playing the voice and controlling type is intended and the device is not clear. The test parameters corresponding to the test scene are the device identifier, the playing state of the device, and a plurality of sub-areas in the target area.
As an alternative embodiment, the device identification may be a device nickname, a device type. The plurality of sub-areas may be further divided by floor and room.
As an alternative embodiment, different scenarios may be simulated by means of interface parametrics, then parameters may be characterized as simultaneity devices = id device nickname device type |floor|room|play status| off-line status, etc.
As an alternative embodiment, assuming that the user's home living room has a sound box, background music, a bedroom has an air conditioner, a kitchen has a refrigerator, etc., and only background music is currently playing music, the test parameter may be set to "0001|sound box 1|musicbox|one layer|living room|false#0002|background music|backsegroundmusic|one layer|living room|true#0003|air conditioner|air conditioner|bedroom|false#0004|refrigerator|frequency|kitchen|false#0005.
Step S204: under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices;
step S206: and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice.
As an alternative embodiment, assuming that the control voice uttered by the target object is music for turning off the living room, the acquired device list is "0001|sound box 1|musicbox|living room|false#0002|background music|backspace music|living room|true#0003|air conditioner|air conditioner|bedroom|false#0004|refrigerator|fredge|kitchen|false#0005", and if it is determined that the device currently playing music is background music through the device list, the background music is controlled to execute the control voice, that is, the background music is turned off.
In an exemplary embodiment, determining that the playing state is the playing target test device from the device list may be implemented by the following steps S31-S33:
step S31: determining a play event indicated by the control voice;
step S32: screening a first device set supporting the play event from the device list;
step S33: and determining that the playing state is the playing target test equipment from the first equipment set.
As an alternative embodiment, assume that the instruction to control speech is music to turn off the living room, by means of natural language processing, (Natural Language Processing, abbreviated as NLP) technology. The method comprises the steps of obtaining information and play state information of each device in a device list of 0001 sound box 1|musicbox|one layer |living room|false#0002|background music|backspace group music|one layer |living room|true#0003|air conditioner|AirConditionner|one layer |bedroom|false#0004|refrigerator|fridge|one layer|kitchen|false#0005', screening out devices with music play, namely sound box 1 and background music, and further determining that target test devices currently playing music are background music.
In an exemplary embodiment, determining that the playing state is the playing target test device from the device list may further be implemented by the following steps S41-S43:
step S41: determining a target subarea where the target object is currently located, wherein the target subarea comprises: a plurality of target subregions;
step S42: screening a second device set from the device list, wherein the second device set comprises: a device identification of the test device located in the target sub-region;
step S43: and determining that the playing state is the playing target test equipment from the second equipment set.
As an alternative embodiment, assuming that the target object is in a living room of the first floor, the second device set of target test devices in the living room is a sound box 1, background music, a sound box 2, and a sound box 3, the target device being played from the second device set.
Through the steps S202-S206, corresponding playing states are set for a plurality of testing devices in the target area; under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices; and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice. The problem of the response effect when testing speech control household electrical appliances among the prior art, the test flexibility is relatively poor is solved, because the broadcast state can be set up in a flexible way, the technical effect that improves test flexibility and efficiency has been reached.
In an exemplary embodiment, after determining that the playing state is the playing target test device from the device list, the following steps S51-S52 are further provided:
step S51: under the condition that a plurality of target test devices are screened according to the device list, determining the accumulated time for playing the multimedia resources by the plurality of target test devices, wherein the multimedia resources are the multimedia resources being played by the target test devices;
step S52: and determining the target test equipment with the longest accumulated time as the target test equipment responding to the control voice.
As an alternative embodiment, assuming that the target devices are a sound box 1 and a sound box 2, which are both playing multimedia resources, the sound box 1 plays for two hours, the sound box 2 plays for 20 minutes, and the sound box 1 is determined as the target test device in the case that the control voice is the off music.
In an exemplary embodiment, after controlling the target test device to respond to the control voice, there is further the following step S61:
step S61: and directly controlling the target test equipment in the equipment list to respond to the control voice under the condition that the test scene of the target area is not changed and the control voice is received again.
As an alternative embodiment, in case the test scene of the target area is not changed and the control speech is received again, the system will automatically recognize and analyze the control speech by means of a voice recognition technique and then directly control the target test device in the device list in response to the control speech. Therefore, more intelligent control can be realized, the response speed and accuracy of the equipment are improved, and the efficiency and reliability of a test scene are improved.
As an alternative embodiment, the voice recognition algorithm can be continuously optimized by recording and analyzing the data of the control voice so as to adapt to the changes of different environments and voices, thereby further improving the accuracy and stability of the test.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention. For better understanding of the above method, the following description will explain the above process with reference to the examples, but is not intended to limit the technical solution of the embodiments of the present invention, specifically:
the embodiment of the application provides an implementation scheme for simulating different scenes through an interface parameter transmission mode. The device list and the playing state can be customized according to actual conditions. For example, as shown in the parameter explanatory diagram of fig. 3, the number of devices, the attributes of the devices (device nickname, device type, floor, room, etc.), and the play status can be customized, and the parameters are as follows: the simultaneity devices=id|device nickname|device type|floor|room|playing state|off-line state and the like, and the correctness of the selected executing device is verified by changing the parameter and calling the corresponding interface to simulate different scenes, so that the flexibility and the efficiency of testing are greatly improved.
Based on the schematic shown in fig. 3, wherein:
the interface may select: https:// aiservice. Haier. Net/dialog-system/v2/dialog, when instructed by the user: closing the music of the living room, the request parameters are defined as follows: the simultaneity devices define 4 equipment speakers, background music, air conditioner and refrigerator, divide equipment by # and divide attribute by # for each equipment, and define equipment id, nickname, equipment type, floor, room and play status respectively in turn. That is, "0001|sound box 1|musicbox|one layer|living room|false # 0002|background music|backspace|living room|true # 0003|air conditioner|air conditioner|bedroom|false # 0004|refrigerator|fridge|one layer|kitchen|false # 0005.
Fig. 4 is a schematic diagram of an alternative test flow according to an embodiment of the present application, where after the control voice is obtained, at least the parameter information is read out through NLP analysis, so as to obtain the device information and the play status information of each device, as shown in fig. 4. And acquiring a device list and a playing state under the family, and screening out devices supporting music playing. The equipment supporting music playing in the living room is selected according to the room living room, the equipment supporting music closing is selected according to the playstatus, and the equipment information for selecting and executing is described in the dev parameter of the return result, wherein the equipment information comprises equipment id 0002, nickname: background music, equipment type: background music, room: living room, floor: one layer, equipment name: background music and the like. If there is only one device playing background music in the living room, the device is controlled to stop playing the background music.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
In this embodiment, a response device for controlling voice is further provided, and the response device for controlling voice is used to implement the foregoing embodiments and preferred embodiments, which are not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 5 is a block diagram of an alternative speech-controlled response device according to an embodiment of the present application; as shown in fig. 5, includes:
a setting module 52, configured to set corresponding play states for a plurality of test devices in the target area;
the obtaining module 54 is configured to obtain a device list corresponding to the target area when the target object sends out a control voice and the control voice does not indicate a test device to be responded to the control voice, where the device list includes: device identifications of the plurality of test devices;
and the response module 56 is used for determining that the playing state is the playing target test equipment from the equipment list and controlling the target test equipment to respond to the control voice.
As an alternative embodiment, assuming that the control voice uttered by the target object is music for turning off the living room, the acquired device list is "0001|sound box 1|musicbox|living room|false#0002|background music|backspace music|living room|true#0003|air conditioner|air conditioner|bedroom|false#0004|refrigerator|fredge|kitchen|false#0005", and if it is determined that the device currently playing music is background music through the device list, the background music is controlled to execute the control voice, that is, the background music is turned off.
By the device, corresponding playing states are set for a plurality of test devices in the target area; under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices; and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice. The problem of the response effect when testing speech control household electrical appliances among the prior art, the test flexibility is relatively poor is solved, because the broadcast state can be set up in a flexible way, the technical effect that improves test flexibility and efficiency has been reached.
In an exemplary embodiment, the setting module 52 is further configured to determine a play status field set for the interface parameters of the plurality of test devices, where different values of the play status field are used to indicate different play statuses; and setting playing state fields of the plurality of test devices according to the to-be-performed test scene of the target area so as to set corresponding playing states for the plurality of test devices.
As an alternative embodiment, the interface of the test equipment may be https:// air service.
As an alternative embodiment, true may be used to indicate that play is occurring, false may be used to indicate that no play is occurring.
As an alternative embodiment, assuming that the plurality of test devices are a speaker, background music, and an air conditioner, and the current test scene is that the background music is playing music, the playing state may be set as follows: sound box |false # 0002|background music |true # 0003|air conditioner|false #0004.
In an exemplary embodiment, the response module 56 is further configured to determine a play event indicated by the control voice; screening a first device set supporting the play event from the device list; and determining that the playing state is the playing target test equipment from the first equipment set.
As an alternative embodiment, assume that the instruction to control speech is music to turn off the living room, by means of natural language processing, (Natural Language Processing, abbreviated as NLP) technology. The method comprises the steps of obtaining information and play state information of each device in a device list of 0001 sound box 1|musicbox|one layer |living room|false#0002|background music|backspace group music|one layer |living room|true#0003|air conditioner|AirConditionner|one layer |bedroom|false#0004|refrigerator|fridge|one layer|kitchen|false#0005', screening out devices with music play, namely sound box 1 and background music, and further determining that target test devices currently playing music are background music.
In an exemplary embodiment, the response module 56 is further configured to determine a target sub-area in which the target object is currently located, where the target area includes: a plurality of target subregions; screening a second device set from the device list, wherein the second device set comprises: a device identification of the test device located in the target sub-region; and determining that the playing state is the playing target test equipment from the second equipment set.
As an alternative embodiment, assuming that the target object is in a living room of the first floor, the second device set of target test devices in the living room is a sound box 1, background music, a sound box 2, and a sound box 3, the target device being played from the second device set.
In an exemplary embodiment, the apparatus further comprises: the determining module is used for determining the accumulated time of playing the multimedia resources by a plurality of target test devices under the condition that the plurality of target test devices are screened according to the device list, wherein the multimedia resources are the multimedia resources being played by the target test devices; and determining the target test equipment with the longest accumulated time as the target test equipment responding to the control voice.
As an alternative embodiment, assuming that the target devices are a sound box 1 and a sound box 2, which are both playing multimedia resources, the sound box 1 plays for two hours, the sound box 2 plays for 20 minutes, and the sound box 1 is determined as the target test device in the case that the control voice is the off music.
In an exemplary embodiment, the apparatus further comprises: the processing module is used for acquiring a test scene to be performed in the target area; setting test parameters of the target area according to the test scene, wherein the test parameters comprise at least one of the following: the device list comprises a device identifier, playing states of the plurality of test devices and a plurality of target subareas contained in the target area.
As an optional embodiment, the test scenario may be that there are multiple binding devices in the home space of the target object, and the home space environment is complex, where the execution device is selected according to the playing state under the condition that the target object is speaking and playing the voice and controlling type is intended and the device is not clear. The test parameters corresponding to the test scene are the device identifier, the playing state of the device, and a plurality of sub-areas in the target area.
As an alternative embodiment, the device identification may be a device nickname, a device type. The plurality of sub-areas may be further divided by floor and room.
As an alternative embodiment, different scenarios may be simulated by means of interface parametrics, then parameters may be characterized as simultaneity devices = id device nickname device type |floor|room|play status| off-line status, etc.
As an alternative embodiment, assuming that the user's home living room has a sound box, background music, a bedroom has an air conditioner, a kitchen has a refrigerator, etc., and only background music is currently playing music, the test parameter may be set to "0001|sound box 1|musicbox|one layer|living room|false#0002|background music|backsegroundmusic|one layer|living room|true#0003|air conditioner|air conditioner|bedroom|false#0004|refrigerator|frequency|kitchen|false#0005.
In an exemplary embodiment, the apparatus further comprises: and the control module is used for directly controlling the target test equipment in the equipment list to respond to the control voice under the condition that the test scene of the target area is not changed and the control voice is received again.
As an alternative embodiment, in case the test scene of the target area is not changed and the control speech is received again, the system will automatically recognize and analyze the control speech by means of a voice recognition technique and then directly control the target test device in the device list in response to the control speech. Therefore, more intelligent control can be realized, the response speed and accuracy of the equipment are improved, and the efficiency and reliability of a test scene are improved.
As an alternative embodiment, the voice recognition algorithm can be continuously optimized by recording and analyzing the data of the control voice so as to adapt to the changes of different environments and voices, thereby further improving the accuracy and stability of the test.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, setting corresponding playing states for a plurality of test devices in a target area;
s2, acquiring a device list corresponding to the target area under the condition that a target object sends out control voice and the control voice does not indicate test devices to be responded to the control voice, wherein the device list comprises: device identifications of the plurality of test devices;
s3, determining that the playing state is the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice.
As an alternative embodiment, assuming that the control voice uttered by the target object is music for turning off the living room, the acquired device list is "0001|sound box 1|musicbox|living room|false#0002|background music|backspace music|living room|true#0003|air conditioner|air conditioner|bedroom|false#0004|refrigerator|fredge|kitchen|false#0005", and if it is determined that the device currently playing music is background music through the device list, the background music is controlled to execute the control voice, that is, the background music is turned off.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, setting corresponding playing states for a plurality of test devices in a target area;
s2, acquiring a device list corresponding to the target area under the condition that a target object sends out control voice and the control voice does not indicate test devices to be responded to the control voice, wherein the device list comprises: device identifications of the plurality of test devices;
s3, determining that the playing state is the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice.
As an alternative embodiment, assuming that the control voice uttered by the target object is music for turning off the living room, the acquired device list is "0001|sound box 1|musicbox|living room|false#0002|background music|backspace music|living room|true#0003|air conditioner|air conditioner|bedroom|false#0004|refrigerator|fredge|kitchen|false#0005", and if it is determined that the device currently playing music is background music through the device list, the background music is controlled to execute the control voice, that is, the background music is turned off.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of controlling a response to speech, comprising:
setting corresponding playing states for a plurality of test devices in a target area;
under the condition that a target object emits control voice and the control voice does not indicate test equipment to be responded to the control voice, acquiring an equipment list corresponding to the target area, wherein the equipment list comprises: device identifications of the plurality of test devices;
and determining the playing state as the playing target test equipment from the equipment list, and controlling the target test equipment to respond to the control voice.
2. The method of claim 1, wherein setting corresponding play states for a plurality of test devices within the target area comprises:
determining play status fields set for interface parameters of the plurality of test devices, wherein different values of the play status fields are used for indicating different play statuses;
and setting playing state fields of the plurality of test devices according to the to-be-performed test scene of the target area so as to set corresponding playing states for the plurality of test devices.
3. The method of claim 1, wherein determining from the device list that the playing status is a playing target test device, comprises:
determining a play event indicated by the control voice;
screening a first device set supporting the play event from the device list;
and determining that the playing state is the playing target test equipment from the first equipment set.
4. The method of claim 1, wherein determining from the device list that the playing status is a playing target test device, comprises:
determining a target subarea where the target object is currently located, wherein the target subarea comprises: a plurality of target subregions;
screening a second device set from the device list, wherein the second device set comprises: a device identification of the test device located in the target sub-region;
and determining that the playing state is the playing target test equipment from the second equipment set.
5. The method of claim 1, wherein after determining from the device list that the playing status is the playing target test device, the method further comprises:
under the condition that a plurality of target test devices are screened according to the device list, determining the accumulated time for playing the multimedia resources by the plurality of target test devices, wherein the multimedia resources are the multimedia resources being played by the target test devices;
and determining the target test equipment with the longest accumulated time as the target test equipment responding to the control voice.
6. The method of claim 1, wherein prior to setting the respective play states for the plurality of test devices within the target area, the method further comprises:
acquiring a test scene to be performed in the target area;
setting test parameters of the target area according to the test scene, wherein the test parameters comprise at least one of the following: the device list comprises a device identifier, playing states of the plurality of test devices and a plurality of target subareas contained in the target area.
7. The method of claim 1, wherein after controlling the target test device in response to the control voice, the method further comprises:
and directly controlling the target test equipment in the equipment list to respond to the control voice under the condition that the test scene of the target area is not changed and the control voice is received again.
8. A speech-controlled response device, comprising:
the setting module is used for setting corresponding playing states for a plurality of test devices in the target area;
the device comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring a device list corresponding to a target area under the condition that a target object sends out control voice and the control voice does not indicate test devices to be responded to the control voice, and the device list comprises: device identifications of the plurality of test devices;
and the response module is used for determining the playing state as the playing target test equipment from the equipment list and controlling the target test equipment to respond to the control voice.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202311819403.4A 2023-12-26 2023-12-26 Response method and device for controlling voice, storage medium and electronic device Pending CN117877474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311819403.4A CN117877474A (en) 2023-12-26 2023-12-26 Response method and device for controlling voice, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311819403.4A CN117877474A (en) 2023-12-26 2023-12-26 Response method and device for controlling voice, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117877474A true CN117877474A (en) 2024-04-12

Family

ID=90580475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311819403.4A Pending CN117877474A (en) 2023-12-26 2023-12-26 Response method and device for controlling voice, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117877474A (en)

Similar Documents

Publication Publication Date Title
CN113111199B (en) Method and device for continuing playing of multimedia resource, storage medium and electronic device
CN114755931A (en) Control instruction prediction method and device, storage medium and electronic device
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN117877474A (en) Response method and device for controlling voice, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
CN116155637A (en) Equipment control method, device, storage medium and electronic device
CN115472175A (en) Echo cancellation method and device for audio resource, storage medium and electronic device
CN116450080A (en) Interactive capability determining method and device, storage medium and electronic device
CN116364079A (en) Equipment control method, device, storage medium and electronic device
CN117008865A (en) Play setting method and device, storage medium and electronic device
CN115473755A (en) Control method and device of intelligent equipment based on digital twins
CN115171699A (en) Wake-up parameter adjusting method and device, storage medium and electronic device
CN115472148A (en) Method and device for determining test result, storage medium and electronic device
CN117376042A (en) Functional platform configuration method and device of intelligent equipment and electronic device
CN115171676A (en) Method and device for determining intention behavior, storage medium and electronic device
CN116545791A (en) Parameter adjustment method and device, storage medium and electronic device
CN117912492A (en) Evaluation method and device for equipment rejection rate
CN116301511A (en) Equipment interaction method and device, storage medium and electronic device
CN114999494A (en) Voice interaction function testing method and device, storage medium and electronic device
CN115148203A (en) Pickup calibration method, pickup calibration device, nonvolatile storage medium and electronic equipment
CN116959416A (en) Voice wakeup testing method, storage medium and electronic device

Legal Events

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