Voice control method and device, equipment and storage medium
By adjusting the broadcasting method according to the distance between the user and the home appliances and the voice and audio type, the problem of users not paying attention to voice broadcasting in time when the distance is too far is solved, and more efficient user notifications and better user experience are achieved.
Patent Information
- Application Number
- CN202311387284.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, when the user is too far from home appliances, the voice broadcast time is short, which may cause the user to fail to notice the broadcast in time and be unable to respond in time.
According to the distance between the user and the device end and the type of voice audio broadcast, the broadcast method of this voice audio is determined, including short broadcast, repeated broadcast and long broadcast, to ensure that the user can receive important information in a timely manner.
By adjusting the broadcast method, avoiding the user's attention due to improper broadcast time, allowing users to respond in a timely manner and improve their user experience.
Smart Images

Figure CN119889303A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of smart home appliances, and specifically relates to a voice control method, device, equipment and storage medium. Background Art
[0002] When a home appliance stops running or fails, the user will be notified by voice broadcast. If the user is not around the home appliance at this time, the voice broadcast will not be received, and it will be impossible to respond in time.
[0003] In the prior art, in the face of the problem that users cannot obtain voice broadcasts due to distance, a common method is to adjust the volume of the broadcast according to the distance between the user and the home appliance, so that the user can hear the voice broadcast from the home appliance in time at a distance.
[0004] However, the above method only broadcasts once. When the user is too far away from the home appliance, the user may not notice the voice broadcast due to the short broadcast time, making it impossible for the user to respond in time. Summary of the invention
[0005] In order to solve the above problems in the prior art, the present application provides a voice control method, apparatus, device and storage medium.
[0006] In a first aspect, the present application provides a voice control method, the method comprising:
[0007] When the device needs voice broadcast, the distance between the user and the device is obtained, wherein the device is a smart device with voice interaction function;
[0008] Determining whether the user is within a preset range of the device according to the distance;
[0009] According to the judgment result, the broadcasting mode of the device end is determined, and the device end is controlled to broadcast the voice audio according to the broadcasting mode.
[0010] In a possible implementation manner, determining the broadcast mode of the device end this time according to the judgment result includes:
[0011] If the user is within the preset range of the device, the broadcast mode of the device is determined to be a short broadcast, wherein the short broadcast is used to broadcast the audio indicating the status of the device in the voice audio once;
[0012] If the user is not within the preset range of the device, the type of the voice audio to be broadcasted is obtained, and if the type is a prompt type, the broadcast mode of the device is determined to be repeated broadcast;
[0013] If the user is not within the preset range of the device, and the type is a fault type, the duration of the voice audio is obtained, and the broadcast mode of the device is determined according to the duration.
[0014] In a possible implementation manner, determining the broadcast mode of the device end according to the duration includes:
[0015] If the duration is greater than or equal to the duration threshold, it is determined that the broadcast mode of the device end is a long broadcast, wherein the long broadcast is used to broadcast the voice audio in a single complete broadcast;
[0016] If the duration is less than the duration threshold, it is determined that the broadcast mode of the device end this time is the repeated broadcast.
[0017] In a possible implementation manner, the control device end broadcasts the voice audio according to the broadcasting mode, including:
[0018] If the broadcast mode is repeated broadcast, the number of broadcasts is determined according to the duration and the duration threshold, and the voice audio is repeatedly broadcast according to the number of broadcasts;
[0019] If the broadcast mode is the short broadcast, the voice audio is split into a status audio sub-audio and a prompt audio sub-audio, and the device end is controlled to broadcast the status audio sub-audio once;
[0020] If the broadcast mode is the long broadcast, the control device end broadcasts the voice audio once.
[0021] In a possible implementation manner, determining the number of broadcast times according to the duration and the duration threshold includes:
[0022] The quotient of the duration threshold and the duration is obtained, the quotient is rounded up to obtain a candidate broadcast number of times, and the broadcast number of times is obtained according to the size of the candidate broadcast number of times.
[0023] In a possible implementation manner, obtaining the number of broadcasts according to the size of the candidate number of broadcasts includes:
[0024] If the candidate broadcast number is equal to 1, then determine the broadcast number to be 2;
[0025] If the candidate broadcast number is greater than or equal to 2, the broadcast number is determined to be the candidate broadcast number.
[0026] In a possible implementation manner, before the control device end broadcasts the voice audio in the broadcasting manner, the method includes:
[0027] Receive the user status sent by the user end, and if the status is active, control the device end to broadcast the voice audio according to the broadcasting method;
[0028] If the state is inactive, the new state sent by the user end is continuously received until the new state is active, then the receiving is stopped and the device end is controlled to broadcast the voice audio in the broadcasting manner.
[0029] In a second aspect, the present application provides a voice control device based on human body sensing, comprising: an acquisition module, a judgment module and a control module, wherein:
[0030] The acquisition module is used to acquire the distance between the user and the device when the device needs voice broadcast, wherein the device is a smart device with voice interaction function;
[0031] The judging module is used to judge whether the user is within a preset range of the device according to the distance;
[0032] The control module is used to determine the broadcasting mode of the device end this time according to the judgment result, and control the device end to broadcast the voice audio according to the broadcasting mode.
[0033] In a possible implementation manner, the determination module is further configured to:
[0034] If the user is within the preset range of the device, the broadcast mode of the device is determined to be a short broadcast, wherein the short broadcast is used to broadcast the audio indicating the status of the device in the voice audio once;
[0035] If the user is not within the preset range of the device, the type of the voice audio to be broadcasted is obtained, and if the type is a prompt type, the broadcast mode of the device is determined to be repeated broadcast;
[0036] If the user is not within the preset range of the device and the type is a fault type, the duration of the voice audio is obtained, and the broadcast mode of the device is determined according to the duration.
[0037] In a possible implementation manner, the determination module is further configured to:
[0038] If the duration is greater than or equal to the duration threshold, it is determined that the broadcast mode of the device end is a long broadcast, wherein the long broadcast is used to broadcast the voice audio in a single complete broadcast;
[0039] If the duration is less than the duration threshold, it is determined that the broadcast mode of the device end this time is the repeated broadcast.
[0040] In a possible implementation manner, the control module is further used to:
[0041] If the broadcast mode is repeated broadcast, the number of broadcasts is determined according to the duration and the duration threshold, and the voice audio is repeatedly broadcast according to the number of broadcasts;
[0042] If the broadcast mode is the short broadcast, the voice audio is split into a status audio sub-audio and a prompt audio sub-audio, and the device end is controlled to broadcast the status audio sub-audio once;
[0043] If the broadcast mode is the long broadcast, the control device end broadcasts the voice audio once.
[0044] In a possible implementation manner, the acquisition module is further used to:
[0045] The quotient of the duration threshold and the duration is obtained, the quotient is rounded up to obtain a candidate broadcast number of times, and the broadcast number of times is obtained according to the size of the candidate broadcast number of times.
[0046] In a possible implementation manner, the acquisition module is further used to:
[0047] If the candidate broadcast number is equal to 1, then determine the broadcast number to be 2;
[0048] If the candidate broadcast number is greater than or equal to 2, the broadcast number is determined to be the candidate broadcast number.
[0049] In a possible implementation manner, the control module is further used to:
[0050] Receive the user status sent by the user end, and if the status is active, control the device end to broadcast the voice audio according to the broadcasting method;
[0051] If the state is inactive, the new state sent by the user end is continuously received until the new state is active, then the receiving is stopped and the device end is controlled to broadcast the voice audio in the broadcasting manner.
[0052] In a third aspect, the present application further provides an electronic device, comprising: at least one processor and a memory, wherein:
[0053] The memory is used to store computer-executable instructions;
[0054] The at least one processor is used to execute the computer-executable instructions stored in the memory, so that the at least one processor executes the voice control method as described in any one of the first aspects.
[0055] In a fourth aspect, the present application further provides a computer storage medium, wherein the computer storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the voice control method as described in any one of the first aspects.
[0056] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, can implement the steps of the voice control method as described in any of the above items.
[0057] The present application provides a voice control method, device, equipment and storage medium. When the device has a voice broadcast demand, the broadcast mode of the voice audio is determined according to the distance between the user and the device, and the type of the voice audio to be broadcast, and the broadcast is performed according to the broadcast mode. Through the above method, the home appliance can control the length of the broadcast audio according to the distance between the user and the device, avoiding the user's failure to pay attention due to inappropriate broadcast time, so that the user cannot respond in time, and at the same time improves the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0059] Figure 1 A flow chart of a voice control method provided in an embodiment of the present application Figure 1 ;
[0060] Figure 2 A flow chart of a voice control method provided in an embodiment of the present application Figure 2 ;
[0061] Figure 3 A flow chart of a voice control method provided in an embodiment of the present application Figure 3 ;
[0062] Figure 4 A schematic diagram of the structure of a voice control device based on human body sensing provided in an embodiment of the present application;
[0063] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0064] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0067] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0068] When a home appliance fails or stops running, it will notify the user through voice broadcast. However, if the user is not around the device, the broadcast sound may not be heard. The existing technology adjusts the broadcast volume of the device according to the distance between the user and the device.
[0069] However, the above method only broadcasts once. When the user is too far away from the home appliance, the user may not notice the voice broadcast due to the short broadcast time, making it impossible for the user to respond in time.
[0070] The present application provides a voice control method. When a device needs to broadcast a voice, the broadcast mode of the voice audio is determined according to the distance between the user and the device and the type of the voice audio to be broadcast, and the voice is broadcast according to the broadcast mode. Through the above method, the home appliance can control the length of the broadcast audio according to the distance between the user and the device, avoiding the user's failure to pay attention due to inappropriate broadcast time, so that the user cannot respond in time, and at the same time improves the user's experience.
[0071] Next, the technical solution shown in the present application is described in detail through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.
[0072] Figure 1A flow chart of a voice control method provided in an embodiment of the present application Figure 1 .like Figure 1 As shown, the method includes:
[0073] S101. When a device needs voice broadcast, obtain the distance between the user and the device, wherein the device is a smart device with a voice interaction function.
[0074] In this step, the traditional voice broadcast method only broadcasts once. If the user is close and the broadcast voice audio is too long, the user may not be able to obtain key information from the voice audio. If the distance between the user and the device is too far and the broadcast voice audio is short, the user may not notice the voice audio in time, so that the user cannot react in time. Therefore, in order to avoid the above situation, this embodiment adjusts the length of the broadcast time according to the distance between the user and the device.
[0075] Specifically, when it is determined that the device has a need for voice broadcast, the distance between the user and the device is obtained. This embodiment does not limit the method of obtaining the distance between the user and the device.
[0076] Exemplarily, an infrared device may be installed outside the device end, and the distance between the user and the device end may be acquired through the infrared device.
[0077] S102: Determine whether the user is within a preset range of the device according to the distance.
[0078] In this step, the voice audio is used to indicate the device status and user operation prompts.
[0079] When the device is finished running, it will inform the user of the device status, and when a fault occurs on the device, it will inform the user through voice broadcast and provide operation prompts. For example, when the washing machine finishes washing, the voice audio broadcast of the washing machine is: "The washing is finished, please take out the clothes in time."
[0080] S103: Determine the broadcasting mode of the device end this time according to the judgment result, and control the device end to broadcast the voice audio according to the broadcasting mode.
[0081] In this step, in order to ensure that the time of the voice audio does not affect the prompt information broadcast by the device end to the user, it is necessary to determine whether the time of the broadcast voice audio needs to be adjusted based on the judgment result of whether the user is within the preset range of the device end.
[0082] For example, when the broadcasting time needs to be shortened, only part of the voice audio content is broadcast; if the broadcasting time needs to be extended, only the voice audio needs to be broadcast repeatedly.
[0083] Furthermore, since the type of voice audio broadcasted by the device will affect the duration of the voice audio, if the broadcast is repeated directly when the user is not within the preset range of the device, the broadcast time may be too long to disturb the user, thereby affecting the user's experience. Therefore, it is also necessary to obtain the type of voice audio broadcasted, and comprehensively determine whether the user is within the preset range of the device and the type of voice audio to obtain the broadcast mode of the device this time.
[0084] In a possible implementation, since the user may be in a do not disturb state at home, in order to further enhance the user's experience, it is necessary to avoid broadcasting voice audio when the user is in the do not disturb state. The specific operation is:
[0085] Receive the user status sent by the user end, and if the status is active, control the device end to broadcast the voice audio according to the broadcasting method;
[0086] If the state is inactive, the new state sent by the user end is continuously received until the new state is active, then the receiving is stopped and the device end is controlled to broadcast the voice audio in the broadcasting manner.
[0087] The present application provides a voice control method. When a device needs to broadcast a voice, the broadcast mode of the voice audio is determined according to the distance between the user and the device and the type of the voice audio to be broadcast, and the voice is broadcast according to the broadcast mode. Through the above method, the home appliance can control the length of the broadcast audio according to the distance between the user and the device, avoiding the user's failure to pay attention due to inappropriate broadcast time, so that the user cannot respond in time, and at the same time improves the user's experience.
[0088] Figure 2 A flow chart of a voice control method provided in an embodiment of the present application Figure 2 The embodiment of the present application provides a detailed description of the steps of obtaining the broadcast mode of the device end according to the judgment result and type. Figure 2 As shown, the method includes:
[0089] S201. Determine whether the user is within a preset range of the device according to the distance between the user and the device, and obtain the type of the voice audio to be broadcast.
[0090] In this step, the broadcast mode of the device segment needs to be determined based on whether the user is within the preset range of the device and the type of the voice audio broadcast. Therefore, when the device determines that there is a need for voice broadcast, the distance between the user and the device is obtained, and the distance is used to determine whether the user is within the preset range of the device. At the same time, the type of the voice audio broadcast is obtained.
[0091] Furthermore, the type of voice audio is prompt type or fault type. The prompt type voice audio is used to inform the user of the device status of the device end, for example, "The device has completed operation, please take out the clothes." The fault type voice audio is used to inform the user that the device has a fault and needs to be handled in time.
[0092] S202: If the user is within the preset range of the device, determine that the broadcast mode of the device is a short broadcast.
[0093] In this step, the short broadcast is used to broadcast the audio indicating the status of the device end in the voice audio once.
[0094] When the user is within the preset range of the device, that is, the distance between the user and the device is close, the user is very likely to notice the sounds around him, so there is no need to make the voice broadcast longer. And if the voice audio is long, the user may miss the voice audio broadcast by the device if he is far away from the device. Therefore, when it is determined that the distance between the device and the user is close, the time of the voice audio broadcast is shortened.
[0095] Furthermore, the voice audio content includes content indicating the status of the device and content for prompting the user. Generally, the content indicating the status of the device is shorter than the audio corresponding to the content prompting the user. Therefore, in order to avoid the user not capturing the important content of the voice audio due to the long broadcast time, only the audio corresponding to the device status is broadcast. The specific operation is as follows:
[0096] The voice audio is split into a status audio component and a prompt audio component, and the device end is controlled to broadcast the status audio component once.
[0097] For example, when the user is within the preset range of the device, the voice audio is "The device has completed operation, please take out the clothes inside". It is split into the status audio "The device has completed operation" and the prompt audio "Please take out the clothes inside". The control device only broadcasts the status audio "The device has completed operation" once.
[0098] S203: If the user is not within the preset range of the device, the type of the voice audio to be broadcasted is obtained. If the type is a prompt type, the broadcast mode of the device is determined to be repeated broadcast.
[0099] In this step, when the user is not within the preset range of the device, in order to avoid the broadcast time being too short, the broadcast time of the voice audio needs to be appropriately extended. The prompt type of voice audio is used to prompt the status of the device, and its corresponding user operation prompt is also short, so the duration of the prompt type of voice audio is relatively short. Therefore, in order to extend the duration of the broadcast, choose the repeated broadcast method.
[0100] Furthermore, when it is determined that the broadcast mode of the device end is repeated broadcast, the number of repeated broadcasts is determined, which needs to be able to attract the user's attention while avoiding the broadcast time being too long to disturb the user. The specific steps for obtaining the number of repeated broadcasts are:
[0101] If the broadcast mode is repeated broadcast, the broadcast times are determined according to the duration and the duration threshold, and the voice audio is repeatedly broadcast according to the broadcast times. This embodiment does not explain in detail how to obtain the broadcast times according to the duration and duration threshold of the voice audio, which will be explained in detail in subsequent embodiments.
[0102] S204: If the user is not within the preset range of the device, and the type is a fault type, then the duration of the voice audio is obtained.
[0103] In this step, when the user is not within the preset range of the device, in order to avoid the broadcast time being too short, the broadcast time of the voice audio needs to be appropriately extended. The fault-type voice audio is used to inform the device of the fault, and its corresponding user operation prompt time is longer, so the duration of the fault-type voice audio is relatively long. Therefore, in order to avoid disturbing the user due to the long broadcast time, or to avoid the user missing it due to the short broadcast time, the duration of the voice audio is obtained, and the broadcast method is further determined according to the duration of the voice audio.
[0104] S205. If the duration is greater than or equal to the duration threshold, determine that the broadcast mode of the device end is long broadcast, wherein the long broadcast is used to broadcast the voice audio completely in one time.
[0105] In this step, the time threshold is used to determine whether the duration of the voice audio is short, that is, if the duration of the voice audio is greater than or equal to the time threshold, it means that the duration of the voice audio is more appropriate.
[0106] Therefore, in order to avoid disturbing users by repeated broadcasts, long broadcast is selected as the broadcast mode.
[0107] Further, when it is determined that the broadcast mode is a long broadcast, the device end is controlled to broadcast the voice audio once.
[0108] S206: If the duration is less than the duration threshold, determine that the broadcast mode of the device end this time is the repeated broadcast.
[0109] In this step, after the duration is obtained, it is determined that the duration is less than the duration threshold, that is, the duration of the voice broadcast is short and the broadcast time of the voice audio needs to be extended.
[0110] Therefore, the broadcast mode is determined to be repeated broadcast, and the voice audio is broadcast repeatedly for multiple times.
[0111] The present application provides a voice control method, which determines the broadcast mode of a short announcement when the user is within the preset range of the device, and determines the broadcast mode according to the type and duration of the voice audio if the user is not within the preset range. Through the above method, the home appliance can control the length of the broadcast audio according to the distance between the user and the device, avoiding the user's failure to pay attention due to inappropriate broadcast time, making the user unable to respond in time, and improving the user's experience.
[0112] Figure 3 A flow chart of a voice control method provided in an embodiment of the present application Figure 3 The embodiment of the present application provides a detailed description of the steps of obtaining the broadcast mode of the device end according to the judgment result and type. Figure 3 As shown, the method includes:
[0113] S301. Obtain a quotient of the duration threshold and the duration, and round up the quotient to obtain a candidate broadcast number.
[0114] In this step, the time threshold is used to determine whether the duration of the voice audio is too short, that is, when the duration of the voice audio is greater than or equal to the time threshold, the duration of the voice audio is appropriate and there is no need to adjust the duration of the voice audio. When the duration of the voice audio is less than the time threshold, the duration of the voice audio is short and the duration of the voice audio needs to be adjusted.
[0115] Therefore, when it is determined that the broadcast mode of the voice audio is repeated broadcast, the number of broadcasts needs to be determined based on the time threshold and the duration of the voice audio.
[0116] Specifically, the quotient of the duration threshold and the duration of the voice audio is obtained, and the quotient is rounded up to obtain the candidate broadcast times.
[0117] Exemplarily, the duration of the voice audio is 10 seconds, the duration threshold is 19 seconds, and the corresponding quotient is: 19 / 10=1.9. 1.9 is rounded up to obtain the candidate broadcast number of 2.
[0118] S302: If the candidate broadcasting number is equal to 1, determine that the broadcasting number is 2.
[0119] In this step, when the type of voice audio is prompt type and the user is within the preset range of the device, the broadcast mode is directly determined to be repeated broadcast. At this time, the duration of the voice audio is not determined, so the duration of the voice audio may be greater than or equal to the voice threshold, so the number of candidate broadcasts obtained according to the duration of the voice audio and the time threshold is 1.
[0120] Furthermore, since the prompt-type voice audio is broadcasted repeatedly, the voice audio needs to be broadcasted at least twice.
[0121] Therefore, after the candidate broadcasting times are calculated and obtained, when the candidate broadcasting times is 1, the broadcasting times are determined to be 2, that is, the voice audio is repeatedly broadcasted 2 times.
[0122] S303: If the candidate broadcast number is greater than or equal to 2, determine the broadcast number as the candidate broadcast number.
[0123] In this step, when the duration of the voice audio is less than the duration threshold, the quotient of the duration threshold and the duration is greater than 1, and the number of candidate broadcasts obtained by rounding up the quotient is greater than or equal to 2.
[0124] Since the candidate broadcast times are obtained according to the duration threshold, the broadcast time of the voice audio repeatedly broadcast according to the candidate broadcast times will not be too long, thereby disturbing the user.
[0125] Therefore, after obtaining the candidate broadcast times, if it is determined that the candidate broadcast times is greater than or equal to 2, the broadcast times are determined to be the candidate broadcast times, that is, the voice audio is repeatedly broadcast according to the candidate broadcast times.
[0126] The present application provides a voice control method, which obtains the number of broadcasts by rounding up the quotient of the duration of the voice audio and the preset duration, and determines whether the number of broadcasts needs to be updated according to the number of broadcasts. Through the above method, the number of broadcasts of the selected area during repeated broadcasts is more reasonable, which can not only make the broadcasted voice audio attract the user's attention, but also avoid disturbing the user due to the long broadcast time.
[0127] Figure 4 The structure diagram of a voice control device based on human body sensing provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the control device includes: an acquisition module 401, a judgment module 402 and a control module 403, wherein:
[0128] The acquisition module 401 is used to acquire the distance between the user and the device when the device needs to broadcast voice, wherein the device is a smart device with a voice interaction function;
[0129] The determination module 402 is used to determine whether the user is within a preset range of the device according to the distance;
[0130] The control module 403 is used to determine the broadcasting mode of the device end this time according to the judgment result, and control the device end to broadcast the voice audio according to the broadcasting mode.
[0131] In a possible implementation manner, the determining module 402 is further configured to:
[0132] If the user is within the preset range of the device, the broadcast mode of the device is determined to be a short broadcast, wherein the short broadcast is used to broadcast the audio indicating the status of the device in the voice audio once;
[0133] If the user is not within the preset range of the device, the type of the voice audio to be broadcasted is obtained, and if the type is a prompt type, the broadcast mode of the device is determined to be repeated broadcast;
[0134] If the user is not within the preset range of the device, and the type is a fault type, the duration of the voice audio is obtained, and the broadcast mode of the device is determined according to the duration.
[0135] In a possible implementation manner, the determining module 402 is further configured to:
[0136] If the duration is greater than or equal to the duration threshold, it is determined that the broadcast mode of the device end is a long broadcast, wherein the long broadcast is used to broadcast the voice audio in a single complete broadcast;
[0137] If the duration is less than the duration threshold, it is determined that the broadcast mode of the device end this time is the repeated broadcast.
[0138] In a possible implementation manner, the control module 403 is further configured to:
[0139] If the broadcast mode is repeated broadcast, the number of broadcasts is determined according to the duration and the duration threshold, and the voice audio is repeatedly broadcast according to the number of broadcasts;
[0140] If the broadcast mode is the short broadcast, the voice audio is split into a status audio sub-audio and a prompt audio sub-audio, and the device end is controlled to broadcast the status audio sub-audio once;
[0141] If the broadcast mode is the long broadcast, the control device end broadcasts the voice audio once.
[0142] In a possible implementation manner, the acquisition module 401 is further configured to:
[0143] The quotient of the duration threshold and the duration is obtained, the quotient is rounded up to obtain a candidate broadcast number of times, and the broadcast number of times is obtained according to the size of the candidate broadcast number of times.
[0144] In a possible implementation manner, the acquisition module 401 is further configured to:
[0145] If the candidate broadcast number is equal to 1, then determine the broadcast number to be 2;
[0146] If the candidate broadcast number is greater than or equal to 2, the broadcast number is determined to be the candidate broadcast number.
[0147] In a possible implementation manner, the control module 403 is further configured to:
[0148] Receive the user status sent by the user end, and if the status is active, control the device end to broadcast the voice audio according to the broadcasting method;
[0149] If the state is inactive, the new state sent by the user end is continuously received until the new state is active, then the receiving is stopped and the device end is controlled to broadcast the voice audio in the broadcasting manner.
[0150] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 50 includes: at least one processor 501 and a memory 502, wherein:
[0151] The memory 502 is used to store computer-executable instructions;
[0152] The at least one processor 501 is used to execute the computer-executable instructions stored in the memory 502, so that the at least one processor 501 executes the voice control method as described in any one of the above.
[0153] Among them, at least one processor 501 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0154] Optionally, in a specific implementation, the processor 501 and the memory 502 are implemented independently, and the processor 501 and the memory 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0155] Optionally, in a specific implementation, if the processor 501 and the memory 502 are integrated on a chip, the processor 501 and the memory 502 can communicate through an internal interface.
[0156] The present application also provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the technical solution of the aforementioned voice control method is implemented.
[0157] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The computer-readable storage medium may be any available medium that can be accessed by a general or special purpose computer.
[0158] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the control device of the clothing processing device.
[0159] The division of the units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
[0160] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0161] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0162] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0163] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0164] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A voice control method, characterized in that: The method comprises: When the device needs voice broadcast, the distance between the user and the device is obtained, wherein the device is a smart device with voice interaction function; Determining whether the user is within a preset range of the device according to the distance; According to the judgment result, the broadcasting mode of the device end is determined, and the device end is controlled to broadcast the voice audio according to the broadcasting mode.
2. The method according to claim 1, characterized in that Determining the broadcast mode of the device end according to the judgment result includes: If the user is within the preset range of the device, the broadcast mode of the device is determined to be a short broadcast, wherein the short broadcast is used to broadcast the audio indicating the status of the device in the voice audio once; If the user is not within the preset range of the device, the type of the voice audio to be broadcasted is obtained, and if the type is a prompt type, the broadcast mode of the device is determined to be repeated broadcast; If the user is not within the preset range of the device, and the type is a fault type, the duration of the voice audio is obtained, and the broadcast mode of the device is determined according to the duration.
3. The method according to claim 2, characterized in that The determining of the broadcast mode of the device end according to the duration includes: If the duration is greater than or equal to the duration threshold, it is determined that the broadcast mode of the device end is a long broadcast, wherein the long broadcast is used to broadcast the voice audio in a single complete broadcast; If the duration is less than the duration threshold, it is determined that the broadcast mode of the device end this time is the repeated broadcast.
4. The method according to claim 3, characterized in that The controlling device end broadcasts the voice audio according to the broadcasting mode, including: If the broadcast mode is repeated broadcast, the number of broadcasts is determined according to the duration and the duration threshold, and the voice audio is repeatedly broadcast according to the number of broadcasts; If the broadcast mode is the short broadcast, the voice audio is split into a status audio sub-audio and a prompt audio sub-audio, and the device end is controlled to broadcast the status audio sub-audio once; If the broadcast mode is the long broadcast, the control device end broadcasts the voice audio once.
5. The method according to claim 4, characterized in that The determining the number of broadcast times according to the duration and the duration threshold comprises: The quotient of the duration threshold and the duration is obtained, the quotient is rounded up to obtain a candidate broadcast number of times, and the broadcast number of times is obtained according to the size of the candidate broadcast number of times.
6. The method according to claim 5, characterized in that The acquiring the number of broadcasts according to the size of the candidate number of broadcasts comprises: If the candidate broadcast number is equal to 1, then determine the broadcast number to be 2; If the candidate broadcast number is greater than or equal to 2, the broadcast number is determined to be the candidate broadcast number.
7. The method according to any one of claims 1 to 6, characterized in that: Before the control device end broadcasts the voice audio according to the broadcasting mode, the method includes: Receive the user status sent by the user end, and if the status is active, control the device end to broadcast the voice audio according to the broadcasting method; If the state is inactive, the new state sent by the user end is continuously received until the new state is active, then the receiving is stopped and the device end is controlled to broadcast the voice audio in the broadcasting manner.
8. A voice control device based on human body sensing, characterized in that: include: Acquisition module, judgment module and control module, where: The acquisition module is used to acquire the distance between the user and the device when the device needs voice broadcast, wherein the device is a smart device with voice interaction function; The judging module is used to judge whether the user is within a preset range of the device according to the distance; The control module is used to determine the broadcasting mode of the device end this time according to the judgment result, and control the device end to broadcast the voice audio according to the broadcasting mode.
9. An electronic device, characterized in that: include: at least one processor and memory, wherein: The memory is used to store computer-executable instructions; The at least one processor is configured to execute the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.