Similarity threshold acquisition method, voice home appliance and computer readable storage medium
By dynamically adjusting the similarity threshold of voice appliances and combining usage scenarios and time information, the problem of difficulty in waking up voice appliances and false awakening in different scenarios is solved, improving user experience and device reliability.
Patent Information
- Application Number
- CN202010862292.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-08-25
AI Technical Summary
Existing voice-enabled home appliances are difficult to wake up accurately or accidentally wake up in different usage scenarios, resulting in poor user experience, and the preset similarity threshold cannot meet the actual needs of each user.
By obtaining sound information and current time information, a mapping relationship between time and similarity threshold is established, and the current similarity threshold is dynamically adjusted according to the environmental sound information and reference similarity threshold to ensure the accuracy and stability of voice appliances waking up in different scenarios.
It effectively reduces the difficulty and false awakening of voice appliances in different scenarios, improves the user experience, ensures that the similarity threshold is more in line with the usage scenario, and enhances the reliability of the device and user satisfaction.
Smart Images

Figure CN114187904B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech recognition technology, and in particular to a similarity threshold acquisition method, a speech appliance and a computer-readable storage medium. Background Art
[0002] With the development of voice recognition technology, voice-enabled home appliances have gradually entered people's lives. Voice-enabled home appliances can obtain user voice information, identify control commands from the voice information, and perform corresponding operations according to the control commands. Before voice control of voice-enabled home appliances, the voice-enabled home appliances need to be awakened first. A common method is to pre-set the wake-up word and similarity threshold in the voice-enabled home appliances. When the voice-enabled home appliances collect voice information, they calculate the similarity between the voice information and the wake-up word. If the similarity threshold is reached, the voice-enabled home appliances are awakened successfully.
[0003] However, different usage scenarios have different impacts on similarity calculations. In order to avoid false wake-ups or wake-up failures, a common approach is to divide each day into several time periods and pre-set a corresponding similarity threshold for each time period. However, each user has different living habits, so it is difficult to ensure that the pre-set similarity threshold meets the user's actual needs, which can easily affect the user's experience. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiments of the present invention provide a similarity threshold acquisition method, a voice appliance, and a computer-readable storage medium, which can adjust the similarity threshold in combination with usage scenarios to improve user experience.
[0006] In a first aspect, an embodiment of the present invention provides a similarity threshold acquisition method, which is applied to voice appliances and includes the following steps:
[0007] Get sound information and current time information;
[0008] When it is determined that the sound information is ambient sound information, a first mapping relationship between time information and a similarity threshold is obtained, and a reference similarity threshold is obtained according to the current time information and the first mapping relationship;
[0009] A current similarity threshold is determined according to the ambient sound information and a reference similarity threshold.
[0010] The similarity threshold acquisition method of the embodiment of the present invention, applied to voice appliances, has at least the following beneficial effects: obtaining sound information and current time information; when the sound information is determined to be ambient sound information, obtaining a first mapping relationship between time information and similarity threshold, obtaining a reference similarity threshold based on the current time information and the first mapping relationship; determining the current similarity threshold based on the ambient sound information and the reference similarity threshold. According to the technical solution of this embodiment, the similarity threshold can be adjusted in combination with the usage scenario and the reference similarity threshold, so that the similarity threshold of the voice appliance can be more in line with the usage scenario, effectively reducing the difficulty and false awakening of the voice appliance under the influence of different scenarios, and improving the user experience.
[0011] Optionally, in another embodiment of the present invention, determining the current similarity threshold value according to the ambient sound information and the reference similarity threshold value specifically includes: obtaining the current sound pressure level of the ambient sound information; obtaining the reference sound pressure level corresponding to the reference similarity threshold value; and determining the current similarity threshold value according to the current sound pressure level and the reference sound pressure level. By using the reference similarity threshold value as a reference for historical data, the efficiency of determining the current similarity threshold value is improved.
[0012] Optionally, in another embodiment of the present invention, determining the current similarity threshold according to the current sound pressure level and the reference sound pressure level specifically includes: determining an adjustment value according to the current sound pressure level and the reference sound pressure level; and obtaining the current similarity threshold according to the reference similarity threshold and the adjustment value. The corresponding relationship between the sound pressure level and the similarity threshold can be used to quickly determine the current similarity threshold.
[0013] Optionally, in another embodiment of the present invention, the current similarity threshold is determined according to the current sound pressure level and the reference sound pressure level, specifically including: when the difference between the reference sound pressure level and the current sound pressure level is greater than or equal to the preset sound pressure level threshold, a second mapping relationship between the sound pressure level and the similarity threshold is obtained, and the current similarity threshold is determined according to the current sound pressure level and the second mapping relationship. When the difference between the reference sound pressure level and the current sound pressure level is large, it reflects that the current usage scenario is greatly different from the historical usage scenario, so determining the current similarity threshold through the current sound pressure level and the second mapping relationship can be more in line with the current usage scenario.
[0014] Optionally, in another embodiment of the present invention, the current similarity threshold is determined according to the current sound pressure level and the reference sound pressure level, specifically including: when the difference between the reference sound pressure level and the current sound pressure level is less than the preset sound pressure level threshold, the reference similarity threshold is determined as the current similarity threshold. When the difference between the reference sound pressure level and the current sound pressure level is small, the current usage scenario is relatively similar to the historical usage scenario, and determining the reference similarity threshold as the current similarity threshold can improve the adjustment efficiency of the similarity threshold.
[0015] Optionally, in another embodiment of the present invention, the sound information is information continuously acquired within a preset time period; acquiring the current sound pressure level of the ambient sound information specifically includes: acquiring the average sound pressure level of the ambient sound information within the preset time period, and setting the average sound pressure level as the current sound pressure level. By collecting the average sound pressure level within the preset time period, the current sound pressure level can more accurately reflect the current usage scenario, avoiding the impact of occasional ambient sound changes on the similarity threshold.
[0016] Optionally, in another embodiment of the present invention, when the sound information is determined to be ambient sound information, obtaining a first mapping relationship between time information and a similarity threshold value specifically includes: when the wake-up word cannot be recognized from the sound information, determining that the sound information is ambient sound information, and obtaining a first mapping relationship between time information and a similarity threshold value. The similarity threshold value can be adjusted when the voice appliance is not awakened, ensuring that the similarity threshold value of the voice appliance is suitable for the current usage scenario.
[0017] Optionally, in another embodiment of the present invention, after determining the current similarity threshold according to the sound information and the reference similarity threshold, the method further includes: updating the first mapping relationship according to the current similarity threshold and the current time information. After determining the current similarity threshold, the first mapping relationship is updated so that the reference similarity threshold obtained according to the first mapping relationship is more in line with the user's usage habits, thereby improving the user experience.
[0018] In a second aspect, an embodiment of the present invention further provides a voice home appliance, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the similarity threshold acquisition method as described above when executing the computer program.
[0019] The voice appliance provided by the embodiment of the present invention has at least the following beneficial effects: the voice appliance executes a computer program stored in a memory through a processor, so that the voice appliance can perform the following similarity threshold acquisition method: obtain sound information and current time information; when the sound information is determined to be ambient sound information, obtain a first mapping relationship between time information and a similarity threshold, obtain a reference similarity threshold based on the current time information and the first mapping relationship; determine the current similarity threshold based on the ambient sound information and the reference similarity threshold. According to the technical solution of this embodiment, the similarity threshold can be adjusted in combination with the usage scenario and the reference similarity threshold, so that the similarity threshold of the voice appliance can be more in line with the usage scenario, effectively reducing the difficulty and false awakening of the voice appliance under the influence of different scenarios, and improving the user experience.
[0020] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the similarity threshold acquisition method as described above.
[0021] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a flow chart of a method for obtaining a similarity threshold value provided by an embodiment of the present invention;
[0023] Figure 2 is a flow chart of determining a current similarity threshold according to a current sound pressure level and a reference sound pressure level in a similarity threshold acquisition method provided by another embodiment of the present invention;
[0024] Figure 3 is a flowchart of determining a current similarity threshold according to an adjustment value in a similarity threshold acquisition method provided by another embodiment of the present invention;
[0025] Figure 4 is a flowchart of determining a current similarity threshold according to a second mapping relationship and a current sound pressure level in a similarity threshold acquisition method provided by another embodiment of the present invention;
[0026] Figure 5 is a flowchart of determining a current similarity threshold according to a reference similarity threshold in a similarity threshold acquisition method provided by another embodiment of the present invention;
[0027] Figure 6 is a flow chart of obtaining the average sound pressure level in a similarity threshold obtaining method provided by another embodiment of the present invention;
[0028] Figure 7 is a flowchart of determining that sound information is ambient sound information in a similarity threshold acquisition method provided by another embodiment of the present invention;
[0029] Figure 8 is a flowchart of updating a first mapping relationship in a similarity threshold acquisition method provided by another embodiment of the present invention;
[0030] Fig. 9 is a flowchart of a similarity threshold acquisition method and its application provided by another embodiment of the present invention;
[0031] Fig.10 It is a schematic diagram of a voice home appliance provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0033] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0034] The present invention provides a similarity threshold acquisition method, a voice appliance, and a computer-readable storage medium, which acquire sound information and current time information; when the sound information is determined to be ambient sound information, acquire a first mapping relationship between time information and a similarity threshold, acquire a reference similarity threshold based on the current time information and the first mapping relationship; and determine the current similarity threshold based on the ambient sound information and the reference similarity threshold. According to the technical solution of this embodiment, the similarity threshold can be adjusted in combination with the usage scenario and the reference similarity threshold, so that the similarity threshold of the voice appliance can be more in line with the usage scenario, effectively reducing the difficulty and false awakening of the voice appliance under the influence of different scenarios, and improving the user experience.
[0035] It should be noted that the voice home appliance can be any common home appliance, such as a voice air conditioner, a voice rice cooker, a voice microwave oven, etc. The home appliance can be set with a wake-up word, and wake up and enter the voice recognition working state after recognizing the wake-up word from the acquired sound information. The embodiments of the present invention do not impose many restrictions on the specific types of voice home appliances.
[0036] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0037] like Figure 1 As shown, Figure 1 1 is a flowchart of a similarity threshold acquisition method provided by an embodiment of the present invention. The similarity threshold acquisition method includes but is not limited to step S110, step S120 and step S130.
[0038] Step S110, obtaining sound information and current time information.
[0039] It should be noted that the sound information can be collected through any existing device, and the sound pickup device inherent in the voice appliance can be used, such as a microphone, or additional sensors can be added, such as common devices such as sound pressure level detection sensors, as long as the sound information can be collected. The embodiments of the present invention do not involve improvements in the hardware structure and will not be described in detail here. Those skilled in the art can understand that the collection of current time information can be achieved by setting a clock device inside the voice appliance, such as an existing structure such as a timer set in a control processing chip, or by obtaining the current time information through the network when the voice appliance is connected to a wireless network. The specific method is adjusted according to actual needs and the hardware equipment equipped with the voice appliance, as long as the time information can be obtained, and will not be described in detail here.
[0040] In one embodiment, the sound information may be all the sound information collected by the voice appliance, or it may be the sound information of a specific frequency. For example, some high-frequency and low-frequency sounds will not affect the wake-up of the voice appliance, and can be filtered by setting a sound frequency threshold to avoid collecting useless sound information.
[0041] In one embodiment, the current time information can be the moment information used in daily life, such as 10:10:10 am, or it can be the timing moment based on a day, such as the 20th hour, 20 minutes and 20 seconds. The specific method can be selected according to actual needs and will not be repeated here.
[0042] Step S120, when it is determined that the sound information is ambient sound information, a first mapping relationship between time information and a similarity threshold is obtained, and a reference similarity threshold is obtained according to the current time information and the first mapping relationship;
[0043] In one embodiment, the ambient sound information may be any sound information collected by the voice appliance before waking up. Since the environment in which the voice appliance is located varies in different time periods, there are many possible types of sound information collected by the voice appliance. Whether in a quiet usage scenario or a noisy usage scenario, the ambient sound information may contain voice information and ambient sound information, such as external noise or the sound of people talking in the room. At this time, although the collected sound information contains voice information, the voice appliance is not awakened if it is not successfully matched with the wake-up word. At this time, the voice information can be simultaneously determined as ambient sound information. It should be noted that the embodiment of the present application does not improve the voice recognition technology. To identify the wake-up word from the voice information, any solution in the prior art can be used, which will not be elaborated in this embodiment.
[0044] In one embodiment, the first mapping relationship can be in any form, such as a correspondence table, or a conversion relationship, or a mapping curve, as long as the mapping relationship can be realized. It is understandable that the division of usage scenarios can be realized through the first mapping relationship, for example, each day is divided into a number of consecutive time periods, each time period corresponds to a different reference similarity threshold, that is, the first mapping relationship between time information and the reference similarity threshold is different to correspond to different usage scenarios. It is understandable to those skilled in the art that the usage scenario can be a fixed time, or it can be determined according to the variation range of the determined similarity threshold, for example, if the current similarity threshold within a period of time is the same or the difference is less than the preset threshold, the time period is determined as a usage scenario. Since the reference similarity threshold can be identified as the same or similar in the same usage scenario, the initial similarity threshold can be obtained more quickly by distinguishing the usage scenarios. For example, when switching from a quiet usage scenario to a noisy usage scenario, if the similarity threshold is obtained by collecting and judging the ambient sound after the scene switching in the prior art, it is likely that the user initiates wake-up during the calculation process, but the wake-up fails because the similarity threshold is not adjusted. By adopting the solution of this embodiment, the corresponding reference similarity threshold can be used to adapt the scene after switching the usage scenario, ensuring that there will be no false wake-up or no wake-up in the current usage scenario, and then adjusting through the ambient sound information to achieve a better effect. It can be understood that the first mapping relationship can be obtained in a variety of ways. For example, a common voice home appliance can be connected to a terminal for communication, and the user directly enters the first mapping relationship in the terminal APP and sends it to the voice home appliance to complete the setting. For example, the reference similarity threshold is set to 90% from 10 am to 11 am. The specific format can be adjusted according to actual needs, and this embodiment does not limit it.
[0045] Step S130: determining a current similarity threshold according to the ambient sound information and a reference similarity threshold.
[0046] In one embodiment, the current similarity threshold may be determined in any manner, such as using a reference similarity threshold as a base value, determining an increment or decrement based on ambient sound information, and obtaining the current similarity threshold by adding the two, or directly determining the current similarity threshold based on ambient sound information. For example, when the ambient sound information is small, since the reference similarity threshold is essentially historical data, the reference similarity threshold may be directly determined as the current similarity threshold. The specific method may be selected based on actual needs. It should be noted that the current similarity threshold may be obtained in real time based on current time information, or may be obtained by setting a collection cycle, or may be obtained when a large change in the decibel number of the sound information is detected. The specific method may be selected based on actual needs.
[0047] Another embodiment of the present invention also provides a similarity threshold acquisition method, such as Figure 2 As shown, Figure 2 yes Figure 1 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S130 in FIG. 1 , wherein step S130 includes but is not limited to the following steps:
[0048] Step S210, obtaining the current sound pressure level of the ambient sound information;
[0049] Step S220, obtaining a reference sound pressure level corresponding to a reference similarity threshold;
[0050] Step S230: determining a current similarity threshold according to the current sound pressure level and the reference sound pressure level.
[0051] In one embodiment, sound pressure level is a common unit of measurement for sound intensity. The higher the sound pressure level in an area, the easier it is to perceive sound information, and the easier it is to collect. Therefore, for voice appliances, the higher the sound pressure level of the ambient sound in the usage scenario, the more ambient sound is collected, which interferes with the recognition of the wake-up word. At this time, the similarity of the wake-up word recognition is low, and the similarity threshold needs to be appropriately lowered to avoid wake-up failure. It is understandable that the current sound pressure level can be obtained by the sound pressure level sensor of the prior art, or it can be calculated by the voice appliance's sound pickup device after obtaining the ambient sound information. This embodiment does not make improvements to the specific collection method, but only improves the data usage method, which will not be repeated here.
[0052] In one embodiment, the collected current sound pressure level can also be used to generate a mapping relationship with the current similarity threshold, for example, to form Figure 4 The second mapping relationship in the illustrated embodiment. It is understandable that, when there is a mapping relationship between the sound pressure level and the similarity threshold, the reference sound pressure level can be obtained according to the mapping relationship. Of course, the reference sound pressure level can also be set by the terminal described in the above embodiment to improve the user experience.
[0053] In one embodiment, the current sound pressure level and the reference sound pressure level may be real-time values or statistical values within a time period, such as the average, median, variance, etc. within a time period, and the specific form may be selected according to the actual system. It is understandable that the current similarity threshold determined in this embodiment may be a fixed value or a continuously changing series of values, for example, the current sound pressure level is a value collected in real time, and when the reference sound pressure level is a fixed value, the current sound pressure level is a continuously changing curve due to changes in the environment, so the current similarity threshold obtained may also be continuously changing within a period of time.
[0054] Another embodiment of the present invention also provides a similarity threshold acquisition method, such as Figure 3 As shown, Figure 3 yes Figure 2 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S230 in FIG. 1 , wherein step S230 includes but is not limited to the following steps:
[0055] Step S310, determining an adjustment value according to the current sound pressure level and the reference sound pressure level;
[0056] Step S320: obtaining a current similarity threshold according to the reference similarity threshold and the adjustment value.
[0057] In one embodiment, the adjustment value is determined according to the magnitude relationship between the current sound pressure level and the reference sound pressure level. For example, when the difference between the current sound pressure level and the reference sound pressure level is greater than the preset sound pressure level threshold, the corresponding increase or decrease is obtained as the adjustment value according to the difference, and the current similarity threshold is obtained by summing the reference similarity threshold and the adjustment value. It is understandable that a mapping relationship can be established between the difference between the current sound pressure level and the reference sound pressure level and the adjustment value to achieve rapid acquisition of the adjustment value.
[0058] In one embodiment, the adjustment value can be used to perform numerical summation with a reference similarity threshold to obtain a current similarity threshold. For example, if the reference similarity threshold is 80%, and the determined adjustment value is 5%, then the current similarity threshold is 85%. For another example, if the determined adjustment value is -10%, then the current similarity threshold is 70%. In addition, the adjustment value may also be a coefficient for adjusting the reference similarity threshold. For example, if the current sound pressure level is numerically 0.9 times the reference sound pressure level, then the determined adjustment value is 0.9. In this case, the current similarity threshold is the product of the reference similarity threshold and 0.9. The type of specific adjustment value may be selected according to actual needs.
[0059] Another embodiment of the present invention also provides a similarity threshold acquisition method, such as Figure 4 As shown, Figure 4 yes Figure 2 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S230 in FIG. 1 , wherein step S230 includes but is not limited to the following steps:
[0060] Step S410: when the difference between the reference sound pressure level and the current sound pressure level is greater than or equal to the preset sound pressure level threshold, a second mapping relationship between the sound pressure level and the similarity threshold is obtained, and a current similarity threshold is determined according to the current sound pressure level and the second mapping relationship.
[0061] In one embodiment, the preset sound pressure level threshold can be set to any value according to actual needs. Different sound pressure levels reflect different usage scenarios. Setting a preset sound pressure level threshold can be used in scenarios with large differences in sound pressure levels. The specific value of the sound pressure level threshold can be adjusted according to actual conditions, and can also be input into the voice appliance through a terminal APP, which will not be repeated here.
[0062] In one embodiment, if the difference between the sound pressure levels is greater than or equal to the preset sound pressure level threshold, the previously used similarity threshold cannot meet the current scenario and needs to be quickly adjusted. The current similarity threshold can be directly matched according to the second mapping relationship, thereby eliminating the calculation and dynamic adjustment process. It should be noted that the second mapping relationship can be automatically learned after determining the current similarity threshold. For example, each time the current similarity threshold is obtained, the second mapping relationship is updated according to the current similarity threshold and the current sound pressure level to complete the adaptive learning.
[0063] Another embodiment of the present invention also provides a similarity threshold acquisition method, such as Figure 5 As shown, Figure 5 yes Figure 2 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S230 in FIG. 1 , wherein step S230 includes but is not limited to the following steps:
[0064] Step S510: When the difference between the reference sound pressure level and the current sound pressure level is less than a preset sound pressure level threshold, the reference similarity threshold is determined as the current similarity threshold.
[0065] Based on the above embodiments, the size of the preset sound pressure level threshold can reflect the difference in sound pressure levels between the two scenes. When the difference between the two sound pressure levels is less than the preset sound pressure level threshold, the sound pressure levels between the two scenes are relatively similar. For example, in daily life, the difference between the sound pressure levels of the nap and reading scenarios is small. In this case, the sound pressure level of the previous scene can be directly applied and will not have much impact on wake-up. Based on this, the reference similarity threshold is directly set as the current similarity threshold, which can quickly derive the applicable similarity threshold and simplify the adjustment process of voice appliances.
[0066] In addition, another embodiment of the present invention further provides a similarity threshold acquisition method, such as Figure 6 As shown, Figure 6 yes Figure 2 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S210 in FIG. 1 , wherein the sound information is information continuously acquired within a preset time period, and step S210 includes but is not limited to the following steps:
[0067] Step S610, obtaining an average sound pressure level of the ambient sound information within a preset time period, and setting the average sound pressure level as the current sound pressure level.
[0068] In one embodiment, since the ambient sound is constantly changing, if real-time sound pressure level information is used to adjust the similarity threshold, it is easy to make unnecessary adjustments to the similarity threshold when there are occasional large changes in the sound pressure level. For example, during a common rest period, a car passing by may increase the sound pressure level. Therefore, using the average sound pressure level within a preset time period can better avoid interference caused by a sudden increase in the sound pressure level.
[0069] In one embodiment, the preset time period can be set in any manner, such as setting a fixed time period when the voice appliance leaves the factory, or setting parameters through the terminal APP. The specific method and value can be adjusted according to actual needs.
[0070] Another embodiment of the present invention also provides a similarity threshold acquisition method, such as Figure 7 As shown, Figure 7 yes Figure 1 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S120 in FIG. 1 , wherein step S120 includes but is not limited to the following steps:
[0071] Step S710: When the wake-up word cannot be recognized from the sound information, the sound information is determined to be ambient sound information, and a first mapping relationship between the time information and the similarity threshold is obtained.
[0072] It should be noted that the recognition of the wake-up word can adopt any speech recognition method in the prior art. This embodiment does not make any improvement to the specific speech recognition method, which will not be described here.
[0073] In one embodiment, since the sound information may contain voice information, for voice appliances that have not been awakened, voice information other than the wake-up word can be identified as ambient sound information. Therefore, when it is detected that the sound information contains voice information, recognition and matching can be performed according to the pre-set wake-up word, and awakening is performed when the similarity value is greater than or equal to the similarity threshold, otherwise the voice information is determined as ambient sound information for determining the current similarity threshold.
[0074] Another embodiment of the present invention also provides a similarity threshold acquisition method, such as Figure 8 As shown, Figure 8 yes Figure 1 FIG. 1 is a schematic diagram of another embodiment of the detailed process of step S130 in FIG. 1 , wherein step S130 includes but is not limited to the following steps:
[0075] Step S810: update the first mapping relationship according to the current similarity threshold and current time information.
[0076] In one embodiment, the first mapping relationship may be updated in real time or at intervals. For example, when the sound information is updated according to Figure 6 In the case of periodic collection in the embodiment shown in , the first mapping relationship may also be a corresponding relationship between the collection period and the current similarity threshold, and the specific method may be determined according to the method for obtaining the current similarity threshold.
[0077] Based on the above embodiment, the first mapping relationship can be used to distinguish different usage scenarios, thereby generating a user's habit curve. For example, after multiple updates and adaptive learning, it is concluded that 12 noon to 2 o'clock every day is rest time, and 2 o'clock to 5 o'clock is working time. In the first mapping relationship, different similarity thresholds can be obtained according to different time period information, thereby realizing adaptive adjustment of the similarity threshold of voice appliances and improving user experience. It should be noted that the first mapping relationship can be updated with one day as an update cycle to adapt to the user's daily life scene, or the update cycle can be adjusted according to actual needs, which will not be repeated here. It should be noted that since the usage scenarios in the same time period every day may be different, the current similarity threshold can be judged before updating the first mapping relationship. For example, the current similarity threshold and the reference similarity threshold of the past 10 times in the historical data have a large difference in value. It can be judged that the current day belongs to an exception scene, and this is recorded and the first mapping relationship is not updated according to the current similarity threshold. Of course, the reference similarity threshold in the historical data can also be replaced when the cumulative number of exception scenes is large, and the adaptive learning method can be adjusted according to actual needs.
[0078] In addition, this embodiment also provides a detailed flow chart of how the voice appliance obtains and applies the similarity threshold. Fig. 9 As shown, including but not limited to the following steps:
[0079] Step S910, obtaining sound information and current time information, when the sound information includes the wake-up word, executing step S922, when the sound information does not include the wake-up word, executing step S921;
[0080] Step S921, obtaining a first mapping relationship between time information and a similarity threshold, obtaining a reference similarity threshold according to the current time information and the first mapping relationship, and executing step S931;
[0081] Step S922, obtaining the current similarity threshold, performing wake-up recognition of the voice appliance, and ending the acquisition of the similarity threshold;
[0082] Step S931, obtaining the average sound pressure level of the ambient sound information, and setting the average sound pressure level as the current sound pressure level;
[0083] Step S932, obtaining a reference sound pressure level corresponding to the reference similarity threshold, executing step 941, or, when the difference between the reference sound pressure level and the current sound pressure level is greater than or equal to the preset sound pressure level threshold, executing step S951, when the difference between the reference sound pressure level and the current sound pressure level is less than the preset sound pressure level threshold, executing step S952;
[0084] Step S941, determining an adjustment value according to a reference sound pressure level and a current sound pressure level;
[0085] Step S942, obtaining a current similarity threshold according to the reference similarity threshold and the adjustment value, and executing step S960;
[0086] Step S951, obtaining a second mapping relationship between the sound pressure level and the similarity threshold, determining a current similarity threshold according to the current sound pressure level and the second mapping relationship, and executing step S960;
[0087] Step S952, determining the reference similarity threshold as the current similarity threshold, and executing step S960;
[0088] Step S960: update the first mapping relationship according to the current similarity threshold and the current time information, and re-execute step S910.
[0089] In one embodiment, the steps of this embodiment are used to obtain sound information and current time information; when the sound information is determined to be ambient sound information, a first mapping relationship between time information and a similarity threshold is obtained, and a reference similarity threshold is obtained based on the current time information and the first mapping relationship; the current similarity threshold is determined based on the ambient sound information and the reference similarity threshold, and the similarity threshold is adjusted in combination with the usage scenario and the reference similarity threshold, so that the similarity threshold of the voice appliance can be more in line with the usage scenario, effectively reducing the difficulty and false wake-up of the voice appliance under the influence of different scenarios, and improving the user experience.
[0090] In addition, refer to Fig.10 An embodiment of the present invention further provides a voice home appliance 1000, which includes: a memory 1020, a processor 1010, and a computer program stored in the memory 1020 and executable on the processor 1010.
[0091] The processor 1010 and the memory 1020 may be connected via a bus or other means.
[0092] The non-transient software program and instructions required to implement the similarity threshold acquisition method of the above embodiment are stored in the memory 1020. When executed by the processor 1010, the similarity threshold acquisition method applied to the voice appliance in the above embodiment is executed, for example, the above described similarity threshold acquisition method is executed. Figure 1 In the method steps S110 to S130, Figure 2 In the method steps S210 to S230, Figure 3 In the method steps S310 to S320, Figure 4 In method step S410, Figure 5 In method step S510, Figure 6 In method step S610, Figure 7 In method step S710, Figure 8 In method step S810, Fig. 9 Method steps S910 to S960 in.
[0093] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0094] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by a processor or a controller, for example, by a processor in the above control unit embodiment, so that the above processor can execute the similarity threshold acquisition method in the above embodiment, for example, execute the above described Figure 1 In the method steps S110 to S130, Figure 2 In the method steps S210 to S230, Figure 3 In method steps S310 to S320, Figure 4 In method step S410, Figure 5 In method step S510, Figure 6 In method step S610, Figure 7 In method step S710, Figure 8 In method step S810, Fig. 9Method steps S910 to S960 in the above. It will be appreciated by those skilled in the art that all or some of the steps and systems in the above disclosed methods can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0095] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A similarity threshold acquisition method, applied to voice home appliances, It is characterized in that include: Get sound information and current time information; When it is determined that the sound information is ambient sound information, a first mapping relationship between time information and a similarity threshold is obtained, and a reference similarity threshold is obtained according to the current time information and the first mapping relationship; Determine a current similarity threshold according to the ambient sound information and the reference similarity threshold; The determining the current similarity threshold according to the ambient sound information and the reference similarity threshold specifically includes: Acquire the current sound pressure level of the ambient sound information; Acquiring a reference sound pressure level corresponding to the reference similarity threshold; A current similarity threshold is determined according to the current sound pressure level and the reference sound pressure level.
2. A similarity threshold acquisition method according to claim 1, It is characterized in that The determining a current similarity threshold according to the current sound pressure level and the reference sound pressure level specifically includes: determining an adjustment value according to the current sound pressure level and the reference sound pressure level; A current similarity threshold is obtained according to the reference similarity threshold and the adjustment value.
3. A similarity threshold acquisition method according to claim 1, It is characterized in that The determining a current similarity threshold according to the current sound pressure level and the reference sound pressure level specifically includes: When the difference between the reference sound pressure level and the current sound pressure level is greater than or equal to a preset sound pressure level threshold, a second mapping relationship between sound pressure level and similarity threshold is obtained, and a current similarity threshold is determined according to the current sound pressure level and the second mapping relationship.
4. A similarity threshold acquisition method according to claim 1, It is characterized in that The determining a current similarity threshold according to the current sound pressure level and the reference sound pressure level specifically includes: When the difference between the reference sound pressure level and the current sound pressure level is less than a preset sound pressure level threshold, the reference similarity threshold is determined as the current similarity threshold.
5. A similarity threshold acquisition method according to any one of claims 1 to 4, It is characterized in that The sound information is information continuously acquired within a preset time period; The obtaining of the current sound pressure level of the ambient sound information specifically includes: An average sound pressure level of the ambient sound information within the preset time period is obtained, and the average sound pressure level is set as the current sound pressure level.
6. A similarity threshold acquisition method according to claim 1, It is characterized in that When determining that the sound information is ambient sound information, obtaining a first mapping relationship between time information and a similarity threshold specifically includes: When the wake-up word cannot be recognized from the sound information, the sound information is determined to be ambient sound information, and a first mapping relationship between time information and a similarity threshold is obtained.
7. A similarity threshold acquisition method according to claim 1, It is characterized in that After determining the current similarity threshold according to the sound information and the reference similarity threshold, the method further includes: The first mapping relationship is updated according to the current similarity threshold and the current time information.
8. A voice-activated home appliance comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. It is characterized in that When the processor executes the computer program, the similarity threshold acquisition method according to any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a computer, the similarity threshold acquisition method according to any one of claims 1 to 7 is implemented.
