CN112542166B - Voice interaction method and device - Google Patents

Voice interaction method and device Download PDF

Info

Publication number
CN112542166B
CN112542166B CN202011365157.6A CN202011365157A CN112542166B CN 112542166 B CN112542166 B CN 112542166B CN 202011365157 A CN202011365157 A CN 202011365157A CN 112542166 B CN112542166 B CN 112542166B
Authority
CN
China
Prior art keywords
request message
target
version information
vehicle
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011365157.6A
Other languages
Chinese (zh)
Other versions
CN112542166A (en
Inventor
赵鹏
赵耀
易晖
翁志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Guangzhou Chengxingzhidong Automotive Technology Co., Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Guangzhou Chengxingzhidong Automotive Technology Co., Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co Ltd, Guangzhou Chengxingzhidong Automotive Technology Co., Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202011365157.6A priority Critical patent/CN112542166B/en
Publication of CN112542166A publication Critical patent/CN112542166A/en
Application granted granted Critical
Publication of CN112542166B publication Critical patent/CN112542166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/037Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for occupant comfort, e.g. for automatic adjustment of appliances according to personal settings, e.g. seats, mirrors, steering wheel
    • B60R16/0373Voice control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mechanical Engineering (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a voice interaction method and device, wherein the method comprises the following steps: receiving an interaction request message sent by a vehicle machine side when a voice interaction event is detected; according to the interaction request message, determining first version information of a target client side in the vehicle side, wherein the target client side is used for responding to the voice interaction event; and generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal. By the embodiment of the invention, version control is realized when the interactive request message is processed, the corresponding control message is generated according to the version information of the target client by receiving the interactive request message of the user, and the user voice requests of different vehicle-mounted client versions can be effectively distinguished to execute the corresponding instruction, so that the purpose of returning the corresponding natural language understanding result according to the version information of the client is achieved.

Description

Voice interaction method and device
Technical Field
The invention relates to the technical field of vehicles, in particular to a voice interaction method and device.
Background
At present, in an NLU (Natural Language Understanding ) application scene, the accuracy deficiency of a model can be made up through the analysis of a common sentence pattern by a template analyzer. However, as the vehicle type and train increases, the voice assistant corresponding to the vehicle type is also in continuous upgrading iteration, and part of instructions are realized in later versions aiming at versions in different stages, and are not supported in earlier versions, so that a single template cannot cope with multiple NLU results.
Disclosure of Invention
In view of the above, a method and apparatus for providing a voice interaction that overcomes or at least partially solves the above-mentioned problems is presented, comprising:
A method of voice interaction, the method comprising:
Receiving an interaction request message sent by a vehicle machine side when a voice interaction event is detected;
According to the interaction request message, determining first version information of a target client side in the vehicle side, wherein the target client side is used for responding to the voice interaction event;
and generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal.
Optionally, the generating, according to the first version information, a control message corresponding to the interaction request message to control the vehicle-mounted device includes:
Determining a target template file according to the first version information;
And generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
Optionally, the determining the target template file according to the first version information includes:
determining second version information of a target server corresponding to the target client according to the first version information;
and determining the target template file according to the second version information.
Optionally, the determining, according to the interaction request message, the first version information of the target client for responding to the voice interaction event in the vehicle machine side includes:
Acquiring a target version identifier from the interaction request message;
And determining first version information of a target client used for responding to the voice interaction event in the vehicle machine side according to the target version identification.
Optionally, before the receiving vehicle machine side sends the interaction request message when detecting the voice interaction event, the method further includes:
Loading a plurality of template files in a template engine; wherein, each template file corresponds to a version identifier of the template file;
And establishing a corresponding relation between the version identifier of the template file and the version identifier of the server.
Optionally, the voice request event comprises a voice request event triggered based on a full-scene voice service.
Optionally, the control information is a control instruction obtained according to a natural language understanding result of the interactive request message.
An apparatus of voice interaction, the apparatus comprising:
the interactive request message receiving module is used for receiving an interactive request message sent by the vehicle machine side when the voice interactive event is detected;
The first version information determining module is used for determining first version information of a target client side used for responding to the voice interaction event in the vehicle side according to the interaction request message;
And the control message generation module is used for generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal.
A server comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements a method of voice interaction as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method of voice interaction as described above.
The embodiment of the invention has the following advantages:
In the embodiment of the invention, the interactive request message sent by the vehicle-mounted terminal when the voice interactive event is detected is received, then the first version information of the target client terminal used for responding to the voice interactive event in the vehicle-mounted terminal is determined according to the interactive request message, and further the control message corresponding to the interactive request message is generated according to the first version information so as to control the vehicle-mounted terminal, so that the version control when the interactive request message is processed is realized, the corresponding control message is generated according to the version information of the target client terminal by receiving the interactive request message of the user, and the user voice requests of different vehicle-mounted client terminal versions can be effectively distinguished to execute corresponding instructions, and the purpose of returning corresponding natural language understanding results according to the version information of the client terminal is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a method for voice interaction according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of another method for voice interaction provided by an embodiment of the present invention;
FIG. 3 is a flow chart of steps of another method for voice interaction provided by an embodiment of the present invention;
FIG. 4 is a flow chart of steps of another method for voice interaction provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a voice interaction device according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart illustrating steps of a method for voice interaction according to an embodiment of the present invention may specifically include the following steps:
step 101, receiving an interaction request message sent by a vehicle machine side when a voice interaction event is detected;
As an example, the voice request event may include a voice request event triggered based on a full-scene voice service.
In the voice interaction process, the interaction request message obtained based on the user voice interaction operation can be received, and the interaction request message can be sent by the vehicle machine side when the voice interaction event is detected, so that the received interaction request message can be processed.
In an example, for a full-scene voice service, a voice interaction event may be triggered when a user voice interaction operation is responded, and then the vehicle side may send an interaction request message when the voice interaction event is detected, where the interaction request message may be transmitted in json format, so as to perform parsing processing on the interaction request message through a server side (such as a voice assistant server side).
For example, a voice assistant service page can be opened through voice interaction operation of a user to start natural language understanding service, and then the vehicle side can send an interaction request message to the server side through json files when a voice interaction event is detected.
Step 102, determining first version information of a target client for responding to the voice interaction event in the vehicle side according to the interaction request message;
After receiving the interaction request message, the first version information of the target client side used for responding to the voice interaction event in the vehicle machine side can be determined according to the interaction request message, for example, the current version information of the client side (such as a voice assistant client side) used for responding to the voice interaction event and installed in the vehicle can be determined according to the interaction request message.
In an example, the interactive request message (json file) transmitted by the vehicle-mounted device may be received, and since the interactive request message may carry version information of the vehicle-mounted client corresponding to the request, that is, first version information of the target client in the vehicle-mounted device for responding to the voice interaction event, the first version information may be obtained from the json file.
And step 103, generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal.
As an example, the control information may be a control instruction derived from a natural language understanding result of the interactive request message.
After the first version information is determined, a control message corresponding to the interaction request message can be generated according to the first version information so as to control the vehicle-mounted terminal.
For example, according to the current version information of the voice assistant client installed in the vehicle, the interactive request message is analyzed, a corresponding natural language understanding result can be obtained, and then according to the natural language understanding result, a control instruction can be obtained, so that the vehicle executes the corresponding instruction.
In an example, when the interactive request message is analyzed, the corresponding NLU result can be returned according to the first version information by acquiring the first version information of the target client for responding to the voice interactive event in the vehicle-mounted terminal corresponding to the interactive request message.
By effectively distinguishing the user voice requests of different vehicle-mounted client versions at the server, the user voice requests can be analyzed to obtain corresponding natural language understanding results so as to execute corresponding control instructions, and application version control for carrying out natural language understanding on the interaction request message under the condition of multiple vehicle-mounted client versions is realized.
In the embodiment of the invention, the interactive request message sent by the vehicle-mounted terminal when the voice interactive event is detected is received, then the first version information of the target client terminal used for responding to the voice interactive event in the vehicle-mounted terminal is determined according to the interactive request message, and further the control message corresponding to the interactive request message is generated according to the first version information so as to control the vehicle-mounted terminal, so that the version control when the interactive request message is processed is realized, the corresponding control message is generated according to the version information of the target client terminal by receiving the interactive request message of the user, and the user voice requests of different vehicle-mounted client terminal versions can be effectively distinguished to execute corresponding instructions, and the purpose of returning corresponding natural language understanding results according to the version information of the client terminal is achieved.
Referring to fig. 2, a flowchart illustrating steps of another method for voice interaction according to an embodiment of the present invention may specifically include the following steps:
Step 201, receiving an interaction request message sent by a vehicle-mounted terminal when a voice interaction event is detected;
In the voice interaction process, the interaction request message obtained based on the user voice interaction operation can be received, and the interaction request message can be sent by the vehicle machine side when the voice interaction event is detected, so that the received interaction request message can be processed.
Step 202, obtaining a target version identifier from the interaction request message;
After receiving the interaction request message, a target version identifier can be obtained from the interaction request message, and the target version identifier can be a version identifier of a target client used for responding to a voice interaction event in a vehicle machine side.
For example, the interactive request message may include the version identifier of the target client for responding to the voice interactive event in the vehicle machine side, so that the version identifier of the vehicle-mounted client corresponding to the request may be obtained according to the received interactive request message.
Step 203, determining first version information of a target client for responding to the voice interaction event in the vehicle machine side according to the target version identifier;
After the target version identifier is obtained, the first version information of the target client used for responding to the voice interaction event in the vehicle-mounted terminal can be determined according to the target version identifier.
Specifically, after the interactive request message is received, a target version identifier may be obtained from the interactive request message, where the target version identifier may be a version identifier of the target client, and further the first version information of the target client may be determined according to the target version identifier, for example, by obtaining a version number of the target client in the interactive request message, the version information corresponding to the target client may be determined.
Step 204, determining a target template file according to the first version information;
as an example, the target template file may be used to parse the interaction request message to obtain a natural language understanding result, for example, may be an NLU template.
After the first version information is obtained, a target template file can be determined according to the first version information, so that the interactive request message is analyzed and processed according to the target template file.
And 205, generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
After the target template file is obtained, a control message corresponding to the interaction request message can be generated according to the target template file so as to control the vehicle-mounted terminal, for example, the interaction request message can be analyzed according to the target template file, a corresponding natural language understanding result can be obtained, and further a control instruction can be obtained according to the natural language understanding result so as to enable the vehicle to execute the corresponding instruction.
Referring to fig. 3, a flowchart illustrating steps of another method for voice interaction according to an embodiment of the present invention may specifically include the following steps:
step 301, receiving an interaction request message sent by a vehicle-mounted terminal when a voice interaction event is detected;
In the voice interaction process, the interaction request message obtained based on the user voice interaction operation can be received, and the interaction request message can be sent by the vehicle machine side when the voice interaction event is detected, so that the received interaction request message can be processed.
Step 302, determining first version information of a target client for responding to the voice interaction event in the vehicle side according to the interaction request message;
After receiving the interaction request message, the first version information of the target client side used for responding to the voice interaction event in the vehicle machine side can be determined according to the interaction request message, for example, the current version information of the client side (such as a voice assistant client side) used for responding to the voice interaction event and installed in the vehicle can be determined according to the interaction request message.
Step 303, determining second version information of a target server corresponding to the target client according to the first version information;
After the first version information is obtained, the second version information of the target server corresponding to the target client can be determined according to the first version information.
Specifically, the second version information of the target server corresponding to the target client, such as the current version information of the voice assistant server, may be determined according to the first version information of the target client in the vehicle machine side, which is used for responding to the voice interaction event.
In an example, the first version information of the target client for responding to the voice interaction event in the vehicle side, and the second version information of the target server corresponding to the target client may be the same version information.
Step 304, determining a target template file according to the second version information;
After the second version information is obtained, the version information of the template file corresponding to the second version information can be determined, and then the target template file can be determined according to the version information of the template file corresponding to the second version information, so that the interactive request message is analyzed and processed according to the target template file.
In one example, since a plurality of template files may be preloaded in a template engine, the template files may be represented as follows:
template_250.yml;
template_260.yml
The template file of the template_250.yml can represent the version number of the corresponding voice service end as 2.5.0; the template file of template_260.Yml may represent the corresponding voice server version number 2.6.0.
The version information of the target server can be the version number through the obtained version information of the target server, and then the version number of the template file corresponding to the version number of the target server can be determined according to the version number of the target server, and the target template file is determined.
In an example, template file matching may be performed for the interactive request message, the corresponding template file may be hit by the version number of the target server for the interactive request message, and the version number of the hit template may be compared, so that when the version numbers match, a template result may be output, where the template result may be a natural language understanding result for the interactive request message.
And 305, generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
After the target template file is obtained, a control message corresponding to the interaction request message can be generated according to the target template file so as to control the vehicle-mounted terminal, for example, the interaction request message can be analyzed according to the target template file, a corresponding natural language understanding result can be obtained, and further a control instruction can be obtained according to the natural language understanding result so as to enable the vehicle to execute the corresponding instruction.
Referring to fig. 4, a flowchart illustrating steps of a method for voice interaction according to an embodiment of the present invention may specifically include the following steps:
step 401, loading a plurality of template files in a template engine; wherein, each template file corresponds to a version identifier of the template file;
In a specific implementation, a plurality of template files may be preloaded in the template engine, and each template file may correspond to a version identifier of a template file.
For example, by preloading the template engine, different template files can be respectively loaded into the same set of template resolvers, and at the same time, the version numbers corresponding to the template files can be loaded.
Step 402, establishing a corresponding relation between the version identifier of the template file and the version identifier of the server;
after a plurality of template files are loaded in the template engine, the corresponding relation between the version identification of the template files and the version identification of the server can be established, so that the target template files are determined according to the corresponding relation between the version identifications of the template files and the version identifications of the server according to the received interaction request message.
In one example, the loaded template file may be represented as follows:
template_250.yml
The template file of template_250.yml may represent the version number of the corresponding voice server as 2.5.0.
Step 403, receiving an interaction request message sent by a vehicle-mounted terminal when a voice interaction event is detected;
In the voice interaction process, the interaction request message obtained based on the user voice interaction operation can be received, and the interaction request message can be sent by the vehicle machine side when the voice interaction event is detected, so that the received interaction request message can be processed.
Step 404, obtaining a target version identifier from the interaction request message;
After receiving the interaction request message, a target version identifier can be obtained from the interaction request message, and the target version identifier can be a version identifier of a target client used for responding to a voice interaction event in a vehicle machine side.
Step 405, determining, according to the target version identifier, first version information of a target client for responding to the voice interaction event in the vehicle-mounted terminal;
After the target version identifier is obtained, the first version information of the target client used for responding to the voice interaction event in the vehicle-mounted terminal can be determined according to the target version identifier.
Step 406, determining second version information of the target server corresponding to the target client according to the first version information;
After the first version information is obtained, the second version information of the target server corresponding to the target client can be determined according to the first version information.
Step 407, determining a target template file according to the second version information;
After the second version information is obtained, the version information of the template file corresponding to the second version information can be determined, and then the target template file can be determined according to the version information of the template file corresponding to the second version information, so that the interactive request message is analyzed and processed according to the target template file.
And step 408, generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
After the target template file is obtained, a control message corresponding to the interaction request message can be generated according to the target template file so as to control the vehicle-mounted terminal, for example, the interaction request message can be analyzed according to the target template file, a corresponding natural language understanding result can be obtained, and further a control instruction can be obtained according to the natural language understanding result so as to enable the vehicle to execute the corresponding instruction.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 5, a schematic structural diagram of a voice interaction device according to an embodiment of the present invention may specifically include the following modules:
the interactive request message receiving module 501 is configured to receive an interactive request message sent by a vehicle-mounted terminal when a voice interactive event is detected;
a first version information determining module 502, configured to determine, according to the interaction request message, first version information of a target client in the vehicle-mounted terminal, where the target client is used to respond to the voice interaction event;
And a control message generating module 503, configured to generate a control message corresponding to the interaction request message according to the first version information, so as to control the vehicle-mounted device.
In one embodiment of the present invention, the control message generating module 503 includes:
A target template file determining sub-module for determining a target template file according to the first version information;
And the control message generation sub-module is used for generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
In one embodiment of the present invention, the target template file determination submodule includes:
a second version information determining unit, configured to determine, according to the first version information, second version information of a target server corresponding to the target client;
And the target template file determining unit is used for determining a target template file according to the second version information.
In an embodiment of the present invention, the first version information determining module 502 includes:
The target version identifier acquisition sub-module is used for acquiring a target version identifier from the interaction request message;
and the first version information determining submodule is used for determining the first version information of the target client side used for responding to the voice interaction event in the vehicle machine side according to the target version identification.
In an embodiment of the present invention, further includes:
a plurality of template file loading modules for loading a plurality of template files in a template engine; wherein, each template file corresponds to a version identifier of the template file;
And the corresponding relation establishing module is used for establishing the corresponding relation between the version identifier of the template file and the version identifier of the server.
In one embodiment of the present invention, the voice request event comprises a voice request event triggered based on a full-scene voice service.
In an embodiment of the present invention, the control information is a control instruction obtained according to a natural language understanding result of the interactive request message.
In the embodiment of the invention, the interactive request message sent by the vehicle-mounted terminal when the voice interactive event is detected is received, then the first version information of the target client terminal used for responding to the voice interactive event in the vehicle-mounted terminal is determined according to the interactive request message, and further the control message corresponding to the interactive request message is generated according to the first version information so as to control the vehicle-mounted terminal, so that the version control when the interactive request message is processed is realized, the corresponding control message is generated according to the version information of the target client terminal by receiving the interactive request message of the user, and the user voice requests of different vehicle-mounted client terminal versions can be effectively distinguished to execute corresponding instructions, and the purpose of returning corresponding natural language understanding results according to the version information of the client terminal is achieved.
An embodiment of the present invention further provides a server, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program implements the above method of voice interaction when executed by the processor.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method for voice interaction as above.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The foregoing has outlined rather broadly the more detailed description of a method and apparatus for voice interaction that uses specific examples to illustrate the principles and embodiments of the present invention, the description of the examples above being merely intended to facilitate an understanding of the method and core concepts of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A method of voice interaction, the method comprising:
Loading a plurality of template files in a template engine; wherein, each template file corresponds to a version identifier of the template file;
establishing a corresponding relation between the version identifier of the template file and the version identifier of the server;
Receiving an interaction request message sent by a vehicle machine side when a voice interaction event is detected;
According to the interaction request message, determining first version information of a target client side in the vehicle side, wherein the target client side is used for responding to the voice interaction event;
Generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal; the control message is a control instruction obtained according to a natural language understanding result of the interactive request message;
and generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal, wherein the control message comprises:
Determining a version identifier of the target server according to the first version information;
determining a target template file according to the corresponding relation between the version identifier of the target server and the version identifier of the template file and the version identifier of the server;
And generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
2. The method of claim 1, wherein determining a target template file based on the first version information comprises:
determining second version information of a target server corresponding to the target client according to the first version information;
and determining the target template file according to the second version information.
3. The method according to claim 1 or 2, wherein determining, according to the interaction request message, first version information of a target client in the vehicle side for responding to the voice interaction event includes:
Acquiring a target version identifier from the interaction request message;
And determining first version information of a target client used for responding to the voice interaction event in the vehicle machine side according to the target version identification.
4. The method of claim 1, wherein the voice interaction event comprises a voice request event triggered based on a full-scene voice service.
5. A device for voice interaction, the device comprising:
a plurality of template file loading modules for loading a plurality of template files in a template engine; wherein, each template file corresponds to a version identifier of the template file;
the corresponding relation establishing module is used for establishing a corresponding relation between the version identifier of the template file and the version identifier of the server;
the interactive request message receiving module is used for receiving an interactive request message sent by the vehicle machine side when the voice interactive event is detected;
The first version information determining module is used for determining first version information of a target client side used for responding to the voice interaction event in the vehicle side according to the interaction request message;
the control message generation module is used for generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal; the control message is a control instruction obtained according to a natural language understanding result of the interactive request message;
and generating a control message corresponding to the interaction request message according to the first version information so as to control the vehicle-mounted terminal, wherein the control message comprises:
Determining a version identifier of the target server according to the first version information;
determining a target template file according to the corresponding relation between the version identifier of the target server and the version identifier of the template file and the version identifier of the server;
And generating a control message corresponding to the interaction request message according to the target template file so as to control the vehicle-mounted terminal.
6. A server comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the method of voice interaction of any of claims 1 to 4.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of voice interaction according to any of claims 1 to 4.
CN202011365157.6A 2020-11-27 2020-11-27 Voice interaction method and device Active CN112542166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011365157.6A CN112542166B (en) 2020-11-27 2020-11-27 Voice interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011365157.6A CN112542166B (en) 2020-11-27 2020-11-27 Voice interaction method and device

Publications (2)

Publication Number Publication Date
CN112542166A CN112542166A (en) 2021-03-23
CN112542166B true CN112542166B (en) 2024-06-04

Family

ID=75015326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011365157.6A Active CN112542166B (en) 2020-11-27 2020-11-27 Voice interaction method and device

Country Status (1)

Country Link
CN (1) CN112542166B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113534781B (en) * 2021-06-29 2023-08-25 广州小鹏汽车科技有限公司 Voice communication method and device based on vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808627A (en) * 2014-12-31 2016-07-27 高德软件有限公司 POI information updating method and device, POI information search method and device as well as POI data packet generation method and device
CN106547511A (en) * 2015-09-16 2017-03-29 广州市动景计算机科技有限公司 A kind of voice broadcasts method, browser client and the server of reading web page information
WO2018170786A1 (en) * 2017-03-22 2018-09-27 华为技术有限公司 Application program updating method
CN110597595A (en) * 2019-09-30 2019-12-20 腾讯科技(深圳)有限公司 Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
CN111209054A (en) * 2019-12-30 2020-05-29 深圳移航通信技术有限公司 Configuration method of terminal equipment, terminal management equipment and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7206744B2 (en) * 2001-12-14 2007-04-17 Sbc Technology Resources, Inc. Voice review of privacy policy in a mobile environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808627A (en) * 2014-12-31 2016-07-27 高德软件有限公司 POI information updating method and device, POI information search method and device as well as POI data packet generation method and device
CN106547511A (en) * 2015-09-16 2017-03-29 广州市动景计算机科技有限公司 A kind of voice broadcasts method, browser client and the server of reading web page information
WO2018170786A1 (en) * 2017-03-22 2018-09-27 华为技术有限公司 Application program updating method
CN110597595A (en) * 2019-09-30 2019-12-20 腾讯科技(深圳)有限公司 Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
CN111209054A (en) * 2019-12-30 2020-05-29 深圳移航通信技术有限公司 Configuration method of terminal equipment, terminal management equipment and electronic equipment

Also Published As

Publication number Publication date
CN112542166A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN107844421B (en) Interface testing method and device, computer equipment and storage medium
CN108831505B (en) Method and device for identifying use scenes of application
CN111767227A (en) Recording playback test method and device
CN112073393A (en) Flow detection method based on cloud computing and user behavior analysis and big data center
CN111143404B (en) Service processing method and device
CN112542166B (en) Voice interaction method and device
CN112488769A (en) Advertisement putting test method, device, equipment and storage medium
CN111506496A (en) Test data acquisition method and device, electronic equipment and storage medium
CN113821692A (en) Data processing method, device, server and storage medium
CN111694345B (en) Vehicle diagnosis menu generation method, device, equipment and medium
CN111124937B (en) Method and system for assisting in improving test case generation efficiency based on instrumentation function
CN112380140A (en) Intelligent cabin data testing method and system
CN109508204B (en) Front-end code quality detection method and device
CN116166533A (en) Interface testing method, device, terminal equipment and storage medium
CN112180890B (en) Test case generation method, device and equipment
CN111581487B (en) Information processing method and device
CN112187708B (en) Automatic supplementing method and equipment for certificate chain of digital certificate
CN109284480B (en) Service document processing method, device and server
CN111881266B (en) Response method and device
CN113436699A (en) Method, system, electronic device and storage medium for generating new corona nucleic acid detection report
CN113032836A (en) Data desensitization method and apparatus
CN113515436A (en) Interface testing method and device
CN111078082A (en) Point reading method based on image recognition and electronic equipment
CN110908575B (en) Data processing method, computer storage medium and electronic device
CN118298812A (en) Cloud server-based vehicle-mounted intelligent voice system training method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant