Speech recognition method and device, intelligent equipment and readable storage medium

By filling the voice data with preset tag values ​​in the smart device, the recognition problem when the smart device does not receive the user's voice in time is solved, ensuring the accessibility of the voice recognition function and the recognition of the user's input voice, and is suitable for a wide range of usage scenarios.

CN118675518APending Publication Date: 2024-09-20ARASHI VISION INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310303618.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing technology, smart devices automatically turn off the voice recognition function when they do not receive user voice commands in time, resulting in the problem of being unable to recognize untimely voice commands input by the user.

Method used

When voice recognition starts to respond to instructions, if no user voice is detected, the preset mark value is used to fill the voice data until the recognition is completed to ensure that the user voice input data is obtained and recognized, including collecting voice spectrum information, matching the spectrum information library, and filling Blank values ​​and compression encoding ensure the accessibility of speech recognition functions.

Benefits of technology

It avoids the automatic shutdown of the voice recognition function, ensures that the voice input by the user can be recognized, solves the problem of being unable to recognize non-timely voice commands input by the user, and is suitable for a wide range of usage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675518A
    Figure CN118675518A
Patent Text Reader

Abstract

The invention relates to a voice recognition method and device, intelligent equipment and a readable storage medium. The method comprises the following steps: in response to a voice recognition starting instruction, if it is detected that no user voice exists in voice input data, performing voice data filling with a preset mark value until voice recognition is finished, and obtaining user voice input data collected in a voice recognition process, and recognizing the user voice input data to obtain a voice recognition result. According to the method, in the process of starting the voice recognition function of the intelligent equipment, the voice input time of the user is not limited, the use scene is wide, the voice input by the user at any time in the voice recognition function starting process can be recognized, and the problem that a non-timely voice instruction input by the user cannot be recognized is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech recognition technology, and in particular to a speech recognition method, apparatus, intelligent device and readable storage medium. Background Art

[0002] With the development of artificial intelligence technology, voice has become one of the input methods for human-computer interaction and is becoming more and more widely used.

[0003] In the related art, after the user triggers the voice recognition function of the smart device, he inputs a voice command to the smart device, and the smart device recognizes the voice command input by the collected user to obtain a voice recognition result. However, in the related art, once the user inputs an untimely voice command, there will be a problem that the voice command input by the user cannot be recognized. Summary of the invention

[0004] Based on this, it is necessary to provide a speech recognition method, apparatus, intelligent device and readable storage medium to address the above technical problems, so as to solve the problem of being unable to recognize non-timely voice commands input by users.

[0005] In a first aspect, an embodiment of the present application provides a speech recognition method, the method comprising:

[0006] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0007] Recognize the user's voice input data to obtain a voice recognition result.

[0008] In one embodiment, the method further comprises:

[0009] Collecting speech input data and extracting speech spectrum information from the speech input data;

[0010] According to the voice spectrum information, detect whether there is user voice in the voice input data.

[0011] In one embodiment, detecting whether there is user voice in the voice input data according to the voice spectrum information includes:

[0012] Matching the voice spectrum information with a preset spectrum information library; the preset spectrum information library includes user spectrum information obtained by extracting spectrum from voice data of different users;

[0013] If the match is successful, it is determined that the user's voice exists in the voice input data;

[0014] If the match is unsuccessful, it is determined that the user voice does not exist in the voice input data.

[0015] In one embodiment, the preset tag value includes a blank value; and filling the voice data with the preset tag value includes:

[0016] Get the storage location corresponding to the voice input data in the audio buffer;

[0017] Fills the audio buffer with empty values ​​at the storage locations.

[0018] In one embodiment, the method further comprises:

[0019] Get multiple consecutive blank values ​​in the voice input data in the audio buffer;

[0020] Compress multiple consecutive blank values.

[0021] In one embodiment, the voice recognition ends include:

[0022] If a voice recognition end instruction is received, then it is determined that the voice recognition is ended; or,

[0023] If no user input voice data is collected within a preset time period after the user voice input data is collected, it is determined that the voice recognition is terminated.

[0024] In one embodiment, the method further comprises:

[0025] An operation request instruction is sent to the remote device according to the speech recognition result; the operation request instruction is used to instruct the remote device to respond to the speech recognition result.

[0026] In a second aspect, an embodiment of the present application provides a speech recognition device, the device comprising:

[0027] An acquisition module, for responding to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, filling the speech data with a preset tag value until the speech recognition is completed, and acquiring the user speech input data collected during the speech recognition process;

[0028] The recognition module is used to recognize the user's voice input data and obtain the voice recognition result.

[0029] In a third aspect, an embodiment of the present application further provides an intelligent device, the intelligent device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0030] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0031] Recognize the user's voice input data to obtain a voice recognition result.

[0032] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0033] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0034] Recognize the user's voice input data to obtain a voice recognition result.

[0035] In a fifth aspect, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0036] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0037] Recognize the user's voice input data to obtain a voice recognition result.

[0038] The speech recognition method, apparatus, smart device and readable storage medium provided by the embodiments of the present application include: in response to a speech recognition start instruction, if it is detected that there is no user voice in the speech input data, the speech data is filled with a preset mark value until the speech recognition is completed, the user voice input data collected during the speech recognition process is obtained, and the user voice input data is recognized to obtain a speech recognition result; in the process of turning on the speech recognition function of the smart device, the above method can be used to fill the speech input data where there is no user voice through the mark value to ensure the accessibility of the speech recognition function, avoid the problem of the speech recognition function automatically shutting down when there is no user voice, and missing the recognition of key speech input by the user; at the same time, in the process of turning on the speech recognition function of the smart device, the above method is not limited to the time when the user inputs the voice, and the usage scenario is relatively wide, and the voice input by the user at any time during the process of turning on the speech recognition function can be recognized, which solves the problem of not being able to recognize the non-timely voice commands input by the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A diagram of an application environment of a speech recognition method in an embodiment;

[0040] Figure 2 A flowchart of a speech recognition method in one embodiment;

[0041] Figure 3 is a flow chart of a speech recognition method in another embodiment;

[0042] Figure 4 is a flow chart of a speech recognition method in another embodiment;

[0043] Figure 5 is a flow chart of a speech recognition method in another embodiment;

[0044] Figure 6 is a flow chart of a speech recognition method in another embodiment;

[0045] Figure 7 is a structural block diagram of a speech recognition device in one embodiment;

[0046] Figure 8 FIG. 4 is a diagram showing the internal structure of a smart device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In the field of speech recognition, after a user triggers the speech recognition function of a smart device, he inputs a speech command to the smart device, and the smart device obtains a speech recognition result based on the collected speech command input by the user. Usually, after a user triggers the speech recognition function of a smart device, he may not input a speech command immediately, and may input a non-timely voice command after a period of time. However, in the related art, when a smart device does not receive a voice command input by a user within a specific time period, it will automatically turn off the speech recognition function, resulting in the inability to recognize subsequent voice commands input by the user. Based on this, an embodiment of the present application provides a speech recognition method that can solve the problem of being unable to recognize non-timely voice commands input by a user.

[0049] The speech recognition method provided in the embodiment of the present application can be applied to Figure 1The voice recognition system shown in the figure includes a cloud and a smart device, and the cloud and the smart device are connected in communication. The cloud can be any server; the smart device can be, but is not limited to, various personal computers, laptops, smart phones and tablet computers. This embodiment does not limit the specific form of the smart device. Figure 1 The speech recognition system is illustrated by taking the cloud as the server and the smart device as the smart phone as an example. The following embodiments will specifically introduce the specific process of the speech recognition method, and the specific process of the speech recognition method is introduced by taking the execution subject as the smart device.

[0050] like Figure 2 FIG. 1 is a flow chart of a speech recognition method provided in an embodiment of the present application, and the method may include the following steps:

[0051] S100, in response to a speech recognition start instruction, if it is detected that there is no user voice in the speech input data, the speech data is filled with a preset mark value until the speech recognition is completed, and the user voice input data collected during the speech recognition process is obtained.

[0052] In the voice recognition scenario, users may include a main user and a slave user, wherein the main user is a person who has close voice interaction with the smart device, and correspondingly, the slave user may be a person who has long-distance voice interaction with the smart device. In actual applications, the above-mentioned voice recognition method is mainly used to recognize the voice uttered by the main user.

[0053] The user (master user or slave user) can trigger the voice recognition start command of the smart device, that is, the user turns on the voice recognition function of the smart device, and the smart device receives and responds to the voice recognition start command. Optionally, the user can trigger the voice recognition start command by pressing a button, touching, speaking, gesturing, or performing an action.

[0054] In actual applications, after the smart device responds to the voice recognition start command, the master user can output voice from time to time to generate corresponding voice input data. At the same time, the surrounding environmental objects and / or slave users in the environment where the master user is located can also emit voice to generate corresponding voice input data. Optionally, the environmental objects can be animals, electronic devices and / or mechanical devices, etc.

[0055] In an embodiment of the present application, if the smart device detects that there is no user voice of the main user in the voice input data, the voice data can be filled with a preset mark value until the voice recognition is completed, and the user voice input data of the main user collected during the voice recognition process can be obtained.

[0056] It should be noted that the voice input data detected by the smart device may be voice data generated when at least one of the main user, the slave user and the environmental object speaks. The voice input data that is not the main user may be marked by a preset mark value, and the mark value may be an English letter, a special symbol or other characters.

[0057] Optionally, the end of voice recognition can be understood as the voice recognition function of the smart device being turned off. Correspondingly, until the end of voice recognition, the smart device can obtain all user voice input data of the main user during the process of turning on the voice recognition function, and can also obtain all voice data filling results of non-main users. Optionally, the user voice input data of the main user can be user voice input data mixed with the main user and environmental objects, user voice input data of a single main user, or user voice input data mixed with the main user and slave users; non-main users can be environmental objects and / or slave users.

[0058] In one embodiment, the implementation method of ending voice recognition includes: if a voice recognition end instruction is received, then determining that voice recognition is ended; or, if no user input voice data is collected within a preset time period after the user voice input data is collected, then determining that voice recognition is ended.

[0059] In actual applications, if the user needs to turn off the voice recognition function of the smart device, the user can trigger the voice recognition end instruction of the smart device. Correspondingly, after the smart device receives and responds to the voice recognition end instruction, it can be determined that the voice recognition is over, that is, the smart device has turned off the voice recognition function. Optionally, the way in which the user triggers the voice recognition end instruction and the way in which the user triggers the voice recognition start instruction can be the same or different, and this embodiment of the application is not limited to this.

[0060] In addition, if the smart device does not collect any voice data input by the main user within a preset time period after collecting the user voice input data of the main user, that is, if the smart device does not collect any other frame voice data input by the main user within a preset time period after collecting the last frame of user voice input data input by the main user, it can be determined that voice recognition is completed.

[0061] Optionally, the preset time length may be a user-defined value or a value determined based on historical experience. For example, if the preset time length is 2 seconds, then if the smart device does not collect other voice data input by the main user within 2 seconds after collecting the user voice input data of the main user, the smart device may determine the voice recognition result, and at this time, the smart device may automatically turn off the voice recognition function.

[0062] S200: Recognize the user's voice input data to obtain a voice recognition result.

[0063] In order to improve the speed and efficiency of data transmission and further improve the speed and efficiency of voice recognition, the smart device can only send the acquired user voice input data of the main user to the cloud to instruct the cloud to use the voice recognition algorithm to recognize the user voice input data and obtain the voice recognition result.

[0064] Optionally, the speech recognition algorithm may be an algorithm based on dynamic time warping, an algorithm based on a hidden Markov model of a parameter model, or an algorithm based on a vector quantization of a non-parametric model, etc., which is not limited in the embodiments of the present application. The speech recognition result may include at least one sentence information, which can be understood as the Chinese translation result corresponding to the speech emitted by the primary user, that is, the Chinese character string.

[0065] The technical solution in the embodiment of the present application, in response to a voice recognition start instruction, if it is detected that there is no user voice in the voice input data, the voice data is filled with a preset mark value until the voice recognition is completed, the user voice input data collected during the voice recognition process is obtained, and the user voice input data is recognized to obtain a voice recognition result; in the process of turning on the voice recognition function of the smart device, the above method can be used to fill the voice input data where there is no user voice through the mark value to ensure the accessibility of the voice recognition function, avoid the problem of the voice recognition function automatically shutting down when there is no user voice, and missing the key voice input by the user; at the same time, the above method is not limited to the time when the user inputs the voice in the process of turning on the voice recognition function of the smart device, and the usage scenario is relatively wide, and the voice input by the user at any time during the process of turning on the voice recognition function can be recognized, which solves the problem of not being able to recognize the non-timely voice commands input by the user.

