Voice control method, device, equipment and medium

By identifying and converting the language of voice control information and calculating the distance value between the operation text and the standard text set, the problem of inaccurate voice control in smart devices is solved, achieving higher fault tolerance and accuracy, reducing memory usage, and improving user experience.

CN114038449BActive Publication Date: 2024-09-17SHENZHEN RAISOUND TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111424058.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-09-17
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

In voice control of existing smart devices, the voice information sent by the user is inconsistent with the text information of the device guidance, resulting in inaccurate control. Existing keyword matching and similar text set methods cannot effectively cope with flexible application scenarios, and storage takes up memory. The resources are larger.

Method used

By identifying the language type of the voice control information, convert it into a text set in a standard language, and calculate the distance value between the operation text and the standard text set, select the most matching operation text to control the smart device, and use the pre-trained language recognition model Perform speech language representation and text feature extraction with the semantic recognition model to improve the fault tolerance of speech control.

Benefits of technology

It improves the accuracy and fault tolerance of voice control of smart devices, reduces memory usage, supports different languages ​​and controls with the same semantics but different texts and voices, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114038449B
    Figure CN114038449B
Patent Text Reader

Abstract

This invention relates to intelligent control technology and discloses a voice control method, comprising: converting voice control information in a non-standard language into a first text set in a standard language; obtaining a second text set corresponding to the voice control information in the standard language; identifying operation texts corresponding to preset voice control controls in the target interface of an intelligent device; calculating a first distance value between each operation text and the first text set, or calculating a second distance value between each operation text and the second text set; selecting the operation text corresponding to the first or second distance value that satisfies preset conditions as the target operation text; and controlling the intelligent device to perform corresponding operations based on the target operation text. This invention also proposes a voice control device, apparatus, and medium. This invention can improve the fault tolerance and accuracy of voice control in intelligent devices and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a voice control method, device, electronic equipment and computer-readable storage medium. Background Art

[0002] With the continuous development of artificial intelligence technology, more and more smart devices have emerged in people's daily lives, especially smart home devices that support voice control, such as smart TVs, smart speakers, smart air conditioners, etc. Users can send voices corresponding to the guidance text information on the display screen or appearance of the smart home device to achieve voice control of the corresponding smart device. Users can achieve the effect of saying what they want without manually operating the remote control, which brings convenience to people's lives.

[0003] However, in the actual use of smart devices, it is common that the voice information sent by the user is not completely consistent with the guidance text information of the smart device, resulting in the inability of the smart device to accurately execute the corresponding voice control instructions. For example, the guidance text information is "exit", and the voice information sent by the user may be "back" or "end", or the guidance text information is "open", and the voice information sent by the user may be "OPEN". In response to this situation, the current method is mainly to improve the understanding of voice control of smart devices through keyword matching or constructing a similar text set of guidance text.

[0004] These two solutions, on the one hand, the keyword matching method is limited by the selected keyword range, and the similar text set method is also limited by the established similar text set range, which cannot cope with flexible and changeable actual application scenarios and does not fundamentally solve the problem. On the other hand, the storage of keywords or similar text sets will occupy a certain amount of memory. If you want to cover as many actual application scenarios as possible, the more corresponding keywords or similar text sets you have, the more memory you will occupy. Summary of the invention

[0005] The present invention provides a voice control method, device, electronic device and computer-readable storage medium, the main purpose of which is to improve the fault tolerance of voice control.

[0006] In a first aspect, the present invention provides a voice control method, the method comprising:

[0007] receiving voice control information, identifying the language type of the voice control information, and determining whether the language type is a preset standard language;

[0008] If the language type is not the standard language, converting the voice control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the voice control information;

[0009] If the language type is the standard language, acquiring a plurality of standard texts of the standard language corresponding to the voice control information to obtain a second text set corresponding to the voice control information;

[0010] Identify the operation text corresponding to the preset voice control control in the target interface of the smart device, calculate the first distance value between each of the operation text and the first text set, or calculate the second distance value between each of the operation text and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset conditions as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text.

