Method, device and equipment for controlling rest mode and medium
Through voice commands and sound source positioning technology, seat information is automatically matched and nap movements are performed, which solves the problem of cumbersome user operations in the existing technology and improves the efficiency of opening the nap mode.
Patent Information
- Application Number
- CN202311392711.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, users need to manually click on the display screen to turn on the nap mode, which is cumbersome and inefficient.
Turn on the nap mode through voice commands, use sound source positioning to determine the source position of the voice command, and match it with the seat position in the vehicle, and automatically perform nap actions.
It simplifies user operations, reduces the steps of manual clicks, improves user operation convenience and efficiency, and realizes the quick and efficient opening of nap mode.
Smart Images

Figure CN119872448A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a control method, device, equipment and medium for a nap mode. Background Art
[0002] Nap mode refers to a mode of providing a series of linked and combined in-car services for users in situations such as fatigue and sleepiness, in order to meet the needs of users to rest in the car.
[0003] Currently, users can only turn on the nap mode by manually clicking on the display screen to bring up the nap interface and manually making various settings in the nap mode. This method requires users to perform multiple steps on the display screen, which is cumbersome and inconvenient, and the interaction efficiency needs to be improved. Therefore, how to simplify the user's operation process and turn on the nap mode more quickly and efficiently has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a control method, device, equipment and storage medium for a nap mode.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for controlling a nap mode, including:
[0006] In response to receiving a voice command to turn on the nap mode, performing sound source positioning on the voice command to obtain a sound source position of the voice command;
[0007] Matching the sound source position with the seat position in the vehicle to determine the seat information corresponding to the sound source position;
[0008] The vehicle is controlled to perform a nap action according to the seat information corresponding to the sound source position.
[0009] In a second aspect, an embodiment of the present disclosure provides a control device for a nap mode, including:
[0010] a receiving module, in response to receiving a voice command for turning on the nap mode, performing sound source positioning on the voice command to obtain a sound source position of the voice command;
[0011] an identification module, used to match the sound source position with the seat position in the vehicle, and determine the seat information corresponding to the sound source position;
[0012] The control module is used to control the vehicle to perform a nap action according to the seat information corresponding to the sound source position.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the control method of the nap mode described in the first aspect above.
[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the nap mode described in the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present disclosure provides a vehicle, comprising a control device for a nap mode as described in the second aspect above, or an electronic device as described in the third aspect above.
[0016] Compared with the prior art, the technical solution provided by the disclosed embodiment has the following advantages: in response to receiving a voice command to turn on the nap mode, the voice command is localized to obtain the sound source position of the voice command, the sound source position is matched with the seat position in the vehicle, and the seat information corresponding to the sound source position is determined, and then the vehicle is controlled to perform a nap action according to the seat information corresponding to the sound source position. Thus, the seat information of the nap mode can be configured by sound source localization, and the nap mode is automatically turned on. Compared with the method of manually calling up the nap interface and manually clicking the controls in the interface for configuration, there is no need for the user to click manually, which simplifies the operation and improves the convenience and efficiency of user operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A flowchart of a method for controlling a nap mode provided by an embodiment of the present disclosure;
[0020] Figure 2 A schematic diagram of a nap interface provided by an embodiment of the present disclosure;
[0021] Figure 3 A schematic diagram of the structure of a control device for a nap mode provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0024] Figure 1 This is a flow chart of a method for controlling a nap mode provided in an embodiment of the present disclosure. The method provided in an embodiment of the present disclosure can be executed by a control device for the nap mode, which can be implemented in software and / or hardware and can be integrated on any electronic device with computing capabilities, such as a vehicle-mounted terminal.
[0025] like Figure 1 As shown, the control method of the nap mode provided in the embodiment of the present disclosure may include:
[0026] Step 101, in response to receiving a voice command to turn on the nap mode, localize the sound source of the voice command to obtain the sound source position of the voice command.
[0027] In this embodiment, a voice acquisition device is provided in the vehicle. The voice acquisition device can be provided at the vehicle computer position, or a voice acquisition device can be provided in front of each seat in the vehicle. The user's voice command is received through the voice acquisition device, and it is determined whether the voice command is a voice command to turn on the nap mode. If so, the sound source of the voice command is located to obtain the sound source position of the voice command.
[0028] Among them, speech recognition can be implemented using a pre-trained speech recognition model. The specific implementation method of the speech recognition model can refer to existing artificial intelligence technology and will not be elaborated here.
[0029] As an example, a user inputs a voice command "I want to take a nap", the vehicle receives the voice command and performs voice recognition, and recognizes the keyword "nap", then determines that a voice command to turn on the nap mode has been received.
[0030] Step 102, matching the sound source position with the seat position in the vehicle to determine the seat information corresponding to the sound source position.
[0031] Among them, the seat information represents the seats in the vehicle, including the main driver, co-driver, rear left, rear right, etc.
[0032] In this embodiment, the sound source position can indicate the position of the voice command in the vehicle. The space inside the vehicle is divided into multiple areas, and each seat corresponds to an area. For example, the main driver's seat, the co-driver's seat, the left rear seat, and the right rear seat each correspond to an area. The sound source position is matched with multiple areas, and the seat corresponding to the area where the sound source position is located is determined as the seat information corresponding to the sound source position.
[0033] Step 103, controlling the vehicle to perform a nap action according to the seat information corresponding to the sound source position.
[0034] In this embodiment, after the seat information of this nap mode is determined, the linkage operation of entering the nap is executed, the seat, air conditioning, light, central control screen interface, etc. corresponding to the seat information are controlled, and the corresponding nap action is performed to make the seat corresponding to the seat information in the vehicle enter the nap scene.
[0035] According to the technical solution of the embodiment of the present disclosure, in response to receiving a voice command to turn on the nap mode, the voice command is localized to obtain the sound source position of the voice command, the sound source position is matched with the seat position in the vehicle, and the seat information corresponding to the sound source position is determined. Then, the vehicle is controlled to perform a nap action according to the seat information corresponding to the sound source position. Thus, the seat information of the nap mode can be configured by sound source localization, and the nap mode is automatically turned on. Compared with the method of manually calling up the nap interface and manually clicking the controls in the interface for configuration, there is no need for the user to click manually, which simplifies the operation and can quickly and efficiently turn on the nap mode, thereby improving the convenience and efficiency of user operation.
[0036] Based on the above embodiment, further, the method may include the following steps:
[0037] Step 1: In response to receiving a voice command to turn on the nap mode, localize the sound source of the voice command to obtain the sound source position of the voice command, perform voice recognition on the voice command to obtain text information of the voice command, and perform semantic recognition on the text information to determine whether the text information contains setting information for the nap mode.
[0038] Among them, the setting information of the nap mode includes seat information and duration information.
[0039] Step 2: If the text message contains the setting information of the nap mode, the vehicle is controlled to perform the nap action according to the setting information.
[0040] In this embodiment, the nap mode setting information is used to indicate the location in the vehicle where the nap mode is turned on and the duration of the nap mode. The setting information includes, for example, seat information and duration. By performing semantic recognition on the text information, it is determined whether the text information contains the above nap mode setting information based on the semantic recognition result to determine the nap mode setting information. Semantic recognition can be implemented using a pre-trained semantic recognition model, and the specific implementation method of the semantic recognition model can refer to existing natural language processing technology.
[0041] In one embodiment of the present disclosure, semantic recognition is performed on text information to obtain the setting information of the nap mode, including: semantic recognition is performed on the text information to determine whether the text information contains seat information and duration, and if the text information contains seat information and duration, the seat information and duration are determined as the setting information of the nap mode. The seat information represents the seat in the vehicle, including the main driver, the co-driver, the rear left, the rear right, etc., and the duration includes, for example, 5 minutes, 10 minutes, 60 minutes, etc.
[0042] As an example, a user inputs a voice command "I want to take a 30-minute nap in the main driver's seat". By performing semantic recognition on the text information of the voice command "I want to take a 30-minute nap in the main driver's seat", it can be determined that the text information contains the seat information "main driver's seat" and the duration "30 minutes", and the seat information "main driver's seat" and the duration "30 minutes" are determined as the setting information for this nap mode. In this example, a reply voice for the voice command can also be generated by voice interaction. For example, the reply voice is "OK, I will wake you up in 30 minutes" or "Pay attention to the windows that are not closed, I will wake you up in 30 minutes", etc. Therefore, the user can turn on the nap mode through a single round of dialogue, and automatically fill in the nap position and nap duration through voice semantics to directly enter the nap scene, simplify the operation process, and improve the convenience and efficiency of user operation. In addition, clear operation feedback is provided to the user through voice, which helps the user to more easily identify and confirm the operation behavior and improve the interactive sensitivity of the interaction process.
[0043] Optionally, after determining whether the text information contains the setting information for the nap mode, if the text information does not include the seat information, the voiceprint information of the voice command is obtained, and the historical data is queried to obtain the historical seat information corresponding to the voiceprint information when the user last turned on the nap mode. If the historical seat information is consistent with the seat information corresponding to the sound source position, the seat information corresponding to the sound source position is determined as the seat information for this nap mode.
[0044] Among them, the voiceprint information is used to distinguish the user who issued the voice command. Different users have different voiceprint information. The historical data records the historical seat information and / or historical duration information corresponding to each user's previous opening of the nap mode. As an example, the user opens the nap mode for a total of 30 minutes in the main driver's seat through a voice command, then the historical seat information "main driver", the historical duration information "30 minutes" and the user's voiceprint information are recorded. For the user's voice command "I want to take a nap for 30 minutes", it is determined through voice recognition and semantic recognition that the text information of the voice command does not contain seat information. If the seat information determined by the sound source position is also the main driver's position, the main driver's seat is used as the seat for opening the nap mode this time. Therefore, when it is determined through text information that the nap mode needs to be turned on, and the text information does not include seat information, the sound source information and historical information can be combined to accurately determine the seat information of the nap mode, and the nap mode can be turned on quickly and efficiently.
[0045] Optionally, after determining whether the text information contains the setting information for the nap mode, if the text information does not include duration information, the voiceprint information of the voice command is obtained, and the historical data is queried to obtain the historical seat information of the last time the user corresponding to the voiceprint information turned on the nap mode and the historical duration information of the last time the nap mode was turned on in the current time period; if the historical seat information is consistent with the seat information in the text information, the historical duration information is determined as the duration information of this nap mode.
[0046] As an example, during the time period from 20:00 to 21:00, the user uses a voice command to turn on the nap mode for a total of 30 minutes in the main driver's seat. The historical seat information "main driver", the historical duration information "30 minutes", the user's voiceprint information, and the time period from 20:00 to 21:00 are recorded. For the user's voice command "I want to take a nap in the main driver's seat", it is determined through voice recognition and semantic recognition that the text information of the voice command does not contain duration information. If the current time is 20:30, it can be determined that the historical seat information of the user's last time to turn on the nap mode in this time period is consistent with the seat information in the text information, and within the recorded time period, 30 minutes is used as the duration of this nap mode. In this way, the duration information of the nap mode can be comprehensively determined based on historical data, and the nap mode can be turned on quickly and efficiently.
[0047] In one embodiment of the present disclosure, semantic recognition is performed on text information to obtain setting information for the nap mode, including: semantic recognition is performed on the text information to determine whether the text information contains seat information and duration, if the text information does not include both the seat information and duration, a first voice is generated and played, and then, in response to receiving another voice instruction input by the user for the first voice, semantic recognition is performed on the text information of the other voice instruction, and the seat information and duration in the above semantic recognition results are determined as the setting information for the nap mode.
[0048] In this embodiment, the text information does not include both the seat information and the duration, including: the text information only includes the seat information, the text information only includes the duration, and the text information does not include the seat information and the duration. The first voice is used to inquire about the seat information and / or duration not included in the text information. The content of the first voice can be generated according to a preset dialogue template combined with the not included seat information and / or duration. The dialogue template can be pre-set, and different dialogue templates can be set for different missing content. For example, the text information does not include the duration, and the first voice is used to inquire the user about the duration not included in the text information.
[0049] As an example, a user inputs a voice command "I want to take a nap in the driver's seat". By performing semantic recognition on the text information "I want to take a nap in the driver's seat" of the voice command, it can be determined that the text information contains the seat information "driver's seat" and does not contain a duration. Then, according to the preset dialogue template and the duration not included, a first voice is generated "I'll help you adjust the seats, how long do you want to rest?" to ask the user about the duration not included in the text information. Then, the user inputs another voice command "30 minutes" for the first voice. By performing semantic recognition on the text information "30 minutes" of the voice command, it can be determined that the text information contains the duration "30 minutes". The seat information "driver's seat" and duration "30 minutes" in the above two semantic recognition results are determined as the setting information of this nap mode. In this example, a reply voice to the voice command can also be generated through voice interaction. For example, the reply voice is "OK, I will wake you up in 30 minutes" or "Pay attention to whether the car windows are closed, I will wake you up in 30 minutes", etc. In this way, the user can turn on the nap mode through multiple rounds of conversations, and automatically fill in the nap location and nap duration through multiple rounds of voice semantics, which simplifies the operation process and provides clear operation feedback to the user through voice.
[0050] It should be noted that the above-mentioned implementation method of asking the user for setting information not included in the text information through the first voice is an example. When the text information of the voice instruction for turning on the nap mode does not include the seat information and / or duration information, the steps of determining the seat information of this nap mode based on the historical data and the sound source position and the step of determining the duration information of this nap mode based on the historical data and the text information are sequentially executed. If the historical data does not contain the historical seat information and the historical duration information of the user when the nap mode was last turned on, the step of asking the user for setting information not included in the text information through the first voice is executed to obtain the setting information of this nap mode. The specific implementation method can be selected according to the needs of the actual application scenario, and no specific limitation is made here.
[0051] In this embodiment, after the seat information and duration of the nap mode are determined, the linkage operation of entering the nap is executed, the seat, air conditioning, lighting, central control screen interface, etc. corresponding to the seat information are controlled, and the corresponding nap action is performed, so that the seat in the vehicle corresponding to the seat information can enter the nap scene within the duration.
[0052] Step 3: If the text message does not contain the setting information of the nap mode, the sound source position is matched with the seat position in the vehicle to determine the seat information corresponding to the sound source position, so as to control the vehicle to perform the nap action according to the seat information corresponding to the sound source position.
[0053] According to the technical solution of the embodiment of the present disclosure, in response to receiving a voice command to turn on the nap mode, the setting information of this nap mode is comprehensively determined based on the text information, voiceprint information, and sound source information of the voice command, and then the vehicle is controlled to perform a nap action according to the setting information of the nap mode. Therefore, the setting information of the nap mode can be configured through voice interaction and sound source positioning, and the nap mode is automatically turned on. Compared with the method of manually calling up the nap interface and manually clicking the controls in the interface for configuration, there is no need for the user to click manually, which simplifies the operation and reduces manual misoperation. It is applied to the nap mode control scenario and improves the convenience and efficiency of user operation.
[0054] Based on the above embodiments, Figure 2 A schematic diagram of a nap interface provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the nap interface is provided with seat controls, duration controls and start controls. Figure 2 The seat controls include main driver controls, co-driver controls, second row left controls and second row right controls, which correspond to the main driver seat, co-driver seat, second row left seat and second row right seat in the vehicle respectively. The duration controls include multiple options ranging from 5 to 120 minutes.
[0055] The control method of the nap mode provided in the embodiment of the present disclosure may include the following steps:
[0056] Step 1: In response to receiving a voice command, displaying a nap interface on the display screen.
[0057] In this embodiment, after receiving the voice command, it is determined whether the voice command is a voice command for the nap mode. If so, the nap interface is called up and displayed on the display screen. There are many ways to determine whether the voice command is a voice command for the nap mode. For example, semantic recognition can be used to determine whether the voice command is a voice command for the nap mode, or the content contained in the voice command can be matched with preset keywords. If a consistent keyword is matched, it is determined that the voice command is a voice command for the nap mode. The keyword includes, for example, nap, nap mode, etc.
[0058] Step 2: Perform voice recognition on the voice command to obtain text information of the voice command, perform semantic recognition on the text information to obtain setting information of the nap mode.
[0059] In this embodiment, the nap mode setting information is used to indicate the location in the vehicle where the nap mode is turned on and the duration of the nap mode. The setting information includes, for example, seat information and duration. The seat information, duration and other setting information may be determined by at least one round of human-computer voice interaction, or the duration may be determined by at least one round of human-computer voice interaction, and the seat information may be determined by locating the sound source of the voice command. No specific limitation is made here.
[0060] Step 3: Generate a simulated click event corresponding to the seat information and duration to execute the triggering operation on the seat control and duration control.
[0061] Step 4: Generate a simulated click event corresponding to the opening control, and execute a trigger operation on the opening control to control the vehicle to perform a nap action.
[0062] In this embodiment, when the nap interface is displayed, after filling in the seat information and duration through the above-mentioned semantic recognition and / or sound source localization method, the corresponding seat control in the nap interface is determined according to the seat information to generate a simulated click event of the seat control, and the corresponding option in the duration control in the nap interface is determined according to the duration to generate a simulated click event of the option.
[0063] Among them, when the trigger operation of the controls in the interface is performed through the simulated click event, the preset display effect is generated synchronously. The display effect can be set as needed. For example, when the user turns on the nap mode through a voice command, a simulated click event corresponding to the turning on control is generated to simulate a click on the "Turn on nap" control. The "Turn on nap" control presents a ripple effect of being touched, which is equivalent to the user manually clicking the "Turn on nap" control.
[0064] Optionally, before controlling the vehicle to perform a nap action, it can also be determined whether the vehicle meets the conditions for opening the nap mode. For example, when the vehicle meets the following conditions, it is determined that the nap mode can be opened: the vehicle is in P gear; the vehicle is charging, or the vehicle power is >10%; the vehicle is in normal user use mode; the four doors and the tailgate are all closed. If the vehicle does not meet the conditions for opening the nap mode, the user is prompted by voice broadcast or interface display that the nap mode has failed to open and the reason for the failure.
[0065] Step 5: In response to receiving a voice exit command for the nap mode, controlling the vehicle to stop executing the nap action.
[0066] As an example, when the user inputs the voice exit command "Exit Nap", the vehicle-side executes the linkage operations of exiting the nap mode, including restoring the selected seat, air conditioning, lights, central control screen interface, etc., thereby exiting the nap mode through voice interaction, simplifying the operation, improving the interaction efficiency and user interaction experience.
[0067] In the disclosed embodiment, compared with the method of manually calling up the nap interface from the menu, the problem that the nap mode entrance is not easy to find and the user is inconvenient to use is solved. It does not rely on the interface operation entrance, and the display of the nap function page is triggered by voice interaction, so the interaction efficiency is high. In addition, it adopts an interactive method where voice can be seen and spoken, and uses voice to trigger the simulation of click and touch events on the screen, which can improve the interaction accuracy and sensitivity and provide a better user experience.
[0068] The disclosed embodiment also provides a control device for a nap mode.
[0069] Figure 3 A schematic diagram of a control device for a nap mode provided in an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the control device of the nap mode includes: a receiving module 31 , an identification module 32 , and a control module 33 .
[0070] The receiving module 31, in response to receiving a voice command for turning on the nap mode, performs sound source positioning on the voice command to obtain the sound source position of the voice command;
[0071] An identification module 32, used to match the sound source position with the seat position in the vehicle, and determine the seat information corresponding to the sound source position;
[0072] The control module 33 is used to control the vehicle to perform a nap action according to the seat information corresponding to the sound source position.
[0073] In one embodiment of the present disclosure, the device also includes: a semantic recognition module, which is used to perform semantic recognition on the text information of the voice command to determine whether the text information contains setting information for the nap mode; the setting information includes seat information and duration information; and a second control module, which is used to control the vehicle to perform a nap action according to the setting information if the setting information is included.
[0074] In one embodiment of the present disclosure, the device also includes: a first matching module, which is used to obtain the voiceprint information of the voice command if the text information does not include seat information; query historical data to obtain the historical seat information corresponding to the voiceprint information when the user last turned on the nap mode; if the historical seat information is consistent with the seat information corresponding to the sound source position, the seat information corresponding to the sound source position is determined as the seat information for this nap mode.
[0075] In one embodiment of the present disclosure, the device also includes: a second matching module, which is used to obtain the voiceprint information of the voice command if the text information does not include duration information; query historical data to obtain the historical seat information and historical duration information of the user corresponding to the voiceprint information when the nap mode was last turned on; if the historical seat information is consistent with the seat information in the text information, the historical duration information is determined as the duration information of this nap mode.
[0076] In one embodiment of the present disclosure, semantic recognition is performed on the text information of the voice command to determine whether the text information contains seat information and duration information; if the text information does not include both seat information and duration information, a first voice is generated and played; wherein the first voice is used to inquire about the seat information and / or duration information not included in the text information; in response to receiving another voice command input by the user for the first voice, semantic recognition is performed on the text information of the other voice command; the seat information and duration information in the semantic recognition result are determined as the setting information for this nap mode.
[0077] The nap mode control device provided in the embodiment of the present disclosure can execute any nap mode control method provided in the embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in the embodiment of the device of the present disclosure, reference can be made to the description in any method embodiment of the present disclosure.
[0078] An embodiment of the present disclosure also provides an electronic device, which includes one or more processors and a memory.
[0079] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0080] The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and a processor may run the program instructions to implement the method of the embodiments of the present disclosure above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0081] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanisms. In addition, the input device may also include, for example, a keyboard, a mouse, etc. The output device may output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.
[0082] Of course, for simplicity, only some of the components in the electronic device related to the present disclosure are shown, omitting components such as a bus, an input / output interface, etc. In addition, the electronic device may further include any other appropriate components according to specific application scenarios.
[0083] In addition to the above methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.
[0084] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0085] In addition, the embodiments of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.
[0086] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0087] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0088] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be 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 disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling a nap mode, characterized in that: include: In response to receiving a voice command to turn on the nap mode, performing sound source positioning on the voice command to obtain a sound source position of the voice command; Matching the sound source position with the seat position in the vehicle to determine the seat information corresponding to the sound source position; The vehicle is controlled to perform a nap action according to the seat information corresponding to the sound source position.
2. The method according to claim 1, characterized in that After receiving the voice command to turn on the nap mode, it also includes: Performing semantic recognition on the text information of the voice command to determine whether the text information contains setting information of the nap mode; the setting information includes seat information and duration information; If the setting information is included, the vehicle is controlled to perform a nap action according to the setting information.
3. The method according to claim 2, characterized in that After determining whether the text message includes the setting information of the nap mode, the method further includes: If the text information does not include seat information, obtaining voiceprint information of the voice command; Query historical data to obtain historical seat information when the user corresponding to the voiceprint information last turned on the nap mode; If the historical seat information is consistent with the seat information corresponding to the sound source position, the seat information corresponding to the sound source position is determined as the seat information for this nap mode.
4. The method according to claim 2, characterized in that After determining whether the text message includes the setting information of the nap mode, the method further includes: If the text information does not include duration information, obtaining voiceprint information of the voice command; Query historical data to obtain historical seat information and historical duration information when the user corresponding to the voiceprint information last turned on the nap mode; If the historical seat information is consistent with the seat information in the text information, the historical duration information is determined as the duration information of the current nap mode.
5. The method according to claim 1, characterized in that After receiving the voice command to turn on the nap mode, it also includes: Performing semantic recognition on the text information of the voice command to determine whether the text information contains seat information and duration information; If the text information does not include both the seat information and the duration information, a first voice is generated and played; wherein the first voice is used to inquire about the seat information and / or duration information not included in the text information; In response to receiving another voice instruction input by the user in response to the first voice, performing semantic recognition on text information of the another voice instruction; The seat information and duration information in the semantic recognition result are determined as the setting information of this nap mode.
6. A control device for a nap mode, characterized in that: include: a receiving module, in response to receiving a voice command for turning on the nap mode, performing sound source positioning on the voice command to obtain a sound source position of the voice command; an identification module, used to match the sound source position with the seat position in the vehicle, and determine the seat information corresponding to the sound source position; The control module is used to control the vehicle to perform a nap action according to the seat information corresponding to the sound source position.
7. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the nap mode control method described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the control method for the nap mode described in any one of claims 1 to 5 is implemented.
9. A vehicle, characterized in that: include: The device as claimed in claim 6, or the electronic device as claimed in claim 7.