Voice assistant interaction method and system

By using the recognition rejection model to learn and compare audio and text data to detect trigger words, and combining the dual confidence calculations of the car and the cloud, the problem of misrecognition and mistriggering in the voice assistant's wake-up-free technology is solved, expanding the application scenarios and improving User experience.

CN118748016APending Publication Date: 2024-10-08NIO TECH ANHUI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411024702.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing voice assistant wake-up-free technology has problems with misrecognition and false triggering, and its application scenarios are limited, making it unable to effectively identify and execute the user's intentions.

Method used

By using the recognition rejection model to conduct comparative learning on audio data and text data, the trigger words are detected and the voice assistant instructions are decided based on the rejection confidence level. The dual confidence calculations of the car and the cloud are combined to reduce the possibility of false triggering.

Benefits of technology

It improves the recognition accuracy and application range of the voice assistant, reduces the possibility of false triggering and false wake-up, and enhances the user's wake-up-free experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748016A_ABST
    Figure CN118748016A_ABST
Patent Text Reader

Abstract

The invention relates to a voice assistant interaction method, a voice assistant system, a corresponding computer readable storage medium and a vehicle including the voice assistant interaction method. The voice assistant interaction method comprises the following steps: S1, inputting a text recognized for audio data and the corresponding audio data into a rejection model to obtain rejection confidence of the recognized text; s2, detecting a trigger word in the recognized text; and S3, determining whether an instruction corresponding to the recognized text is executed by the voice assistant or not on the basis of the rejection confidence of the recognized text under the condition of determining that the recognized text comprises the trigger word.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of voice interaction, and in particular to a voice assistant interaction method, a voice assistant system, a corresponding computer-readable storage medium, and a vehicle including the former. Background Art

[0002] The current voice assistant wake-up-free technology in the field of voice interaction works by monitoring the ambient voice in real time to see if it contains executable commands. However, there are widespread problems such as misrecognition and mistriggering of voices, which misrecognize many voices that do not require execution as commands that users expect the voice assistant to execute, causing some trouble for users. In addition, the voice assistant wake-up-free technology also has the problem of limited commands and application scenarios. Summary of the invention

[0003] In view of the above problems, the present disclosure aims to provide a voice assistant interaction method, a voice assistant system, a corresponding computer-readable storage medium, and a vehicle including the former.

[0004] The voice assistant interaction method of the first aspect of the present disclosure includes the following steps: S1: inputting the text recognized for audio data and the corresponding audio data into a rejection model to obtain the rejection confidence of the recognized text; S2: detecting trigger words in the recognized text; S3: in the case of determining that the recognized text includes trigger words, based on the rejection confidence of the recognized text, determining whether the voice assistant executes the instruction corresponding to the recognized text.

[0005] According to some embodiments of the present disclosure, optionally, the rejection model is obtained by training multiple audio-text pairs, wherein audio-text pairs of human-computer dialogues are used as positive training samples, and audio-text pairs of non-human-computer dialogues are used as negative training samples.

[0006] According to some embodiments of the present disclosure, optionally, the training of the rejection model further includes: performing comparative learning on the audio vector and the text vector of each audio-text pair, and cross-calculating the similarity, retaining the audio-text pairs with a similarity greater than a predetermined similarity threshold, and eliminating the audio-text pairs with a similarity less than the predetermined similarity threshold.

[0007] According to some embodiments of the present disclosure, optionally, the method further includes: dividing the recognized text into multiple sentence texts, the multiple sentence texts including a first sentence text corresponding to a current dialogue sentence indicated in the audio data and a second sentence text corresponding to a previous dialogue sentence of the current dialogue sentence.

[0008] According to some embodiments of the present disclosure, optionally, the time interval between multiple sentence texts is greater than a first predetermined time interval.

[0009] According to some embodiments of the present disclosure, optionally, step S3 further includes: in the case of determining that the first sentence text is a trigger word, waking up the voice assistant, and determining whether the voice assistant executes the instruction corresponding to the second sentence text based on the rejection confidence of the second sentence text; in the case of determining that the second sentence text is a trigger word, waking up the voice assistant, and determining whether the voice assistant executes the instruction corresponding to the first sentence text based on the rejection confidence of the first sentence text.

