Voice interaction method, system, storage medium and electronic device
By obtaining the speaker characteristic information and group categories of the speech information, and using the matching corpus to identify the speech intention, it solves the problem that the existing semantic understanding model cannot accurately understand the user's intention, and achieves high accuracy and personalized response in speech interaction. .
Patent Information
- Application Number
- CN202010546399.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-06-15
AI Technical Summary
Existing semantic understanding models cannot accurately understand the intentions of different users, resulting in low semantic understanding processing during voice interaction.
By obtaining the speaker characteristic information of the speech information, determining the group category to which it belongs, and obtaining the matching corpus, the semantic intent of the speech information can be accurately identified and the intelligent device can be controlled to perform corresponding actions.
It achieves accurate recognition of the semantic intent of voice information and improves the accuracy and personalized response of voice interaction.
Smart Images

Figure CN113808575B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of voice interaction technology, and in particular relates to a voice interaction method, system, storage medium and electronic device. Background Art
[0002] In the process of voice interaction, the user dialogue part plays a connecting role. The user's words spoken through the client are converted into text through ASR (speech recognition) and then enter the dialogue system. After semantic understanding and dialogue decision-making in the dialogue system, the specified service content is called, the corresponding text content is output, and then converted into voice through TTS (from text to speech) and returned to the user on the client. At present, the usual semantic understanding models are implemented based on the general speech training model. However, due to the different regions, ages and personalities of different users, the users' expression styles are very different, and the sentence structures of the speech to express semantic intentions are also different, resulting in most semantic understanding processing degrees not being high enough and unable to accurately understand the user's intentions. Summary of the invention
[0003] The present invention is based on the technical problem that the existing semantic understanding technology cannot accurately understand the intentions of different users, and proposes a voice interaction method, system, storage medium and electronic device.
[0004] In a first aspect, an embodiment of the present invention provides a voice interaction method, including:
[0005] Get voice information;
[0006] Determining characteristic information of a speaker who sends the voice information; wherein the characteristic information can be used to characterize the group category to which the speaker belongs;
[0007] Determining, based on the characteristic information, the group category to which the speaker of the voice information belongs;
[0008] Obtaining a corpus matching the group category;
[0009] Acquire a semantic intent matching the speech information from the corpus;
[0010] The smart device is controlled to execute an action in response to the semantic intention.
[0011] Optionally, the corpus is established in advance by the following steps:
[0012] Acquire historical voice dialogue data of speakers belonging to the same group category, wherein the historical voice dialogue data includes historical voice information and semantic intentions expressed by the historical voice information;
[0013] By performing statistical analysis on the historical voice conversation data, common language features of the historical voice information used by speakers belonging to the group category to express the same semantic intention are determined from the historical voice conversation data, and an association relationship is established between the common language features and the corresponding semantic intentions, thereby constructing the corpus.
[0014] Optionally, the common language features include at least one of high-frequency words, keywords, language sentence patterns and modal particles.
[0015] Optionally, by statistically analyzing the historical voice dialogue data, determining from the historical voice dialogue data common language features of the historical voice information used by speakers belonging to the group category when expressing the same semantic intention, and establishing an association relationship between the common language features and the corresponding semantic intention, thereby constructing the corpus, including:
[0016] When the common language features include high-frequency words, the high-frequency words in the historical voice information and the semantic intentions expressed by the high-frequency words are determined, and the high-frequency words are associated with the corresponding semantic intentions, thereby constructing the corpus; wherein the high-frequency words are words that appear more than a preset threshold number of times;
[0017] When the common language features include keywords, selecting historical voice information expressing the same semantic intention from the historical voice dialogue data;
[0018] Determining keywords that can express the semantic intent from the selected historical voice information, and establishing an association relationship between the keywords and the corresponding semantic intent, thereby constructing the corpus;
[0019] When the common language features include language sentence patterns, counting the number of language sentence patterns corresponding to each piece of historical voice information used to express the same semantic intent in the historical voice dialogue data, and associating the language sentence pattern with the largest number of times with the corresponding semantic intent, thereby constructing the corpus;
[0020] When the common language features include modal particles, the number of times the modal particles in each historical voice information in the historical voice dialogue data are used to express the same semantic intent is counted, and an association relationship is established between the modal particles used most times and the corresponding semantic intent, thereby constructing the corpus.
[0021] Optionally, the characteristic information includes at least one of age information, gender information, personality information and regional information.
[0022] Optionally, determining characteristic information of a speaker who sends the voice information includes:
[0023] Extracting voiceprint features from the voice information, and determining identity information of a speaker who sends the voice information based on the voiceprint features;
[0024] According to the identity information of the speaker, characteristic information of the speaker is determined.
[0025] Optionally, determining characteristic information of a speaker who sends the voice information includes:
[0026] When the characteristic information includes age information and / or gender information, extracting sound spectrum features from the voice information, and determining the age information and / or gender information of the speaker who sends the voice information according to the sound spectrum features;
[0027] When the feature information includes personality information, determining the language expression style of the voice information, and according to the language expression style, determining the personality type matching the language expression style as the personality information of the speaker who issued the voice information;
[0028] When the voice feature information includes regional information, voice features are extracted from the voice information, and regional information of a speaker who sends the voice information is determined based on the voice features; wherein the voice features include at least one of intonation, pronunciation and tone.
[0029] In a second aspect, an embodiment of the present invention further provides a voice interaction system, including:
[0030] A voice acquisition module is used to acquire voice information;
[0031] A feature determination module, used to determine feature information of a speaker who sends the voice information; wherein the feature information can be used to characterize the group category to which the speaker belongs;
[0032] A group category determination module, used to determine the group category to which the speaker of the voice information belongs based on the feature information;
[0033] A corpus acquisition module, used to acquire a corpus matching the group category;
[0034] A semantic intent determination module, used to obtain a semantic intent matching the speech information from the corpus;
[0035] The control module is used to control the smart device to execute an action in response to the semantic intention.
[0036] In a third aspect, an embodiment of the present invention further provides a storage medium having program code stored thereon, and when the program code is executed by a processor, a voice interaction method as described in any one of the above embodiments is implemented.
[0037] In a fourth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores program code that can be run on the processor, and when the program code is executed by the processor, a voice interaction method as described in any one of the above embodiments is implemented.
[0038] In a fifth aspect, an embodiment of the present invention further provides a voice interaction system, including:
[0039] A client, which is used to obtain voice information; and
[0040] The server comprises a memory and a processor, wherein the memory stores program codes that can be run on the processor, and when the program codes are executed by the processor, a voice interaction method as described in any one of the above embodiments is implemented.
[0041] In a voice interaction method provided in an embodiment of the present invention, by determining the characteristic information of the speaker who sends the voice information, and determining the group category of the speaker based on the characteristic information, a corpus matching the group category is obtained, and the semantic intent corresponding to the voice information is determined by using the corpus to control the smart device to perform a response action corresponding to the semantic intent. It can be seen that the voice interaction method provided in an embodiment of the present invention can match the corresponding corpus according to the group category to which different speakers belong, so as to use the corresponding corpus to accurately identify the semantic intent to be expressed by the voice information, thereby achieving accurate recognition of the semantic intent. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The drawings included are:
[0043] Figure 1 A flow chart of a voice interaction method according to the first embodiment of the present invention is shown;
[0044] Figure 2 A schematic diagram showing a process of determining characteristic information of a speaker proposed in Embodiment 2 of the present invention;
[0045] Figure 3 A schematic diagram of the process of constructing a corpus proposed in the second embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] In order to make the objectives, technical solutions and advantages of the present invention clearer, the implementation method of the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0048] Embodiment 1
[0049] According to an embodiment of the present invention, a voice interaction method is provided. Figure 1 A flow chart of a voice interaction method proposed in the first embodiment of the present invention is shown. Figure 1 As shown, the voice interaction method may include: steps 110 to 160.
[0050] In step 110, voice information is acquired.
[0051] Here, voice information refers to the voice dialogue between the user and the smart device. For example, when the user interacts with the air conditioner, the user sends a voice message "Help me check the weather tomorrow", then "Help me check the weather tomorrow" is used as the voice information. The smart device may be an air conditioner, refrigerator, television, range hood, or other smart device with voice function.
[0052] In step 120, characteristic information of a speaker who sends the voice information is determined; wherein the characteristic information can be used to characterize the group category to which the speaker belongs.
[0053] Here, feature information refers to the attributes of the speaker, which is used to describe the personalized characteristics of the user. For example, feature information includes at least one of age, gender, personality and region, and it can also be feature information such as occupation and nationality that can reflect the user's attributes. For example, according to age, it can be divided into those born in the 1960s and above, those born in the 1970s, those born in the 1980s, those born in the 1990s, those born in the 2000s and those born in the 2010s, etc.; according to gender, it can be divided into male and female; according to personality, it can be divided into cheerful and lively type, quiet and focused type, brave and confident type, hardworking and kind type, independent type, creative type, etc.; according to region, it can be divided into people from the Northeast, Beijing and Tianjin, North China, Northwest China, Central Plains, Southwest China, two lakes, Guangdong and Guangxi, Jiangnan, Fujian, etc.
[0054] In step 130, the group category to which the speaker of the voice information belongs is determined based on the feature information.
[0055] Here, the group category to which the speaker belongs refers to the user group to which he belongs, and the characteristic information and the group category are a mapping relationship. For example, if the characteristic information of the speaker determined includes age 40 and Cantonese, then the group category to which he belongs is 40-year-old Cantonese. If the characteristic information determined includes Cantonese, then the group category to which he belongs is Cantonese.
[0056] In step 140, a corpus matching the group category is obtained.
[0057] Here, different group categories correspond to different corpora. For example, if the group category of speaker A is Cantonese, then corpus A matching the group category of Cantonese is obtained to perform semantic understanding on the speech information emitted by speaker A. For another example, if speaker A is a lively and cheerful Cantonese, then corpus B matching the group category of lively and cheerful Cantonese is obtained, so as to use corpus B to perform semantic understanding on the speech information and accurately identify the semantic intention of speaker A.
[0058] In step 150, a semantic intent matching the speech information is obtained from the corpus.
[0059] Here, after the voice information is converted into text information, the converted text information is used to match in the corpus, so as to obtain the semantic intent matching the voice information. The voice information can be converted into text information by using the existing speech recognition technology (ASR), which will not be described in detail here.
[0060] For example, if the group category of the speaker who utters the voice message "It's so hot" is Cantonese, the text message of "It's so hot" is used to match it in the corpus associated with Cantonese people, so as to match the semantic intention of "turn on the air conditioner".
[0061] In addition, the corpora corresponding to different group categories all store text information and semantic intents associated with the text information, but the text information associated with the same semantic intent in different corpora may be inconsistent. For example, Guangdong people are accustomed to saying "it's so hot", and "it's so hot" is associated with the semantic intent of "turn on the air conditioner". Sichuan people like to say "it's too stuffy", and "it's too stuffy" is associated with the semantic intent of "turn on the air conditioner".
[0062] It is worth noting that although only the construction of the corpus of group categories in different regions is explained in detail here, the specific process of constructing different corpora is consistent with the method of constructing corpora in different regions.
[0063] In step 160 , the smart device is controlled to execute an action in response to the semantic intent.
[0064] Here, after determining the semantic intention of the voice information sent by the speaker, the smart device is controlled to perform an action in response to the semantic intention. For example, if the semantic intention is "turn on the air conditioner", the air conditioner is controlled to turn on.
[0065] It is worth noting that controlling the intelligent device to execute the response action to realize the semantic intent may be to obtain response information matching the semantic intent from a preset database, in which the semantic intent and the response information associated with the semantic intent are stored. For example, the semantic intent of "turn on the air conditioner" is associated with the control instruction to turn on the air conditioner. The database may be a corpus, that is, the corpus stores data of "text-semantic intent-response information", such as "it's too hot - turn on the air conditioner - control instruction to turn on the air conditioner".
[0066] In addition, the action in response to the semantic intent may be a control instruction and / or a response voice for realizing the semantic intent. For example, if the semantic intent is “turn on the air conditioner”, the response action may be a control instruction for turning on the air conditioner and / or a response voice for feeding back the speaker. The response voice may be “the air conditioner has been turned on for you”.
[0067] In this embodiment, the group category to which different speakers belong can be determined based on their characteristic information, thereby matching the corpus corresponding to the speaker's group category, and then using the corresponding corpus to accurately identify the semantic intent to be expressed by the voice information, thereby achieving accurate recognition of the semantic intent.
[0068] Embodiment 2
[0069] On the basis of the above-mentioned embodiment, the second embodiment of the present invention may further provide a voice interaction method. The voice interaction method may include: step 210 to step 260.
[0070] In step 210, voice information is acquired.
[0071] Here, voice information refers to the voice dialogue between the user and the smart device. For example, when the user interacts with the air conditioner, the user sends a voice message "Help me check the weather tomorrow", then "Help me check the weather tomorrow" is used as the voice information. The smart device may be an air conditioner, refrigerator, television, range hood, or other smart device with voice function.
[0072] In step 220, characteristic information of a speaker who sends the voice information is determined; wherein the characteristic information can be used to characterize the group category to which the speaker belongs.
[0073] The characteristic information includes at least one of age information, gender information, personality information and region information. For example, according to age, people can be divided into those born in the 1960s and above, those born in the 1970s, those born in the 1980s, those born in the 1990s, those born in the 2000s and those born in the 2010s; according to gender, people can be divided into male and female; according to personality, people can be divided into cheerful and lively types, quiet and focused types, brave and confident types, hardworking and kind types, independent types, creative types, etc.; according to region, people can be divided into people from the Northeast, Beijing and Tianjin, people from North China, people from the Northwest, people from the Central Plains, people from the Southwest, people from the two lakes, people from Guangdong and Guangxi, people from the south of the Yangtze River, people from Fujian, etc.
[0074] In one implementation, in step 220 , determining characteristic information of a speaker who sends the voice information may include: steps 221 to 222 .
[0075] In step 221, voiceprint features are extracted from the voice information, and identity information of a speaker who sends the voice information is determined based on the voiceprint features.
[0076] Here, extracting voiceprint features from voice information can be done by extracting voiceprint features from voice information through a VQ clustering module. Voiceprint features include frequency, pitch, nasal sound, breathing and other features, as well as extraction of user's prosodic features, including speaking rhythm, speaking speed, intonation, accent and other features. After extracting the voiceprint features, the voiceprint features are compared with the pre-stored voiceprints in the database to determine the identity information of the speaker of the voice information.
[0077] In step 222, characteristic information of the speaker is determined based on the identity information of the speaker.
[0078] Here, after determining the identity information of the speaker, the characteristic information of the speaker can be determined using the identity information. The characteristic information is the characteristic information pre-entered by the speaker. The database stores the data of "identity information-characteristic information". The characteristic information of the corresponding speaker can be queried through the identity information, that is, the user pre-enters his age information, gender information, personality information and regional information.
[0079] In another embodiment, Figure 2 FIG. 4 is a schematic diagram showing a flow chart of determining characteristic information of a speaker according to Embodiment 2 of the present invention. Figure 2 As shown, determining the characteristic information of the speaker who sends the voice information may be determining the characteristic information of the speaker who sends the voice information from the voice information.
[0080] Among them, the specific process of determining the age information and / or gender information of the speaker can be: extracting sound spectrum features from the voice information, and determining the age information and / or gender information of the speaker who issued the voice information based on the sound spectrum features.
[0081] Here, for users of different ages and genders, the sound spectrum characteristics of the voices they emit will be different, and the age information and / or gender information of the speaker who emits the voice information can be determined through the sound spectrum characteristics. The specific process of identifying the age information and / or gender information is as follows: the voices of men and women of different age groups can be collected, and then the sound spectrum characteristics of the voices are extracted, and a gender recognition model and / or age recognition model is obtained by training the sound spectrum characteristics. The gender recognition model and / or age recognition model is then used to recognize the sound spectrum characteristics extracted from the voice information, thereby determining the gender information and / or age information of the speaker.
[0082] In addition, the specific process of determining the speaker's personality information can be:
[0083] The language expression style of the voice information is determined, and based on the language expression style, a personality type matching the language expression style is determined as the personality information of the speaker who sends the voice information.
[0084] Here, users with different personalities generally have different speaking styles. For example, the speaking style of a cheerful and lively user is more humorous, while the speaking style of a shy user is euphemistic and implicit. Determining the language expression style of voice information can be to first convert the voice information into text information, and then analyze the sentence structure and modal particles used in the text information to determine the language expression style of the speaker who issued the voice information. And determining the personality type that matches the language expression style as the personality information of the speaker who issued the voice information, the specific process can be to collect the language expression styles of users with different personalities in advance to form "language expression style-personality type" data. After determining the language expression style of the speaker, use the voice expression style to search and determine the personality type that matches the language expression style, thereby obtaining the personality information of the speaker.
[0085] In addition, the specific process of determining the regional information of the speaker may be:
[0086] Extract voice features from the voice information, and determine the region information of the speaker who sends the voice information based on the voice features; wherein the voice features include at least one of intonation, pronunciation and tone.
[0087] Here, even if people from different regions say the same sentence, there will be differences in accent, speaking speed, intonation, pronunciation and tone. For example, people in Hunan usually confuse the pronunciation of n / l. Voices from different regions are collected, and voice features are extracted and stored in the region recognition database for identifying voices from different regions. After receiving the voice information, the voice features of the voice information are extracted, and then the voice features are identified in the region recognition database, so as to determine the region information of the speaker who issued the voice information.
[0088] In this embodiment, by determining the speaker's age information, gender information, personality information, regional information and other characteristic information from the voice information, the speaker's characteristic information can be accurately identified when the speaker has not entered the corresponding characteristic information, thereby providing an accurate data basis for subsequent semantic intent recognition.
[0089] In step 230, the group category to which the speaker of the voice information belongs is determined based on the feature information.
[0090] Here, the group category to which the speaker belongs refers to the user group to which he belongs, and the characteristic information and the group category are a mapping relationship. For example, if the characteristic information of the speaker determined includes age 40 and Cantonese, then the group category to which he belongs is 40-year-old Cantonese. If the characteristic information determined includes Cantonese, then the group category to which he belongs is Cantonese.
[0091] In step 240, a corpus matching the group category is obtained.
[0092] In one embodiment, a method for constructing a corpus is provided, and the method may include: step 2401 to step 2402.
[0093] In step 2401, historical voice dialogue data of speakers belonging to the same group category is obtained, wherein the historical voice dialogue data includes historical voice information and semantic intentions expressed by the historical voice information.
[0094] Here, speakers belonging to the same group category refer to user groups with the same characteristic information, such as user groups with consistent personalities, user groups with consistent age groups, user groups with consistent regions, and user groups with consistent genders. Historical voice conversation data may include historical voice conversation data between users and historical voice conversation data between users and smart devices. The historical conversation data includes historical voice information and semantic intents associated with the historical voice information. Among them, the semantic intent associated with the historical voice information refers to the semantic intent that the user ultimately achieves by sending the historical voice information. For example, when a user expresses "I'm too hot", the ultimate semantic intent is "turn on the air conditioner". In the process of acquiring historical conversation data, it is necessary not only to collect the user's historical voice information, but also to collect the semantic intent that the historical voice information wants to express.
[0095] It is worth noting that the voice information of each user's interaction with the smart device can be used as historical conversation data for training the corpus. For example, when a user says the voice information "I'm too hot", the smart device should perform the "response action of turning on the air conditioner" based on the voice information. However, in the subsequent interaction, the user's actual semantic intention is not "turn on the air conditioner" but "turn on the fan". In this way, the historical conversation data of "I'm too hot - turn on the fan" is used to modify the corpus in order to meet the personalized needs of users and achieve accurate understanding of semantic intentions.
[0096] In step 2402, by performing statistical analysis on the historical voice conversation data, common language features of the voice information of speakers belonging to the group category when expressing the same semantic intention are determined from the historical voice conversation data, and an association relationship is established between the common language features and the corresponding semantic intentions, thereby constructing the corpus.
[0097] Here, by statistically analyzing the common language features in the voice information used by users belonging to the same group category when expressing the same semantic intention, the commonality of users in the same group category expressing the same intention can be found. The common language features are associated with the corresponding semantic intentions to generate corpus data and obtain a corpus.
[0098] The common language features include at least one of high-frequency words, keywords, language sentence patterns and modal particles.
[0099] Figure 3 FIG. 4 shows a schematic diagram of the process of constructing a corpus according to the second embodiment of the present invention. Figure 3 As shown, in one embodiment, when the common language feature includes a high-frequency word, step 2402 may include:
[0100] Determine the high-frequency words in the historical voice information and the semantic intentions expressed by the high-frequency words, and establish an association relationship between the high-frequency words and the corresponding semantic intentions, so as to construct the corpus; wherein the high-frequency words are words whose occurrence times exceed a preset threshold.
[0101] Here, the high-frequency words refer to the words that users often say in their daily lives. By counting the high-frequency words in the historical voice information and associating the semantic intentions expressed by the high-frequency words, the real intentions of users can be understood through the high-frequency words. For example, the high-frequency word that users of the same group category are accustomed to saying is "hot", and the semantic intention corresponding to the high-frequency word is "turn on the air conditioner". Then, "hot" is associated with "turn on the air conditioner" to obtain the corpus of "hot-turn on the air conditioner".
[0102] In one embodiment, when the common language features include keywords, step 2402 may include:
[0103] Selecting historical voice information expressing the same semantic intention from the historical voice dialogue data;
[0104] Keywords that can express the semantic intent are determined from the selected historical voice information, and associations are established between the keywords and the corresponding semantic intents, thereby constructing the corpus.
[0105] Here, the purpose of selecting historical voice information expressing the same semantic intent from historical voice dialogue data is to select different historical voice information used by users of the same group category to express the same semantic intent. For example, the historical voice information used by users with the same personality to express the semantic intent of "turning on the air conditioner" includes "I'm too hot" and "It's so hot." From the historical voice information of "I'm too hot" and "It's so hot," it can be determined that the keyword expressing the semantic intent of "turning on the air conditioner" is "hot," and the semantic intent is then associated with the keyword to obtain the corpus of "hot-turn on the air conditioner." When a user with the same personality mentions "hot" in the next voice interaction, it is known that the user's intention is to turn on the air conditioner, thereby achieving accurate recognition of the semantic intent.
[0106] In one embodiment, when the common language feature includes a language sentence pattern, step 2402 may include:
[0107] The number of language sentence patterns corresponding to each historical voice information used to express the same semantic intention in the historical voice dialogue data is counted, and the language sentence pattern with the largest number of times is associated with the corresponding semantic intention, so as to construct the corpus.
[0108] Here, the language sentence pattern can be the historical voice information that is used most among various historical voice information that express the same semantic intention. For example, by counting the historical voice dialogue data of Cantonese people, it is determined that the historical voice information that is used most by Cantonese people to express the semantic intention of "turn on the air conditioner" is "It's so hot", then "It's so hot" is used as a language sentence pattern, and the language sentence pattern is associated with the corresponding semantic intention, thereby obtaining the corpus of "It's so hot-turn on the air conditioner". After the corpus is constructed, when it is recognized that a speaker belonging to the group category of Cantonese people utters the voice information "It's so hot", the semantic intention can be found from the corpus of Cantonese people based on the text information of "It's so hot" that the semantic intention is "turn on the air conditioner".
[0109] In one embodiment, when the common language feature includes modal particles, step 2402 may include:
[0110] When the common language features include modal particles, the number of times the modal particles in each historical voice information in the historical voice dialogue data are used to express the same semantic intent is counted, and an association relationship is established between the modal particles used most times and the corresponding semantic intent, thereby constructing the corpus.
[0111] Here, the modal particle may be a modal particle commonly used by users in daily life, such as "that's all". By counting the modal particles frequently used by users of the same group category to express the same semantic intention, the semantic intention of the user can be identified when the user utters the corresponding modal particle.
[0112] In the above implementation, by collecting and organizing the historical voice conversation data of users belonging to the same group category and conducting conversation learning on the historical voice conversation data, the common language features of the language used by the same group category to express the same semantic intention can be obtained, thereby obtaining a corpus. The maintained corpus will be directly used in the semantic understanding process of human-computer voice interaction to improve the accuracy of semantic understanding of the user's voice interactivity.
[0113] In step 250, a semantic intent matching the speech information is obtained from the corpus.
[0114] Here, after converting the voice information into text information, the converted text information is used to match in the corpus, so as to obtain the semantic intent that matches the voice information. After obtaining the corpus that matches the feature information, the text information corresponding to the voice information is used to match in the corpus, so as to determine the semantic intent that the voice information wants to express based on the matching result. For example, if the feature information of the speaker of the voice information "It's so hot" is Cantonese, the text information of "It's so hot" is used to match in the corpus associated with Cantonese, so as to match the semantic intent of "turn on the air conditioner".
[0115] Among them, when matching, the semantic intent can be determined by calculating the similarity between the voice information and the corpus. When multiple semantic intents are matched, the semantic intent corresponding to the corpus with the greatest similarity is taken as the semantic intent that the speaker wants to express.
[0116] In step 260 , the smart device is controlled to execute an action in response to the semantic intent.
[0117] Here, controlling the intelligent device to execute the response action to realize the semantic intent may be to obtain response information matching the semantic intent from a preset database, in which the semantic intent and the response information associated with the semantic intent are stored. For example, the semantic intent of "turn on the air conditioner" is associated with the control instruction to turn on the air conditioner. The database may be a corpus, that is, the corpus stores data of "text-semantic intent-response information", such as "too hot-turn on the air conditioner-response information to turn on the air conditioner".
[0118] In addition, the response action can be a control instruction and / or a response voice for realizing the semantic intention. For example, if the semantic intention is "turn on the air conditioner", the response action can be a control instruction for turning on the air conditioner and / or a response voice for feeding back the speaker. The response voice can be "The air conditioner has been turned on for you".
[0119] In this embodiment, the group category to which different speakers belong can be determined based on their characteristic information, thereby matching the corpus corresponding to the speaker's group category, and then using the corresponding corpus to accurately identify the semantic intent to be expressed by the voice information, thereby achieving accurate recognition of the semantic intent.
[0120] Embodiment 3
[0121] According to an embodiment of the present invention, there is also provided a voice interaction system, comprising:
[0122] A voice acquisition module is used to acquire voice information;
[0123] A feature determination module, used to determine feature information of a speaker that sends the voice information;
[0124] A group category determination module, used to determine the group category to which the speaker of the voice information belongs based on the feature information;
[0125] A corpus acquisition module, used to acquire a corpus matching the group category;
[0126] A semantic intent determination module, used to obtain a semantic intent matching the speech information from the corpus;
[0127] The control module is used to control the smart device to execute an action in response to the semantic intention.
[0128] Embodiment 4
[0129] According to an embodiment of the present invention, a storage medium is further provided, on which a program code is stored. When the program code is executed by a processor, the voice interaction method as described in any one of the above embodiments is implemented.
[0130] Embodiment 5
[0131] According to an embodiment of the present invention, an electronic device is also provided, which includes a memory and a processor, wherein the memory stores program code that can be run on the processor, and when the program code is executed by the processor, the voice interaction method described in any one of the above embodiments is implemented.
[0132] Embodiment 6
[0133] According to an embodiment of the present invention, there is also provided a voice interaction system, comprising:
[0134] A client, which is used to obtain voice information; and
[0135] The server comprises a memory and a processor, wherein the memory stores program codes that can be run on the processor, and when the program codes are executed by the processor, a voice interaction method as described in any one of the above embodiments is implemented.
[0136] The technical solution of the present invention is described in detail above in conjunction with the accompanying drawings. Considering that in the related art, the recognition of semantic intent is achieved by using a general speech training model, resulting in most semantic understanding processing levels not being high enough. The present invention provides a voice interaction method, system, storage medium, and electronic device, which determines the characteristic information of a speaker who sends a voice message, and determines the group category of the speaker based on the characteristic information, and then obtains a corpus matching the group category, thereby using the corpus to determine the semantic intent corresponding to the voice message, so as to control the intelligent device to perform a response action corresponding to the semantic intent. By using a corpus corresponding to the group category to which the speaker belongs to accurately identify the semantic intent to be expressed by the voice message, accurate recognition of the semantic intent in the voice message can be achieved.
[0137] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0139] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0141] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A voice interaction method, characterized in that: include: Get voice information; Determining characteristic information of a speaker who sends the voice information; wherein the characteristic information can be used to characterize the group category to which the speaker belongs; Determining, based on the characteristic information, the group category to which the speaker of the voice information belongs; Obtaining a corpus matching the group category; Acquire a semantic intent matching the speech information from the corpus; Controlling the smart device to execute an action in response to the semantic intention; The corpus is established in advance by the following steps: Acquire historical voice dialogue data of speakers belonging to the same group category, wherein the historical voice dialogue data includes historical voice information and semantic intentions expressed by the historical voice information; By performing statistical analysis on the historical voice conversation data, determining from the historical voice conversation data the common language features of the historical voice information used by speakers belonging to the group category when expressing the same semantic intention, and establishing an association relationship between the common language features and the corresponding semantic intentions, thereby constructing the corpus; The common language features include modal particles; when the common language features include modal particles, the number of times the modal particles in each historical voice information used to express the same semantic intent in the historical voice dialogue data are used is counted, and an association relationship is established between the modal particles with the most usage times and the semantic intent corresponding thereto, thereby constructing the corpus; The characteristic information includes age information, gender information, and personality information; when the characteristic information includes age information and gender information, extracting sound spectrum features from the voice information, and determining the age information and gender information of the speaker who sends the voice information based on the sound spectrum features; When the feature information includes personality information, determining the language expression style of the voice information, and according to the language expression style, determining the personality type matching the language expression style as the personality information of the speaker who issued the voice information; The language expression style determination process includes: first converting the voice information into text information, and then analyzing the sentence structure and modal particles used in the text information to determine the language expression style of the speaker who sends the voice information.
2. The voice interaction method according to claim 1, characterized in that: By statistically analyzing the historical voice conversation data, determining from the historical voice conversation data the common language features of the historical voice information used by speakers belonging to the group category when expressing the same semantic intention, and establishing an association relationship between the common language features and the corresponding semantic intention, thereby constructing the corpus, including: When the common language features include high-frequency words, the high-frequency words in the historical voice information and the semantic intentions expressed by the high-frequency words are determined, and an association relationship is established between the high-frequency words and the semantic intentions corresponding to the high-frequency words, so as to construct the corpus; wherein the high-frequency words are words whose occurrence times exceed a preset threshold; When the common language features include keywords, selecting historical voice information expressing the same semantic intention from the historical voice dialogue data; Determining keywords that can express the semantic intent from the selected historical voice information, and establishing an association relationship between the keywords and the corresponding semantic intents, thereby constructing the corpus; When the common language features include language sentence patterns, the number of language sentence patterns corresponding to each historical voice information used to express the same semantic intention in the historical voice dialogue data is counted, and the language sentence pattern with the largest number of times is associated with the corresponding semantic intention, thereby constructing the corpus.
3. The voice interaction method according to claim 1, characterized in that: Determining characteristic information of a speaker who sends the voice information includes: Extracting voiceprint features from the voice information, and determining identity information of a speaker who sends the voice information based on the voiceprint features; According to the identity information of the speaker, characteristic information of the speaker is determined.
4. The voice interaction method according to claim 1, characterized in that: Determining characteristic information of a speaker who sends the voice information includes: When the voice feature information includes regional information, voice features are extracted from the voice information, and regional information of a speaker who sends the voice information is determined based on the voice features; wherein the voice features include at least one of intonation, pronunciation and tone.
5. A voice interaction system, characterized in that: include: A voice acquisition module is used to acquire voice information; A feature determination module, used to determine feature information of a speaker who sends the voice information; wherein the feature information can be used to characterize the group category to which the speaker belongs; A group category determination module, used to determine the group category to which the speaker of the voice information belongs based on the feature information; The corpus acquisition module is used to acquire a corpus matching the group category, and the corpus is established in advance through the following steps: Acquire historical voice dialogue data of speakers belonging to the same group category, wherein the historical voice dialogue data includes historical voice information and semantic intentions expressed by the historical voice information; By performing statistical analysis on the historical voice conversation data, determining from the historical voice conversation data the common language features of the historical voice information used by speakers belonging to the group category when expressing the same semantic intention, and establishing an association relationship between the common language features and the corresponding semantic intentions, thereby constructing the corpus; A semantic intent determination module, used to obtain a semantic intent matching the speech information from the corpus; A control module, used to control the smart device to execute an action in response to the semantic intention; The common language features include modal particles; when the common language features include modal particles, the number of times the modal particles in each historical voice information used to express the same semantic intent in the historical voice dialogue data are used is counted, and an association relationship is established between the modal particles with the most usage times and the semantic intent corresponding thereto, thereby constructing the corpus; The characteristic information includes age information, gender information, and personality information; when the characteristic information includes age information and gender information, extracting sound spectrum features from the voice information, and determining the age information and gender information of the speaker who sends the voice information based on the sound spectrum features; When the feature information includes personality information, determining the language expression style of the voice information, and according to the language expression style, determining the personality type matching the language expression style as the personality information of the speaker who issued the voice information; The language expression style determination process includes: first converting the voice information into text information, and then analyzing the sentence structure and modal particles used in the text information to determine the language expression style of the speaker who sends the voice information.
6. A storage medium having a program code stored thereon, characterized in that: When the program code is executed by a processor, the voice interaction method according to any one of claims 1 to 4 is implemented.
7. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein the memory stores program codes that can be run on the processor, and when the program codes are executed by the processor, the voice interaction method according to any one of claims 1 to 4 is implemented.
8. A voice interaction system, characterized in that: include: A client, which is used to obtain voice information; as well as A server, the server comprising a memory and a processor, the memory storing program codes executable on the processor, and the program codes, when executed by the processor, implementing the voice interaction method as described in any one of claims 1 to 4.
