Interaction method, interaction device, electronic device and medium
By building an acoustic feature library in electronic devices and converting voice information into system events, the problem of tight coupling between voice interaction technology and applications is solved, enabling voice interaction without retraining user habits, reducing costs and improving user experience and Extensibility of technology promotion.
Patent Information
- Application Number
- CN201910527533.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-06-18
Smart Images

Figure CN112102820B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to an interaction method, an interaction device, an electronic device, and a medium applicable to an electronic device. Background Art
[0002] With the advent of the era of artificial intelligence (AI), voice interaction has become an increasingly important user portal. Users can complete tasks such as device control and task execution through voice interaction, which previously required input devices such as mouse, keyboard, and touchpad to complete. Voice interaction also solves the problem that some people do not know how to use computers and smart terminals. Voice interaction is considered to be one of the new major changes after applications (APP).
[0003] In existing voice interaction technology, natural language interaction for specific application functions is usually used to solve interaction problems, such as "play me a song" or "open WeChat" to instruct specific applications to play a song or open an application. This technology completely abandons the habit of graphical operation interfaces on mobile APPs and personal computers (PCs).
[0004] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the prior art: the existing voice interaction technology and the application itself are tightly coupled and not easy to reuse. In addition, for existing applications that require input devices such as keyboards and mice to perform operations, when the operation mode is converted to voice operation, the user's usage habits need to be re-cultivated. Summary of the invention
[0005] In view of this, the present disclosure provides an interaction method, an interaction device, an electronic device and a medium that decouples voice interaction technology from applications and does not require the cultivation of new usage habits.
[0006] One aspect of the present disclosure provides an interaction method performed by an electronic device, comprising the following operations: first, receiving voice information, then determining whether the voice information includes information associated with a system event, wherein the system event is an event corresponding to input information of at least one input device supported by the electronic device, and then, when it is determined that the voice information includes the information associated with the system event, the electronic device distributes the system event to an object related to the system event.
[0007] The interactive method provided by the present disclosure determines whether the voice information includes information of a system event corresponding to the input information of the input device, such as clicking a mouse, inputting the letter A, or clicking a touch screen, etc. If included, the system event is distributed. In this way, the input voice information can be directly converted into instructions input by operating input devices such as a keyboard and a mouse, and then the voice information can be converted into a system event, and the system event is distributed to applications through the system to achieve human-computer interaction. The applicable applications are very wide, such as various applications installed on electronic devices with input devices, and the voice interaction-related technologies that application developers usually need to pay attention to are eliminated.
[0008] According to an embodiment of the present disclosure, the determining whether the voice information includes information associated with a system event includes: matching the voice information in an acoustic feature library to determine whether the voice information includes an acoustic feature corresponding to a system event, wherein the acoustic feature library is stored in the electronic device, and the acoustic feature library includes a correspondence between acoustic features and system events. Since the acoustic feature library can be pre-trained offline, it is convenient to quickly and accurately determine whether the voice information includes system event-related information based on the acoustic feature library.
[0009] According to an embodiment of the present disclosure, the method may further include constructing the acoustic feature library, wherein the constructing the acoustic feature library may include the following operations: first, obtaining the system events and corresponding acoustic features, and then generating a mapping model between the system events and the corresponding acoustic features.
[0010] According to an embodiment of the present disclosure, the construction of the acoustic feature library may include the following operations: first, obtaining text information of the system event corresponding to the input information of the at least one input device, then generating acoustic features of the text information based on the acoustic features of the speech unit, and then storing the system event, the acoustic features and the mapping model. The speech unit may be various basic units constituting speech, such as phonemes, characters and words, so that the acoustic features of the system event can be synthesized based on the speech unit.
[0011] According to an embodiment of the present disclosure, obtaining the system event and the corresponding acoustic feature may include the following operations: first, obtaining the system event corresponding to the input information of the at least one input device, then obtaining the voice information of the system event corresponding to the input information of the at least one input device, and then extracting the acoustic feature of the voice information of the system event. In this way, the acoustic features of the system event can be obtained using the voice model tool.
[0012] According to an embodiment of the present disclosure, the method may further include the following operation: updating the acoustic feature library independently of the application installed in the electronic device, so that it is not necessary to update the corresponding application at the same time when the acoustic feature library needs to be updated.
[0013] According to an embodiment of the present disclosure, the method may further include the following operations: when it is determined that the voice information does not include information associated with the system event, voice recognition is performed on the voice information to obtain text information, and then the semantic information of the text information is determined, and then whether the semantic information includes semantic information associated with the system event, and when the semantic information includes semantic information associated with the system event, the electronic device distributes the system event to an object related to the system event. When the voice information does not include the voice information corresponding to the system event, voice recognition and semantic analysis are performed to obtain semantic information, and then the system event can be obtained based on the semantic information, which effectively covers a variety of voice expressions for the same semantics and helps to improve user experience.
[0014] According to an embodiment of the present disclosure, the semantic information of the system event includes standard semantic information and extended semantic information, and the semantics of the extended semantic information is obtained by extending the semantics of the standard semantic information.
[0015] Another aspect of the present disclosure provides an interactive device executed by an electronic device, which may include: an information receiving module, a first event determination module and a first event distribution module, wherein the information receiving module is used to receive voice information, the first event determination module is used to determine whether the voice information includes information associated with a system event, wherein the system event is an event corresponding to input information of at least one input device supported by the electronic device, and the first event distribution module is used to, when determining that the voice information includes the information associated with the system event, the electronic device distributes the system event to an object related to the system event.
[0016] According to an embodiment of the present disclosure, the first event determination module is specifically used to match the voice information in an acoustic feature library to determine whether the voice information includes acoustic features corresponding to system events, wherein the acoustic feature library is stored in the electronic device, and the acoustic feature library includes the correspondence between acoustic features and system events.
[0017] According to an embodiment of the present disclosure, the device may also include: a model library construction module, the model library construction module includes: an acoustic feature acquisition unit and a mapping model generation unit, wherein the acoustic feature acquisition unit is used to obtain the system event and the corresponding acoustic feature, and the mapping model generation unit is used to generate a mapping model between the system event and the corresponding acoustic feature.
[0018] According to an embodiment of the present disclosure, the acoustic feature acquisition unit includes: an event acquisition subunit, a voice information acquisition subunit and an acoustic feature acquisition subunit, wherein the event acquisition subunit is used to obtain a system event corresponding to the inputtable information of the at least one input device, the voice information acquisition subunit is used to obtain voice information of the system event corresponding to the inputtable information of the at least one input device, and the acoustic feature acquisition subunit is used to extract acoustic features of the voice information of the system event.
[0019] According to an embodiment of the present disclosure, the apparatus may further include an updating module, and the updating module is used to update the acoustic feature library independently of an application installed in the electronic device.
[0020] According to an embodiment of the present disclosure, the device further includes: a speech recognition module, a semantic information acquisition module, a second event determination module, and a second event distribution module. The speech recognition module is used to perform speech recognition on the speech information to obtain text information when it is determined that the speech information does not include information associated with the system event, the semantic information acquisition module is used to determine the semantic information of the text information, the second event determination module is used to determine whether the semantic information includes semantic information associated with the system event, and the second event distribution module is used to distribute the system event to the object related to the system event when the semantic information includes semantic information associated with the system event.
[0021] According to an embodiment of the present disclosure, the semantic information of the system event includes standard semantic information and extended semantic information, and the semantics of the extended semantic information is obtained by extending the semantics of the standard semantic information.
[0022] Another aspect of the present disclosure provides an electronic device, including one or more processors and a storage device, wherein the storage device is used to store executable instructions, and when the executable instructions are executed by the processor, the method as described above is implemented.
[0023] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0024] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0026] Figure 1A The application scenarios of the interaction method, interaction device, electronic device and medium according to the embodiments of the present disclosure are schematically shown;
[0027] Figure 1B An exemplary system architecture to which the interaction method according to an embodiment of the present disclosure is applicable is schematically shown;
[0028] Figure 2 A flowchart of an interaction method performed by an electronic device according to an embodiment of the present disclosure is schematically shown;
[0029] Figure 3A A flowchart of an interaction method performed by an electronic device according to another embodiment of the present disclosure is schematically shown;
[0030] Figure 3B The following schematically shows a logic diagram of natural voice control according to an embodiment of the present disclosure;
[0031] Figure 4A A block diagram schematically shows an interaction device executed by an electronic device according to an embodiment of the present disclosure;
[0032] Figure 4B A block diagram schematically shows a voice control module according to an embodiment of the present disclosure; and
[0033] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0035] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0036] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0037] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). The terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features.
[0038] Voice interaction is usually achieved by the application layer to realize voice recognition and analysis to obtain text or control instructions, and then convert them into application logic to achieve the purpose of control or interaction. For example, a user sends a voice message of "JD.com, I want to buy a TV" to the current application. After receiving the voice, the current application processes the algorithm and performs semantic analysis to determine that it is a purchase instruction. This type of voice interaction method is tightly coupled with the application itself and is not easy to reuse. In addition, a large amount of acoustic feature information, such as voice models, will be embedded at the application level. In addition, a large number of semantic models may also be embedded, which not only takes up a lot of storage space (also known as a heavy application package), but also requires reinstalling or upgrading the application as the application function changes, and the above-mentioned voice model and semantic model need to be reinstalled or upgraded at the same time, which brings inconvenience to the promotion and use of the application.
[0039] After analysis, the key problem of the existing technology is that the new voice interaction method is to parse out the complete instructions (intentions) for the specific functions of the application to directly complete the tasks, conversations and other purposes. For the previous method of inputting instructions by operating input devices such as keyboards and mice, when changing to the method of inputting instructions by voice operation, it is necessary to re-cultivate users' new usage habits. Not only is the cycle long and the user experience hindered, but there is also a big gap in the connection with existing systems or applications (such as Excel programs supported by desktop computers), which is not conducive to the promotion of voice interaction methods. In addition, the training cost of voice models and semantic models is also very high. New functions developed for different applications require retraining of voice models and semantic models, which further affects the promotion of voice interaction methods.
[0040] Embodiments of the present disclosure provide an interaction method, an interaction device, an electronic device, and a medium. The method includes a system event recognition process and a system event distribution process. In the system event recognition process, it is determined whether the received voice information includes information associated with a system event, wherein the system event is an event corresponding to input information of at least one input device supported by the electronic device. After the system event recognition process is completed, the system event distribution process is entered, and when it is determined that the voice information includes the information associated with the system event, the electronic device distributes the system event to an object related to the system event.
[0041] Figure 1A The application scenarios of the interaction method, interaction device, electronic device and medium according to the embodiments of the present disclosure are schematically illustrated.
[0042] like Figure 1AAs shown, the user 10 has been using the laptop computer 20 for office work for a long time and can skillfully operate office software such as Excel software (called application in Android operating system and IOS operating system) and Word software supported by the Windows operating system. Recently, he hopes to use voice interaction to work. For example, the word software is currently opened, and the user 10 hopes to enter the number 528 in the line where the cursor is located, and enter bed in the next line. Since the keyboard can input various characters that can be input by the keyboard and countless combinations in the Word software, such as input a, input b, input ab, input abc, input aa, input aca, input nice, input good, input everything is normal, input work scheduling, etc., each of which is a complete voice message. The prior art needs to train a voice model for each complete voice message separately. Since the combination is endless, this is extremely difficult to achieve. In the existing voice interaction technology, since the voice model is set for a certain application, and the number of functions of the application is limited, a corresponding voice model can be trained for each function separately, such as setting the air conditioner temperature (which corresponds to a specific function of the application) to 28°C, playing children's songs, etc., each of which is trained with a voice model. These are all voice models trained separately for the instructions of the specific functions of the application, but it will result in setting a corresponding voice model library in each application, which increases the size of the software package. In order to solve this problem, the prior art also has a method of performing voice recognition on the received voice information to obtain text information, and then determining the corresponding instruction according to the text information. However, since the capacity of the voice model library involved in speech recognition is very large and the computing power required is very high, it is basically impossible to implement it on personal terminals. Usually, the server performs speech recognition on the voice information and then sends the recognized text information to the personal terminal. This cannot be applied in many scenarios, such as when the personal terminal cannot connect to the Internet or is inconvenient to connect to the Internet. In addition, since there are many words with similar pronunciations in the speech, such as bad and bed, it is easy to make mistakes when doing overall recognition.
[0043] In order to solve the above problems, the embodiments of the present disclosure determine whether the received voice information includes information associated with a system event, wherein the system event is an event corresponding to the input information of at least one input device supported by the electronic device, and the number of system events corresponding to the input information of at least one input device is very limited. For example, the keyboard input information only includes the input information set on the keyboard, such as input a, input b, input enter (line feed), input F4, input A, input lock uppercase, etc. These input information are not only small in number, but also have very different pronunciations. A very small voice model package can be used to accurately identify the information of the system events corresponding to the input information. Therefore, it can be extended to software of various operating systems. For example Figure 1AAs shown, the user 10 only needs to open the Word software, and then say "enter 5, 2, 8" (there can be a pause between 5, 2, 8, and of course it can also be "enter 5, enter 2, enter 8"), "enter line break", "enter b, e, d".
[0044] Figure 1B The following schematically shows an exemplary system architecture applicable to the interactive method according to an embodiment of the present disclosure. It should be noted that: Figure 1B The system architecture 100 shown is merely an example to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0045] like Figure 1B As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0046] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send information, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, office applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0047] The terminal devices 101 , 102 , and 103 may be various electronic devices supporting at least one input device, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, smart TVs, and the like.
[0048] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for application updates, downloads, and voice recognition requested by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as information or data obtained or generated according to the user request) to the terminal device.
[0049] It should be noted that the interaction method provided in the embodiment of the present disclosure can generally be executed by the terminal devices 101 , 102 , and 103 .
[0050] It should be understood that the number of terminal devices, networks and servers is only illustrative. Depending on the implementation requirements, there can be any number of terminal devices, networks and servers.
[0051] Figure 2 A flowchart of an interaction method executed by an electronic device according to an embodiment of the present disclosure is schematically shown.
[0052] like Figure 2 As shown, the method includes operations S201 to S205.
[0053] In operation S201, voice information is received.
[0054] In this embodiment, the voice information may be collected through a sound sensor of the electronic device, such as a microphone, or may be voice information received from other electronic devices, such as audio information.
[0055] In operation S203, it is determined whether the voice information includes information associated with a system event, wherein the system event is an event corresponding to inputtable information of at least one input device supported by the electronic device.
[0056] Specifically, the determining whether the voice information includes information associated with the system event may include the following operations.
[0057] The voice information is matched in an acoustic feature library to determine whether the voice information includes an acoustic feature corresponding to a system event, wherein the acoustic feature library is stored in the electronic device and includes a correspondence between acoustic features and system events.
[0058] For example, the keyboard of the electronic device has a pgUP key and a pgDn key. The voice information corresponding to the pgUP key input information can be "previous page", "previous page", etc., and the voice information corresponding to the pgDn key input information can be "turn page", "next page", etc. If the pronunciation of "previous page" is detected in the voice information, it can be determined that the corresponding system event includes one of the following: WM_KEYDOWN, WM_CHAR (KeyPageDown), WM_KEYUP, etc. Among them, the instructions of the same system event in different operating systems may be different. Therefore, it is necessary to determine the specific system event instructions according to the system used.
[0059] In operation S205, when it is determined that the voice information includes the information associated with the system event, the electronic device distributes the system event to an object related to the system event.
[0060] For example, when a user is using a Word application, he or she issues a voice message: "Scroll down", "Enter a", etc. Then, the electronic device can send the system event instruction to the Word software through the system, thereby realizing voice interaction between the user and the electronic device.
[0061] In another embodiment, the acoustic feature library may be constructed in the following manner.
[0062] For example, constructing the acoustic feature library may include the following operations.
[0063] First, the system event and the corresponding acoustic features are obtained. For example, statistics can be used to obtain the input information of various keyboards, the names of the system events corresponding to these input information in different operating systems, and their instructions. In addition, the acoustic features corresponding to the system events can also be obtained by speech synthesis.
[0064] After determining the inputtable information of the input device, the inputtable information, or common voice expressions of the inputtable information and operations are collected, and then features of the common voice expressions are extracted to obtain acoustic features corresponding to system events.
[0065] Then, a mapping model between the system events and the corresponding acoustic features is generated.
[0066] For example, the acoustic feature of "previous page" and the mapping model of WM_KEYDOWN, WM_CHAR, WM_KEYUP, etc. Then, the system events (such as instructions), the corresponding acoustic features and the mapping model can be stored in the acoustic feature library.
[0067] Among them, the acoustic feature library can be constructed offline, applicable to systems with the same system events, and can be optimized and updated during use.
[0068] In a specific embodiment, obtaining the system event and the corresponding acoustic feature may include the following operations.
[0069] First, a system event corresponding to the inputtable information of the at least one input device is obtained.
[0070] Then, voice information of a system event corresponding to the inputtable information of the at least one input device is obtained.
[0071] Next, acoustic features are extracted from the voice information of the system event, for example, using a voice model tool to obtain acoustic features of the voice information corresponding to the system event. The feature extraction method is not limited.
[0072] For example, using speech model tools and algorithms, such as CRF and deep learning, the input data is trained, as shown in Table 1, to represent the mapping of windows system speech expressions to system events.
[0073] Table 1 Windows system speech expression to system event mapping meaning
[0074]
[0075] Among them, different operating systems may have different names and definitions for the same system event (such as clicking the right button of a mouse). Therefore, the mapping of speech expressions to system events of different operating systems may be different.
[0076] Next, a mapping model from speech to system events is generated. This model is independent of the running software and can be updated separately, and a speech control software package is generated, that is, the "speech decoding library" is applied to the above-generated model to develop extended functions, thereby generating a "speech control software module".
[0077] In another specific embodiment, obtaining the system event and the corresponding acoustic feature may include the following operations.
[0078] First, text information of a voice expression of a system event corresponding to input information of the at least one input device is obtained.
[0079] Then, the acoustic features of the text information are generated based on the acoustic features of the speech units, wherein the speech units include but are not limited to: consonants, vowels, initial consonants, final consonants, characters, words, phrases, etc.
[0080] Next, the system event, the acoustic feature and the mapping model are stored, wherein the mapping model is a model between the system event and the corresponding acoustic feature.
[0081] It should be noted that since the acoustic feature library is decoupled from the application installed in the electronic device, for example, it is not encapsulated in the application but in the system, and the acoustic feature library is called by the system, it is possible to update the acoustic feature library independently of the application installed in the electronic device.
[0082] The interactive method provided by the present disclosure can directly convert the input voice information into instructions input by operating input devices such as keyboards and mice, and then convert the voice information into system events. By distributing system events to applications, human-computer interaction is achieved, and the applicable applications are very wide, such as various applications installed on electronic devices with input devices, and the voice interaction related technologies that application developers usually need to pay attention to are eliminated.
[0083] Figure 3AA flowchart of an interaction method executed by an electronic device according to another embodiment of the present disclosure is schematically shown.
[0084] Since there are many different ways of expressing the same semantic meaning in speech, such as different expression habits in different places, especially for dialects, it is difficult to include the acoustic features of various dialects for a system event in the above-mentioned acoustic feature library. Therefore, speech recognition can be used to obtain the semantic information of speech information, and then the system event corresponding to the speech information is determined based on the semantic information.
[0085] like Figure 3A As shown, the method may also include the following operations.
[0086] In operation S301, when it is determined that the voice information does not include information associated with a system event, voice recognition is performed on the voice information to obtain text information.
[0087] The speech recognition technology may be Automatic Speech Recognition (ASR) technology, and the text information corresponding to the speech information may be obtained through the ASR technology. This operation may be implemented locally or through a server.
[0088] In operation S303, semantic information of the text information is determined.
[0089] In operation S305 , it is determined whether the semantic information includes semantic information associated with a system event.
[0090] In operation S307, when the semantic information includes semantic information associated with a system event, the electronic device distributes the system event to an object related to the system event.
[0091] It should be noted that if the semantic information does not include semantic information associated with system events, the system level has determined that there is no associated information of the system event in the voice information; however, if a voice interaction function is set in the application, voice interaction can continue to be performed for the voice interaction function set in the application. For example, the application level detects whether the voice information includes voice commands that the application can recognize.
[0092] In another embodiment, the semantic information of the system event includes standard semantic information and extended semantic information, and the semantics of the extended semantic information is obtained by expanding the semantics of the standard semantic information. For example, the expressions of the same thing by different age groups are quite different. A young child is likely to pronounce "X" as "cha", and the keyboard can only input "X". Then the real semantics of the young child should be to input "X". This makes it easier to deal with different situations in which the voice information of the same semantics is different in different scenarios, and improves the user experience.
[0093] A specific embodiment is described below.
[0094] Figure 3B A logical diagram of natural voice manipulation according to an embodiment of the present disclosure is schematically shown.
[0095] like Figure 3B As shown, after the user turns on the voice control function (through a switch, wake-up word, etc.), the voice information is matched in the acoustic feature library.
[0096] If the match is successful, the system event corresponding to the matched acoustic feature is directly encoded to obtain the system event.
[0097] If the match is successful, the voice information is processed by ASR technology to obtain the text information of the voice information. Then the text information is semantically parsed, and the instructions corresponding to the system event can be matched after semantic analysis (for example, the text information "turn page" can be matched to the system event "PAGEDOWN").
[0098] After obtaining the system event, the operating system distributes the system event. The distribution of the system event can adopt the existing technology, which is not limited here.
[0099] In another embodiment, the user's attribute information can also be determined based on the user's acoustic features, for example, the user's age group, and then the accuracy of the acquired semantic information can be improved based on the user's attribute information. For example, after receiving the voice information, it is determined to be the voice information sent by a child, such as a child saying to the computer: "Input circle", if the computer only has a mouse and a keyboard as input devices, that is, "circle" does not exist in the input information of the input device, it can be determined based on the extended semantic information that the semantics of the voice information is most likely to be input "OO", and because the pronunciation habit of children is to pronounce two sounds, it can be determined that the child's real intention is to input "O". In this way, the user's real intention can be determined based on the user's attribute information, the input information of the input device, and the extended semantic information, effectively improving the interactive experience.
[0100] Figure 4A A block diagram schematically shows an interaction device executed by an electronic device according to an embodiment of the present disclosure.
[0101] like Figure 4A As shown, the interaction device 400 may include an information receiving module 410 , a first event determining module 430 and a first event distributing module 450 .
[0102] The information receiving module 410 is used to receive voice information.
[0103] The first event determination module 430 is used to determine whether the voice information includes information associated with a system event, wherein the system event is an event corresponding to input information of at least one input device supported by the electronic device.
[0104] The first event distribution module 450 is configured to, when determining that the voice information includes the information associated with the system event, cause the electronic device to distribute the system event to an object related to the system event.
[0105] Specifically, the first event determination module 430 can be used to match the voice information in an acoustic feature library to determine whether the voice information includes acoustic features corresponding to system events, wherein the acoustic feature library is stored in the electronic device, and the acoustic feature library includes the correspondence between acoustic features and system events.
[0106] In addition, the device 400 may further include: a model library construction module.
[0107] The model library construction module includes: an acoustic feature acquisition unit and a mapping model generation unit.
[0108] The acoustic feature acquisition unit is used to obtain the system event and the corresponding acoustic feature.
[0109] The mapping model generating unit is used to generate a mapping model between the system event and the corresponding acoustic feature.
[0110] The acoustic feature acquisition unit may include: an event acquisition subunit, a voice information acquisition subunit and an acoustic feature acquisition subunit.
[0111] The event obtaining subunit is used to obtain a system event corresponding to the inputtable information of the at least one input device.
[0112] The voice information obtaining subunit is used to obtain voice information of a system event corresponding to the inputtable information of the at least one input device.
[0113] The acoustic feature acquisition subunit is used to extract acoustic features from the voice information of the system event.
[0114] Figure 4B A block diagram of a voice control module according to an embodiment of the present disclosure is schematically shown.
[0115] like Figure 4B As shown, the voice control module 4000 is a real-time operation system for voice interaction, including: a voice receiving submodule, a voice model management submodule, a matching submodule, and an ASR submodule.
[0116] The voice receiving submodule is used to receive and encode voice information after the operating system enters the voice control mode.
[0117] The voice model management submodule is used to store and manage acoustic features related to voice control, such as voice models. Acoustic features can be generated through training and can be updated separately.
[0118] The matching submodule is used to match the input voice information with the acoustic features, and if the match is successful, the system event is converted. If the match fails, the text information obtained by the voice recognition can be semantically matched, and if the semantic match is successful, it can also be converted into a system event.
[0119] The ASR submodule is used to convert voice information into text information.
[0120] In another embodiment, the apparatus 400 may further include an updating module, and the updating module is used to update the acoustic feature library independently of an application installed in the electronic device.
[0121] In order to increase the success rate of voice interaction, the device 400 also includes: a voice recognition module, a semantic information acquisition module, a second event determination module and a second event distribution module.
[0122] The speech recognition module is used to perform speech recognition on the speech information to obtain text information when it is determined that the speech information does not include information associated with the system event.
[0123] The semantic information acquisition module is used to determine the semantic information of the text information.
[0124] The second event determination module is used to determine whether the semantic information includes semantic information associated with a system event.
[0125] The second event distribution module is configured to enable the electronic device to distribute the system event to an object related to the system event when the semantic information includes semantic information associated with the system event.
[0126] In order to increase the number of applicable people, the semantic information of the system event may include standard semantic information and extended semantic information, and the semantics of the extended semantic information is obtained by extending the semantics of the standard semantic information.
[0127] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0128] For example, any multiple of the information receiving module 410, the first event determination module 430 and the first event distribution module 450 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the information receiving module 410, the first event determination module 430 and the first event distribution module 450 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the information receiving module 410, the first event determination module 430 and the first event distribution module 450 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.
[0129] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0130] like Figure 5As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0131] In RAM 503, various programs and data required for the operation of system 500 are stored, for example, an acoustic feature library is stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0132] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0133] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0134] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0135] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0136] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0137] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0138] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An interactive method performed by an electronic device, comprising: Receive voice messages from users; determining whether the voice information includes information associated with a system event, wherein the system event is an event corresponding to inputtable information of at least one input device supported by the electronic device, wherein the inputtable information includes inputtable information set on the input device; and When it is determined that the voice information includes the information associated with the system event, the electronic device distributes the system event to an object related to the system event, wherein the instruction of the system event is determined according to an operating system installed on the electronic device; When it is determined that the voice information does not include information associated with the system event, performing voice recognition on the voice information to obtain text information; Determining semantic information of the text information based on attribute information and extended semantic information of the user, wherein the attribute information of the user is determined based on acoustic features of the speech information, and the extended semantic information is obtained by extending the semantics of standard semantic information; determining whether the semantic information includes semantic information associated with a system event, wherein the semantic information of the system event includes the standard semantic information and the extended semantic information; and When the semantic information includes semantic information associated with a system event, the electronic device distributes the system event to an object related to the system event.
2. The method according to claim 1, wherein: The determining whether the voice information includes information associated with the system event includes: matching the voice information in an acoustic feature library to determine whether the voice information includes an acoustic feature corresponding to the system event; The acoustic feature library is stored in the electronic device, and the acoustic feature library includes the corresponding relationship between acoustic features and system events.
3. The method according to claim 2, further comprising: Constructing the acoustic feature library; The step of constructing the acoustic feature library comprises: Obtaining the system events and corresponding acoustic features; as well as A mapping model between the system events and the corresponding acoustic features is generated.
4. The method according to claim 3, wherein: The obtaining of the system event and the corresponding acoustic feature comprises: Obtaining a system event corresponding to input information of the at least one input device; Obtaining voice information of a system event corresponding to input information of the at least one input device; and Acoustic feature extraction is performed on the voice information of the system event. 5 . The method according to claim 2 , further comprising updating the acoustic feature library independently of an application installed in the electronic device.
6. An interactive device executed by an electronic device, comprising: An information receiving module, used for receiving voice information; a first event determination module, configured to determine whether the voice information includes information associated with a system event, wherein the system event is an event corresponding to input information of at least one input device supported by the electronic device, wherein the input information includes input information set on the input device; and a first event distribution module, configured to distribute, by the electronic device, the system event to an object related to the system event when it is determined that the voice information includes the information associated with the system event, wherein the system event is determined according to the type of the operating system installed on the electronic device; Also includes: a speech recognition module, configured to perform speech recognition on the speech information to obtain text information when it is determined that the speech information does not include information associated with the system event; A semantic information acquisition module, used to determine the semantic information of the text information based on the user's attribute information and extended semantic information, wherein the user's attribute information is determined based on the acoustic features of the speech information, and the extended semantic information is obtained by extending the semantics of the standard semantic information; a second event determination module, configured to determine whether the semantic information includes semantic information associated with a system event, wherein the semantic information of the system event includes the standard semantic information and the extended semantic information; and The second event distribution module is used for, when the semantic information includes semantic information associated with a system event, for the electronic device to distribute the system event to an object related to the system event.
7. The device according to claim 6, wherein: The first event determination module is specifically used to match the voice information in an acoustic feature library to determine whether the voice information includes acoustic features corresponding to system events, wherein the acoustic feature library is stored in the electronic device, and the acoustic feature library includes the correspondence between acoustic features and system events.
8. The apparatus according to claim 6, further comprising: A model library construction module, wherein the model library construction module comprises: an acoustic feature acquisition unit, configured to obtain the system event and the corresponding acoustic feature; and A mapping model generating unit is used to generate a mapping model between the system event and the corresponding acoustic feature.
9. The device according to claim 8, wherein: The acoustic feature acquisition unit comprises: An event obtaining subunit, used for obtaining a system event corresponding to the inputtable information of the at least one input device; a voice information obtaining subunit, configured to obtain voice information of a system event corresponding to inputtable information of the at least one input device; and The acoustic feature acquisition subunit is used to extract acoustic features from the voice information of the system event.
10. An electronic device, comprising: one or more processors; A storage device is used to store executable instructions, and when the executable instructions are executed by the processor, the method according to any one of claims 1 to 5 is implemented.
11. The electronic device according to claim 10, wherein: The storage device is also used to store an acoustic feature library.
12. A computer-readable storage medium having executable instructions stored thereon, wherein the instructions are executed by a processor to implement the method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Voice keyboard device
CN103186232A
Speech recognition method and mobile terminal
CN103778915A
Interaction method and device based on voice assistant, storage medium and terminal
CN109656512A