[0011] In detail, the receiving of voice control information and identifying the language type of the voice control information includes:

[0012] Utilizing the speech language representation layer of the pre-trained language recognition model, extracting the language representation vector of the speech control information;

[0013] Calculating the relative probability value of the language representation vector and a plurality of preset language labels using an activation function;

[0014] The score of each language tag is calculated according to the relative probability value, and the language tag with the highest score is determined as the language type of the voice control information.

[0015] In detail, the step of identifying the operation text corresponding to the preset voice control control in the target interface of the smart device includes:

[0016] Acquire an interface image of the target interface;

[0017] Acquire a display area of ​​each of the preset voice-controlled controls in the interface image;

[0018] Determining a display image of each of the voice-controlled controls according to the interface image and the display area;

[0019] The text in each of the displayed images is identified as the operation text of the corresponding voice-controlled control.

[0020] In detail, the calculating of the first distance value between each of the operation texts and the first text set includes:

[0021] Performing word vector conversion on each text in the first text set to obtain a first word vector set corresponding to the first text set, and performing word vector conversion on each of the operation texts to obtain an operation text vector for each of the operation texts;

[0022] Using a pre-trained semantic recognition model, performing text feature extraction on the first word vector set to obtain a first text feature vector set corresponding to the first word vector set, and performing text feature extraction on the operation text vector of each of the operation texts to obtain a text feature vector of each of the operation texts;

[0023] A first distance value between the text feature vector of each of the operation texts and the first text feature vector set is calculated using a preset distance formula.

[0024] In detail, the method of using a pre-trained semantic recognition model to extract text features from the first word vector set to obtain a first text feature vector set corresponding to the first word vector set includes:

[0025] Convert the first word vector set into a position vector matrix;

[0026] Using the multi-head attention mechanism in the pre-trained semantic recognition model, the position vector matrix is ​​converted into a text feature vector association matrix;

[0027] Using the residual connection layer in the pre-trained semantic recognition model, the position vector matrix set and the text feature vector association matrix are connected to obtain a text feature vector close association matrix;

[0028] The fully connected layer in the pre-trained semantic recognition model is used to perform dimensionality reduction processing on the text feature vector close association matrix to obtain the first text feature vector set.

[0029] Specifically, the using of a preset distance formula to calculate the first distance value between the text feature vector of each of the operation texts and the first text feature vector set includes:

[0030] The first distance value between the text feature vector of each operation text and the first text feature vector set is calculated using the following calculation formula:

[0031]

[0032] Wherein, x is the text feature vector of the operation text, x j is the text feature vector of the jth operation text, y is the first text feature vector set, y j is the jth text feature vector in the first text feature vector set, d(x,y) 2 A first distance value between a text feature vector of each of the operation texts and the first text feature vector set is represented.

[0033] In detail, controlling the smart device to perform a corresponding operation according to the target operation text includes:

[0034] Obtaining target voice control information corresponding to the target operation text;

[0035] According to the target voice control information, query the operation interface corresponding to the target voice control in a preset voice control and operation interface mapping table;

[0036] The operation interface is called to perform corresponding operations on the smart device.

[0037] In a second aspect, the present invention provides a voice control device, the device comprising:

[0038] A voice language identification module, used for receiving voice control information, identifying the language type of the voice control information, and determining whether the language type is a preset standard language;

[0039] a speech-to-text conversion module, configured to, if the language type is not the standard language, convert the speech control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the speech control information; and, if the language type is the standard language, obtain a plurality of standard texts in the standard language corresponding to the speech control information to obtain a second text set corresponding to the speech control information;

[0040] A target operation text acquisition module is used to identify the operation text corresponding to the preset voice control control in the target interface of the smart device, calculate the first distance value between each of the operation texts and the first text set, or calculate the second distance value between each of the operation texts and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset conditions as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text.

[0041] In a third aspect, the present invention provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0042] Memory, used to store computer programs;

[0043] The processor is used to implement the steps of the voice control method described in any one of the embodiments of the first aspect when executing the program stored in the memory.

[0044] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the voice control method as described in any one of the embodiments of the first aspect.

[0045] The present invention application converts voice control information in a non-standard language and voice control information in a standard language into a first text set and a second text set in a standard language, determines a target operation text corresponding to the voice control information by calculating a first distance value between the first text set and an operation text of a smart device, or calculates a second distance value between the second text set and the operation text, and controls the smart device to perform a corresponding operation according to the target operation text. The present invention application supports controlling smart devices using voices in different languages ​​or using voices with the same semantics but different text content, thereby improving the fault tolerance of voice control of smart devices, thereby improving the accuracy of voice control, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0048] Figure 1 A flow chart of a voice control method provided by an embodiment of the present invention;

[0049] Figure 2 for Figure 1 A detailed implementation flow diagram of one of the steps in the voice control method shown;

[0050] Figure 3 for Figure 1 A detailed implementation flow diagram of one of the steps in the voice control method shown;

[0051] Figure 4 for Figure 1 A detailed implementation flow diagram of one of the steps in the voice control method shown;

[0052] Figure 5 A module schematic diagram of a voice control device provided by an embodiment of the present invention;

[0053] Figure 6 A schematic diagram of the structure of an electronic device for implementing a voice control method provided by an embodiment of the present invention; DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0055] Reference Figure 1 , which is a flow chart of a voice control method provided by an embodiment of the present invention.

[0056] In this embodiment, the voice control method includes:

[0057] S1. Receive voice control information, identify the language type of the voice control information, and determine whether the language type is a preset standard language.

[0058] In the embodiment of the present invention, the voice control information issued by the user can be obtained through the sound pickup module of the preset smart device. The smart device refers to a device that provides a certain graphic display interface for the user and supports user voice control, such as a smart TV, a smart speaker, a smart refrigerator, etc.

[0059] In the embodiment of the present invention, the language features of the voice control information can be extracted through a pre-trained language recognition model, and then the language type can be determined based on the extracted language features.

[0060] The pre-trained language recognition model is a model built based on a convolutional neural network, which is obtained by training with speech sample data, wherein the speech samples include multiple speech audio data with the same or different text contents in multiple different languages.

[0061] In the embodiment of the present invention, the preset standard language can be flexibly set according to the target sales area of ​​the smart device.

[0062] For details, see Figure 2 As shown, the S1 includes:

[0063] S11, extracting a language representation vector of the voice control information by using a speech language representation layer of a pre-trained language recognition model;

[0064] S12, using an activation function to calculate relative probability values ​​between the language representation vector and a plurality of preset language labels;

[0065] S13. Calculate the score of each language tag according to the relative probability value, and determine the language tag with the highest score as the language type of the voice control information.

[0066] In detail, the activation function includes but is not limited to a softmax activation function, a sigmoid activation function, and a relu activation function, and the preset multiple language labels include but are not limited to English, French, Japanese, German and other languages.

[0067] If the language type is not the standard language, executing S2, converting the voice control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the voice control information.

[0068] In the embodiment of the present invention, a public machine translation model can be used to set the language type of the target text corresponding to the voice control information to the standard language, so as to convert the voice control information into a converted text in the standard language.

[0069] In the embodiment of the present invention, it can be understood that the voice control information sent by the user is mostly words or short sentences. The voice control information is translated using a machine translation model or other voice translation tools. The translated texts obtained may have certain differences. There are multiple recommended conversion texts and multiple candidate conversion texts. The multiple recommended conversion texts or the multiple candidate conversion texts are all used as the first text set corresponding to the voice control information.

[0070] If the language type is the standard language, execute S3 to obtain a plurality of standard texts of the standard language corresponding to the voice control information to obtain a second text set corresponding to the voice control information.

[0071] In an embodiment of the present invention, an acoustic model and a natural language processing model can be used to perform text recognition on the voice control information. Normally, by performing text recognition on a piece of voice control information through the acoustic model and the natural language processing model, multiple recognition results can be obtained, that is, multiple standard texts are output, and the output multiple standard texts are combined into a second text set corresponding to the voice control information.

[0072] S4. Identify the operation text corresponding to the preset voice control in the target interface of the smart device, calculate the first distance value between each of the operation text and the first text set, or calculate the second distance value between each of the operation text and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset conditions as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text.

[0073] In the embodiment of the present invention, the target interface is a display interface that the user stays on when using the smart device, for example, a smart TV program on-demand interface.

[0074] The preset voice control controls can realize the elements of related operation events. For example, in the smart TV program on-demand interface, the voice control controls can be specific TV program classification items, such as live broadcast, news, variety shows, education, records, etc., or program content items, such as the name of a certain TV series, or other operable events provided by the smart device, such as search, exit, small screen display, etc. When the user stays on the target interface, the voice control information corresponding to the operation text provided by the target interface is issued to control the smart device.

[0075] For details, see Figure 3 As shown, the operation text corresponding to the preset voice control control in the target interface of the smart device is identified, including:

[0076] S41, acquiring an interface image of the target interface;

[0077] S42, obtaining a display area of ​​each of the preset voice-controlled controls in the interface image;

[0078] S43, determining a display image of each of the voice-controlled controls according to the interface image and the display area;

[0079] S44: Identify the text in each of the displayed images as the operation text of the corresponding voice-controlled control.

[0080] In the embodiment of the present invention, the interface image of the target interface may be acquired by methods such as screenshot or scanning.

[0081] In an embodiment of the present invention, taking any vertex of the interface image as the coordinate origin, the display area of ​​each voice-controlled control includes four values ​​(x1, y1, x2, y2), the starting coordinates of each display area are (x1, y1), and the ending coordinates are (x2, y2).

[0082] In the embodiment of the present invention, optical character recognition (OCR) technology may be used to recognize the text in the displayed image.

[0083] In the embodiment of the present invention, it can be understood that the smaller the first distance value between each of the operation texts and the first text set is, the higher the matching degree between the two is.

[0084] In an embodiment of the present invention, the preset condition can be set according to actual conditions. The preset condition can be that when the first distance value reaches a preset threshold, the operation text corresponding to the first distance value is selected to control the smart device to perform a corresponding operation, or the operation text corresponding to the minimum distance value among the first distance values ​​is selected to control the smart device to perform a corresponding operation.

[0085] For details, see Figure 4 As shown, the calculating of the first distance value between each of the operation texts and the first text set includes:

[0086] S51, performing word vector conversion on each text in the first text set to obtain a first word vector set corresponding to the first text set, and performing word vector conversion on each of the operation texts to obtain an operation text vector for each of the operation texts;

[0087] S52, using a pre-trained semantic recognition model, performing text feature extraction on the first word vector set to obtain a first text feature vector set corresponding to the first word vector set, performing text feature extraction on the operation text vector of each of the operation texts to obtain a text feature vector of each of the operation texts;

[0088] S53: Calculate a first distance value between the text feature vector of each of the operation texts and the first text feature vector set using a preset distance formula.

[0089] In an embodiment of the present invention, since the first text set, the second text set and each of the operation texts are composed of natural language, if the first text set, the second text set and each of the operation texts are directly analyzed, a large amount of computing resources will be occupied, resulting in low analysis efficiency. Therefore, the first text set, the second text set and each of the operation texts can be converted into word vectors, and then the text content composed of natural language can be converted into numerical form.

[0090] In an embodiment of the present invention, classic word vector models such as Word2vec, glove, and Elmo can be used to perform word vector conversion on the first text set, the second text set, and each of the operation texts.

[0091] In an embodiment of the present invention, the pre-trained semantic recognition model is obtained by training with a large number of samples consisting of similar semantic sentence pairs, and has semantic understanding and text generation capabilities. The pre-trained semantic recognition model can be a semantic recognition model built based on BERT or a semantic recognition model built based on UniLM. Compared with the semantic recognition model built based on BERT, the semantic recognition model built based on UniLM can not only handle the problem of natural language understanding well, but also handle the problem of natural language generation well. It is a pre-trained model that can both read and automatically generate text.

[0092] In an embodiment of the present invention, the method of using a pre-trained semantic recognition model to extract text features from the first word vector set to obtain a first text feature vector set corresponding to the first word vector set includes: converting the first word vector set into a position vector matrix; using the multi-head attention mechanism in the pre-trained semantic recognition model to convert the position vector matrix into a text feature vector association matrix; using the residual connection layer in the pre-trained semantic recognition model to connect the position vector matrix set and the text feature vector association matrix to obtain a text feature vector close association matrix; using the fully connected layer in the pre-trained semantic recognition model to perform dimensionality reduction processing on the text feature vector close association matrix to obtain the first text feature vector set.

[0093] In the embodiment of the present invention, the preset distance formula includes:

[0094]

[0095] Wherein, x is the text feature vector of the operation text, x j is the jth operation text feature vector, y is the first text feature vector set, y j is the jth text feature vector in the first text feature vector set, d(x,y) 2 A first distance value between a text feature vector of each of the operation texts and the first text feature vector set is represented.

[0096] In the embodiment of the present invention, it should be noted that the method for calculating the second distance value between each of the operation texts and the second text set is the same as the method for calculating the first distance value between each of the operation texts and the first text set, which will not be repeated here.

[0097] In detail, controlling the smart device to perform a corresponding operation according to the target operation text includes: obtaining target voice control control information corresponding to the target operation text; querying the operation interface corresponding to the target voice control in a preset voice control and operation interface mapping table according to the target voice control information; and calling the operation interface to perform a corresponding operation on the smart device.

[0098] In the embodiment of the present invention, the target voice-controlled control information may include information such as a voice-controlled control ID and an operation text corresponding to the voice-controlled control.

[0099] In an embodiment of the present invention, the preset voice control and operation interface mapping table defines operation interface information corresponding to the operation event bound to each voice control, wherein each voice control is distinguished by the voice control ID.

[0100] Preferably, in another embodiment of the present invention, voice comparison technology can be used to further verify the accuracy of the target operation text, including: obtaining a pre-constructed standard pronunciation sequence corresponding to the target operation text and the pronunciation sequence of the voice control information, and calculating a pronunciation distance value between the standard pronunciation sequence of the target operation text and the pronunciation sequence of the voice control information; when the pronunciation distance value meets a preset distance condition, the target operation text is used to perform a corresponding control operation on the smart device, and when the pronunciation distance value does not meet the preset distance condition, the user is prompted to re-issue the voice control information.

[0101] In another embodiment of the present invention, the pre-constructed standard pronunciation sequence is a standard pronunciation file pre-constructed based on the operation text corresponding to the preset voice control control in each interface of the smart device, and each of the operation files corresponds to a unique pronunciation sequence.

[0102] In another embodiment of the present invention, the pronunciation sequence of the voice control information can be obtained through the microphone of the smart device. If the user's voice control information is in a non-standard language, the pronunciation sequence of the voice control information in a standard language can be obtained using a voice translation model.

[0103] In another embodiment of the present invention, the minimum edit distance algorithm can be used to calculate the pronunciation distance value between the pronunciation sequence of the target operation text and the pronunciation sequence of the voice control information. It can be understood that the smaller the pronunciation distance value between the pronunciation sequence of the target operation text and the pronunciation sequence of the voice control information, the higher the degree of similarity between the two.

[0104] In another embodiment of the present invention, the preset distance condition can be set according to actual conditions. The preset distance condition can be that when the pronunciation distance value reaches a preset threshold, the target operation text is used to perform a corresponding control operation on the smart device, otherwise, the user is prompted to re-issue the voice control information.

[0105] In another embodiment of the present invention, the accuracy of the target operation text can be further verified by comparing the pronunciation distance value between the standard pronunciation sequence of the target operation text and the pronunciation sequence of the voice control information.

[0106] The present invention application converts voice control information in a non-standard language and voice control information in a standard language into a first text set and a second text set in a standard language, determines a target operation text corresponding to the voice control information by calculating a first distance value between the first text set and an operation text of a smart device, or calculates a second distance value between the second text set and the operation text, and controls the smart device to perform a corresponding operation according to the target operation text. The present invention application supports controlling smart devices using voices in different languages ​​or using voices with the same semantics but different text content, thereby improving the fault tolerance of voice control of smart devices, thereby improving the accuracy of voice control, and improving user experience.

[0107] like Figure 5 1 is a functional block diagram of a voice control device according to an embodiment of the present invention. The voice control device 100 comprises: a voice language identification module 101 , a voice text conversion module 102 and a target operation text acquisition module 103 .

[0108] The voice language identification module 101 is used to receive voice control information, identify the language type of the voice control information, and determine whether the language type is a preset standard language;

[0109] The voice-to-text conversion module 102 is configured to, if the language type is not the standard language, convert the voice control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the voice control information; if the language type is the standard language, obtain a plurality of standard texts in the standard language corresponding to the voice control information to obtain a second text set corresponding to the voice control information;

[0110] The target operation text acquisition module 103 is used to identify the operation text corresponding to the preset voice control control in the target interface of the smart device, calculate the first distance value between each of the operation text and the first text set, or calculate the second distance value between each of the operation text and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset conditions as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text.

[0111] In detail, each module in the voice control device 100 in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 4 The voice control method described in the invention has the same technical means and can produce the same technical effects, so it will not be repeated here.

[0112] like Figure 6As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114;

[0113] Memory 113, used for storing computer programs;

[0114] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the voice control method provided by any of the above method embodiments, including:

[0115] receiving voice control information, identifying the language type of the voice control information, and determining whether the language type is a preset standard language;

[0116] If the language type is not the standard language, converting the voice control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the voice control information;

[0117] If the language type is the standard language, acquiring a plurality of standard texts of the standard language corresponding to the voice control information to obtain a second text set corresponding to the voice control information;

[0118] Identify the operation text corresponding to the preset voice control control in the target interface of the smart device, calculate the first distance value between each of the operation text and the first text set, or calculate the second distance value between each of the operation text and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset conditions as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text.

[0119] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the voice control method provided in any of the aforementioned method embodiments are implemented.

[0120] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0121] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A voice control method, It is characterized in that The method comprises: receiving voice control information, identifying the language type of the voice control information, and determining whether the language type is a preset standard language; If the language type is not the standard language, converting the voice control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the voice control information; If the language type is the standard language, acquiring a plurality of standard texts of the standard language corresponding to the voice control information to obtain a second text set corresponding to the voice control information; Identify the operation text corresponding to the preset voice control in the target interface of the smart device, calculate the first distance value between each of the operation texts and the first text set, or calculate the second distance value between each of the operation texts and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset condition as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text; The calculating a first distance value between each of the operation texts and the first text set includes: Performing word vector conversion on each text in the first text set to obtain a first word vector set corresponding to the first text set, and performing word vector conversion on each of the operation texts to obtain an operation text vector for each of the operation texts; Using a pre-trained semantic recognition model, performing text feature extraction on the first word vector set to obtain a first text feature vector set corresponding to the first word vector set, and performing text feature extraction on the operation text vector of each of the operation texts to obtain a text feature vector of each of the operation texts; Using a preset distance formula, calculate a first distance value between the text feature vector of each of the operation texts and the first text feature vector set; The step of calculating the first distance value between the text feature vector of each operation text and the first text feature vector set by using a preset distance formula includes: The first distance value between the text feature vector of each operation text and the first text feature vector set is calculated using the following calculation formula: in, is the text feature vector of the operation text, For the The text feature vector of the operation text, is the first text feature vector set, is the first text feature vector set text feature vectors, represents a first distance value between a text feature vector of each of the operation texts and the first text feature vector set, where m is the number of the text feature vectors of the operation texts; The method for calculating the second distance value between each of the operation texts and the second text set is the same as the method for calculating the first distance value between each of the operation texts and the first text set.

2. The voice control method according to claim 1, It is characterized in that The receiving of voice control information and identifying the language type of the voice control information includes: Utilizing the speech language representation layer of the pre-trained language recognition model, extracting the language representation vector of the speech control information; Calculating the relative probability value of the language representation vector and a plurality of preset language labels using an activation function; The score of each language tag is calculated according to the relative probability value, and the language tag with the highest score is determined as the language type of the voice control information.

3. The voice control method according to claim 1, It is characterized in that The step of identifying the operation text corresponding to the preset voice control control in the target interface of the smart device includes: Acquire an interface image of the target interface; Acquire a display area of ​​each of the preset voice-controlled controls in the interface image; Determining a display image of each of the voice-controlled controls according to the interface image and the display area; The text in each of the displayed images is identified as the operation text of the corresponding voice-controlled control.

4. The voice control method according to claim 1, It is characterized in that The using of the pre-trained semantic recognition model to extract text features from the first word vector set to obtain a first text feature vector set corresponding to the first word vector set includes: Convert the first word vector set into a position vector matrix; Using the multi-head attention mechanism in the pre-trained semantic recognition model, the position vector matrix is ​​converted into a text feature vector association matrix; Using the residual connection layer in the pre-trained semantic recognition model, the position vector matrix set and the text feature vector association matrix are connected to obtain a text feature vector close association matrix; The fully connected layer in the pre-trained semantic recognition model is used to perform dimensionality reduction processing on the text feature vector close association matrix to obtain the first text feature vector set.

5. The voice control method according to any one of claims 1 to 4, It is characterized in that The controlling the smart device to perform a corresponding operation according to the target operation text includes: Obtaining target voice control information corresponding to the target operation text; According to the target voice control information, query the operation interface corresponding to the target voice control in a preset voice control and operation interface mapping table; The operation interface is called to perform corresponding operations on the smart device.

6. A voice control device, It is characterized in that The device comprises: A voice language identification module, used for receiving voice control information, identifying the language type of the voice control information, and determining whether the language type is a preset standard language; a speech-to-text conversion module, configured to, if the language type is not the standard language, convert the speech control information into a plurality of converted texts in the standard language to obtain a first text set corresponding to the speech control information; and, if the language type is the standard language, obtain a plurality of standard texts in the standard language corresponding to the speech control information to obtain a second text set corresponding to the speech control information; a target operation text acquisition module, used to identify the operation text corresponding to the preset voice control in the target interface of the smart device, calculate the first distance value between each of the operation texts and the first text set, or calculate the second distance value between each of the operation texts and the second text set, select the operation text corresponding to the first distance value or the second distance value that meets the preset conditions as the target operation text, and control the smart device to perform the corresponding operation according to the target operation text; The calculating a first distance value between each of the operation texts and the first text set includes: Performing word vector conversion on each text in the first text set to obtain a first word vector set corresponding to the first text set, and performing word vector conversion on each of the operation texts to obtain an operation text vector for each of the operation texts; Using a pre-trained semantic recognition model, performing text feature extraction on the first word vector set to obtain a first text feature vector set corresponding to the first word vector set, and performing text feature extraction on the operation text vector of each of the operation texts to obtain a text feature vector of each of the operation texts; Using a preset distance formula, calculate a first distance value between the text feature vector of each of the operation texts and the first text feature vector set; The step of calculating the first distance value between the text feature vector of each operation text and the first text feature vector set by using a preset distance formula includes: The first distance value between the text feature vector of each operation text and the first text feature vector set is calculated using the following calculation formula: in, is the text feature vector of the operation text, For the The text feature vector of the operation text, is the first text feature vector set, is the first text feature vector set text feature vectors, represents a first distance value between a text feature vector of each of the operation texts and the first text feature vector set, where m is the number of the text feature vectors of the operation texts; The method for calculating the second distance value between each of the operation texts and the second text set is the same as the method for calculating the first distance value between each of the operation texts and the first text set.

7. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor is used to implement the steps of the voice control method described in any one of claims 1 to 5 when executing the program stored in the memory.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the voice control method according to any one of claims 1 to 5 is implemented.