Voice data processing method and device and electronic equipment
By determining the permission status setting path of the target permission in the voice data processing method and outputting prompt information, the pop-up conflict caused by the permission not being enabled when the voice function calls the APP, improving the user experience.
Patent Information
- Application Number
- CN202311760934.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2025-06-20
AI Technical Summary
When calling an APP through the voice function, if the corresponding permissions of the APP are not enabled, it will cause the voice authorization prompt pop-up window and the APP authorization prompt pop-up window to appear at the same time, causing pop-up conflicts and reducing user experience.
After receiving the voice command, determine the target permissions that depend on when executing the voice command. If the target permission is not in the authorized state and the target function is a preset function, determine the permission status setting path of the target permission, output prompt information for voice, and control the map software to perform authorization prompt pop-up operations to avoid the occurrence of voice authorization and APP authorization prompt pop-ups at the same time.
By only performing APP authorization prompt pop-up windows and outputting prompt information through voice, pop-up conflicts are avoided and user experience is improved.
Smart Images

Figure CN120179201A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and more specifically, to a method, apparatus, and electronic device for processing voice data. Background Art
[0002] In order to meet the diverse needs of users, intelligent terminals are configured on vehicles to provide services for users. When using a service, the user needs to pre-enable the corresponding permission for the service. For example, when having a voice conversation with the user, the voice collection permission needs to be enabled, and when performing a navigation operation, the positioning permission needs to be enabled, etc. If the required permission is not enabled, a pop-up window will prompt the user to enable the permission.
[0003] In actual applications, when calling a certain application software APP through the voice function, if the corresponding permission of the APP is not enabled, at this time, both a voice authorization prompt pop-up window and an APP authorization prompt pop-up window will be displayed simultaneously, resulting in a pop-up window conflict and reducing the user experience. Summary of the Invention
[0004] In view of this, the present invention provides a method, apparatus, and electronic device for processing voice data to solve the problem that when calling a certain APP through the voice function, if the corresponding permission of the APP is not enabled, at this time, both a voice authorization prompt pop-up window and an APP authorization prompt pop-up window will be displayed simultaneously, resulting in a pop-up window conflict and reducing the user experience.
[0005] To solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A method for processing voice data, comprising:
[0007] After receiving a voice command, determining a target permission upon which executing the voice command depends; the voice command is a command related to the map function;
[0008] In the case where the permission state corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function, determining a permission state setting path of the target permission;
[0009] Determining voice prompt information according to the permission state setting path;
[0010] Voice-outputting the voice prompt information, and controlling the map software to perform an authorization prompt pop-up window operation.
[0011] Optionally, after receiving a voice command, determining a target permission upon which executing the voice command depends, includes:
[0012] Receiving a voice command;
[0013] Performing an intention recognition operation on the voice command to obtain an intention recognition result;
[0014] Based on the intention recognition result, determine the application software used to execute the voice command;
[0015] When the application software is a map software, determine whether the execution of the voice command requires the use of location permissions;
[0016] If so, determine that the target permission on which the execution of the voice command depends is the location permission.
[0017] Optionally, determine that the target function corresponding to the voice command is a preset function, including:
[0018] Obtain the function information of each function;
[0019] Match the intention recognition result of the voice command with the function information of each function to determine the target function called by the voice command;
[0020] Obtain the function list related to the pop-up list operation;
[0021] Determine whether the function list includes the target function;
[0022] If so, determine that the target function corresponding to the voice command is a preset function.
[0023] Optionally, determine the path for setting the permission status of the target permission, including:
[0024] Determine the location information of the target interface; the target interface is used to set the permission status of the target permission;
[0025] Generate a permission status setting path including the location information.
[0026] Optionally, determine the voice prompt information according to the permission status setting path, including:
[0027] Obtain the voice prompt template information for adjusting the permission status;
[0028] Add the permission status setting path to the voice prompt template information to obtain the voice prompt information.
[0029] Optionally, control the map software to perform an authorization prompt pop-up window operation, including:
[0030] Output a target permission authorization pop-up window command to the map software so that the map software performs the authorization prompt pop-up window operation corresponding to the target permission.
[0031] Optionally, after the voice prompt information is output vocally, further include:
[0032] Control the operating state of the voice interaction function to switch to the delayed listening state.
[0033] Optionally, when it is determined that the permission state corresponding to the target permission is in the authorized state, or when it is determined that the target function corresponding to the voice command is not a preset function, it further includes:
[0034] Execute the operation corresponding to the voice command.
[0035] A voice data processing device, including:
[0036] A permission determination module, configured to determine a target permission upon which execution of the voice command depends after receiving the voice command; the voice command is a command related to the map function;
[0037] A path determination module, configured to determine a path for setting the permission state of the target permission when it is determined that the permission state corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function;
[0038] An information determination module, configured to determine voice prompt information according to the path for setting the permission state;
[0039] A prompt module, configured to output the voice prompt information by voice and control the map software to perform an authorization prompt pop-up window operation.
[0040] An electronic device, including: a memory and a processor;
[0041] Wherein, the memory is used to store a program;
[0042] The processor calls the program and is configured to execute the above-mentioned voice data processing method.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] The present invention provides a voice data processing method, device and electronic device. After receiving a voice command, it determines a target permission upon which execution of the voice command depends. When it is determined that the permission state corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function, it determines a path for setting the permission state of the target permission, determines voice prompt information according to the path for setting the permission state, outputs the voice prompt information by voice, and controls the map software to perform an authorization prompt pop-up window operation. That is, when the target permission is not in the authorized state and the target function is a preset function, the present invention only performs an APP authorization prompt pop-up window, and no longer performs a voice authorization prompt pop-up window, but realizes it by outputting the voice prompt information by voice, thereby avoiding the problem of pop-up window conflict caused by simultaneously performing a voice authorization prompt pop-up window and an APP authorization prompt pop-up window. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0046] Figure 1 It is a method flowchart of a voice data processing method provided by an embodiment of the present invention;
[0047] Figure 2 It is a method flowchart of a permission determination provided by an embodiment of the present invention;
[0048] Figure 3 It is a method flowchart of a function determination provided by an embodiment of the present invention;
[0049] Figure 4 It is a method flowchart of an information determination provided by an embodiment of the present invention;
[0050] Figure 5 It is a schematic structural diagram of a voice data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0052] In order to meet the diverse needs of users, intelligent terminals are configured on vehicles to provide services for users. When using the services, users need to enable the corresponding permissions in advance. For example, when having a voice conversation with users, the voice collection permission needs to be enabled, and when performing navigation operations, the positioning permission needs to be enabled, etc. If the required permission is not enabled, a pop-up window will prompt the user to enable the permission.
[0053] In practical applications, when calling a certain application software APP through the voice function, if the corresponding permission of the APP is not enabled, at this time, a voice authorization prompt pop-up window and an APP authorization prompt pop-up window will be displayed simultaneously.
[0054] For example, if the voice function is used to call the map APP, such as when the user outputs the voice "Navigate to XX location", after analysis, it is necessary to call the map APP, but the map positioning permission is not turned on, and the positioning operation cannot be performed. At this time, the voice authorization prompt pop-up window and the map APP authorization prompt pop-up window have similar pop-up window contents, both of which require setting the positioning permission of the map. However, when there are two pop-up window operations on the display interface at the same time, it will cause pop-up window conflicts and reduce the user experience.
[0055] To this end, in order to solve the pop-up window conflict problem, in actual applications, it will determine whether to perform a pop-up window operation according to the permissions used by the voice command and the corresponding functions. If so, it will control the map software to perform an authorization prompt pop-up window operation, and at the same time output the voice prompt information by voice. Then, in actual applications, only one pop-up window interface will appear, avoiding pop-up window conflicts.
[0056] Specifically, the present invention provides a voice data processing method, device and electronic device. After receiving a voice command, it determines the target permissions relied on when executing the voice command. When it is determined that the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function, it determines the permission status setting path of the target permission, determines the voice prompt information according to the permission status setting path, outputs the voice prompt information by voice, and controls the map software to perform an authorization prompt pop-up window operation. That is, when the target permission is not in the authorized state and the target function is a preset function, the present invention only performs an APP authorization prompt pop-up window, and no longer performs a voice authorization prompt pop-up window, but realizes it by outputting the voice prompt information by voice, thereby avoiding the problem of pop-up window conflicts caused by simultaneously performing a voice authorization prompt pop-up window and an APP authorization prompt pop-up window.
[0057] On the basis of the above content, an embodiment of the present invention provides a voice data processing method, which is applied to an electronic device. Referring to Figure 1 , a voice data processing method may include:
[0058] S11. After receiving a voice command, determine the target permissions relied on when executing the voice command.
[0059] Wherein, the voice command is a command related to the map function, such as a navigation command, etc.
[0060] In actual applications, the user can perform voice control operations in the driving or non-driving state to meet their own needs. For example, in the non-driving state, if you want to navigate to a certain place, you can output the voice command "Navigate to XX location" by voice. At this time, the electronic device receives the user's voice command and will analyze the APP that the user needs to call and the permissions that need to be used.
[0061] In this embodiment, a map scene is used as an example for illustration, and the target permission is a permission related to the map function. Other scenes, such as a music playing scene, are also applicable to the present invention.
[0062] Specifically, refer to Figure 2 , step S11 may specifically include the following steps:
[0063] S21. Receive voice instructions.
[0064] In this embodiment, a voice collection device such as a microphone built into the vehicle can be used to collect the user's voice to obtain voice commands.
[0065] S22: Perform an intention recognition operation on the voice command to obtain an intention recognition result.
[0066] Specifically, the voice recognition software can be mobilized to perform voice recognition operations on voice commands to obtain the corresponding text content, and then perform word segmentation and keyword extraction operations on the text content, and perform intent recognition based on keywords, such as recognizing that the user wants to search for a location, or search for software, or perform other searches, or make a phone call, etc.
[0067] S23. Determine the application software used to execute the voice command based on the intention recognition result.
[0068] The intent recognition results are semantically matched and domained. Specifically, the recognized content is filled in the domain, such as recognizing that it is a navigation domain or a music playing domain.
[0069] In this embodiment, a map scene is used as an example for illustration. If it is a navigation field, the application software to be used is a map APP.
[0070] S24. When the application software is a map software, determine whether the execution of the voice command requires the use of positioning authority; if so, execute step S25.
[0071] S25. Determine that the target permission relied upon when executing the voice command is the positioning permission.
[0072] Specifically, since the map APP needs to obtain the distribution of locations around the current user when it is running, it needs to use the location permission. Therefore, when the voice command is a command related to positioning, the location permission is required.
[0073] S12: When it is determined that the permission state corresponding to the target permission is not in an authorized state and the target function corresponding to the voice instruction is a preset function, determine a permission state setting path for the target permission.
[0074] Specifically, after determining the target permission to be used, it is necessary to further determine whether the location permission of the map APP is enabled in the electronic device.
[0075] It should be noted that when the map APP is run for the first time, if the location permission of the map APP is not enabled, a location authorization pop-up window needs to be popped up at this time to enable the user to set the location permission of the map APP.
[0076] In practical applications, in the settings of the electronic device, operation buttons for the permission status of each permission can be configured. The operation buttons can be, for example, sliding operation buttons, clicking operation buttons, etc. For example, for the location permission, a sliding operation button is used, and the location permission is enabled and disabled at the position of "System Settings - Privacy". When the location permission is enabled, the permission status of the location permission is the authorized status, and when the location permission is disabled, the permission status of the location permission is the unauthorized status. The enabling and disabling of specific permissions can be configured according to user needs.
[0077] If it is determined that the permission status corresponding to the target permission is in the authorized status, the operation corresponding to the voice command is executed at this time. For example, if the user outputs "Navigate to XX location" by voice, the location permission is called at this time to determine the navigation route from the current location to the XX location, and the navigation route selection information is output by voice to enable the user to select the desired navigation route, and then the navigation operation is performed according to the navigation route selected by the user.
[0078] After determining that the permission status corresponding to the target permission is not in the authorized status, it is determined whether the target function corresponding to the voice command is a preset function.
[0079] In this embodiment, the preset function is: a function related to the pop-up list operation and requiring the use of the location permission. Examples of the preset function can be the functions requiring the use of the location permission in Table 1.
[0080] Table 1
[0081]
[0082] In practical applications, the functions in Table 1 are related to the pop-up list operation. Taking "Cancel favorite address" in Table 1 as an example, if the user wants to perform the "Cancel favorite address" operation, the "Cancel favorite address" function will be called, and at this time, a list of "Favorite places" will be popped up on the display interface to enable the user to select which favorite place to cancel. Other functions are similar, and corresponding lists will also be popped up.
[0083] However, in Table 1, only some functions require the use of the location permission, and these functions are the preset functions, such as surrounding query, navigate to XXX, etc.
[0084] It should be noted that the list in Table 1 is only for illustrative purposes. In actual applications, operations such as addition, modification, or deletion can be performed according to requirements.
[0085] In actual applications, referring to Figure 3 , to determine whether the target function corresponding to the voice command is a preset function, it may include:
[0086] S31. Obtain the function information of each function.
[0087] In actual applications, taking the functions in Table 1 as an example, each function has corresponding function information, and the function information specifically refers to the function introduction. Taking the function of "canceling the favorite address" as an example, the function information is: cancel the favorite address, and the same applies to other functions.
[0088] S32. Match the intention recognition result of the voice command with the function information of each function to determine the target function called by the voice command.
[0089] Specifically, when matching the intention recognition result with the function information, a keyword matching method can be used to calculate the similarity between the keywords in the intention recognition result and the keywords in the function information. The similarity can be represented by the Euclidean distance. The greater the similarity, the higher the matching degree. Filter out the intention recognition results and function information with a similarity greater than the similarity threshold, and the two are successfully matched.
[0090] Through the above matching operation, the target function called by the voice command can be obtained.
[0091] S33. Obtain the function list related to the pop-up list operation.
[0092] Specifically, taking the target permission as the positioning permission as an example, the function list related to the pop-up list operation can refer to Table 1. The list composed of the functions that require the positioning permission in Table 1 is the function list in this embodiment.
[0093] In actual applications, the function list can be stored in the memory of the electronic device or obtained from the cloud.
[0094] When obtaining from the cloud, the electronic device in the embodiment of the present invention can be, for example, the in-vehicle multimedia host HUT.
[0095] Specifically, a system composed of a cloud platform, a T-BOX (Telematics Box, in-vehicle wireless terminal), a HUT, a mobile phone, etc. can be configured to facilitate users to initiate navigation. Among them, the HUT mainly provides the display of function effect realization, the logical judgment and decision-making of instruction execution. The T-BOX provides a network channel for communication between the cloud platform and the HUT. The cloud platform mainly parses instructions, issues intentions, and replies after the decision-making. For example, when obtaining the function list, the HUT outputs a function list acquisition instruction, which is output to the cloud platform through the T-BOX. The cloud platform outputs the latest function list to the HUT through the T-BOX.
[0096] S34. Determine whether the function list includes the target function; if so, execute step S35.
[0097] S35. Determine that the target function corresponding to the voice instruction is a preset function.
[0098] Specifically, if the function list in Table 1 includes the target function, it is considered that the target function corresponding to the voice instruction is a preset function.
[0099] In this embodiment, judging whether the target function is a preset function is to ensure that these functions need to call the location permission when used. Therefore, when the location permission is enabled, the list popping operation can be normally performed.
[0100] When the function list does not include the target function, it is determined that the target function corresponding to the voice instruction is not a preset function, and at this time, the operation corresponding to the voice instruction is executed.
[0101] Specifically, if it is not a preset function, at this time, when the target permission is enabled, the operation corresponding to the voice instruction is executed. For example, when the location permission is enabled and the map app is running in the foreground or background, the voice instruction can be normally executed and the voice can be normally broadcast.
[0102] For example, if the user's voice instruction is "USER: Where am I", at this time, the location permission is used for location operation to obtain the user's location, such as:
[0103] USER: Where am I
[0104] TTS (Text To Speech): Currently near #XX Square, XX District, XX City#.
[0105] (Normal broadcast).
[0106] When it is determined that the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice instruction is a preset function, determine the permission status setting path of the target permission;
[0107] Specifically, to ensure the normal execution of voice commands, it is necessary to enable the target permissions, such as the location permission. In this embodiment, the path for setting the permission status of the target permission will be determined. The path for setting the permission status refers to the path for setting the permission status, such as "System Settings - Privacy", or "Settings - System Devices - Privacy - Location", etc. The specific path information is determined according to the configuration of the electronic device.
[0108] In practical applications, the position information of the target interface can be determined. Among them, the target interface is used to set the permission status of the target permission. That is, in the present invention, first, it is determined on which interface to set the permission status of the target permission. For example, the permission status of the location permission is set on the "System Settings - Privacy" interface. The permission status is divided into an authorized status and an unauthorized status.
[0109] Then, a path for setting the permission status including the position information is generated.
[0110] S13. Determine the voice prompt information according to the path for setting the permission status.
[0111] In practical applications, after obtaining the path for setting the permission status, it is necessary to prompt the user to set the target permission according to this path. When making the prompt, in order to be able to remind the user to make the setting in a timely manner, two methods of voice prompt and map APP pop-up prompt can be used simultaneously. At this time, the voice prompt information is determined according to the path for setting the permission status. Specifically, referring to Figure 4 , the following steps may be included:
[0112] S41. Obtain the voice prompt template information for adjusting the permission status.
[0113] Specifically, the voice prompt template information can be set with different template information according to the different permissions actually called. For example, taking the location permission as an example, the voice prompt template information is "The map location has not been authorized. You can change the authorization status in "*****". Taking the voice collection permission as an example, the voice prompt template information is "The voice collection permission has not been authorized. You can change the authorization status in "*****".
[0114] In this embodiment, "*****" is the content of the path for setting the permission status and needs to be filled in later.
[0115] S42. Add the path for setting the permission status to the voice prompt template information to obtain the voice prompt information.
[0116] Specifically, adjust the content of "*****" to the above path for setting the permission status to obtain the voice prompt information.
[0117] S14. Output the voice prompt information by voice and control the map software to perform an authorization prompt pop-up operation.
[0118] After obtaining the voice prompt information, output the voice prompt information by voice. Specifically, a voice output device can be called to output the voice prompt information.
[0119] For example:
[0120] USER: Navigate to Tiananmen / Search for Tiananmen / Nearby food / Open the navigation favorites
[0121] TTS: Map location has not been authorized. You can change the authorization status in "System Settings - Privacy" (end the conversation).
[0122] While outputting the voice prompt information by voice, control the map software to perform an authorization prompt pop-up window operation.
[0123] When performing the pop-up window operation, output a target permission authorization pop-up window instruction to the map software so that the map software performs the authorization prompt pop-up window operation corresponding to the target permission. The authorization prompt pop-up window operation can be, for example, "Map location has not been authorized. Please authorize first."
[0124] When popping up the window, there are corresponding rules for displaying pop-up window data. The rules for displaying pop-up window data can include the display position, display size, display font, display format, etc. For example, a display box with a size of 5 * 5 cm is displayed at the center position of the display interface. The font of the text in the display box is Song typeface, and the display format is the standard format. The standard format is, for example, the text is centered in the display box.
[0125] In practical applications, the user can configure the rules for displaying pop-up window data. For example, the display font can be set to formats such as Kai typeface, FangSong typeface, Song typeface, etc. The display format can be set to the standard format or a personalized format, etc. The personalized format is a format drawn by the user according to their own needs. For example, the personalized format is that the text floats in the display box. In addition, the user can also set text special effects, such as color gradient, flashing, text movement, etc.
[0126] After obtaining the rules for displaying pop-up window data, display the authorization prompt pop-up window operation on the display interface according to the rules for displaying pop-up window data to prompt the user to enable the target permission.
[0127] In another embodiment of the present invention, after outputting the voice prompt information by voice, control the operating state of the voice interaction function to switch to the delayed listening state.
[0128] Specifically, in order to ensure that when the user has a voice input requirement later, the user's voice can be responded to in a timely manner. In this embodiment, the operating state of the voice interaction function will be switched to the delayed listening state.
[0129] In the delayed listening state, the voice display box will shrink and be displayed in the status bar at the upper left corner of the display interface, and will continue to monitor the user's voice. If a user voice command is received within the preset delayed listening time, it will respond; if not, it will exit the voice interaction function. Among them, the preset delayed listening time can be configured according to the actual situation, such as 30 seconds.
[0130] It should be noted that in addition to using the delayed listening state, the running state of the voice interaction function can also be configured as the normal running state, but a countdown timer is set. If a user voice command is received within the time when the countdown timer does not count down to the specified time (which can be the same as the specified delayed listening time), it will respond; if a user voice command is not received, it will exit the voice interaction function.
[0131] In practical applications, if the switch to the delayed listening state fails, you can try to switch again. If the switch fails after multiple attempts, the voice interaction function will be exited and the user will be prompted that the voice interaction function has a fault and is temporarily unavailable.
[0132] In this embodiment, after receiving a voice command, the target permission on which the execution of the voice command depends is determined. When it is determined that the permission state corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function, the permission state setting path of the target permission is determined. According to the permission state setting path, voice prompt information is determined, the voice prompt information is output by voice, and the map software is controlled to perform an authorization prompt pop-up window operation. That is, when the target permission is not in the authorized state and the target function is a preset function, the present invention only performs an APP authorization prompt pop-up window, and no longer performs a voice authorization prompt pop-up window, but realizes it by outputting the voice prompt information by voice, thereby avoiding the problem of pop-up window conflict caused by simultaneously performing a voice authorization prompt pop-up window and an APP authorization prompt pop-up window.
[0133] Based on the embodiment of the above voice data processing method, another embodiment of the present invention provides a voice data processing device, referring to Figure 5 , which may include:
[0134] A permission determination module 11, configured to determine a target permission on which the execution of the voice command depends after receiving the voice command; the voice command is a command related to the map function;
[0135] A path determination module 12, configured to determine the permission state setting path of the target permission when it is determined that the permission state corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function;
[0136] An information determination module 13, configured to determine voice prompt information according to the path set by the permission status;
[0137] A prompt module 14, configured to output the voice prompt information by voice, and control the map software to perform an authorization prompt pop-up window operation.
[0138] Furthermore, the permission determination module 11 includes:
[0139] An instruction receiving sub-module, configured to receive voice instructions;
[0140] An intention recognition sub-module, configured to perform an intention recognition operation on the voice instruction to obtain an intention recognition result;
[0141] A software determination sub-module, configured to determine the application software used to execute the voice instruction based on the intention recognition result;
[0142] A permission judgment sub-module, configured to judge whether location permission is required to execute the voice instruction when the application software is map software;
[0143] A permission determination sub-module, configured to, if so, determine that the target permission on which the execution of the voice instruction depends is location permission.
[0144] Furthermore, the path determination module 12 includes:
[0145] An information acquisition sub-module, configured to acquire function information of each function;
[0146] A matching sub-module, configured to match the intention recognition result of the voice instruction with the function information of each function to determine the target function called by the voice instruction;
[0147] A list acquisition sub-module, configured to acquire a function list related to the pop-up list operation;
[0148] A function judgment sub-module, configured to judge whether the function list includes the target function;
[0149] A function determination sub-module, configured to, if so, determine that the target function corresponding to the voice instruction is a preset function.
[0150] Furthermore, the path determination module 14 is specifically configured to:
[0151] Determine the location information of the target interface; the target interface is used to set the permission status of the target permission, and generate a permission status setting path including the location information.
[0152] Furthermore, the information determination module 13 is specifically configured to:
[0153] Obtain the voice prompt template information for the permission status adjustment, and add the permission status setting path to the voice prompt template information to obtain the voice prompt information.
[0154] Further, when the prompt module 14 is used to control the map software to perform the authorization prompt pop-up window operation, specifically:
[0155] Output the target permission authorization pop-up window instruction to the map software, so that the map software performs the authorization prompt pop-up window operation corresponding to the target permission.
[0156] Further, it further includes:
[0157] The delay setting module is used to control the operating state of the voice interaction function to switch to the delay listening state.
[0158] Further, it further includes:
[0159] The instruction execution module is used to execute the operation corresponding to the voice instruction when the path determination module 12 determines that the permission status corresponding to the target permission is in the authorized state, or determines that the target function corresponding to the voice instruction is not the preset function.
[0160] In this embodiment, after receiving the voice instruction, determine the target permission on which the execution of the voice instruction depends. When it is determined that the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice instruction is the preset function, determine the permission status setting path of the target permission, determine the voice prompt information according to the permission status setting path, output the voice prompt information by voice, and control the map software to perform the authorization prompt pop-up window operation. That is, when the target permission is not in the authorized state and the target function is the preset function, the present invention only performs the APP authorization prompt pop-up window, and no longer performs the voice authorization prompt pop-up window, but realizes it by outputting the voice prompt information by voice, thereby avoiding the problem of pop-up window conflict caused by simultaneously performing the voice authorization prompt pop-up window and the APP authorization prompt pop-up window.
[0161] It should be noted that for the working processes of the various modules in this embodiment, please refer to the corresponding descriptions in the above embodiments, and will not be elaborated here.
[0162] Based on the above embodiments of the voice data processing method and device, another embodiment of the present invention provides an electronic device, including: a memory and a processor;
[0163] Wherein, the memory is used to store programs;
[0164] The processor calls the program and is used to execute the voice data processing method.
[0165] Specifically, the voice data processing method includes:
[0166] After receiving a voice command, determine the target permission relied on when executing the voice command; the voice command is a command related to the map function.
[0167] When it is determined that the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function, determine the permission status setting path of the target permission.
[0168] Determine the voice prompt information according to the permission status setting path.
[0169] Output the voice prompt information by voice, and control the map software to perform an authorization prompt pop-up window operation.
[0170] Furthermore, after receiving a voice command, determining the target permission relied on when executing the voice command includes:
[0171] Receive a voice command.
[0172] Perform an intent recognition operation on the voice command to obtain an intent recognition result.
[0173] Based on the intent recognition result, determine the application software used to execute the voice command.
[0174] When the application software is the map software, determine whether the execution of the voice command requires the use of the location permission.
[0175] If so, determine that the target permission relied on when executing the voice command is the location permission.
[0176] Furthermore, determining that the target function corresponding to the voice command is a preset function includes:
[0177] Obtain the function information of each function.
[0178] Match the intent recognition result of the voice command with the function information of each function to determine the target function called by the voice command.
[0179] Obtain the function list related to the pop-up list operation.
[0180] Determine whether the function list includes the target function.
[0181] If so, determine that the target function corresponding to the voice command is a preset function.
[0182] Furthermore, determining the permission status setting path of the target permission includes:
[0183] Determine the position information of the target interface; the target interface is used to set the permission status of the target permission.
[0184] Generate a permission status setting path including the location information.
[0185] Furthermore, according to the permission status setting path, determine voice prompt information, including:
[0186] Obtain voice prompt template information for permission status adjustment;
[0187] Add the permission status setting path to the voice prompt template information to obtain voice prompt information.
[0188] Furthermore, control the map software to perform an authorization prompt pop-up window operation, including:
[0189] Output a target permission authorization pop-up window instruction to the map software so that the map software performs the authorization prompt pop-up window operation corresponding to the target permission.
[0190] Furthermore, after the voice prompt information is output by voice, it further includes:
[0191] Control the running state of the voice interaction function to switch to the delayed listening state.
[0192] Furthermore, in the case where it is determined that the permission status corresponding to the target permission is in the authorized state, or it is determined that the target function corresponding to the voice instruction is not the preset function, it further includes:
[0193] Execute the operation corresponding to the voice instruction.
[0194] In this embodiment, after receiving a voice instruction, determine the target permission on which the execution of the voice instruction depends. In the case where it is determined that the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice instruction is the preset function, determine the permission status setting path of the target permission, determine voice prompt information according to the permission status setting path, output the voice prompt information by voice, and control the map software to perform an authorization prompt pop-up window operation. That is, when the target permission is not in the authorized state and the target function is the preset function, the present invention only performs an APP authorization prompt pop-up window, and no longer performs a voice authorization prompt pop-up window, but realizes it by outputting the voice prompt information by voice, thereby avoiding the problem of pop-up window conflict caused by simultaneously performing a voice authorization prompt pop-up window and an APP authorization prompt pop-up window.
[0195] The foregoing description of the disclosed embodiments enables those skilled in the art to practice or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing voice data, characterized in that, Including: After receiving a voice command, determine the target permission relied on when executing the voice command; The voice command is a command related to the map function; In the case where the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function, determine the permission status setting path of the target permission; Determine the voice prompt information according to the permission status setting path; Output the voice prompt information by voice, and control the map software to perform an authorization prompt pop-up window operation.
2. The method for processing voice data according to claim 1, characterized in that, After receiving a voice command, determining the target permission relied on when executing the voice command includes: Receive a voice command; Perform an intent recognition operation on the voice command to obtain an intent recognition result; Based on the intent recognition result, determine the application software used to execute the voice command; When the application software is the map software, determine whether the positioning permission is required to execute the voice command; If so, determine that the target permission relied on when executing the voice command is the positioning permission.
3. The method for processing voice data according to claim 1, characterized in that, Determining that the target function corresponding to the voice command is a preset function includes: Obtain the function information of each function; Match the intent recognition result of the voice command with the function information of each function to determine the target function called by the voice command; Obtain the function list related to the pop-up list operation; Determine whether the function list includes the target function; If so, determine that the target function corresponding to the voice command is a preset function.
4. The method for processing voice data according to claim 1, characterized in that, Determining the permission status setting path of the target permission includes: Determine the location information of the target interface; the target interface is used to set the permission status of the target permission; Generate a permission status setting path including the location information.
5. The method for processing voice data according to claim 1, characterized in that, Determining the voice prompt information according to the permission status setting path includes: Obtain the voice prompt template information for permission status adjustment; Add the permission status setting path to the voice prompt template information to obtain the voice prompt information.
6. The method for processing voice data according to claim 1, characterized in that, Controlling the map software to perform an authorization prompt pop-up window operation includes: Output a target permission authorization pop-up window instruction to the map software so that the map software performs the authorization prompt pop-up window operation corresponding to the target permission.
7. The method for processing voice data according to claim 1, characterized in that, After outputting the voice prompt information by voice, it further includes: Control the running state of the voice interaction function to switch to the delayed listening state.
8. The method for processing voice data according to claim 1, characterized in that, In the case where it is determined that the permission status corresponding to the target permission is in the authorized state, or it is determined that the target function corresponding to the voice command is not a preset function, it further includes: Execute the operation corresponding to the voice command.
9. A device for processing voice data, characterized in that,Including: A permission determination module, configured to determine the target permission relied on when executing the voice command after receiving the voice command; The voice command is a command related to the map function; A path determination module, configured to determine the permission status setting path of the target permission in the case where the permission status corresponding to the target permission is not in the authorized state and the target function corresponding to the voice command is a preset function; An information determination module, configured to determine the voice prompt information according to the permission status setting path; A prompt module, configured to output the voice prompt information by voice and control the map software to perform an authorization prompt pop-up operation.
10. An electronic device, characterized in that, It includes: a memory and a processor; wherein, the memory is used for storing programs; the processor calls the program and is configured to execute the voice data processing method according to any one of claims 1-8.