In-Vehicle Speech Interaction Method and Device
An in-vehicle speech interaction method and a device are provided. The method includes: obtaining user speech information; determining a user instruction based on the user speech information; determining, based on the user instruction, whether response content to the user instruction is privacy-related; and determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode, to protect privacy from being leaked.
1 . An in-vehicle speech interaction method, comprising:
obtaining user speech information;
determining a user instruction based on the user speech information;
determining, based on the user instruction, whether response content to the user instruction is privacy-related; and
determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode.
2 . The method according to claim 1 , wherein the method further comprises: obtaining a user image; and the determining a user instruction based on the user speech information is specifically:
determining a gaze direction of a user based on the user image;
when determining that the gaze direction is a target direction, determining that an intention of the user is to perform human-computer interaction; and
determining the user instruction based on the user speech information sent when the gaze direction is the target direction.
3 . The method according to claim 1 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related and the user is in a single-person scenario, outputting the response content in a non-privacy mode.
4 . The method according to claim 1 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related and the user is in a multi-person scenario, outputting the response content in the privacy protection mode.
5 . The method according to claim 1 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related, outputting the response content in the privacy protection mode.
6 . The method according to claim 4 , wherein the outputting the response content in the privacy protection mode is specifically:
when outputting the response content by using a public device, hiding private content comprised in the response content; or
outputting the response content by using a non-public device.
7 . An apparatus, comprising at least one processor and a memory, wherein the at least one processor is coupled to the memory;
the memory is configured to store a computer program; and
the at least one processor is configured to execute the computer program stored in the memory, so that the apparatus performs the method comprising:
obtaining user speech information;
determining a user instruction based on the user speech information;
determining, based on the user instruction, whether response content to the user instruction is privacy-related; and
determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode.
8 . The apparatus according to claim 7 , wherein the method further comprises: obtaining a user image; and the determining a user instruction based on the user speech information is specifically:
determining a gaze direction of a user based on the user image;
when determining that the gaze direction is a target direction, determining that an intention of the user is to perform human-computer interaction; and
determining the user instruction based on the user speech information sent when the gaze direction is the target direction.
9 . The apparatus according to claim 7 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related and the user is in a single-person scenario, outputting the response content in a non-privacy mode.
10 . The apparatus according to claim 7 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related and the user is in a multi-person scenario, outputting the response content in the privacy protection mode.
11 . The apparatus according to claim 7 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related, outputting the response content in the privacy protection mode.
12 . The apparatus according to claim 10 , wherein the outputting the response content in the privacy protection mode is specifically:
when outputting the response content by using a public device, hiding private content comprised in the response content; or
outputting the response content by using a non-public device.
13 . A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program or instructions, and when the computer program or the instructions are run, to implement the method comprising:
obtaining user speech information;
determining a user instruction based on the user speech information;
determining, based on the user instruction, whether response content to the user instruction is privacy-related; and
determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode.
14 . The computer-readable storage medium according to claim 13 , wherein the method further comprises: obtaining a user image; and the determining a user instruction based on the user speech information is specifically:
determining a gaze direction of a user based on the user image;
when determining that the gaze direction is a target direction, determining that an intention of the user is to perform human-computer interaction; and
determining the user instruction based on the user speech information sent when the gaze direction is the target direction.
15 . The computer-readable storage medium according to claim 13 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related and the user is in a single-person scenario, outputting the response content in a non-privacy mode.
16 . The computer-readable storage medium according to claim 13 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related and the user is in a multi-person scenario, outputting the response content in the privacy protection mode.
17 . The computer-readable storage medium according to claim 13 , wherein the determining, based on whether the response content is privacy-related, whether to output the response content in a privacy protection mode is specifically: if it is determined that the response content is privacy-related, outputting the response content in the privacy protection mode.
18 . The computer-readable storage medium according to claim 16 , wherein the outputting the response content in the privacy protection mode is specifically:
when outputting the response content by using a public device, hiding private content comprised in the response content; or
outputting the response content by using a non-public device.