[0066] In one embodiment, before determining that no user voice is detected in the voice input data, Figure 3 As shown, the above-mentioned speech recognition method may further include the following steps:

[0067] S300: Collect voice input data, and extract voice spectrum information from the voice input data.

[0068] In practical applications, since the voice input data may be mixed voice data, after the smart device responds to the voice recognition start instruction, it can collect the voice input data in real time, extract the main spectrum from the voice input data, and obtain the voice spectrum information. Optionally, the voice input data collected in real time can be the voice input data of the main user or the voice input data of a non-main user.

[0069] Among them, the method of extracting speech spectrum information from speech input data can be to pre-train an algorithm model, and then input the speech input data collected in real time into the algorithm model, and the algorithm model outputs the speech spectrum information corresponding to the speech input data.

[0070] Meanwhile, the method of extracting speech spectrum information from speech input data can also be to extract speech spectrum information from speech input data using spectrum extraction algorithm. Optionally, the spectrum extraction algorithm can include a specified frequency point spectrum analysis method, a fast Fourier transform algorithm and / or a cepstrum fundamental frequency extraction algorithm, etc.

[0071] S400: Detect whether there is user voice in the voice input data according to the voice spectrum information.

[0072] Specifically, the smart device can pre-train a speech detection model, and then input the speech spectrum information into the speech detection model, which outputs a detection result. Optionally, the detection result can be whether the user's speech exists in the speech input data corresponding to the speech spectrum information or not.

[0073] Optionally, the above-mentioned speech detection model can be a model composed of at least one of a convolutional neural network model, a recurrent neural network model, a multilayer perceptron neural network model, a recursive neural network model, a deep belief network model, a deep autoencoder and a generative adversarial network model.

[0074] The following is an explanation of the above process of detecting whether there is user voice in the voice input data based on the voice spectrum information. Figure 4 As shown, the steps in S400 above can be implemented by the following process:

[0075] S410: Match the speech spectrum information with a preset spectrum information library, wherein the preset spectrum information library includes user spectrum information obtained by extracting spectrum from speech data of different users.

[0076] It should be noted here that the smart device or third-party device can extract the spectrum of the voice data of different users to obtain user spectrum information, and generate a preset spectrum information library through the user spectrum information of different users. The preset spectrum information library can be stored locally or in the cloud, or in the memory of the smart device, and the storage location is not limited in this embodiment of the application.

[0077] Specifically, the smart device may match the voice spectrum information with the user spectrum information in a preset spectrum information library, that is, search the preset spectrum information library to see whether the user spectrum information that is consistent with the voice spectrum information exists.

[0078] S420: If the match is successful, it is determined that the user voice exists in the voice input data.

[0079] If the match is successful, it indicates that the voice input data is the voice input data of the primary user. At this time, it can be determined that at least the user voice of the primary user exists in the voice input data collected by the smart device.

[0080] S430: If the match is unsuccessful, determine that the user voice does not exist in the voice input data.

[0081] If the match is unsuccessful, it indicates that the voice input data is voice input data of a non-primary user. At this time, it can be determined that the user voice of the primary user does not exist in the voice input data collected by the smart device.

[0082] The technical solution in the embodiment of the present application collects voice input data and extracts voice spectrum information from the voice input data, and then matches the voice spectrum information with a preset spectrum information library. When the match is successful, it is determined that the user voice exists in the voice input data; when the match is unsuccessful, it is determined that the user voice does not exist in the voice input data, and the obtained matching result is used as reference information for filling in the voice data, so as to provide a strong guarantee for the accessibility of the voice recognition function.

[0083] In some scenarios, it is necessary not only to ensure the accessibility of the voice recognition function, but also to reduce the power consumption of the smart device during the voice recognition process. Based on this, the preset tag value can be set to a blank value. In one embodiment, the preset tag value includes a blank value; Figure 5 As shown, the step of filling voice data with a preset tag value in the above S100 can be implemented in the following manner:

[0084] S110: Obtain a storage location corresponding to the voice input data in the audio buffer.

[0085] The audio buffer may be all or part of the memory of the smart device. When the voice recognition function of the smart device is turned on, in order to recognize the voice of the main user, the voice input data of the main user may be stored in the audio buffer. However, in order to ensure the accessibility of the voice recognition function, the voice input data corresponding to the voice of the non-main user may be stored instead of the voice input data corresponding to the voice of the non-main user by a blank value. Therefore, before storing the blank value, it is necessary to determine the storage location corresponding to the voice input data corresponding to the voice of the non-main user at the current moment.

[0086] To facilitate subsequent voice recognition, during the process of starting the voice recognition function, the blank values ​​corresponding to the voice input data of the non-main user and the voice input data of the main user can be stored in the audio buffer according to the generation order of each frame of voice input data. Therefore, the storage position corresponding to the current non-main user's voice input data in the audio buffer can be obtained according to the generation order of each frame of voice input data.

[0087] S120: Fill the blank value into the storage location in the audio buffer.

[0088] Based on the storage position corresponding to the voice input data of the current non-primary user obtained in the above steps in the audio buffer, a blank value can be filled into the storage position in the audio buffer.

[0089] In practical applications, the smart device can collect each frame of voice input data in real time, and then store each frame of voice input data or a blank value corresponding to each frame of voice input data in an audio buffer.

[0090] In the embodiment of the present application, in order to facilitate the smart device to compress multiple consecutive blank values ​​and maintain the accessibility of the low-cost voice recognition function, the above blank value can be a value of 0.

[0091] In one embodiment, after the step in S120 is performed, Figure 6 As shown, the above method may further include the following steps:

[0092] S121. Acquire multiple consecutive blank values ​​in the voice input data in the audio buffer.

[0093] Specifically, when the smart device turns on the voice recognition function, the smart device can continuously collect multiple frames of voice input data from non-main users, and then store the blank values ​​(i.e., multiple consecutive blank values) corresponding to the multiple frames of voice input data from non-main users in the audio buffer. Correspondingly, multiple blank values ​​corresponding to the multiple frames of voice input data from non-main users can be obtained from the audio buffer.

[0094] S122. Perform compression encoding on multiple consecutive blank values.

[0095] Further, multiple consecutive blank values ​​can be compressed and encoded, and then the compressed encoding results of the multiple blank values ​​can be stored in the corresponding positions of the multiple consecutive blank values ​​in the audio buffer. Optionally, the above compression encoding can be understood as a process of compressing the encoding format of multiple blank values. For example, if multiple consecutive blank values ​​are 0000000000, the compressed encoding result obtained after compressing and encoding 10 0s can be expressed as 10×0 or [10, 0]. The embodiment of the present application does not limit the format of the compressed encoding result, as long as it is a compressed format.

[0096] The embodiment of the present application can compress and encode multiple consecutive blank values ​​in the audio buffer, which can not only save the voice data storage space in the audio buffer, but also save the transmission time and power consumption required when all the voice data in the audio buffer is sent to the cloud, and improve the data transmission efficiency.

[0097] The technical solution in the embodiment of the present application can obtain the storage position corresponding to the voice input data in the audio buffer, and fill the blank value into the storage position in the audio buffer; the method can first obtain the storage position corresponding to the voice input data of the non-main user in the audio buffer according to the generation order of the voice input data of the non-main user, and then store the blank value corresponding to the voice input data of the non-main user into the position. This process can not only ensure the accessibility of the voice recognition function and avoid the disconnection of the voice recognition function, but also store the corresponding blank value into the corresponding position in the audio buffer according to the generation order of the voice input data, and can also provide convenience for the subsequent voice input data of the main user, quickly perform voice recognition according to the storage order of the voice input data, and improve the speed and efficiency of voice recognition processing.

[0098] In some scenarios, after a user inputs a voice command to a smart device, the user needs to indirectly control the remote device through the smart device to respond and perform corresponding operations. Based on this, in one embodiment, the voice recognition method may further include: sending an operation request instruction to the remote device according to the voice recognition result. The operation request instruction is used to instruct the remote device to respond to the voice recognition result.

[0099] In practical applications, the smart device can communicate with the remote device, and the remote device can be a pan head or an electronic device supported by the pan head. Optionally, the pan head can be a common pan head, a hemispherical pan head or a global pan head, and the embodiment of the present application does not limit the type of the pan head; the types of the above electronic devices and the smart device can be the same or different, and the embodiment of the present application does not limit this.

[0100] Specifically, according to actual application requirements, the main user can input voice to the smart device. After the smart device collects the main user's voice input data, it instructs the cloud to recognize the main user's voice input data to obtain a voice recognition result. Furthermore, the smart device can obtain the voice recognition result generated by the cloud, and generate a corresponding operation request instruction based on the voice recognition result, and then send the operation request instruction to the remote device.

[0101] It should be noted here that if the remote device is a gimbal, the above-mentioned operation request instruction can be a rotation request instruction of the gimbal; if the remote device is an electronic device, and the electronic device is a camera, the above-mentioned operation request instruction can be a start request instruction for camera image shooting, and can also be a template selection request instruction for image shooting; if the electronic device is other types of devices, the above-mentioned operation request instruction can be a request instruction for the corresponding operation that can be implemented by the electronic device.

[0102] The technical solution in the embodiment of the present application sends an operation request instruction to the remote device according to the voice recognition result; the method can control the remote device to perform the corresponding operation according to the acquired voice recognition result, provides convenience for operating the remote device, and avoids the problem that the user has to go to the site to control the remote device to perform the corresponding operation.

[0103] In one embodiment, the present application also provides a speech recognition method, which includes the following process:

[0104] (1) In response to a speech recognition start instruction, speech input data is collected and speech spectrum information is extracted from the speech input data.

[0105] (2) Matching the speech spectrum information with a preset spectrum information library; the preset spectrum information library includes user spectrum information obtained by extracting spectrum from speech data of different users.

[0106] (3) If the match is successful, it is determined that the user voice exists in the voice input data; if the match is unsuccessful, it is determined that the user voice does not exist in the voice input data.

[0107] (4) If it is detected that there is no user voice in the voice input data, the storage location corresponding to the voice input data in the audio buffer is obtained, and the blank value is filled into the storage location in the audio buffer; wherein, multiple consecutive blank values ​​in the voice input data in the audio buffer are obtained, and the multiple consecutive blank values ​​are compressed and encoded.

[0108] (5) until the speech recognition is completed, obtaining the user's speech input data collected during the speech recognition process.

[0109] The end of speech recognition includes:

[0110] (51) If a voice recognition end instruction is received, it is determined that the voice recognition is ended; or, if no user input voice data is collected within a preset time period after the user voice input data is collected, it is determined that the voice recognition is ended.

[0111] (6) Recognize the user's voice input data and obtain the voice recognition result.

[0112] (7) Sending an operation request instruction to the remote device according to the speech recognition result; the operation request instruction is used to instruct the remote device to respond to the speech recognition result.

[0113] The execution process of the above (1) to (7) can be specifically referred to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0114] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0115] Based on the same inventive concept, the embodiment of the present application also provides a speech recognition device for implementing the speech recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more speech recognition device embodiments provided below can refer to the limitations on the speech recognition method above, and will not be repeated here.

[0116] In one embodiment, Figure 7 This is a schematic diagram of the structure of a speech recognition device in one embodiment of the present application. The speech recognition device provided in the embodiment of the present application can be applied to smart devices. Figure 7 As shown, the speech recognition device of the embodiment of the present application may include: an acquisition module 11 and a recognition module 12, wherein:

[0117] The acquisition module 11 is used to respond to the speech recognition start instruction, if it is detected that there is no user voice in the speech input data, fill the speech data with a preset mark value until the speech recognition is completed, and obtain the user speech input data collected during the speech recognition process;

[0118] The recognition module 12 is used to recognize the user's voice input data and obtain a voice recognition result.

[0119] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0120] In one embodiment, the speech recognition device further includes: a speech data acquisition module and a speech detection module, wherein:

[0121] A voice data acquisition module is used to collect voice input data and extract voice spectrum information from the voice input data;

[0122] The voice detection module is used to detect whether there is user voice in the voice input data based on the voice spectrum information.

[0123] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0124] In one embodiment, the speech detection module includes: a matching unit, a first determination unit and a second determination unit, wherein:

[0125] A matching unit, used to match the voice spectrum information with a preset spectrum information library; the preset spectrum information library includes user spectrum information obtained by extracting spectrum from voice data of different users;

[0126] A first determining unit, configured to determine whether the user voice exists in the voice input data when the result of the matching unit is a successful match;

[0127] The second determining unit is configured to determine that the user voice does not exist in the voice input data when the result of the matching unit is that the match is unsuccessful.

[0128] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0129] In one embodiment, the preset tag value includes a blank value; the acquisition module 11 includes: a storage location acquisition unit and a filling unit, wherein:

