Voice session method and device and related equipment

By extracting the key voice information and scene information in the vehicle-mounted terminal and determining the corresponding conversation content, the problem of insufficient interaction understanding of the vehicle-mounted terminal in the existing technology is solved, and user satisfaction and interactive experience are improved.

CN118737138APending Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310332397.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the voice interaction between existing vehicle-mounted terminals and people in the vehicle, the understanding of conversation content is too standardized, resulting in low user satisfaction.

Method used

By receiving the voice input from the user, it extracts key information and scene information, determines the corresponding conversation content, and outputs a more in-depth and relevant response voice.

Benefits of technology

It improves the user's satisfaction with the conversation process and makes the conversation content not only related to the input voice, but also matches the scene information, thereby improving the interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737138A_ABST
    Figure CN118737138A_ABST
Patent Text Reader

Abstract

The invention provides a voice session method and device and related equipment. The method comprises the following steps: receiving a first session voice input by a user; target session key information is extracted from the first session voice, target session scene information is acquired according to the first session voice, and the target session scene information is used for indicating a scene associated with the first session voice; determining first session content corresponding to the target session key information and the target session scene information; and outputting a second session voice corresponding to the first session voice according to the first session content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular to a voice conversation method, apparatus and related equipment. Background Art

[0002] With the rapid development of vehicle technology, fuel vehicles and electric vehicles are becoming more and more popular, and gradually become indispensable means of travel in people's daily lives. Among them, the voice interaction system is one of the important systems of vehicle intelligence, which can realize the dialogue between the on-board terminal and the occupants, so that the on-board terminal can control the state of the vehicle according to the dialogue between the occupants (such as turning on the air conditioner, opening the sunroof, and raising and lowering the windows, etc.), and can also relieve the fatigue of the occupants (especially the driver) through dialogue, which can not only improve the convenience of vehicle operation, but also improve vehicle safety. However, at present, in the conversation between the on-board terminal and the occupants, the on-board terminal usually has an overly standardized understanding of the user's conversation content, which easily leads to low user satisfaction with the conversation process. Summary of the invention

[0003] The purpose of the embodiments of the present disclosure is to provide a voice conversation method, apparatus and related equipment, which can solve the problem that users are not satisfied with the conversation process during the current conversation between electronic devices and people in the car.

[0004] In a first aspect, an embodiment of the present disclosure provides a voice conversation method, including:

[0005] Receiving a first conversation voice input by a user;

[0006] Extracting target conversation key information from the first conversation voice, and acquiring target conversation scene information according to the first conversation voice, where the target conversation scene information is used to indicate a scene associated with the first conversation voice;

[0007] Determining first conversation content corresponding to target conversation key information and target conversation scenario information;

[0008] Based on the first conversation content, a second conversation voice corresponding to the first conversation voice is output.

[0009] In a second aspect, an embodiment of the present disclosure provides a voice conversation device, including:

[0010] A voice receiving module, used for receiving a first conversation voice input by a user;

[0011] An information acquisition module, used to extract target conversation key information from the first conversation voice, and acquire target conversation scene information according to the first conversation voice, wherein the target conversation scene information is used to indicate a scene associated with the first conversation voice;

[0012] A first conversation content determination module, used to determine the first conversation content corresponding to the target conversation key information and the target conversation scenario information;

[0013] The first speech output module is used to output a second conversation speech corresponding to the first conversation speech according to the first conversation content.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the voice conversation method of the first aspect or the second aspect.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the voice conversation method of the first aspect or the second aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a vehicle, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the voice conversation method of the first aspect or the second aspect.

[0017] In the disclosed embodiment, a first conversation voice input by a user is received; target conversation key information is extracted from the first conversation voice, and target conversation scene information is obtained according to the first conversation voice; a first conversation content corresponding to the target conversation key information and the target conversation scene information is determined; and a second conversation voice corresponding to the first conversation voice is output according to the first conversation content. In this way, during a conversation with an in-vehicle user, the electronic device can jointly determine the conversation content according to the conversation voice input by the user and the corresponding conversation scene information, so that the content of the output conversation voice is not only related to the content of the conversation voice input by the user, but also related to the scene corresponding to the conversation scene information, thereby making the content of the output conversation voice more in-depth and improving the user's satisfaction with the conversation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of an embodiment of a voice conversation method provided by the present disclosure;

[0019] Figure 2 is a structural schematic diagram of an embodiment of a voice conversation device provided by the present disclosure;

[0020] Figure 3 It is a schematic diagram of the hardware structure of an embodiment of the electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0021] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0023] See also Figure 1 , is a flow chart of a voice conversation method provided by an embodiment of the present disclosure, the method is applied to an electronic device, the electronic device includes a vehicle-mounted terminal. Figure 1 As shown, the above-mentioned voice conversation method includes the following steps 101 to 104.

[0024] Step 101: Receive a first conversation voice input by a user.

[0025] In the embodiment of the present disclosure, the first conversation voice may be a conversation voice of any content input by any user in the car through a voice input component (such as a microphone, etc.) of the electronic device when the user needs to have a conversation with the electronic device.

[0026] For example, while driving, the driver can input "Student XX, please tell me whether the road section before arriving at location 1 is congested" etc. into the voice input component of the electronic device.

[0027] Step 102: extract target conversation key information from the first conversation voice, and obtain target conversation scene information according to the first conversation voice, where the target conversation scene information is used to indicate a scene associated with the first conversation voice.

[0028] In the embodiment of the present disclosure, when the electronic device receives the first conversation voice, the electronic device may convert the audio in the first conversation voice into text, and extract part or all of the content in the converted text as the target conversation key content.

[0029] Specifically, the electronic device may extract keywords or short sentences from the text converted from the first conversation voice as the target conversation key content. For example, when the driver inputs "XX, please tell me whether the road section before reaching location 1 is congested", the electronic device may extract "the road section before reaching location 1" and "whether it is congested" as the target conversation key content.

[0030] The target conversation scene information may be any information that can indicate a scene associated with the first conversation voice, and may include at least one of the following:

[0031] Status information of the electronic device (or the device where the electronic device is located) when the first conversation voice is received, such as driving status information of the vehicle, including whether the vehicle is driving, the speed or duration of the vehicle driving, etc.;

[0032] Status information of the user when inputting the first conversation voice, such as whether the user is tired, etc.;

[0033] Environmental information, such as whether the user is in an entertainment scenario of playing audio or video or in a casual chat scenario;

[0034] User information of the user who inputs the first conversation voice, such as whether the user is a novice driver, etc.

[0035] The above-mentioned acquisition of the target conversation scene information may be that the electronic device generates and stores the target conversation scene information corresponding to the operation input by the user before receiving the first conversation voice input by the user, and reads the target conversation scene information when the first conversation voice is received.

[0036] Specifically, when the above-mentioned electronic device is in the first conversation mode corresponding to the first conversation scenario, if the electronic device receives a user input to switch the first conversation mode to the second conversation mode, the electronic device determines the second conversation scenario corresponding to the second conversation mode, and determines the information used to indicate the second conversation scenario as the target conversation scenario information.

[0037] For example, when the above-mentioned vehicle is in normal driving mode, if the electronic device receives the user input "Student XX, please switch to the novice driver classmate", the electronic device controls the vehicle to enter the novice driving mode, and the on-board public anger list can obtain the scenario of the vehicle being in a novice driving mode, generate and store the target conversation scenario information for indicating the novice driving scenario.

[0038] Alternatively, the target conversation scene information may be obtained by the electronic device detecting a scene corresponding to the first conversation voice through its monitoring device, and generating target conversation scene information indicating the detected scene.

[0039] For example, when the electronic device receives the above-mentioned first conversation voice, the electronic device can detect the status information inside the car or the status information of the user who inputs the first conversation voice through its in-car detection device (such as a camera and in-car sensors, etc.), such as determining whether the driver is the only person in the car by identifying the number of faces in the image inside the car; or determining whether the driver is in a state of fatigue driving based on the number of times the driver blinks within a period of time and the pressure sensor on the seat detecting the pressure of the driver on the seat, etc.

[0040] Step 103: Determine the first conversation content corresponding to the target conversation key information and the target conversation scenario information.

[0041] In the disclosed embodiment, the above-mentioned determination of the first conversation content corresponding to the target conversation key information and the target conversation scene information can be based on the correspondence between preset conversation key information, conversation scene information and conversation content, and searching for conversation content that has a correspondence with the target conversation key information and the target conversation scene information as the above-mentioned first conversation content, so that the acquired first conversation content is not only related to the conversation key information, but also closely related to the conversation scene corresponding to the first conversation voice.

[0042] For example, when the content of the first conversation voice is "XX, please tell me whether the road section before reaching location 1 is congested", if the target conversation scenario information indicates that the user is in fatigue driving, the electronic device can determine that the content of the first conversation is "Hello, master! There is congestion 3 kilometers to 10 kilometers ahead. Because driving in congestion is more tiring, and you are already in a driving fatigue state, there is a service area 2 kilometers ahead. To ensure driving safety, it is recommended that you take a rest in the service area before setting off."; or, if the target conversation scenario information indicates that the user is a novice driver, the electronic device can determine that the content of the first conversation is "Hello, master! There is congestion 3 kilometers to 10 kilometers ahead. Congested sections require frequent acceleration and deceleration. It is recommended that the master switch to the assisted driving mode. XX can help the master easily pass the congested section.", etc. It can be seen that under different target conversation scenario information, the electronic device can find the target conversation content related to the scene corresponding to the target conversation scenario information.

[0043] Step 104: Output a second conversation voice corresponding to the first conversation voice according to the first conversation content.

[0044] In the embodiment of the present disclosure, the output of the second conversation voice corresponding to the first conversation voice based on the first conversation content may be that the electronic device converts the first conversation content into audio and plays the audio through an audio device (such as a speaker, etc.) to output the second conversation voice that wins the first conversation voice.

[0045] Based on this, by receiving the first conversation voice input by the user; extracting the target conversation key information from the first conversation voice, and obtaining the target conversation scene information according to the first conversation voice; determining the first conversation content corresponding to the target conversation key information and the target conversation scene information; and outputting the second conversation voice corresponding to the first conversation voice according to the first conversation content. In this way, during the process of the electronic device conversing with the user in the car, the conversation content can be jointly determined according to the conversation voice input by the user and the corresponding conversation scene information, so that the content of the output conversation voice is not only related to the content of the conversation voice input by the user, but also related to the scene corresponding to the conversation scene information, so that the content of the output conversation voice can be more in-depth, and the user's satisfaction with the conversation process can be improved.

[0046] In some implementations, the determining of the first conversation content corresponding to the conversation key information and the conversation scenario information includes:

[0047] According to the correspondence between the pre-configured multiple semantic analysis models and the multiple conversation scene information, determine the target semantic analysis model that has a correspondence with the target conversation scene information, wherein each semantic analysis model is a neural network model trained by a training set, the training set includes at least one sample, the sample includes the conversation key information of the first historical conversation voice and the historical conversation content, the historical conversation content is the conversation content marked according to the conversation key information of the first historical conversation voice, and the historical conversation content is associated with the conversation scene information corresponding to the semantic analysis model;

[0048] The target conversation key information is input into the target semantic analysis model, and the target semantic analysis model outputs the first conversation content.

[0049] In the disclosed embodiment, by pre-configuring the correspondence between multiple semantic analysis models and multiple conversation scenario information, the electronic device can obtain the first conversation content by inputting the target conversation key information into the target semantic analysis model corresponding to the target conversation scenario information, thereby not only improving the efficiency of determining the first conversation content, but also making the determination of the first conversation content more comprehensive and accurate.

[0050] Each of the above-mentioned semantic analysis models is a neural network model trained according to the corresponding training set, and its training process may include: inputting samples in the training set into the neural network model to be trained, determining the loss of the neural network model to be trained according to the conversation content output by the initial neural network model and the historical conversation content in the sample, and judging whether the neural network model to be trained meets the training iteration stop condition based on the determined loss (for example, when the loss tends to be unchanged, the iteration stop condition is met, otherwise it is not met); if the neural network model to be trained does not meet the training iteration stop condition, the network parameters of the neural network model to be trained are adjusted, and the samples in the training set are input into the neural network model to be trained and the iteration stop judgment process is re-executed; if the neural network model to be trained meets the training iteration stop condition, the neural network model to be trained is determined as the above-mentioned semantic analysis model.

[0051] The above historical conversation content is conversation content marked according to the conversation key information of the first historical conversation voice, which may be manually marked so that the obtained conversation content is more in line with human thinking mode.

[0052] For example, the marking personnel can collect the first historical conversation voice input by the user through the electronic device that collects history, and for different scenarios, select different conversation contents according to the conversation key information of the first historical conversation voice, obtain the historical conversation content corresponding to the conversation key information of the first historical conversation voice, and generate the above-mentioned sample based on the conversation key information of the first historical conversation voice and the historical conversation content.

[0053] It should be noted that the samples in the above-mentioned training sets can all be generated by manually marked conversation content; or, the above-mentioned method can also include: in the training set corresponding to the target semantic analysis model, constructing a sample including the target conversation key information and the first conversation content, so as to realize the update of the samples in the training set.

[0054] In some embodiments, the at least one sample includes a positive sample and a negative sample.

[0055] The construction method of the above sample includes:

[0056] receiving a target operation input by a user according to the second conversation voice, wherein the target operation is used to indicate whether the second conversation voice meets the user's expectations;

[0057] When the target operation indicates that the second conversation speech meets the user's expectations, constructing a positive sample including the target conversation key information and the first conversation content in a training set corresponding to the target semantic analysis model;

[0058] In the case where the target operation indicates that the second conversation speech does not meet the user's expectations, a negative sample including the target conversation key information and the first conversation content is constructed in a training set corresponding to the target semantic analysis model.

[0059] In this implementation, positive samples and negative samples are constructed in the training set through the target conversation key information and the first conversation content, which not only can achieve the update of the sample set, but also can improve the robustness of the semantic analysis model, thereby making the conversation content output by the electronic device more accurate, further improving user satisfaction during the conversation.

[0060] The target operation may be any operation by which the user indicates whether the second conversation voice satisfies the user's expectations, and may be at least one of a voice operation, an air gesture operation, and a touch operation.

[0061] The above-mentioned receiving the target operation input by the user according to the second conversation voice may be that the user may input the above-mentioned target operation according to the conversation content of the second conversation voice within a preset voice input duration after the electronic device outputs the second conversation voice.

[0062] For example, within 5 seconds after the electronic device outputs the above-mentioned second conversation voice, if the electronic device receives a voice input by the user with the voice content of "Student XX, your answer is inaccurate", the electronic device determines that it has received a target operation indicating that the second conversation voice does not meet the user's expectations; or, if the electronic device receives a voice input by the user with the voice content of "Student XX, your answer is very accurate", the electronic device determines that it has received a target operation indicating that the second conversation voice meets the user's expectations.

[0063] In some implementations, before receiving the target operation input by the user according to the second conversation voice, the step further includes:

[0064] An inquiry voice associated with the second conversation voice is output, and the inquiry voice is used to inquire the user whether the second conversation voice meets the user's expectations.

[0065] The receiving of the target operation input by the user according to the second conversation voice may include:

[0066] A third conversation voice input by the user according to the inquiry voice is received, the third conversation voice including conversation content for indicating whether the second conversation voice meets the user's expectation.

[0067] In this embodiment, after outputting the second conversation voice, the electronic device may further output an inquiry voice for inquiring whether the second conversation voice meets the user's expectations, so as to guide the user to input a third voice, thereby enabling the user to input the target operation in a timely manner.

[0068] The interrogation voice associated with the output of the second conversation voice may be output when a preset interval time has elapsed after the output of the second conversation voice. For example, the electronic device outputs an interrogation voice with the content "Master, are you satisfied with the answer of classmate XX" 3 seconds after the output of the second conversation voice.

[0069] The third conversation voice is a voice including conversation content for indicating whether the second conversation voice meets the user's expectations. For example, in the case where the content of the inquiry voice is "Master, are you satisfied with the answer of classmate XX?", if the electronic device receives a voice with the user input content "satisfied!", the electronic device determines that the user determines that the second conversation voice meets his expectations; if the electronic device receives a voice with the user input content "unsatisfied!", the electronic device determines that the user determines that the second conversation voice does not meet his expectations.

[0070] It should be noted that the outputting of the inquiry voice associated with the second conversation voice may be that the electronic device outputs the inquiry voice every time it outputs the second conversation voice for each conversation voice of the user.

[0071] In some implementations, the outputting of the inquiry voice associated with the second conversation voice includes:

[0072] In the case where it is detected that the second conversation voice satisfies the preset condition, an inquiry voice associated with the second conversation voice is output.

[0073] In this implementation, the electronic device outputs the inquiry voice associated with the second conversation voice only when it is detected that the second conversation voice meets the preset condition, thereby avoiding affecting the normal interaction between the user and the electronic device due to frequent output of the inquiry voice.

[0074] The above-mentioned preset condition may be any condition for avoiding the output of the inquiry voice from affecting the interaction between the user and the electronic device.

[0075] Specifically, in the case where it is detected that the second conversation voice satisfies a preset condition, outputting the inquiry voice associated with the second conversation voice may include:

[0076] Acquire at least one keyword in the second conversation voice;

[0077] According to the at least one keyword, an importance score is performed on the second conversation speech to obtain an importance score of the second conversation speech.

[0078] The above-mentioned outputting the inquiry voice associated with the second conversation voice when it is detected that the second conversation voice satisfies the preset condition includes:

[0079] In a case where it is detected that the importance score of the second conversation voice is greater than or equal to the preset score, an inquiry voice associated with the second conversation voice is output.

[0080] In some implementations, when it is detected that the second conversation voice satisfies a preset condition, outputting the inquiry voice associated with the second conversation voice includes:

[0081] In the case where it is detected that the second conversation voice is a conversation voice output a preset number of times, outputting an inquiry voice associated with the second conversation voice; or,

[0082] In the case where it is detected that the output time of the second conversation voice is the time when the preset period arrives, the inquiry voice associated with the second conversation voice is output.

[0083] In this implementation, the electronic device may output the inquiry voice at a preset number of intervals or according to a preset period, so that the timing of outputting the preset voice is more reasonable.

[0084] It should be noted that the above-mentioned preset number of times and preset period can be set according to actual needs and are not limited here.

[0085] In some implementations, after outputting the second conversation voice corresponding to the first conversation voice according to the first conversation content, the method further includes:

[0086] Determine a second conversation content associated with the first conversation content, where the second conversation content has the same subject as the first conversation content;

[0087] According to the second conversation content, a fourth conversation voice is output, and the fourth conversation voice is used to enable the user to maintain the conversation with the electronic device.

[0088] In this embodiment, after outputting the second conversation voice, the electronic device can actively output a fourth conversation voice whose conversation content is the same as the first conversation content theme, so that the user can be guided to maintain the conversation with the electronic device through the fourth conversation voice, thereby increasing the interactivity between the electronic device and the user's conversation.

[0089] The second conversation content associated with the first conversation content may be determined by the electronic device obtaining the subject information of the first conversation content and searching a database for any conversation content with the subject information as the second conversation content. The second conversation content is different from the first conversation content.

[0090] The second conversation content and the first conversation content have the same subject, which can be understood as at least one identical or similar keyword in the first conversation content and the second conversation content.

[0091] For example, if the content of the first conversation voice input by the user is "I want to know the manufacturer of XXX product", the electronic device can output a second conversation voice with the conversation content "The manufacturer of XXX product is YY company" for the first conversation voice. Furthermore, the electronic device can obtain the second conversation content "Do you still want to know about the situation of YY company" stored in its database, and then the electronic device outputs a fourth conversation voice including the content "Do you still want to know about the situation of YY company".

[0092] In some implementations, before determining the second conversation content associated with the first conversation content, the method further includes:

[0093] Acquire multiple second historical conversation voices within a preset time period, where the second historical conversation voices are conversation voices input by a user after the electronic device outputs a third historical conversation voice, and the conversation content of the third historical conversation voices is associated with the target conversation content;

[0094] Among the plurality of second historical conversation voices, the second historical conversation voice with the highest occurrence frequency is determined.

[0095] The determining of the second session content associated with the first session content may include:

[0096] The conversation content of the second historical conversation voice is determined as the second conversation content associated with the first conversation content.

[0097] In this embodiment, the electronic device can determine the second historical conversation voice with the highest frequency of occurrence among multiple second historical conversation voices within a preset time period, and determine the conversation content of the second historical conversation voice as the above-mentioned second conversation content, thereby making the determined second conversation content more appropriate and further improving the success rate of guiding user communication.

[0098] The preset time period may be a time period including any time point before the current moment and whose time distance from the current moment is less than or equal to the preset time period. For example, the preset time period may be set to be within 1 week or 1 month before the current moment, etc.

[0099] The above-mentioned acquisition of multiple second historical conversation voices within the preset time period can be performed after each output of the second conversation voice; or, it can also be performed under certain conditions, for example, when the electronic device detects that the user is in a tired state, multiple second historical conversation voices within the preset time period are acquired.

[0100] It should be noted that the above-mentioned acquisition of multiple second historical conversation voices within the preset time period can be that the above-mentioned electronic device receives the historical conversation voices input by its user within the preset time period; or, it can also be that other electronic devices receive the second conversation history voices input by its user within the preset time period, and the other electronic devices send the received second conversation history voices to the above-mentioned electronic device.

[0101] For example, after another electronic device receives the input of "I want to know the manufacturer of product XXX" by its user, and the other electronic device outputs a second conversation voice with the conversation content "The manufacturer of product XXX is company YY" in response to the first conversation voice, if the user of the other electronic device continues to input a conversation voice with the content "I also want to know the current scale of company YY?", the other electronic device will determine the conversation voice with the content "I also want to know the current scale of company YY?" as the second historical conversation voice and send it to the above-mentioned electronic device.

[0102] After the electronic device obtains multiple second historical conversation voices within a preset time period, the electronic device can count the number of occurrences of each conversation voice in the multiple second historical conversation voices within the preset time period (i.e., the number of user inputs) and determine the second historical conversation voice with the highest occurrence frequency.

[0103] See also Figure 2 , is a schematic diagram of the structure of a voice conversation device provided by an embodiment of the present disclosure, which is applied to electronic devices. Figure 2 As shown, the device 200 includes:

[0104] The voice receiving module 201 is used to receive the first conversation voice input by the user;

[0105] An information acquisition module 202 is used to extract target conversation key information from the first conversation voice, and acquire target conversation scene information according to the first conversation voice, where the target conversation scene information is used to indicate a scene associated with the first conversation voice;

[0106] A first conversation content determination module 203, configured to determine a first conversation content corresponding to the target conversation key information and the target conversation scenario information;

[0107] The first speech output module 204 is configured to output a second conversation speech corresponding to the first conversation speech according to the first conversation content.

[0108] In some implementations, the first conversation content determination module 203 is specifically configured to:

[0109] According to the correspondence between the pre-configured multiple semantic analysis models and the multiple conversation scene information, determine the target semantic analysis model that has a correspondence with the target conversation scene information, wherein each semantic analysis model is a neural network model trained by a training set, the training set includes at least one sample, the sample includes the conversation key information of the first historical conversation voice and the historical conversation content, the historical conversation content is the conversation content marked according to the conversation key information of the first historical conversation voice, and the historical conversation content is associated with the conversation scene information corresponding to the semantic analysis model;

[0110] The target conversation key information is input into the target semantic analysis model, and the target semantic analysis model outputs the first conversation content.

[0111] In some implementations, the at least one sample includes a positive sample and a negative sample.

[0112] The device 200 may further include:

[0113] An input module, configured to receive a target operation input by a user according to the second conversation voice, wherein the target operation is used to indicate whether the second conversation voice meets the user's expectations;

[0114] A positive sample construction module, configured to construct a positive sample including target conversation key information and first conversation content in a training set corresponding to a target semantic analysis model when the target operation indicates that the second conversation speech meets the user's expectations;

[0115] The negative sample construction module is used to construct a negative sample including target conversation key information and first conversation content in a training set corresponding to a target semantic analysis model when the target operation indicates that the second conversation speech does not meet the user's expectations.

[0116] In some embodiments, the apparatus 200 further comprises:

[0117] The inquiry voice output module is used to output an inquiry voice associated with the second conversation voice, where the inquiry voice is used to inquire the user whether the second conversation voice meets his expectations.

[0118] Input modules can be used for:

[0119] A third conversation voice input by the user according to the inquiry voice is received, the third conversation voice including conversation content for indicating whether the second conversation voice meets the user's expectation.

[0120] In some implementations, querying the voice output module specifically includes:

[0121] In the case where it is detected that the second conversation voice satisfies the preset condition, an inquiry voice associated with the second conversation voice is output.

[0122] In some implementations, the query voice output module is specifically used to:

[0123] In the case where it is detected that the second conversation voice is a conversation voice output a preset number of times, outputting an inquiry voice associated with the second conversation voice; or,

[0124] In the case where it is detected that the output time of the second conversation voice is the time when the preset period arrives, the inquiry voice associated with the second conversation voice is output.

[0125] In some embodiments, the apparatus 200 further includes:

[0126] A second conversation content determination module, used to determine a second conversation content associated with the first conversation content, the second conversation content and the first conversation content having the same subject but different content;

[0127] The second voice output module is used to output a fourth conversation voice according to the second conversation content, and the fourth conversation voice is used to enable the user to maintain the conversation with the electronic device.

[0128] In some embodiments, the apparatus 200 further includes:

[0129] A historical conversation voice acquisition module, used to acquire a plurality of second historical conversation voices within a preset period of time, wherein the second historical conversation voices are conversation voices input by a user after the electronic device outputs a third historical conversation voice, and the conversation content of the third historical conversation voices is associated with the target conversation content;

[0130] A historical conversation voice determination module is used to determine the second historical conversation voice with the highest occurrence frequency among multiple second historical conversation voices.

[0131] The second session content determination module may be specifically used for:

[0132] The conversation content of the second historical conversation voice is determined as the second conversation content associated with the first conversation content.

[0133] According to other details of the voice conversation device of the embodiment of the present disclosure, combined with the above Figure 1 The voice conversation method described in the example shown is similar and can achieve its corresponding technical effect. For the sake of brevity, it will not be repeated here.

[0134] Figure 3 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure is shown.

[0135] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.

[0136] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.

[0137] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In some instances, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 302 is a non-volatile solid-state memory. In some embodiments, the memory 302 may be inside or outside the battery device.

[0138] In some examples, the memory 302 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0139] The memory 302 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0140] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement Figure 1 The method in the embodiment shown in the figure is achieved Figure 1 The corresponding technical effects achieved by executing the methods / steps in the example shown are not repeated here for the sake of brevity.

[0141] In one example, the electronic device may further include a communication interface 303 and a bus 304. Figure 3As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 304 and communicate with each other.

[0142] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present disclosure.

[0143] Bus 304 includes hardware, software or both, and the components of online data traffic billing equipment are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. Where appropriate, bus 304 may include one or more buses. Although the present disclosure describes and illustrates a specific bus, the present disclosure considers any suitable bus or interconnection.

[0144] The electronic device can execute the voice conversation method in the embodiment of the present disclosure, thereby realizing the combination Figure 1 Describes the voice conversation method.

[0145] In addition, in combination with the voice conversation method in the above embodiment, the embodiment of the present disclosure may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the voice conversation methods in the above embodiment is implemented.

[0146] In addition, in combination with the voice conversation method in the above embodiment, the embodiment of the present disclosure can provide a vehicle for implementation. The vehicle includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the following is implemented: Figure 1 Steps of the voice conversation method.

[0147] It should be clear that the present disclosure is not limited to the specific configurations and processes described above and shown in the figures. For the sake of simplicity, a detailed description of the known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present disclosure is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present disclosure.

[0148] The functional blocks shown in the above structured block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present disclosure are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0149] It should also be noted that the exemplary embodiments mentioned in the present disclosure describe some methods or systems based on a series of steps or devices. However, the present disclosure is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0150] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device, equipment and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

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

Claims

1. A voice conversation method, It is characterized in that include: Receiving a first conversation voice input by a user; Extracting target conversation key information from the first conversation voice, and acquiring target conversation scene information according to the first conversation voice, wherein the target conversation scene information is used to indicate a scene associated with the first conversation voice; Determining a first conversation content corresponding to the target conversation key information and the target conversation scenario information; Based on the first conversation content, a second conversation voice corresponding to the first conversation voice is output.

2. The method according to claim 1, It is characterized in that The determining of the first session content corresponding to the session key information and the session scenario information includes: According to the correspondence between the pre-configured multiple semantic analysis models and the multiple conversation scene information, determine the target semantic analysis model that has a correspondence with the target conversation scene information, wherein each of the semantic analysis models is a neural network model trained by a training set, the training set includes at least one sample, the sample includes the conversation key information of the first historical conversation voice and the historical conversation content, the historical conversation content is the conversation content marked according to the conversation key information of the first historical conversation voice, and the historical conversation content is associated with the conversation scene information corresponding to the semantic analysis model; The target conversation key information is input into the target semantic analysis model, and the target semantic analysis model outputs the first conversation content.

3. The method according to claim 2, It is characterized in that The at least one sample includes a positive sample and a negative sample; The sample construction method includes: receiving a target operation input by the user according to the second conversation voice, wherein the target operation is used to indicate whether the second conversation voice meets the user's expectation; When the target operation indicates that the second conversation speech meets the user's expectation, constructing a positive sample including the target conversation key information and the first conversation content in a training set corresponding to the target semantic analysis model; In a case where the target operation indicates that the second conversation speech does not meet the user's expectations, a negative sample including the target conversation key information and the first conversation content is constructed in a training set corresponding to the target semantic analysis model.

4. The method according to claim 3, It is characterized in that Before receiving the target operation input by the user according to the second conversation voice, the method further includes: outputting an inquiry voice associated with the second conversation voice, the inquiry voice being used to inquire the user whether the second conversation voice meets the user's expectations; The receiving a target operation input by the user according to the second conversation voice includes: A third conversation voice input by the user according to the inquiry voice is received, wherein the third conversation voice includes conversation content for indicating whether the second conversation voice satisfies the expectation of the user.

5. The method according to claim 4, It is characterized in that The outputting the inquiry voice associated with the second conversation voice includes: In the case where it is detected that the second conversation voice satisfies a preset condition, an inquiry voice associated with the second conversation voice is output.

6. The method according to claim 5, It is characterized in that The step of outputting an inquiry voice associated with the second conversation voice when it is detected that the second conversation voice satisfies a preset condition comprises: When it is detected that the second conversation voice is a conversation voice output for a preset number of times, outputting an inquiry voice associated with the second conversation voice; or, In the case where it is detected that the output time of the second conversation voice is the time when the preset period arrives, the inquiry voice associated with the second conversation voice is output.

7. The method according to claim 1, It is characterized in that After outputting the second conversation voice corresponding to the first conversation voice according to the first conversation content, the method further includes: Determine a second conversation content associated with the first conversation content, where the second conversation content has the same subject as the first conversation content; According to the second conversation content, a fourth conversation voice is output, and the fourth conversation voice is used to enable the user to maintain the conversation with the electronic device.

8. The method according to claim 7, It is characterized in that Before determining the second session content associated with the first session content, the method further includes: Acquire a plurality of second historical conversation voices within a preset time period, wherein the second historical conversation voices are conversation voices received from a user after the electronic device outputs a third historical conversation voice, and the conversation content of the third historical conversation voices is associated with the target conversation content; Determine, among the plurality of second historical conversation voices, the second historical conversation voice with the highest occurrence frequency; The determining of the second session content associated with the first session content includes: The conversation content of the second historical conversation voice is determined as the second conversation content associated with the first conversation content.

9. A voice conversation device, It is characterized in that include: A voice receiving module, used for receiving a first conversation voice input by a user; an information acquisition module, configured to extract target conversation key information from the first conversation voice, and acquire target conversation scene information according to the first conversation voice, wherein the target conversation scene information is used to indicate a scene associated with the first conversation voice; A first conversation content determination module, used to determine a first conversation content corresponding to the target conversation key information and the target conversation scenario information; The first speech output module is used to output a second conversation speech corresponding to the first conversation speech according to the first conversation content.

10. An electronic device, It is characterized in that The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the voice conversation method as claimed in any one of claims 1 to 8.

11. A readable storage medium, It is characterized in that The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the voice conversation method according to any one of claims 1 to 8 are implemented.

12. A vehicle, It is characterized in that The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the voice conversation method as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device of determining session feedback information

    CN107026940A

  • Voice session method, voice recognition system and computer storage medium

    CN111028837A

  • Automatic conversation system and conversation scenario editing device

    JP2010048980A

  • Conversation control method, device, and program

    JP2021173796A

  • Interactive method and device of robot, and device

    US20200005772A1