[0010] According to some embodiments of the present disclosure, optionally, waking up the voice assistant when it is determined that the first sentence text is a trigger word further includes: waking up the voice assistant when it is detected that the first sentence text is a trigger word and the rejection confidence of the first sentence text is higher than a predetermined threshold.

[0011] According to some embodiments of the present disclosure, optionally, step S3 further includes: in the case of determining that the first sentence text includes trigger words and other sentences, waking up the voice assistant, and determining whether the voice assistant executes instructions corresponding to the other sentences based on the rejection confidence of the other sentences.

[0012] According to some embodiments of the present disclosure, optionally, determining that the first sentence text includes a trigger word and other sentences further includes: determining that the first sentence text is composed of other sentences and the trigger word as a prefix or suffix.

[0013] According to some embodiments of the present disclosure, optionally, before step S1, the method further includes: recording the environment in real time to obtain audio data.

[0014] According to some embodiments of the present disclosure, optionally, the method further includes: in a case where it is determined that the recognized text does not include a trigger word, deleting the second sentence text and / or a portion of the audio data corresponding to the second sentence text.

[0015] According to some embodiments of the present disclosure, optionally, the method further includes: in a case where it is determined that the recognized text hits a blacklist, maintaining the voice assistant in an unaware state.

[0016] The computer-readable storage medium of the second aspect of the present disclosure stores instructions, which, when executed by a processor, implement the voice assistant interaction method according to any of the aforementioned embodiments.

[0017] The voice assistant system of the third aspect of the present disclosure includes a processor and a memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the voice assistant interaction method according to any of the aforementioned embodiments is implemented.

[0018] The vehicle of the fourth aspect of the present disclosure may include a computer-readable storage medium according to any of the foregoing embodiments, or may include a voice assistant system according to any of the foregoing embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flow chart of a voice assistant interaction method 100 according to some embodiments is shown.

[0020] Figure 2 A flow chart of a voice assistant interaction method 200 according to some embodiments is shown. DETAILED DESCRIPTION

[0021] The following describes some of the various embodiments of the present disclosure, which are intended to provide a basic understanding of the present disclosure, but are not intended to identify the key or decisive elements of the present disclosure or to limit the scope of protection.

[0022] For brevity and illustrative purposes, the principles of the present disclosure are described herein mainly with reference to its exemplary embodiments. However, those skilled in the art will readily recognize that the same principles are equally applicable to all types of voice assistant interaction methods, voice assistant systems, corresponding computer-readable storage media, and vehicles including the former and that these same principles can be implemented therein, and any such changes do not depart from the true spirit and scope of the present patent application.

[0023] Moreover, in the following description, reference is made to the accompanying drawings, which illustrate specific exemplary embodiments. Electrical, mechanical, logical and structural changes may be made to these embodiments without departing from the spirit and scope of the present disclosure. In addition, although the features of the present disclosure are disclosed in conjunction with only one of several implementations / embodiments, this feature may be combined with one or more other features of other implementations / embodiments as may be desired and / or advantageous for any given or identifiable function. Therefore, the following description should not be regarded as limiting, and the scope of the present disclosure is defined by the appended claims and their equivalents.

[0024] Terms such as “having” and “including” indicate that in addition to the units (modules) and steps directly and explicitly stated in the specification and claims, the technical solution of the present disclosure does not exclude the situation where it has other units (modules) and steps that are not directly or explicitly stated.

[0025] Figure 1 A flow chart of a voice assistant interaction method 100 according to some embodiments is shown. The method 100 may include the following steps:

[0026] In step S1, the text recognized for the audio data and the corresponding audio data are input into the rejection model to obtain the rejection confidence of the recognized text. The source of the audio data is not limited, for example, it can come from a recording of a certain space, or from a certain audio data file that has been stored from the outside. Correspondingly, a recording step may also be optionally included before step S1, for example, a recording of a certain local space / environment (such as a vehicle cockpit). The audio data is identified using audio recognition (or speech recognition) to identify the text / text corresponding to the audio data. Optionally, the speech recognition process can be obtained using a trained speech recognition model. In some examples, the rejection model can be obtained, for example, through training through multimodal (audio modality, text modality, etc.) comparison technology, and the rejection model can determine the rejection confidence of a certain audio data and the text corresponding to the audio data obtained by the speech recognition module, and the rejection confidence indicates the matching accuracy of the recognized text and the recognized audio data, and can be quantified, for example, after normalization. Various confidence thresholds can be further set, so that when the rejection confidence is greater than a certain confidence threshold, for example, the recognized text is identified as credible and used for subsequent voice assistant use. For example, a confidence interval of 0-1 can be set, and when the rejection confidence of a certain text is greater than, for example, 0.8, the text can be considered to be the correct text of the recognized speech, and then used to execute instructions based on the text in the future.

[0027] In step S2, a trigger word in the recognized text is detected. Specifically, whether a trigger word exists in the text of the audio data obtained through the speech recognition process can be detected. In some examples, the trigger word can be obtained by matching characters in the text. In other examples, the presence of a trigger word in the text can be detected by using a trained speech recognition model through training for specific trigger words (e.g., brand words corresponding to product brand names).

[0028] In step S3, when it is determined that the recognized text includes a trigger word, based on the rejection confidence of the recognized text, it is determined whether the voice assistant executes the instruction corresponding to the recognized text. That is, when it is determined that there is a trigger word, the rejection confidence of the recognized text (especially the other parts thereof except the trigger word) can be used to determine whether to execute the statement corresponding to the recognized text. For example, if the recognized text includes a trigger word and the text "Please turn on the air conditioner", the voice assistant can be awakened by the trigger word and determine whether to execute the air conditioner turning on operation based on the rejection confidence of the text "Please turn on the air conditioner". When, for example, the rejection confidence meets a certain credible standard (for example, higher than a predetermined threshold), the air conditioner turning on operation can be executed by the voice assistant or controlled by the voice assistant to control the corresponding control module.

[0029] In some embodiments, the rejection model can be obtained through training of multiple audio-text pairs, wherein the audio-text pairs of human-computer dialogue are used as positive training samples, and the audio-text pairs of non-human-computer dialogue are used as negative training samples. For example, using audio-text pairs as training samples, binary classification training of human-computer dialogue and non-human-computer dialogue is performed (for example, using sigmoid function or more specifically softmax function), and multiple audio-text pairs are input into the model to obtain the result of supervised learning. For example, each audio data can be converted into a set of audio vectors [A1, ..., An] through, for example, wav2vec2, and each text can be converted into a set of sentence-level text vectors [T1, ..., Tn] through, for example, GPT2, and the training results are obtained, for example, through a feedforward neural network FFN and a binary classification function.

[0030] Further, in some other embodiments, the training of the rejection model may further include comparative learning of the audio vector and the text vector of each audio-text pair, and cross-calculating the similarity, retaining the audio-text pairs with similarity greater than a predetermined similarity threshold, and removing the audio-text pairs with similarity less than the predetermined similarity threshold. Specifically, for the rejection model of the dual encoder structure (twin tower) for joint modeling of text and speech, since speech recognition (such as ASR) has a certain probability of misrecognition, for example, the text in the audio-text pair is a text that is not aligned with the corresponding audio, the rejection model is prone to make wrong predictions for such unaligned audio-text pairs. Therefore, through multimodal contrastive learning, the representation of audio and text is mapped to the same semantic space, for example, multiple audio-text pairs are input into the rejection model in batches, and the audio vectors and text vectors of the audio-text pairs (for example, the aforementioned set of audio vectors [A1, ..., An] and a set of sentence-level text vectors [T1, ..., Tn]) are spliced ​​to obtain a set of merged vectors [M1, ..., Mn]. Then, the audio-text pairs of human-computer dialogue are used as positive examples (positive training samples), and the audio-text pairs of non-human-computer dialogue are used as negative examples (negative training samples). The cross entropy and loss are calculated for the audio vector, text vector, and merged vector respectively, and multiple supervised learning results are obtained. In addition, the audio and text in the same batch are compared and learned, and the similarity is cross-calculated respectively. Assuming that a batch has n pairs (audio [A1,...,An], text [T1,...,Tn]), there can be n*n combinations (a matrix with A1-An as columns and T1-Tn as rows). The contrastive learning can take the n combinations in the original data set (i.e. [A1T1,A2T2,A3T3,...,AnTn], which is the diagonal of the matrix) as positive samples, and the other n*nn combinations as negative samples. The loss is calculated by, for example, InfoNCE to obtain the contrastive learning results. Finally, the four losses (loss for audio vector, text vector, merged vector, and cross-calculation similarity) can be weighted to obtain the weighted loss calculation result. When using the rejection model for reasoning, the confidence of the merged vector M after softmax transformation is used as the result of the rejection model. If the current dialogue is predicted to be not a human-computer dialogue, it needs to be rejected by the system. In this way, based on the dual encoder structure, the comparative learning similarity calculation of audio-text pairs can be introduced to eliminate sample pairs with low similarity (such as unaligned audio-text pairs), or the loss obtained by cross-calculation similarity is considered as part of the global fusion loss, further improving the accuracy of the rejection model's operation to determine the confidence.