[0130] A storage location acquisition unit, used to acquire the storage location corresponding to the voice input data in the audio buffer;

[0131] A padding unit is used to fill empty values ​​into storage locations within the audio buffer.

[0132] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0133] In one embodiment, the acquisition module 11 further includes: a blank value acquisition unit and a compression encoding unit, wherein:

[0134] A blank value acquisition unit, used to acquire a plurality of consecutive blank values ​​in the voice input data in the audio buffer;

[0135] The compression coding unit is used to compress and encode multiple consecutive blank values.

[0136] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0137] In one embodiment, the acquisition module 11 is specifically used for:

[0138] If a voice recognition end instruction is received, then it is determined that the voice recognition is ended; or,

[0139] If no user input voice data is collected within a preset time period after the user voice input data is collected, it is determined that the voice recognition is terminated.

[0140] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0141] In one embodiment, the speech recognition device further comprises: a request instruction sending module, wherein:

[0142] The request instruction sending module is used to send an operation request instruction to the remote device according to the voice recognition result; the operation request instruction is used to instruct the remote device to respond to the voice recognition result.

[0143] The speech recognition device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned speech recognition method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0144] For the specific definition of the speech recognition device, please refer to the definition of the speech recognition method above, which will not be repeated here. Each module in the above-mentioned speech recognition device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the smart device in the form of hardware, or can be stored in the memory of the smart device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0145] In one embodiment, a smart device is provided, the internal structure diagram of the smart device can be as follows: Figure 8As shown. The smart device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the smart device is used to provide processing capabilities. The memory of the smart device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the smart device is used to store a preset spectrum information library. The network interface of the smart device is used to communicate with an external endpoint through a network connection. When the computer program is executed by the processor, a speech recognition method is implemented.

[0146] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the smart device to which the solution of the present application is applied. A specific smart device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0147] In one embodiment, a smart device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0148] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0149] Recognize the user's voice input data to obtain a voice recognition result.

[0150] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0151] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0152] Recognize the user's voice input data to obtain a voice recognition result.

[0153] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0154] In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained;

[0155] Recognize the user's voice input data to obtain a voice recognition result.

[0156] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0157] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0158] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A speech recognition method, characterized in that: The method comprises: In response to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, the speech data is filled with a preset tag value until the speech recognition is completed, and the user speech input data collected during the speech recognition process is obtained; The user voice input data is recognized to obtain a voice recognition result.

2. The method according to claim 1, characterized in that: The method further comprises: Collecting the speech input data, and extracting speech spectrum information from the speech input data; According to the voice spectrum information, it is detected whether there is user voice in the voice input data.

3. The method according to claim 2, characterized in that The detecting, according to the voice spectrum information, whether there is user voice in the voice input data comprises: Matching the voice spectrum information with a preset spectrum information library; the preset spectrum information library includes user spectrum information obtained by extracting spectrum from voice data of different users; If the match is successful, determining that the user voice exists in the voice input data; If the match is unsuccessful, it is determined that the user voice does not exist in the voice input data.

4. The method according to any one of claims 1 to 3, characterized in that The preset tag value includes a blank value; and the filling of voice data with the preset tag value includes: Obtaining a storage location corresponding to the voice input data in the audio buffer; The blank values ​​are filled into storage locations within the audio buffer.

5. The method according to claim 4, characterized in that The method further comprises: Acquire a plurality of consecutive blank values ​​in the voice input data in the audio buffer; The plurality of consecutive blank values ​​are compressed and encoded.

6. The method according to any one of claims 1 to 3, characterized in that The end of the speech recognition includes: If a voice recognition end instruction is received, determining that the voice recognition is ended; or, If no user input voice data is collected within a preset time period after the user voice input data is collected, it is determined that the voice recognition is terminated.

7. The method according to any one of claims 1 to 3, characterized in that The method further comprises: An operation request instruction is sent to a remote device according to the speech recognition result; the operation request instruction is used to instruct the remote device to respond to the speech recognition result.

8. A speech recognition device, characterized in that: The device comprises: An acquisition module, for responding to a speech recognition start instruction, if it is detected that there is no user speech in the speech input data, filling the speech data with a preset tag value until the speech recognition is completed, and acquiring the user speech input data collected during the speech recognition process; The recognition module is used to recognize the user's voice input data to obtain a voice recognition result.

9. An intelligent device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.