Vehicle control method and device, electronic equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2026-08-11
AI Technical Summary
[0003]相关技术中,可以通过遥控手柄对玩具赛车进行控制,然而,遥控手柄发出的信号受到传播距离的限制,使用者需要在玩具赛车周围才能正常进行遥控操作,从而导致对玩具赛车的控制受到限制
[0036]本发明提供的车辆控制方法、装置、电子设备和存储介质,使用者通过语音控制车辆,使得使用者可以不受距离限制来控制车辆。另外,在使用者利用语音控制车辆的过程中,通过将目标语音中的语音控制指令转化为目标文本,在控制列表中查找包括目标文本中的部分文本的文本指令,将查找到的文本指令作为目标文本指令,即在目标文本的字符数量小于等于预设数量或者大于预设数量时,都可以查找到完整指令。这样,在基于语音控制指令转化得到的目标文本与控制列表中的文本指令不匹配时,也可以确定目标语音对应的目标文本指令,无需使用者重新输入完整的语音控制指令,从而提高了车辆控制的灵敏度。
Smart Images

Figure CN116798423B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and more particularly to a vehicle control method, device, electronic device, and storage medium. Background Technology
[0002] Toy race cars are a popular toy among many children and teenagers.
[0003] In related technologies, toy race cars can be controlled via remote control. However, the signal emitted by the remote control is limited by the propagation distance, and the user needs to be near the toy race car to perform remote control operations normally, which limits the control of the toy race car. Summary of the Invention
[0004] To address the problems existing in the prior art, embodiments of the present invention provide a vehicle control method, device, electronic device, and storage medium.
[0005] This invention provides a vehicle control method, comprising: acquiring at least one user-inputted voice, and determining a target voice from the at least one voice; the voice includes a voice control command;
[0006] Convert the voice control commands in the target speech into target text;
[0007] The control list is searched for a text instruction that includes at least a portion of the target text, and the searched text instruction is used as the target text instruction; the control list stores at least one text instruction required for vehicle control;
[0008] The vehicle is controlled in response to the target text command.
[0009] According to a vehicle control method provided by the present invention, the method further includes: receiving the current driving distance sent by a track device; the current driving distance is the driving distance corresponding to the target sensor found in a distance list by the track device when it receives a detection signal sent by the target sensor; the distance list pre-stores the correspondence between sensors and driving distances; each sensor is set at a corresponding driving distance position; the sensor includes an infrared sensor or a pressure sensor;
[0010] The current driving distance is reported.
[0011] According to a vehicle control method provided by the present invention, the method further includes:
[0012] Obtain the current location of the vehicle;
[0013] The current location is sent to the terminal device so that the terminal device can determine whether the vehicle is currently safe based on the current location and the preset track boundary, and send a stop command to the vehicle if the vehicle is not safe.
[0014] Receive a stop command sent by the terminal device;
[0015] In response to the stop command, the vehicle is controlled to stop moving.
[0016] According to a vehicle control method provided by the present invention, the step of controlling the vehicle in response to the target text instruction includes:
[0017] The target speech is input into the age range recognition model to obtain the target age range output by the age range recognition model; the age range recognition model is trained based on the speech of users of multiple different ages.
[0018] Search the speed list for the target speed corresponding to the target age range; the speed list stores the correspondence between age ranges and speeds;
[0019] In response to the target text instruction, the vehicle is controlled based on the target speed.
[0020] According to a vehicle control method provided by the present invention, determining the target speech from at least one of the spoken words includes:
[0021] Extract the voiceprint information from each of the spoken words;
[0022] Each of the aforementioned voiceprint information is matched with preset voiceprint information;
[0023] The speech corresponding to the successfully matched voiceprint information is determined as the target speech.
[0024] According to a vehicle control method provided by the present invention, the voice also includes a voice wake-up name;
[0025] The step of converting the voice control commands in the target speech into target text includes:
[0026] When it is determined that the voice wake-up name in the target speech matches the preset wake-up name, the voice control command in the target speech is converted into target text.
[0027] According to a vehicle control method provided by the present invention, each character in all the text instructions is unique.
[0028] The present invention also provides a vehicle control device, comprising:
[0029] The first acquisition unit is configured to acquire at least one user-inputted voice and determine a target voice from the at least one voice; the voice includes voice control commands.
[0030] The conversion unit is used to convert the voice control commands in the target speech into target text;
[0031] The search unit is used to search the control list for a text instruction that includes at least a portion of the target text, and to use the searched text instruction as the target text instruction; the control list stores at least one text instruction required for vehicle control;
[0032] A first control unit is configured to control the vehicle in response to the target text command.
[0033] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle control method as described above.
[0034] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle control method as described above.
[0035] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the vehicle control method as described above.
[0036] The vehicle control method, device, electronic device, and storage medium provided by this invention allow users to control the vehicle via voice, enabling them to control the vehicle regardless of distance. Furthermore, during voice control, the user converts the voice control command in the target speech into target text, searches a control list for a text command that includes a portion of the target text, and uses this found text command as the target text command. This means that a complete command can be found whether the number of characters in the target text is less than or equal to a preset number or greater than a preset number. Thus, even if the target text converted from the voice control command does not match the text command in the control list, the corresponding target text command can still be determined, eliminating the need for the user to re-enter the complete voice control command, thereby improving the sensitivity of vehicle control. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0038] Figure 1 This is a flowchart illustrating the vehicle control method provided by the present invention;
[0039] Figure 2 This is a schematic diagram of the vehicle control device provided by the present invention;
[0040] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0042] The following is combined Figure 1 The vehicle control method of the present invention is described.
[0043] Figure 1 This is a flowchart illustrating the vehicle control method provided by the present invention, wherein the vehicle can be a toy race car or toy vehicle, etc.; Figure 1 As shown, the vehicle control method includes the following steps:
[0044] Step 101: Obtain at least one user-inputted voice, and determine a target voice from at least one of the voices; the voice includes voice control commands.
[0045] For example, in a scenario where at least one user is speaking around the vehicle, the vehicle's voice receiving module can acquire the voice input from at least one user. In this case, it's necessary to determine the target voice for controlling the vehicle from the voice input from at least one user. Since the voice includes voice control commands, the vehicle's movement can be controlled based on these commands. For instance, if the vehicle's voice receiving module acquires voice input from user A, user B, and user C respectively, then the target voice needs to be determined from the voice input from user A, user B, and user C.
[0046] Step 102: Convert the voice control commands in the target speech into target text.
[0047] For example, after determining the target voice, the vehicle can convert the voice control commands in the target voice into target text so that the vehicle can perform the corresponding actions based on the target text.
[0048] Step 103: Search the control list for a text instruction that includes at least a portion of the target text, and use the found text instruction as the target text instruction; the control list stores at least one text instruction required for vehicle control.
[0049] Optionally, a text instruction that includes at least a portion of the target text can be searched in the control list, and the found text instruction can be used as the target text instruction. This can be achieved in several ways:
[0050] In the first method, when the number of characters in the target text is less than or greater than the preset number, a text instruction containing the target text is searched in the control list, and the text instruction containing the target text is used as the target text instruction.
[0051] For example, the control list stores text commands containing complete characters. When the number of characters in the target text is less than the preset number of complete characters in the text command, the control list searches for a text command that includes the target text and uses that text command as the target text command. For example, the control list stores text commands such as "forward," "backward," "turn left," and "turn right." For instance, if the user says "forward" as the voice control command, but the vehicle receives the voice control command "forward," the corresponding target text has 1 character, which is less than the preset number of 2 text commands. In this case, the text command that includes "forward" can be determined as "forward."
[0052] The second method involves searching the control list for a text instruction that includes a portion of the target text when the number of characters in the target text exceeds the preset number, and then using that text instruction as the target text instruction.
[0053] For example, when the number of characters in the target text exceeds the preset number of complete characters in the text command, the control list searches for a text command that includes a portion of the target text, and this text command is selected as the target text command. For instance, the control list stores text commands such as "forward," "backward," "turn left," and "turn right." For example, if the user's voice control command is "Forward," the corresponding target text is "Forward," with a character count of 3, which is greater than the preset character count for two text commands. In this case, the text command "Forward" in the control list that includes a portion of "Forward" can be selected as the target text command.
[0054] The third method involves searching for the text instruction corresponding to the target text in the control list when the number of characters in the target text equals the preset number, and then using the text instruction corresponding to the target text as the target text instruction.
[0055] For example, when the number of characters in the target text equals the preset number of complete characters in the text command, the text command corresponding to the target text is searched in the control list and selected as the target text command. For instance, if the user's voice control command is "forward," the corresponding target text has 2 characters, which is equal to the preset number of 2 text command characters. In this case, the text command corresponding to the target text can be determined to be "forward," and the text command "forward" is selected as the target text command.
[0056] Step 104: Control the vehicle in response to the target text command.
[0057] For example, after determining the target text instruction, the vehicle can respond to the target text instruction and control the vehicle to move forward.
[0058] The vehicle control method provided in this invention allows users to control the vehicle via voice, enabling them to control the vehicle regardless of distance. Furthermore, during voice control, the voice control command in the target speech is converted into target text. A text command containing a portion of the target text is then searched in the control list. This searched text command is used as the target text command. That is, a complete command can be found whether the number of characters in the target text is less than or equal to a preset number or greater than a preset number. Thus, even if the target text converted from the voice control command does not match the text command in the control list, the corresponding target text command can still be determined, eliminating the need for the user to re-enter the complete voice control command, thereby improving the sensitivity of vehicle control.
[0059] In one embodiment, the vehicle control method may further include the following steps:
[0060] The system receives the current driving distance sent by the track equipment; the current driving distance is the driving distance corresponding to the target sensor found in the distance list when the track equipment receives the detection signal sent by the target sensor; the distance list stores the correspondence between sensors and driving distances in advance; each sensor is set at the corresponding driving distance position; the sensor includes an infrared sensor or a pressure sensor;
[0061] The current driving distance is reported.
[0062] For example, sensors can be placed at preset intervals along the track. Different sensors have different identifiers, and a distance list can be created based on the sensor identifiers and their corresponding travel distances. When a target sensor detects a vehicle passing by, it sends a detection signal to the track equipment's control module. The control module then searches the distance list for the travel distance corresponding to the target sensor's identifier and sends this distance as the current travel distance to the vehicle. Upon receiving this current travel distance, the vehicle can announce it verbally. For instance, taking three sensors on a 20-meter track as an example, the first sensor can be placed 6 meters from the start line, the second 12 meters, and the third 18 meters. When the second sensor detects a vehicle passing by, it sends a detection signal to the track equipment's control module. The control module determines the travel distance corresponding to the second sensor to be 12 meters and sends this current travel distance of 12 meters to the vehicle. The vehicle then announces the current travel distance of 12 meters in real time, allowing the user to know their vehicle's current distance.
[0063] It should be noted that the correspondence between the sensor and the driving distance in this invention can be set according to actual needs.
[0064] Furthermore, the sensor may include an infrared sensor or a pressure sensor. When the sensor is an infrared sensor, it can be embedded in the track surface or set at the corresponding edge of the track, specifically detecting whether a vehicle on the track has passed through the detection range corresponding to the infrared sensor based on the infrared detection principle. When the sensor is a pressure sensor, it can be embedded in the track surface. When the pressure value of the pressure sensor is greater than a preset value, it is determined that a vehicle has passed through the location where the pressure sensor is set, and the pressure sensor can then send a detection signal to the control module of the track equipment.
[0065] The vehicle control method provided in this invention, through the correspondence between sensors and driving distance, allows the track equipment to determine the vehicle's current driving distance based on the correspondence between sensors and driving distance when it receives the detection signal from the target sensor. The current driving distance is then sent to the vehicle, which broadcasts the current driving distance, allowing the user to know the vehicle's current driving distance at any time. Furthermore, the user can use the known driving distance to determine whether the vehicle has crossed the boundary. If the vehicle's driving distance is always known, it indicates that the vehicle is safe and has not crossed the boundary; if the vehicle's driving distance cannot be obtained, it indicates that the vehicle has crossed the boundary.
[0066] In one embodiment, the vehicle control method may further include the following steps:
[0067] Obtain the current location of the vehicle;
[0068] The current location is sent to the terminal device so that the terminal device can determine whether the vehicle is currently safe based on the current location and the preset track boundary, and send a stop command to the vehicle if the vehicle is not safe.
[0069] Receive a stop command sent by the terminal device;
[0070] In response to the stop command, the vehicle is controlled to stop moving.
[0071] For example, an application (APP) for controlling vehicle movement can be configured on a terminal device. This APP includes a map where the coordinates of the vehicle's location can be queried, and the inner and outer boundaries of the track can be set on the map. The vehicle typically travels within the track.
[0072] It should be noted that when the vehicle is indoors, its current location can be determined based on its starting point, the distance traveled from that point, and the direction of travel. This current location is then sent to the terminal device, which can mark the received location on the app's map. When the vehicle is outdoors, its current location can be determined using the Global Positioning System (GPS), and this location is also sent to the terminal device, which marks the received location on the app's map.
[0073] Furthermore, regardless of whether the vehicle is indoors or outdoors, when the vehicle is driving on the track, after receiving the vehicle's current position, the terminal device can determine whether the vehicle is safe based on the vertical distance between the vehicle's current position and the inner and outer boundaries of the track, since the inner and outer boundaries of the track have been set in the map of the aforementioned APP. Specifically, if the vertical distance between the vehicle's current position and the outer boundary of the track is less than a preset distance, or if the vertical distance between the vehicle's current position and the inner boundary of the track is less than a preset distance, it indicates that the vehicle may run off the track. At this time, the vehicle is considered unsafe, and a stop command can be sent to the vehicle. After receiving the stop command, the vehicle can be controlled to stop.
[0074] The vehicle control method provided in this invention can determine that the vehicle is unsafe when the vertical distance between the vehicle's current position and the inner or outer boundaries of the track is less than a preset distance, thereby controlling the vehicle to stop. This prevents the vehicle from running off the track and causing a safety accident, thus improving vehicle driving safety.
[0075] In one embodiment, step 104 can be implemented in the following way:
[0076] The target speech is input into the age range recognition model to obtain the target age range output by the age range recognition model; the age range recognition model is trained based on the speech of users of multiple different ages.
[0077] Search the speed list for the target speed corresponding to the target age range; the speed list stores the correspondence between age ranges and speeds;
[0078] In response to the target text instruction, the vehicle is controlled based on the target speed.
[0079] For example, after a vehicle acquires target speech, it can identify the target age range corresponding to that speech using an age range recognition model. Different age ranges correspond to different vehicle speeds, thus allowing the determination of the vehicle speed corresponding to the target speech. When executing the target text command corresponding to the target speech, the vehicle can travel at the speed corresponding to that target speech. For instance, the speed list stores speeds as follows: h for 2-3 year olds, i for 4-8 year olds, and j for 9-12 year olds. After acquiring the target speech, if the age range recognition model identifies the target age range of the user corresponding to that speech as 9-12 years old, then speed j is determined as the target speed. The vehicle can then control itself to travel at speed j based on the target text command corresponding to the target speech; for example, if the target text command is "forward," the vehicle will travel forward at speed j.
[0080] It should be noted that the specific training process of the age range recognition model is as follows: collect the voice recordings of multiple users of different ages, label the actual age value corresponding to each user's voice recording, create an initial age range recognition model, input the voice recordings of multiple users of different ages into the initial age range recognition model, perform feature analysis on the voice recordings of users of different ages based on the initial age range recognition model, obtain the predicted age range output by the initial age range recognition model, construct a loss function based on the predicted age range and the labeled actual age value, optimize the model parameters of the initial age range recognition model based on the loss function until the convergence condition is reached, and obtain the age range recognition model; wherein, the initial age range recognition model can be a convolutional neural network (CNN), a recurrent neural network (RNN), etc.
[0081] The vehicle control method provided in this invention allows the vehicle to determine a target speed corresponding to a specific age range after identifying the target voice signal. This enables users of different age ranges to control the vehicle at different speeds, thereby ensuring vehicle safety.
[0082] In one embodiment, step 101 described above can be implemented in the following way:
[0083] Extract the voiceprint information from each of the spoken words;
[0084] Each of the aforementioned voiceprint information is matched with preset voiceprint information;
[0085] The speech corresponding to the successfully matched voiceprint information is determined as the target speech.
[0086] Voiceprints are a biometric feature composed of more than a hundred characteristics, including wavelength, frequency, and intensity, and are characterized by stability, measurability, and uniqueness.
[0087] For example, when the vehicle's voice receiving module receives at least one user's input voice, it sends the at least one user's input voice to the vehicle's voiceprint module. The voiceprint module can extract voiceprint information from each user's input voice. The voiceprint module matches the extracted voiceprint information with preset voiceprint information in the voiceprint module. If a match is successful, the voice corresponding to the successfully matched voiceprint information is determined as the target voice. For example, if the vehicle's voice receiving module receives voices input by user A, user B, and user C, and determines user A's voiceprint information as 'a', user B's voiceprint information as 'b', and user C's voiceprint information as 'c', while the preset voiceprint information is 'a', then the voice input by user A corresponding to 'a' is taken as the target voice.
[0088] The vehicle control method provided in this invention improves the accuracy of voice control of vehicles by accurately identifying the voice controlling the vehicle from among numerous voices due to the uniqueness of voiceprints.
[0089] In one embodiment, the voice also includes a voice wake-up name; step 102 can be implemented in the following ways:
[0090] When it is determined that the voice wake-up name in the target speech matches the preset wake-up name, the voice control command in the target speech is converted into target text.
[0091] Users can set a preset wake-up name on the terminal APP that controls the car. The preset wake-up name in this invention can be set according to actual needs.
[0092] For example, to avoid receiving erroneous commands, when it is determined that the voice wake-up name in the target speech matches the preset wake-up name, the voice control command in the target speech is converted into target text. For instance, if the voice wake-up name "Xiao Sai" in the target speech matches the preset wake-up name, it means that the user corresponding to the target speech is the user controlling the race car. In this case, the voice control command in the target speech is converted into target text, and subsequent steps are executed. If the voice wake-up name "Xiao Sai" in the target speech does not match the preset wake-up name, it means that the user corresponding to the target speech is not the user controlling the race car. In this case, the voice control command in the target speech is not converted into target text, that is, no steps are executed to avoid erroneous control of the vehicle.
[0093] The vehicle control method provided in this embodiment of the invention can, after determining that the voice wake-up name matches the preset wake-up name, perform the step of converting the voice control command in the target voice into the target text, thereby avoiding the vehicle being directly controlled after receiving the text command and improving the accuracy of voice control of the vehicle.
[0094] In one embodiment, the vehicle control method may further include the following steps:
[0095] Each character in all the text instructions is unique. For example, the control list stores at least one text instruction required for vehicle control. The characters in each text instruction are different, allowing for a unique match between the corresponding text instruction. For instance, the characters for "forward," "backward," "left turn," and "right turn" are all different. When retrieving "backward," "backward" can be matched. The same applies to other characters, which will not be elaborated further here.
[0096] It should be noted that when the text command is a Chinese command, the character is a single Chinese character; when the text command is an English command, the character is a word.
[0097] The vehicle control method provided in this embodiment of the invention sets each text instruction to have different characters. In this way, when the number of characters in the target text is less than a preset number, the corresponding text instruction can be uniquely matched, so that the vehicle can accurately execute the action corresponding to the text instruction.
[0098] It should be noted that the vehicle in this invention can also be equipped with other sensors, such as sensors for sensing the vehicle's driving direction, sensors for sensing the vehicle's driving distance, and sensors for detecting obstacles. When the obstacle detection sensor detects that the distance between the vehicle and the obstacle is less than a preset distance, it can control the vehicle's steering to avoid the vehicle from hitting the obstacle, thereby enabling the vehicle to have obstacle avoidance capabilities.
[0099] The vehicle control device provided by the present invention is described below. The vehicle control device described below can be referred to in correspondence with the vehicle control method described above.
[0100] Figure 2 This is a structural schematic diagram of the vehicle control device provided in an embodiment of the present invention. Figure 2 As shown, the vehicle control device 200 includes a first acquisition unit 201, a conversion unit 202, a search unit 203, and a first control unit 204; wherein:
[0101] The first acquisition unit 201 is configured to acquire at least one user-inputted voice and determine a target voice from the at least one voice; the voice includes voice control commands.
[0102] The conversion unit 202 is used to convert the voice control commands in the target speech into target text;
[0103] The search unit 203 is used to search the control list for a text instruction that includes at least a portion of the text in the target text, and to use the searched text instruction as the target text instruction; the control list stores at least one text instruction required for vehicle control;
[0104] The first control unit 204 is used to control the vehicle in response to the target text command.
[0105] The vehicle control device provided by this invention allows users to control the vehicle via voice, enabling them to control the vehicle regardless of distance. Furthermore, during voice control, the system converts the voice control command into target text, searches a control list for a text command that includes a portion of the target text, and uses this found text command as the target text command. This means that a complete command can be found even if the number of characters in the target text is less than or equal to a preset number, or greater than a preset number. Thus, even if the target text converted from the voice control command does not match the text command in the control list, the corresponding target text command can still be determined, eliminating the need for the user to re-enter the complete voice control command, thereby improving the sensitivity of vehicle control.
[0106] Based on any of the above embodiments, the vehicle control device 200 further includes:
[0107] The first receiving unit is used to receive the current driving distance sent by the track equipment; the current driving distance is the driving distance corresponding to the target sensor found in the distance list when the track equipment receives the detection signal sent by the target sensor; the distance list stores the correspondence between sensors and driving distances in advance; each sensor is set at the corresponding driving distance position; the sensor includes an infrared sensor or a pressure sensor;
[0108] The broadcasting unit is used to broadcast the current travel distance.
[0109] Based on any of the above embodiments, the vehicle control device 200 further includes:
[0110] The second acquisition unit is used to acquire the current position of the vehicle;
[0111] The first sending unit is used to send the current position to the terminal device, so that the terminal device can determine whether the vehicle is currently safe based on the current position and the preset track boundary, and send a stop command to the vehicle when the vehicle is not safe.
[0112] The second receiving unit is used to receive the stop command sent by the terminal device;
[0113] The second control unit is used to control the vehicle to stop moving in response to the stop command.
[0114] Based on any of the above embodiments, the first control unit 203 is specifically used for:
[0115] The target speech is input into the age range recognition model to obtain the target age range output by the age range recognition model; the age range recognition model is trained based on the speech of users of multiple different ages.
[0116] Search the speed list for the target speed corresponding to the target age range; the speed list stores the correspondence between age ranges and speeds;
[0117] In response to the target text instruction, the vehicle is controlled based on the target speed.
[0118] Based on any of the above embodiments, the first acquisition unit 201 is specifically used for:
[0119] Extract the voiceprint information from each of the spoken words;
[0120] Each of the aforementioned voiceprint information is matched with preset voiceprint information;
[0121] The speech corresponding to the successfully matched voiceprint information is determined as the target speech.
[0122] Based on any of the above embodiments, the voice also includes a voice wake-up name; the conversion unit 202 is specifically used for:
[0123] When it is determined that the voice wake-up name in the target speech matches the preset wake-up name, the voice control command in the target speech is converted into target text.
[0124] Based on any of the above embodiments, each character in all the text instructions is unique.
[0125] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, communications interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 can invoke logical instructions in the memory 330 to execute a vehicle control method, the method including: acquiring at least one user-inputted voice, and determining a target voice from the at least one voice; the voice includes voice control instructions.
[0126] Convert the voice control commands in the target speech into target text;
[0127] The control list is searched for a text instruction that includes at least a portion of the target text, and the searched text instruction is used as the target text instruction; the control list stores at least one text instruction required for vehicle control;
[0128] The vehicle is controlled in response to the target text command.
[0129] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0130] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program that can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer is able to execute the vehicle control method provided by the above methods, the method including: acquiring at least one user-input voice and determining a target voice from at least one of the voices; the voice includes voice control instructions;
[0131] Convert the voice control commands in the target speech into target text;
[0132] The control list is searched for a text instruction that includes at least a portion of the target text, and the searched text instruction is used as the target text instruction; the control list stores at least one text instruction required for vehicle control;
[0133] The vehicle is controlled in response to the target text command.
[0134] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the vehicle control methods provided by the methods described above, the method comprising: acquiring at least one user-inputted voice, and determining a target voice from at least one of the voices; the voice including voice control instructions;
[0135] Convert the voice control commands in the target speech into target text;
[0136] The control list is searched for a text instruction that includes at least a portion of the target text, and the searched text instruction is used as the target text instruction; the control list stores at least one text instruction required for vehicle control;
[0137] The vehicle is controlled in response to the target text command.
[0138] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0139] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A vehicle control method, characterized in that, include: Acquire at least one user-input voice, and determine a target voice from at least one of the voices; the voice includes voice control commands; Convert the voice control commands in the target speech into target text; The control list is searched for a text instruction that includes at least a portion of the target text, and the searched text instruction is used as the target text instruction; the control list stores at least one text instruction required for vehicle control; The vehicle is controlled in response to the target text command; The control of the vehicle in response to the target text instruction includes: The target speech is input into the age range recognition model to obtain the target age range output by the age range recognition model; the age range recognition model is trained based on the speech of users of multiple different ages. Search the speed list for the target speed corresponding to the target age range; the speed list stores the correspondence between age ranges and speeds; In response to the target text instruction, the vehicle is controlled based on the target speed.
2. The vehicle control method according to claim 1, characterized in that, The method further includes: The system receives the current driving distance sent by the track equipment; the current driving distance is the driving distance corresponding to the target sensor found in the distance list when the track equipment receives the detection signal sent by the target sensor; the distance list stores the correspondence between sensors and driving distances in advance; each sensor is set at the corresponding driving distance position; the sensor includes an infrared sensor or a pressure sensor; The current driving distance is reported.
3. The vehicle control method according to claim 1, characterized in that, The method further includes: Obtain the current location of the vehicle; The current location is sent to the terminal device so that the terminal device can determine whether the vehicle is currently safe based on the current location and the preset track boundary, and send a stop command to the vehicle if the vehicle is not safe. Receive a stop command sent by the terminal device; In response to the stop command, the vehicle is controlled to stop moving.
4. The vehicle control method according to claim 1, characterized in that, Determining the target speech from at least one of the speech sources includes: Extract the voiceprint information from each of the spoken words; Each of the aforementioned voiceprint information is matched with preset voiceprint information; The speech corresponding to the successfully matched voiceprint information is determined as the target speech.
5. The vehicle control method according to claim 1, characterized in that, The voice also includes a voice wake-up name; The step of converting the voice control commands in the target speech into target text includes: When it is determined that the voice wake-up name in the target speech matches the preset wake-up name, the voice control command in the target speech is converted into target text.
6. The vehicle control method according to any one of claims 1-5, characterized in that, Each character in all the text instructions is unique.
7. A vehicle control device, characterized in that, include: The first acquisition unit is configured to acquire at least one user-inputted voice and determine a target voice from the at least one voice; the voice includes voice control commands. The conversion unit is used to convert the voice control commands in the target speech into target text; The search unit is used to search for a text instruction in the control list that includes at least a portion of the target text, and to use the searched text instruction as the target text instruction; the control list stores at least one text instruction required for vehicle control; A first control unit is configured to control the vehicle in response to the target text command; The first control unit is specifically used for: The target speech is input into the age range recognition model to obtain the target age range output by the age range recognition model; the age range recognition model is trained based on the speech of users of multiple different ages. Find the target speed in the speed list that corresponds to the target age range; The speed list stores the correspondence between age ranges and speeds; In response to the target text instruction, the vehicle is controlled based on the target speed.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the vehicle control method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the vehicle control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Voice interaction method, terminal and computer readable medium
CN108735203A
Voice control intelligent toy car system based on TMS320VC5509A
CN111001167A