[0031] In the scenario or embodiment of using a voice assistant for a vehicle, the rejection model training process and / or the use of the rejection model (i.e., obtaining the rejection confidence) can be performed in the cloud (e.g., cloud server, cloud platform) to minimize the use of vehicle computing resources. Among them, the vehicle side can transmit the audio data and the recognized text communication to the cloud. In other embodiments, the cloud can perform the process of recognizing audio data as text, and the vehicle side only needs to transmit the audio data (e.g., the audio recorded by the vehicle microphone) to the cloud.

[0032] In some embodiments, the model trained on the cloud can be streamlined to obtain a streamlined rejection model suitable for deployment on the vehicle side, so as to achieve faster rejection confidence determination and smaller computing resource occupation for some texts on the vehicle side, and optionally the audio and text can be transmitted to the cloud for further analysis in certain uncertain situations. For example, if the rejection confidence of a certain text obtained by the analysis of the streamlined rejection model deployed on the vehicle side is close to the predetermined confidence threshold, or is in the middle score (for example, between 0.4-0.6 in the confidence interval 0-1), it can be considered that the result obtained by the model deployed on the vehicle side is relatively vague and less credible, so the audio and text can be transmitted to the cloud and analyzed using a more comprehensive rejection model on the cloud to obtain a more accurate rejection confidence.

[0033] In some embodiments, dual-reset confidence calculations can be further set up on the vehicle side and the cloud side. For example, when the rejection confidence of a text calculated by the vehicle-side model is higher than a certain confidence threshold (marked as the text is credible) and is not rejected, the audio and text can be further transmitted to the cloud and analyzed using a more comprehensive rejection model on the cloud side. Therefore, when the rejection confidence calculated by the vehicle side and the cloud side exceeds the confidence threshold, the text is ultimately determined to be credible (not rejected). When the vehicle side does not reject but the cloud side rejects, the text is ultimately determined to be untrustworthy (rejected). Of course, it can be understood that when the computing power resources on the vehicle side are sufficient, method 100 can be performed independently by the vehicle side.

[0034] In this way, the vehicle and the cloud can cooperate to achieve faster processing speed, smaller computing power usage and more accurate confidence calculation results, further reducing the possibility of false triggering and false wake-up.

[0035] In some embodiments, method 100 may further include a sentence segmentation step, and the recognized text may be divided into a plurality of sentence texts, wherein the plurality of sentence texts include a first sentence text corresponding to the current conversation sentence indicated in the audio data and a second sentence text corresponding to the previous conversation sentence of the current conversation sentence. That is, the audio data may reflect the real-time speech of the current conversation, and the sentence segmentation is performed according to certain rules, and the text corresponding to the audio data is segmented into a plurality of sentence texts. Among them, the divided plurality of sentence texts at least include the sentence text corresponding to the latest audio data portion received (for example, a sentence just spoken by the user) and the previous sentence text of the sentence text (for example, a sentence before the sentence just spoken by the user). Thus, the speech recognition and the rejection model analysis may be performed with the specific sentence as the minimum granularity, and the rejection confidence is calculated for each sentence text, so as to improve the speed and accuracy of the audio speech recognition. It can be understood that in other embodiments, the time interval between the plurality of sentence texts may be greater than the first predetermined time interval. That is, the division of sentences can be based on the length of the pause time interval between each sentence. For example, the empirical value of the time interval for sentence segmentation in human-computer dialogue is generally around 0.5-2 seconds, and the sentence segmentation can be performed based on whether the time interval is greater than, for example, 0.5 seconds. However, it can also be understood that in addition to the time interval, other types of sentence segmentation techniques can also be used.

[0036] As such, for different trigger word positions, multiple embodiments can be designed to determine whether to wake up the voice assistant and whether the voice assistant executes the instruction corresponding to the text sentence. These embodiments include at least the following:

[0037] Embodiment 1: When it is determined that the first sentence text is a trigger word, the voice assistant is awakened, and based on the rejection confidence of the second sentence text, it is determined whether the voice assistant executes the instruction corresponding to the second sentence text. Specifically, when it is detected that the sentence text about the current sentence (for example, a sentence just spoken by the user) in the audio data is a trigger word, the voice assistant is awakened, and then the previous sentence text of the sentence text about the current sentence is retrieved, and based on the rejection confidence obtained when the rejection model analysis of the previous sentence text is performed, it is determined whether to execute the instruction corresponding to the previous sentence text. For example, the trigger word is preset as "ABC", the user says "please turn on the air conditioner" and then says "ABC", then after the user says "ABC", the voice recognizes the "ABC" text and determines that the sentence text is a trigger word (that is, it is determined that the first sentence text is a trigger word), wakes up the voice assistant, and retrieves the previously cached "please turn on the air conditioner" sentence text and its rejection confidence, and when the rejection confidence meets the standard (for example, higher than a certain confidence threshold), it is determined that the voice assistant executes the instruction to turn on the air conditioner.

[0038] Embodiment 2: When it is determined that the second sentence text is a trigger word, the voice assistant is awakened, and based on the rejection confidence of the first sentence text, it is determined whether the voice assistant executes the instruction corresponding to the first sentence text. Specifically, when it is detected that the sentence text about the current sentence (for example, the sentence just spoken by the user) in the audio data is a trigger word, the voice assistant is awakened, and then waits for the next consecutive audio data (for example, the next sentence spoken by the user), and performs speech recognition and rejection model analysis on the next audio data to obtain the corresponding sentence text and its rejection confidence, and based on this, it is determined whether to execute the instruction corresponding to the next audio data and its sentence text. For example, the trigger word is preset as "ABC", the user speaks "ABC" and then says "Please turn on the air conditioner", then after the user speaks "ABC", the voice recognizes the "ABC" text and determines that the sentence text is a trigger word, and wakes up the voice assistant. Next, after receiving the audio data of "Please turn on the air conditioner", the audio data is subjected to speech recognition and rejection confidence determination, and then when the rejection confidence meets the standard (for example, higher than a certain confidence threshold), it is determined that the voice assistant executes the command to turn on the air conditioner.

[0039] Embodiment 3: When it is determined that the first sentence text includes a trigger word and other sentences, the voice assistant is awakened, and based on the rejection confidence of the other sentences, it is determined whether the voice assistant executes the instructions corresponding to the other sentences. Specifically, when it is detected that the sentence text about the current sentence (for example, a sentence just spoken by the user) in the audio data includes a trigger word, the voice assistant is awakened, and then determines whether to execute the instructions corresponding to the non-trigger word part based on the non-trigger word part in the sentence text and the rejection confidence obtained by analysis. For example, the trigger word is preset to "ABC", and the user says "Please ABC turn on the air conditioner", then the voice recognizes the "ABC" text and determines that the sentence text includes the trigger word, and wakes up the voice assistant. Next, based on the voice recognition and rejection confidence of the remaining part of the audio data "Please... turn on the air conditioner", when the rejection confidence meets the standard (for example, higher than a certain confidence threshold), it is determined that the voice assistant executes the instruction to turn on the air conditioner.

[0040] Embodiment 4: Similar to Embodiment 3, determining that the first sentence text includes trigger words and other sentences may further include: determining that the first sentence text is composed of other sentences and trigger words as prefixes or suffixes. Specifically, when it is detected that the prefix or suffix of the sentence text about the current sentence (for example, a sentence just spoken by the user) in the audio data is a trigger word, the voice assistant is awakened, and then determines whether to execute the instruction corresponding to the non-trigger word part based on the non-trigger word part in the sentence text and the rejection confidence obtained by analysis. For example, the trigger word is preset as "ABC", and the user says "ABC please turn on the air conditioner" (or "Please turn on the air conditioner ABC"), then the voice recognizes the "ABC" text and determines that the prefix or suffix of the sentence text is a trigger word, and wakes up the voice assistant. Next, based on the voice recognition and rejection confidence of the remaining part of the audio data "Please turn on the air conditioner", when the rejection confidence meets the standard (for example, higher than a certain confidence threshold), it is determined that the voice assistant executes the instruction to turn on the air conditioner. Thus, since the presence of the trigger word in a prefix or suffix is ​​more likely to be a human-computer dialogue than the presence of the trigger word in a sentence, Embodiment 4 can avoid some misidentification and mistriggering situations compared to Embodiment 3.

[0041] In some other embodiments, the rejection model can also be detected for the trigger word itself. For example, for any of the aforementioned embodiments 1-4, after detecting the trigger word, it can be determined whether to wake up the voice assistant based on whether the rejection confidence obtained by the rejection model corresponding to the trigger word meets a predetermined confidence standard. In addition, for some embodiments, the judgment of the time interval between sentences can be added to the aforementioned embodiments 1-2. For example, in embodiment 1, it can be set that in addition to the conditions described in embodiment 1, the time interval between the second sentence text and the first sentence text must be greater than, for example, 3 seconds to trigger the execution of the instruction corresponding to the second sentence text.

[0042] In some embodiments, method 100 may further include: when it is determined that the recognized text does not include a trigger word, deleting the second sentence text and / or part of the audio data corresponding to the second sentence text. That is, when it is determined that the current sentence text (for example, a sentence just spoken by the user) does not include a trigger word, then the previous sentence text of the current sentence text and its corresponding audio data can be deleted. In this way, the continuously received audio data (for example, the recording file data of an ongoing user conversation) can be cached and slid deleted in real time without the need to perform speech recognition, rejection model processing, etc. across the entire conversation or audio data, thereby saving the storage and computing resources required for processing and improving the efficiency of speech recognition and voice assistant wake-up.

[0043] In some embodiments, method 100 may further include: when it is determined that the recognized text hits the blacklist, maintaining the voice assistant in an unawakened state. A blacklist list can be set in advance, and when the recognized text is a pre-stored text in the blacklist list, the voice assistant is maintained not awakened. In this way, some sentences that are empirically not part of human-computer dialogue can be flexibly stored in the blacklist list, and some common sentences that are prone to false triggering can be processed, further improving the frequency of the voice assistant being correctly awakened.

[0044] In some embodiments, before the voice assistant executes or executes the corresponding sentence text via the control module, it can be further determined whether to ask the user again whether to execute the instruction based on the instruction content. For example, for some more important (e.g., safety-related) instructions (e.g., turning on / off the high beam), the voice assistant can further ask the user whether to execute the instruction. Some more routine instructions (e.g., turning on the air conditioner) can be executed directly without asking the user.

[0045] Figure 2A flow chart of a voice assistant interaction method 200 according to some embodiments is shown, which shows an exemplary voice assistant wake-up and command execution process. After the process starts, a certain space (such as a car) can be optionally continuously recorded and audio denoised, and the denoised audio can be subjected to text recognition to obtain a text recognition result. The denoised audio and the corresponding text recognition result are input into the multimodal rejection model for analysis to obtain a rejection confidence for the text recognition result. Then, the following can be judged in sequence: whether the prefix and suffix of the current text recognition result (current sentence) are predetermined trigger words (such as brand words); whether the previous sentence of the current text recognition result (current sentence) is a predetermined trigger word (such as a brand word) and the rejection confidence condition of the trigger word is satisfied (not rejected); whether the current text recognition result (current sentence) is a predetermined trigger word (such as a brand word) and the rejection confidence condition of the trigger word is satisfied (not rejected). If all three judgment conditions are not met, the current sentence is cached for use in the next round (i.e., for use by future recorded audio), wherein the cache can be set to a sliding deletion form of storage, for example, if a certain time is exceeded, the cache of the current sentence and / or the previous sentence and the corresponding audio, rejection model (confidence), etc. is deleted, or when the trigger word is not detected in the current sentence, the cache of the previous sentence and the corresponding audio, rejection model (confidence), etc. is deleted, and the process ends. If any of the three judgment conditions is met, a request is initiated with the specific information of the current sentence or the previous sentence, and then it is determined whether the rejection confidence condition of the text of the specific information is met (whether it is rejected by the rejection model). If it is not met, the result is discarded and the process ends. If it is met, the wake-up-free (wake-up voice assistant) can be triggered to execute the instruction. Among them, a blacklist condition can also be set optionally, and the result is discarded and the process ends when the text of the specific information that initiates the request hits the blacklist. If it does not hit, the wake-up-free (wake-up voice assistant) is continued to be triggered to execute the instruction. After the execution of the instruction, the process can be ended immediately or after a predetermined time (for example, no next audio is generated within 3 seconds).

[0046] The various embodiments of the present disclosure can achieve command recognition and processing for more scenarios and dialogues by introducing trigger words and detecting trigger words in the current text sentence and in the preceding and following sentences, which greatly expands the application scope and flexible response of the voice assistant and improves the wake-up-free experience of users using the voice assistant. In addition, the rejection confidence calculated by the rejection model can reduce the false detection, false triggering or false recognition of command recognition for trigger words and / or dialogues. In addition, as mentioned above, the rejection model can further use contrastive learning to eliminate audio and recognized text with low similarity (unaligned), further improving the accuracy of the confidence generated by the rejection model processing.

[0047] According to another aspect of the present disclosure, a computer-readable storage medium storing instructions is also provided, and a processor or a processing module executes the voice assistant interaction method 100 and 200 according to any embodiment of the present disclosure when running the instructions.

[0048] According to another aspect of the present disclosure, a voice assistant system is also provided, including a memory storing instructions and a processor, and the processor executes the voice assistant interaction method 100 and 200 according to any embodiment of the present disclosure when running the instructions.

[0049] The computer-readable storage medium, memory, storage unit, storage module, etc. referred to in this application include various types of computer-readable storage media, which can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, the computer-readable medium can include RAM, ROM, EPROM, EEPROM, etc. 2 PROM, register, hard disk, removable disk, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or can be used to carry or store the desired program code unit with instruction or data structure form and can be accessed by general or special computer, or general or special processor any other temporary or non-temporary medium. The above combination should also be included in the protection scope of computer-readable medium. Exemplary storage medium is coupled to processor so that the processor can read and write information from / to the storage medium. In an alternative, storage medium can be integrated into processor. Processor and storage medium can reside in ASIC. ASIC can reside in user terminal. In an alternative, processor and storage medium can reside in user terminal as discrete components.

[0050] It should be noted that the execution subject of the method of the present application is an electronic device, specifically, it can be any common computing device such as a vehicle-mounted terminal, a mobile terminal, a cloud server, a desktop computer, a notebook, a PDA, a workstation, a smart phone, etc., or it can be other computing devices; alternatively, the execution subject of the method of the present application may include two or more electronic devices, which execute the method of the present application in a collaborative manner; for example, the execution subject of the method of the present application may include two electronic devices, a mobile terminal and a cloud server, the mobile terminal executes a part of the process, and the cloud server executes another part of the process, and the two complete the method of the present application in a collaborative manner.

[0051] According to yet another aspect of the present disclosure, a vehicle including a computer-readable storage medium according to any embodiment of the present disclosure or a voice assistant system according to any embodiment of the present disclosure is also provided. The vehicle referred to in the present disclosure is intended to represent any appropriate vehicle having a drive system, for example, a fuel-powered vehicle, a hybrid vehicle, an electric vehicle, a plug-in hybrid electric vehicle, and the like.

[0052] It should be noted that the user information (including but not limited to user device information, user personal information, object information corresponding to vehicle usage data, recording data information, etc.) and data (including but not limited to recording data for analysis, stored audio data, displayed data, vehicle usage data, data used for training, etc.) involved in the embodiments of the present disclosure are all information and data authorized by the user or fully authorized by all parties. In addition, the data acquisition, collection (recording action) and other actions involved in the embodiments of the present disclosure are all performed after being authorized by the user or the object or fully authorized by all parties.

[0053] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.

[0054] The user personal information processed by the applicant will vary depending on the specific product / service scenario, and shall be based on the specific scenario in which the user uses the product / service, which may involve the user's account information, device information, driving information, vehicle information or other related information. The applicant will treat the user's personal information and its processing with a high degree of diligence.

[0055] The Applicant attaches great importance to the security of user personal information and has adopted reasonable and feasible security protection measures that comply with industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.

[0056] The above mainly describes the voice assistant interaction method, voice assistant system, corresponding computer-readable storage medium and vehicle including the former of the present disclosure. Although only some of the specific embodiments of the present disclosure are described, it should be understood by those of ordinary skill in the art that the present disclosure can be implemented in many other forms without departing from its subject matter and scope. Therefore, the examples and embodiments shown are regarded as illustrative rather than restrictive, and the present disclosure may cover various modifications and substitutions without departing from the spirit and scope of the present disclosure as defined in the appended claims.

Claims

1. A voice assistant interaction method, characterized in that: The method comprises the following steps: S1: inputting the text recognized for the audio data and the corresponding audio data into a rejection model to obtain the rejection confidence of the recognized text; S2: Detecting trigger words in the recognized text; S3: When it is determined that the recognized text includes the trigger word, determine whether the voice assistant executes an instruction corresponding to the recognized text based on the rejection confidence of the recognized text.

2. The voice assistant interaction method according to claim 1, characterized in that: The rejection model is obtained by training multiple audio-text pairs, wherein the audio-text pairs of human-computer dialogue are used as positive training samples, and the audio-text pairs of non-human-computer dialogue are used as negative training samples.

3. The voice assistant interaction method according to claim 2, characterized in that: The training of the rejection model further includes: The audio vector and the text vector of each audio-text pair are compared and learned, and the similarity is cross-calculated, so that the audio-text pairs with similarity greater than a predetermined similarity threshold are retained, and the audio-text pairs with similarity less than the predetermined similarity threshold are eliminated.

4. The voice assistant interaction method according to claim 1, characterized in that: The method further comprises: The recognized text is divided into a plurality of sentence texts, the plurality of sentence texts including a first sentence text corresponding to a current dialogue sentence indicated in the audio data and a second sentence text corresponding to a previous dialogue sentence of the current dialogue sentence.

5. The voice assistant interaction method according to claim 4, characterized in that: The time interval between the multiple sentence texts is greater than a first predetermined time interval.

6. The voice assistant interaction method according to claim 4, characterized in that: The step S3 further comprises: In the case where it is determined that the first sentence text is the trigger word, waking up the voice assistant, and determining whether the voice assistant executes the instruction corresponding to the second sentence text based on the rejection confidence of the second sentence text; When it is determined that the second sentence text is the trigger word, the voice assistant is woken up, and based on the rejection confidence of the first sentence text, it is determined whether the voice assistant executes the instruction corresponding to the first sentence text.

7. The voice assistant interaction method according to claim 6, characterized in that: The method of waking up the voice assistant when determining that the first sentence text is the trigger word further includes: When it is detected that the first sentence text is the trigger word and the rejection confidence of the first sentence text is higher than a predetermined threshold, the voice assistant is woken up.

8. The voice assistant interaction method according to claim 6, characterized in that: The step S3 further comprises: When it is determined that the first sentence text includes the trigger word and other sentences, the voice assistant is woken up, and based on the rejection confidence of the other sentences, it is determined whether the voice assistant executes the instructions corresponding to the other sentences.

9. The voice assistant interaction method according to claim 8, characterized in that: The step of determining that the first sentence text includes the trigger word and other sentences further includes: It is determined that the first sentence text is composed of the other sentences and the trigger word as a prefix or a suffix.

10. The voice assistant interaction method according to claim 1, characterized in that: Before step S1, the method further comprises: The environment is recorded in real time to obtain the audio data.

11. The voice assistant interaction method according to claim 4, characterized in that: The method further comprises: In the case where it is determined that the recognized text does not include a trigger word, the second sentence text and / or a portion of the audio data corresponding to the second sentence text is deleted.

12. The voice assistant interaction method according to claim 1, characterized in that: The method further comprises: In the event that it is determined that the recognized text hits the blacklist, the voice assistant is maintained in an unaware state.

13. A computer-readable storage medium, characterized in that:The computer-readable storage medium stores instructions, which, when executed by a processor, implement the voice assistant interaction method according to any one of claims 1-12.

14. A voice assistant system, characterized in that: The voice assistant system includes a processor and a memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the voice assistant interaction method according to any one of claims 1-12 is implemented.