Voice recognition device and sound pickup device

By combining the CPU and NPU to deploy a local speech recognition model in the recording pen, and utilizing the powerful computing power of the NPU for offline recognition, the existing technology problems of low efficiency of recording pen conversion to text and cloud recognition delay security risks are solved, achieving high efficiency ,Reliable local speech recognition.

CN113611296BActive Publication Date: 2024-09-03TIANJIN XUNFEI JIZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110963369.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-20
Publication Date
2024-09-03
Estimated Expiration
2041-08-20

AI Technical Summary

Technical Problem

Existing voice recorders are inefficient when converting sounds into text, and rely on cloud recognition to cause network transmission delays and security risks.

Method used

Using a combination of the central processing unit CPU and the embedded neural network processor NPU, the local speech recognition model is deployed for offline recognition, the powerful computing power of the NPU is used for speech recognition, and the acoustic and generative models are combined to fuse to generate the final speech recognition result. , to avoid network transmission.

Benefits of technology

It achieves efficient and reliable local offline speech recognition, improves recognition efficiency and security, reduces network delay, and optimizes user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113611296B
    Figure CN113611296B
Patent Text Reader

Abstract

The present invention provides a speech recognition device and a sound pickup device, wherein the speech recognition device includes a CPU and an NPU, the CPU and the NPU are connected in communication, a speech recognition model is loaded on the NPU, and the speech recognition model is obtained by training based on sample audio and recognition text of the sample audio; the CPU is used to determine the audio to be recognized; the NPU is used to run the speech recognition model, determine the speech recognition result of the audio to be recognized, and transmit the speech recognition result to the CPU. The speech recognition device and the sound pickup device provided by the present invention, combined with the powerful computing power of the NPU, deploy a local speech recognition model in the speech recognition device, and perform offline speech recognition on the audio to be recognized based on the speech recognition model, thereby realizing local offline recognition with high reliability and high recognition efficiency. Local offline recognition does not need to rely on the network, the data is more secure, and there is no delay problem caused by network transmission. The recognition display is more timely and smooth, which helps to optimize the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a speech recognition device and a sound pickup device. Background Art

[0002] Voice recorders are widely used in meetings, speech recording, interviews, classrooms and other occasions due to their advantages such as portability and simple operation.

[0003] However, the mainstream voice recorders on the market are traditional voice recorders, which focus on recording itself. After recording, users need to organize the sound into text, which is inefficient and requires a lot of repetitive work. In addition, some voice recorders rely on network engines for recognition after exporting the recording files, which is complicated, has a poor experience, and has high security risks. Summary of the invention

[0004] The invention provides a speech recognition device and a sound pickup device, which are used to solve the problem of low recognition efficiency in the prior art.

[0005] The present invention provides a speech recognition device, comprising a central processing unit (CPU) and an embedded neural network processor (NPU), wherein the CPU and the NPU are in communication connection, and a speech recognition model is loaded on the NPU, wherein the speech recognition model is obtained by training based on sample audio and recognition text of the sample audio;

[0006] The CPU is used to determine the audio to be recognized;

[0007] The NPU is used to run the speech recognition model, determine the speech recognition result of the audio to be recognized, and transmit the speech recognition result to the CPU.

[0008] According to a speech recognition device provided by the present invention, the NPU is specifically used for:

[0009] The acoustic model in the speech recognition model is run to determine the acoustic features of the audio to be recognized, and the acoustic speech recognition result of the audio to be recognized is determined based on the acoustic features, wherein the acoustic model is obtained by performing knowledge distillation on the cloud acoustic model.

[0010] According to a speech recognition device provided by the present invention, the NPU is further used for:

[0011] The decoding model in the speech recognition model is run to decode the acoustic features to obtain a generative speech recognition result of the audio to be recognized.

[0012] According to a speech recognition device provided by the present invention, the NPU is further used for:

[0013] The acoustic speech recognition result and the generative speech recognition result are fused to generate a speech recognition text, and the speech recognition text is transmitted to the CPU as the speech recognition result.

[0014] According to a speech recognition device provided by the present invention, the NPU is further used for:

[0015] transmitting the acoustic speech recognition result and the generative speech recognition result to the CPU respectively;

[0016] The CPU is also used for:

[0017] The acoustic speech recognition result and the generative speech recognition result are fused to generate a speech recognition result.

[0018] According to a speech recognition device provided by the present invention, the CPU is further used to: determine the computing resources of the speech recognition model based on at least one of the energy consumption state of the device, the heating state of the device and the data specification of the audio to be recognized;

[0019] The NPU is specifically used to: call the computing resources to run the speech recognition model, determine the speech recognition result of the audio to be recognized, and transmit the speech recognition result to the CPU.

[0020] A speech recognition device according to the present invention further includes a storage unit, wherein the storage unit is used to store the audio to be recognized;

[0021] The CPU is further configured to determine a data specification of the audio to be identified based on a data volume of the audio to be identified and a storage volume of the storage unit.

[0022] According to a speech recognition device provided by the present invention, the CPU is specifically used for:

[0023] It is determined that the source of the initial audio is a microphone array connected to the CPU, and the initial audio is subjected to microphone array noise reduction to obtain the audio to be recognized.

[0024] According to a speech recognition device provided by the present invention, the CPU and the NPU are integrated on the same chip.

[0025] The present invention also provides a sound pickup device, comprising:

[0026] main housing;

[0027] A pickup, the pickup being mounted on the main housing;

[0028] A speech recognition device is electrically connected to the microphone.

[0029] The speech recognition device and sound pickup device provided by the present invention, combined with the powerful computing power of the embedded neural network processor, deploy a local speech recognition model in the speech recognition device, and perform offline speech recognition on the audio to be recognized based on the speech recognition model, thereby realizing local offline recognition with high reliability and high recognition efficiency. Local offline recognition does not need to rely on the network, the data is more secure, and there is no delay problem caused by network transmission. The recognition display is more timely and smooth, which helps to optimize the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 It is one of the structural schematic diagrams of the speech recognition device provided by the present invention;

[0032] Figure 2 This is the second structural diagram of the speech recognition device provided by the present invention;

[0033] Figure 3 This is the third structural diagram of the speech recognition device provided by the present invention;

[0034] Figure 4 This is the fourth structural diagram of the speech recognition device provided by the present invention;

[0035] Figure 5 It is one of the structural schematic diagrams of the sound pickup device provided by the present invention;

[0036] Figure 6 This is the second structural schematic diagram of the sound pickup device provided by the present invention;

[0037] Reference numerals:

[0038] 1-CPU; 2-NPU; 21-Acoustic model;

[0039] 22-decoding model; 3-omnidirectional microphone array; 4-directional microphone array;

[0040] 5- Microphone acquisition system; 6- Power management unit; 7- Button array;

[0041] 8-touch unit; 9-display unit; 10-main housing;

[0042] 11-pickup; 12-speech recognition device; 71-volume key;

[0043] 72-Power button; 73-Recording button; 74-Navigation button;

[0044] 75-Type-C interface. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] At present, the mainstream voice recorders on the market are traditional voice recorders. The functions of traditional voice recorders are limited to the recording level. If you want to convert sound into text, you need to manually convert the recorded audio file into text after the recording is completed. Obviously, this traditional voice recorder with only a single function limits the flexibility of users when using it, which not only leads to inefficient use, but also causes additional repetitive work, which consumes a lot of users' time and energy.

[0047] In addition, there is a voice recorder with voice recognition function on the market. The voice recognition function in this voice recorder is realized by first exporting the recorded audio file, and then uploading the exported audio file to the cloud, and realizing the voice recognition function by the cloud. Compared with the method of manual voice recognition, this voice recognition method saves the user's time and energy to a certain extent, but the process of voice recognition is still relatively cumbersome. Relying on the voice recognition in the cloud, it is inevitable to apply the audio file to the network for transmission. The transmission rate is closely related to the state of the network. In the case of weak network or no network, the file transmission rate will be seriously affected. The delay of file transmission will cause the voice recognition result to be unable to be obtained in time, affecting the user's experience. In addition, in the process of uploading audio files to the cloud, there may be a risk of leaking user information, and data security cannot be fundamentally guaranteed.

[0048] In view of the above situation, the present invention provides a speech recognition device, which is intended to realize offline speech recognition. The speech recognition device here can be understood as a speech recognition processing device, and the speech recognition device can be set inside any smart device with speech recognition function, and the smart device here can be a voice recorder, a smart phone, a smart bracelet, etc.

[0049] Figure 1 is one of the structural diagrams of the speech recognition device provided by the present invention, such as Figure 1As shown, the device includes a central processing unit CPU1 and an embedded neural network processor NPU2, CPU1 and NPU2 are in communication connection, a speech recognition model is loaded on NPU2, and the speech recognition model is trained based on sample audio and recognition text of the sample audio;

[0050] CPU1 is used to determine the audio to be recognized;

[0051] NPU2 is used to run the speech recognition model, determine the speech recognition result of the audio to be recognized, and transmit the speech recognition result to CPU1.

[0052] Specifically, the speech recognition device provided by the embodiment of the present invention is not only equipped with a central processing unit CPU1 (Central Processing Unit) but also with NPU2. CPU1 and NPU2 can be set on the same chip inside the speech recognition device, or on two chips inside the speech recognition device, and are connected to each other through a communication bus. In addition, CPU1 and NPU2 can also share the same storage unit, and one party can write the data to be shared into the storage unit to facilitate the other party to read it at any time.

[0053] Specifically, when executing the voice recognition function, the audio to be recognized can be collected by a sound pickup device such as a microphone. Here, the sound pickup device can be installed in the same voice recognition device as the CPU and NPU, or can be set independently, and the collected audio to be recognized can be transmitted to the voice recognition device through a wired connection or a wireless transmission method. For example, a storage unit can be set inside the voice recognition device to store the audio to be recognized recorded by the voice recognition device itself or received from the outside.

[0054] Considering that traditional voice recorders focus on recording itself, users need to organize the sound into text after recording, which is inefficient and has a large amount of repetitive work. In addition, although some voice recorders rely on network engines for recognition after exporting the recording files, the operation steps are complicated and the security risks are also high. In response to this problem, the embodiment of the present invention uses a combination of CPU+NPU added inside the voice recognition device. Through CPU1, the audio to be recognized collected by the sound pickup device is forwarded to NPU2 inside the same device, and NPU2 directly undertakes the voice recognition task of the audio to be recognized, thereby realizing the offline voice recognition function and improving the recognition efficiency. Here, the forwarding of the audio to be recognized from CPU1 to NPU2 can be data transmission between CPU1 and NPU2 through the communication bus, or it can be that CPU1 writes the audio to be recognized into the shared address of the internal storage unit of the device, and NPU2 reads the audio to be recognized from the storage unit through the shared address. The embodiment of the present invention does not make specific limitations on this.

[0055] It should be noted that, limited by the computing power of the CPU set inside the speech recognition device, the traditional speech recognition model is difficult to be directly deployed on the CPU inside the device. Therefore, how to realize offline speech recognition on the device side has always been a difficulty in the field of speech recognition. Even if the scale of the speech recognition model is greatly reduced and the speech recognition model is barely deployed directly on the CPU inside the device, the reliability and accuracy of the offline speech recognition text will still be limited by the performance of the speech recognition model itself and the computing power of the CPU. In response to this problem, the embodiment of the present invention fully utilizes the computing and processing advantages of NPU2 itself for the neural network structure. When the NPU2 installed inside the speech recognition device is used to perform offline speech recognition on the audio to be recognized, the speech recognition model deployed on NPU2 is specifically based on the real-time offline recognition of the audio to be recognized. The recognition result can be obtained without relying on the network and uploading to the cloud. It has strong confidentiality, high security factor, and stronger real-time performance.

[0056] Since NPU2 itself has strong computing power and can undertake the acceleration work of neural network algorithms, the speech recognition model deployed on NPU2 can be a high-complexity and high-precision speech recognition model without considering the limitations of local computing power. While applying the powerful computing power of NPU2 to improve the accuracy, reliability and recognition efficiency of offline recognition, the property of NPU2 being set inside the speech recognition device omits the network transmission process that is necessary for online speech recognition, further ensuring the smoothness of the recognition process and improving the user experience.

[0057] Among them, the speech recognition model can be deployed on NPU 2 after training is completed. The speech recognition model here can be a speech recognition model originally deployed in the cloud, or it can be obtained by adjusting the speech recognition model originally deployed in the cloud. Specifically, the speech recognition model can be trained in the following way: first, a large amount of sample audio is collected, and the recognition text corresponding to the sample audio is marked. Then, the initial model is trained based on the sample audio and the recognition text corresponding to the sample audio to obtain the speech recognition model.

[0058] After obtaining the speech recognition result, NPU 2 can return the speech recognition result to CPU 1, and CPU 1 can store, display and other operations on the speech recognition result to facilitate users to view and edit it in real time. It should be noted that, unlike some existing voice recorders, which usually require users to wait for a while to obtain the speech recognition result after the recording is completed due to the time required for network transmission, the CPU 1 and NPU 2 inside the device in the embodiment of the present invention can be directly connected, so the speech recognition result can be displayed after real-time recognition. Users can view the speech recognition result in real time during the recording process, so that users can obtain the speech recognition result in time. When errors occur in the speech recognition result, users can also make corrections in time.

[0059] The device provided by the embodiment of the present invention, combined with the powerful computing power of the embedded neural network processor, deploys a local speech recognition model in the speech recognition device, and performs offline speech recognition on the audio to be recognized based on the speech recognition model, thereby realizing local offline recognition with high reliability and high recognition efficiency. Local offline recognition does not need to rely on the network, the data is more secure, and there is no delay problem caused by network transmission. The recognition display is more timely and smooth, which helps to optimize the user experience.

[0060] Specifically, when implementing local offline recognition, it is necessary to reduce the model size of the speech recognition model deployed on the NPU compared to the speech recognition model deployed in the cloud, thereby reducing the computational pressure of performing offline speech recognition.

[0061] Based on the above embodiment, the NPU is specifically used for:

[0062] Run the acoustic model in the speech recognition model to determine the acoustic features of the audio to be recognized, and determine the acoustic speech recognition results of the audio to be recognized based on the acoustic features. The acoustic model is obtained by knowledge distillation of the cloud acoustic model.

[0063] Specifically, the speech recognition model deployed on the NPU includes an acoustic model. During the offline speech recognition process, the acoustic model can encode the input audio to be recognized, thereby obtaining the acoustic features of the audio to be recognized, and determine the acoustic speech recognition result of the audio to be recognized based on the acoustic features of the audio to be recognized. The acoustic speech recognition result here is determined based on the acoustic features output by the acoustic model, that is, the acoustic speech recognition result is the result obtained by performing traditional speech recognition at the acoustic level.

[0064] However, considering the large scale of traditional acoustic models, directly deploying them on the NPU will bring challenges to the battery life and heat dissipation performance of the speech recognition device itself. Therefore, in the embodiment of the present invention, it is proposed to perform knowledge distillation on the cloud acoustic model, and deploy the acoustic model after knowledge distillation on the NPU as a speech recognition model or as part of the speech recognition model.

[0065] Here, the cloud acoustic model is an acoustic model with a larger model scale, more complexity, and better task execution effect compared to the acoustic model actually deployed on the local NPU. Specifically, it can be an acoustic model originally deployed on the cloud. In order to deploy a smaller acoustic model locally, the idea of ​​the teacher-student network can be used to transfer knowledge. The knowledge transfer here refers to the transfer of knowledge from the teacher model to the student model, thereby improving the network performance of the student model. The teacher model is the cloud acoustic model, and the student model is the acoustic model finally deployed on the local NPU. The process of knowledge transfer is knowledge distillation. The acoustic model obtained by distillation training of the cloud acoustic model has performance closer to that of the cloud acoustic model, and the model scale is much smaller than that of the cloud acoustic model, which can effectively reduce the pressure of offline speech recognition on the battery life and heat dissipation of the speech recognition device.

[0066] The device provided by the embodiment of the present invention deploys the acoustic model obtained by knowledge distillation on the NPU, thereby ensuring the quality of offline speech recognition while effectively reducing the pressure caused by offline speech recognition on the battery life and heat dissipation of the speech recognition device.

[0067] Based on any of the above embodiments, the acoustic model in the speech recognition model can be trained based on the following steps:

[0068] First, a large amount of sample audio is collected and data processed to obtain the sample acoustic features of the sample audio and the sample recognition text of the sample audio, and the cloud acoustic model is obtained. The cloud acoustic model can be trained based on the sample audio and the sample recognition text of the sample audio, or it can be directly obtained from the acoustic model originally deployed in the cloud. Subsequently, based on the sample audio and the probability distribution of the teacher acoustic features output by the cloud acoustic model for the sample audio, the cloud acoustic model is distilled and trained to obtain a trained acoustic model.

[0069] On this basis, the training steps of the acoustic model in the speech recognition model can be specifically expressed as:

[0070] First, the sample audio is input into the cloud acoustic model, which analyzes the input sample audio and outputs the acoustic feature probability distribution of the sample audio, which is recorded as the teacher acoustic feature probability distribution. At the same time, the sample audio is input into the acoustic model in the training phase, which analyzes the sample audio and outputs the acoustic feature probability distribution of the sample audio, which is recorded as the student acoustic feature probability distribution. Here, the teacher acoustic feature probability distribution and the student acoustic feature probability distribution are both used to reflect the probability or score of each audio frame in the sample audio belonging to various acoustic states.

[0071] After obtaining the acoustic feature probability distribution for the same sample audio based on the original acoustic model and the acoustic model, the distillation loss value of the acoustic model training can be determined by combining the gap between the acoustic feature probability distribution of the teacher and the acoustic feature probability distribution of the student. For example, the distillation loss value can be expressed using the KLD (Kullback-Leibler Distance, cross entropy distance) criterion.

[0072] Thereafter, the obtained distillation loss value can be applied to the acoustic model in the training phase, that is, the parameters of the acoustic model in the training phase are adjusted to obtain the acoustic model.

[0073] In the embodiment of the present invention, through knowledge distillation, the effect of implementing offline speech recognition through the acoustic model is improved while ensuring that the computational complexity and model scale of the acoustic model itself in the speech recognition model are as small as possible.

[0074] On this basis, considering that smart devices may face various complex scenarios during actual use, such as excessive noise, multi-person meetings, narration, mixed language speech, etc., in such scenarios, the quality of the recorded audio to be recognized is low. If speech recognition is performed only at the acoustic level, a large number of errors will occur in the recognized text. Therefore, the embodiment of the present invention proposes an end-to-end speech recognition method based on speech recognition at the acoustic level. Based on any of the above embodiments, the NPU is also specifically used for:

[0075] Run the decoding model in the speech recognition model to decode the acoustic features and obtain the generative speech recognition results of the audio to be recognized.

[0076] Specifically, the speech recognition model deployed on the NPU also includes a decoding model. During the offline speech recognition process, the acoustic model can encode the input audio to be recognized, thereby obtaining the acoustic features of the audio to be recognized. The decoding model decodes the acoustic features of the audio to be recognized output by the acoustic model, thereby obtaining and outputting the generative speech recognition results of the audio to be recognized. The generative speech recognition results here are determined based on the acoustic model and the decoding model. The combination of the acoustic model and the decoding model can be regarded as an end-to-end encoding and decoding model, in which the acoustic model serves as an encoder and the decoding model serves as a decoder, that is, the generative speech recognition results are the results of speech recognition based on the end-to-end encoding and decoding model.

[0077] Therefore, the speech recognition model deployed on the NPU can obtain two types of speech recognition results, one is the acoustic speech recognition result obtained by performing speech recognition at the acoustic level, and the other is the generative speech recognition result obtained by performing speech recognition using an end-to-end encoding and decoding model. The NPU can return both of the above two types of speech recognition results to the CPU, and the CPU can control the two types of speech recognition results to be displayed synchronously so that the user can determine a more accurate speech recognition result; or the NPU can also return only the speech recognition result corresponding to the speech recognition mode to the CPU according to the speech recognition mode pre-set by the user, such as the acoustic mode or the generative mode; or, the NPU can also merge the acoustic speech recognition result and the generative speech recognition result into the final speech recognition result and return it to the CPU, which is not specifically limited in the embodiments of the present invention.

[0078] In the embodiment of the present invention, by setting a combination of an acoustic model and a decoding model in a speech recognition model, end-to-end offline speech recognition is implemented locally in a speech recognition device, which helps to improve the reliability and accuracy of offline speech recognition.

[0079] Based on any of the above embodiments, in the speech recognition model deployed in the NPU, an acoustic speech recognition result can be output based on the acoustic model, and a generative speech recognition result can be output based on the acoustic model and the decoding model. The two speech recognition results can be fused inside the NPU. Figure 2 FIG. 2 is a second structural diagram of the speech recognition device provided by the present invention. Figure 2 As shown, NPU is also used for:

[0080] The acoustic speech recognition result and the generative speech recognition result are fused to generate speech recognition text, which is then transmitted to the CPU as the speech recognition result.

[0081] Specifically, Figure 2In the figure, the acoustic model in the speech recognition model is recorded as 21, and the decoding model is recorded as 22. After the acoustic speech recognition result is output based on the acoustic model, and the generative speech recognition result is output based on the acoustic model and the decoding model, the acoustic speech recognition result and the generative speech recognition result can be fused inside the NPU to generate the final speech recognition text. Here, the fusion of the acoustic speech recognition result and the generative speech recognition result can be achieved by pre-set rules. For example, weights can be set for the acoustic speech recognition result and the generative speech recognition result in advance according to the credibility of the acoustic speech recognition result and the generative speech recognition result, so as to perform weighted summation on the acoustic speech recognition result and the generative speech recognition result to achieve the fusion of the two. In addition, a text error correction model can be added to the speech recognition model, and the acoustic speech recognition result and the generative speech recognition result are used as two inputs of the text error correction model. The text error correction model generates a new text as a speech recognition text based on the existing acoustic speech recognition result and the generative speech recognition result. The embodiment of the present invention does not specifically limit this.

[0082] In an embodiment of the present invention, the final speech recognition result is obtained by fusing the acoustic speech recognition result output by the acoustic model and the generative speech recognition result output by the decoding model. This takes into account the advantages of both the traditional speech transcription idea based on the acoustic level and the end-to-end speech transcription idea, and can effectively improve the offline speech transcription effect and the accuracy of offline speech transcription.

[0083] Based on any of the above embodiments, in the speech recognition model deployed in the NPU, an acoustic speech recognition result can be output based on the acoustic model, and a generative speech recognition result can be output based on the acoustic model and the decoding model. The two speech recognition results can be fused inside the CPU. Figure 3 3 is a schematic diagram of the structure of the speech recognition device provided by the present invention. Figure 3 As shown, NPU is also used for:

[0084] The acoustic speech recognition result and the generative speech recognition result are transmitted to the CPU respectively;

[0085] The CPU is also used to:

[0086] The acoustic speech recognition results and the generative speech recognition results are fused to generate the speech recognition results.

[0087] Specifically, in an embodiment of the present invention, the task of fusing the acoustic speech recognition results and the generative speech recognition results is no longer completed by the NPU. The NPU only needs to transmit both the acoustic speech recognition results and the generative speech recognition results as speech recognition results to the CPU after obtaining them.

[0088] After receiving the acoustic speech recognition result and the generative speech recognition result, the CPU fuses the two to obtain the final speech recognition result. Here, the fusion of the acoustic speech recognition result and the generative speech recognition result can also be achieved through pre-set rules. For example, weights can be set for the acoustic speech recognition result and the generative speech recognition result in advance according to the credibility of the acoustic speech recognition result and the generative speech recognition result, so as to perform weighted summation on the acoustic speech recognition result and the generative speech recognition result to achieve the fusion of the two. In addition, a text error correction model can be added to the speech recognition model, and the acoustic speech recognition result and the generative speech recognition result are used as two inputs of the text error correction model. The text error correction model generates new text as a speech recognition text based on the existing acoustic speech recognition result and the generative speech recognition result. The embodiment of the present invention does not specifically limit this.

[0089] It should be noted that, in the above two embodiments, one is to fuse the two voice recognition results inside the NPU, and the other is to fuse the two voice recognition results inside the CPU. Specifically, when the two voice recognition results are fused inside the NPU, the powerful computing power of the NPU itself can be used to reduce the power consumption of the voice recognition device. When the two voice recognition results are fused inside the CPU, the CPU can obtain the acoustic voice recognition result, the generative voice recognition result, and the voice recognition text of the fusion of the two. All three voice recognition results can be provided to the user, which increases the options for the user to modify the voice recognition results, which helps to optimize the user experience.

[0090] Combining the two speech recognition results to obtain the final speech recognition text aims to overcome the problem of low accuracy of recognition results obtained in traditional solutions and improve the accuracy of offline speech recognition.

[0091] Based on any of the above embodiments, the CPU is further used to: determine the computing resources of the speech recognition model based on at least one of the energy consumption state of the device, the heating state of the device, and the data specification of the audio to be recognized;

[0092] The NPU is specifically used to: call computing resources to run the speech recognition model, determine the speech recognition results of the audio to be recognized, and transmit the speech recognition results to the CPU.

[0093] Specifically, considering that the high power consumption of the NPU may cause the speech recognition device to overheat or have poor battery life, the CPU can select computing resources configured for the speech recognition model from the NPU's computing resources based on any one or more combinations of the current device energy consumption status, device heating status, and data specifications of the audio to be recognized. Subsequently, the NPU calls the configured computing resources to run the speech transcription model and performs offline speech recognition on the audio to be recognized, thereby balancing the relationship between speech recognition efficiency, power consumption, and heat generation.

[0094] Here, the device energy consumption status can reflect the current working status of the voice recognition device or the intelligent device where the voice recognition device is located, such as the remaining power, the estimated sustainable working time, etc. When allocating computing resources to the voice recognition model, the device energy consumption status can be referred to. For example, when the device has sufficient power, more computing resources can be allocated to the voice recognition model to improve the offline voice recognition efficiency. When the device has insufficient power, it is necessary to prioritize the operation of the device, and fewer computing resources can be allocated to the voice recognition model to achieve the function of saving energy.

[0095] The device heating status can reflect the current temperature status of the voice recognition device or the intelligent device where the voice recognition device is located, such as the current temperature, whether there is overheating, etc. When allocating computing resources to the voice recognition model, the device heating status can be referred to. For example, in the case of obvious overheating, continuously allocating more computing resources to the voice recognition model may cause the device temperature to continue to rise, and even affect the normal operation of the voice recognition device. At this time, the computing resources can be reduced to alleviate the overheating problem.

[0096] The data specifications of the audio to be recognized can reflect the amount of computing resources currently required. When allocating computing resources to the speech recognition model, the data specifications of the audio to be recognized can be referred to. For example, when the data specifications are small, fewer computing resources are allocated to the speech recognition model to avoid wasting computing resources. When the data specifications are large, more computing resources are allocated to the speech recognition model to ensure the timeliness of the speech recognition task.

[0097] The most suitable computing resources for the NPU at present can be inferred based on any one or more combinations of the above-mentioned device energy consumption status, device heating status and data specifications of the voice data stream.

[0098] Furthermore, if the computing resources for speech recognition are determined based on a combination of multiple of the three determination indicators: device energy consumption status, device heating status, and data specifications, the CPU can set corresponding weights for each determination indicator according to its importance to offline speech recognition, and then determine the most suitable computing resources for speech recognition at the moment based on the weights corresponding to each determination indicator.

[0099] In an embodiment of the present invention, the most suitable computing resources are determined based on any one or more combinations of the device energy consumption status, the device heating status, and the data specifications of the voice data stream, thereby realizing real-time dynamic adjustment of the computing resources, thereby effectively reducing the overall power consumption and alleviating the problems of heating and poor battery life.

[0100] Based on any of the above embodiments, the speech recognition device further includes a storage unit, the storage unit being used to store the audio to be recognized;

[0101] The CPU is further configured to determine the data specifications of the audio to be recognized based on the data volume of the audio to be recognized and the storage volume of the storage unit.

[0102] Specifically, a storage unit may be provided in the speech recognition device for storing audio to be recognized, and the storage capacity of the storage unit itself reflects the total amount of audio that can be recognized by the speech recognition device. The data volume of the audio to be recognized stored in the storage unit and the storage capacity of the storage unit can reflect the data rule of the audio to be recognized by the speech recognition device, for example, it can be reflected as the proportion of the data volume of the audio to be recognized in the storage capacity of the storage unit.

[0103] Further, assuming that m is the amount of audio data to be recognized stored in the storage unit, and M is the storage capacity of the storage unit, the data specification can be expressed as m / M, and the computing resources configured for the speech recognition model can be expressed as a formula with m / M as one of the independent variables, for example, it can be:

[0104]

[0105] Where n represents the configured computing resources, N represents the total computing resources of the NPU, and a represents the adjustment coefficient. Based on the above formula, when the amount of data of the audio to be recognized stored in the storage unit is the largest, the computing resources configured to the speech recognition model are the largest, which is N; when the amount of data of the audio to be recognized stored in the storage unit is 0, the computing resources configured to the speech recognition model are the smallest. By dynamically allocating computing resources to the speech recognition model through the data specifications of the audio to be recognized, the overall power consumption of the speech recognition device can be effectively reduced, alleviating the problems of severe heating and poor battery life.

[0106] Based on any of the above embodiments, in the speech recognition device, the CPU is specifically used for:

[0107] It is determined that the source of the initial audio is a microphone array connected to the CPU, and the initial audio is subjected to microphone array noise reduction to obtain audio to be recognized.

[0108] Specifically, in the speech recognition device, the CPU can be connected to a microphone array, where the microphone array may include multiple omnidirectional microphones, multiple directional microphones, or a combination of multiple omnidirectional microphones and directional microphones, which is not specifically limited in the embodiment of the present invention.

[0109] Considering that the speech recognition device can record audio through a microphone array connected to the CPU, or can receive other types of pickups, such as audio recorded by a single microphone, therefore, when the CPU receives the recorded audio, i.e., the initial audio, it can first determine the source of the initial audio, i.e., whether the initial audio is recorded by the microphone array.

[0110] If the initial audio is recorded through a microphone array, the CPU can perform noise reduction on the initial audio based on the microphone array noise reduction technology, and use the initial audio after noise reduction as the audio to be recognized for speech recognition. The microphone array noise reduction technology here can specifically be microphone array noise reduction based on adaptive beamforming, or microphone array noise reduction based on fixed beamforming, etc., and the embodiments of the present invention do not specifically limit this.

[0111] In addition, if the initial audio is not recorded through a microphone array, the CPU can also perform noise reduction on the initial audio based on other types of noise reduction algorithms, such as MCRA (minimum controlled recursive average) noise estimation, IMCRA (improved MCRA) noise estimation, etc.

[0112] In addition, the task of microphone array noise reduction can also be undertaken by the NPU. At this time, the NPU can determine the source of the audio to be recognized. If the source is a microphone array connected to the CPU, the audio to be recognized will be subjected to microphone array noise reduction, and speech recognition will be performed on the noise-reduced audio to be recognized.

[0113] Based on any of the above embodiments, the CPU and the NPU are integrated on the same chip.

[0114] Specifically, in practical applications, the CPU and NPU can be integrated on one chip, thereby simplifying the hardware structure design difficulty of the CPU and NPU used for data processing in the speech recognition device, improving the integration of the speech recognition device, and reducing the size of the speech recognition device.

[0115] For example, Figure 4 FIG. 4 is a structural diagram of the speech recognition device provided by the present invention. Figure 4As shown, in the speech recognition device, CPU1 and NPU2 are integrated on the same chip, where CPU 1 can be an 8-core processor that mainly processes operations such as system, communication, and audio noise reduction. NPU 2 is responsible for accelerating the microphone array algorithm and speech recognition algorithm, and uses its own advantages in neural network operations to solve the problems of insufficient CPU computing power and high energy consumption in speech recognition.

[0116] In addition, the speech recognition device also includes an omnidirectional microphone array 3, a directional microphone array 4, a microphone acquisition system 5, a power management unit 6, a button array 7, a touch unit 8 and a display unit 9.

[0117] Among them, the speech recognition device can collect audio signals through the omnidirectional microphone array 3 and the directional microphone array 4 respectively, thereby obtaining two audio data streams, one of which is the speech data stream after noise reduction from the omnidirectional microphone array 3, which can be used as the speech to be recognized for offline speech recognition, and the other is the high-fidelity recording from the directional microphone array 4, which is used to improve the listening experience of the recording. Recording separately with two arrays not only improves the transcription efficiency and accuracy, but also ensures the listening experience of the human ear, restoring the most realistic and high-fidelity live sound.

[0118] Furthermore, the omnidirectional microphone array 3 is used for 360-degree all-round sound pickup in the recording scene. It uses high-performance silicon microphones with good consistency and an adaptive distance of 3 to 5 meters, which fully meets the recording needs of small scenes. The omnidirectional microphone array 3 is specifically a microphone array with active noise reduction function composed of 4 microphones. The directional microphone array 4 is composed of two large directional microphones. Its recording sound quality and recording fidelity are much higher than silicon microphones, and the sound collection distance is farther.

[0119] The microphone collection system 5 can be an audio CODIC composed of six microphones composed of ES7202, and can collect data from four microphones in the omnidirectional microphone array 3 and data from two directional microphones in the directional microphone array 4 at the same time.

[0120] The power management unit 6 may use a high-performance processor to process charging and power management related functions of the voice recognition device.

[0121] Both the key array 7 and the touch unit 8 can be used for control operations, and the two control units are independent of each other. The key array 7 uses analog-to-digital conversion to identify key values, which can realize functions such as quick start recording, voice recognition, file viewing, sharing and translation. The touch unit 8 collects the capacitance change of the capacitive screen through the touch IC to obtain the hand click position, and can also complete functions such as quick start recording, voice recognition, file viewing, sharing and translation. The key array 7 and the touch unit 8 can be controlled independently or jointly, thereby providing users with a more convenient interaction method.

[0122] The display unit 9 is used to provide a display screen for the user, so as to realize the display of the working status of the speech recognition device, the speech recognition text, etc. Here, the display unit 9 can be a 2.0-inch screen with a resolution of 320*240.

[0123] Based on any of the above embodiments, Figure 5 It is one of the structural schematic diagrams of the sound pickup device provided by the present invention, such as Figure 5 As shown, the sound pickup device includes:

[0124] main housing 10;

[0125] A pickup 11, wherein the pickup 11 is mounted on the main housing 10;

[0126] The voice recognition device 12 is electrically connected to the microphone 11 .

[0127] Specifically, the main housing 10 is the main frame structure of the sound pickup device, and a chamber may be provided inside the main housing 10 for installing various components. The main housing 10 itself has a certain hardness, can have good structural strength, and has good durability and anti-fall ability.

[0128] The microphone 11 is an energy conversion element that converts sound signals into electrical signals. The microphone 11 can be a single microphone or a group or multiple groups of microphone arrays. For example, the microphone 11 can include a group of omnidirectional microphone arrays and a group of directional microphone arrays. The microphone 11 can pick up the audio to be recognized, and transmit the audio to be recognized to the voice recognition device 12 inside the main housing 10 through a connecting line, so that the voice recognition device 12 can perform voice recognition.

[0129] The sound pickup device provided by the embodiment of the present invention integrates a speech recognition device and a sound pickup, and the audio to be recognized can be directly transmitted to the speech recognition device, which further simplifies the operation process of local speech recognition and shortens the response time of local speech recognition.

[0130] Here, the sound pickup device can be a voice recorder or other smart devices that can have both audio collection and voice device functions, such as smart phones, smart bracelets, etc.

[0131] Based on any of the above embodiments, Figure 6 This is the second structural schematic diagram of the sound pickup device provided by the present invention. Figure 6The sound pickup device in the voice recorder is specifically a voice recorder. The sound pickup device in the voice recorder for collecting the audio to be recognized includes a directional microphone array 4 composed of two directional microphones, and an omnidirectional microphone array 3 composed of four omnidirectional microphones. The setting of the directional microphone array 4 and the omnidirectional microphone array 3 can realize the separation of sound pickup for speech recognition noise reduction and auditory recording, while improving the transcription efficiency and accuracy, it can also ensure high-fidelity recording listening.

[0132] The voice recorder also includes a volume button 71, a power button 72, a recording button 73, a navigation button 74, a Type-C interface 75 and other components. When the voice recorder is powered on, by pressing the recording button 73, one-touch recording can be achieved. By pressing the button, the voice control algorithm is activated, and the voice content is input to control the device. The Type-C interface 75 can export the original audio and voice recognition text to a personal computer through the device data cable, which is convenient and fast.

[0133] Handheld and offline voice recognition are important features of the voice recorder provided by the embodiment of the present invention. The voice recorder is implemented through NPU acceleration and algorithm optimization to complete offline voice recognition of audio in the handheld device; it does not require cloud participation, and can directly complete functions such as recording and transcribing and editing to generate documents in the handheld device. In addition, the voice recorder supports local + personal device mode for file management and storage, which is not restricted by region and time, maximizes efficiency and ensures timeliness.

[0134] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A speech recognition device, characterized in that: It includes a central processing unit (CPU) and an embedded neural network processor (NPU), wherein the CPU and the NPU are in communication connection, and a speech recognition model is loaded on the NPU, wherein the speech recognition model is trained based on sample audio and recognition text of the sample audio; The CPU is used to determine the audio to be recognized; The NPU is used to run the speech recognition model, determine the speech recognition result of the audio to be recognized, and transmit the speech recognition result to the CPU; The NPU is specifically used for: Running the acoustic model in the speech recognition model to determine the acoustic features of the audio to be recognized, and determining the acoustic speech recognition result of the audio to be recognized based on the acoustic features, wherein the acoustic model is obtained by performing knowledge distillation on the cloud acoustic model; The NPU is also specifically used for: Running a decoding model in the speech recognition model to decode the acoustic features and obtain a generative speech recognition result of the audio to be recognized; The speech recognition result is obtained by fusing the acoustic speech recognition result output by the acoustic model and the generative speech recognition result output by the decoding model.

2. The speech recognition device according to claim 1, characterized in that: The NPU is also specifically used for: The acoustic speech recognition result and the generative speech recognition result are fused to generate a speech recognition text, and the speech recognition text is transmitted to the CPU as the speech recognition result.

3. The speech recognition device according to claim 1, characterized in that: The NPU is also specifically used for: transmitting the acoustic speech recognition result and the generative speech recognition result to the CPU respectively; The CPU is also used for: The acoustic speech recognition result and the generative speech recognition result are fused to generate a speech recognition result.

4. The speech recognition device according to any one of claims 1 to 3, characterized in that: The CPU is further configured to: determine the computing resources of the speech recognition model based on at least one of the energy consumption state of the device, the heating state of the device, and the data specification of the audio to be recognized; The NPU is specifically used to: call the computing resources to run the speech recognition model, determine the speech recognition result of the audio to be recognized, and transmit the speech recognition result to the CPU.

5. The speech recognition device according to claim 4, characterized in that: Also includes a storage unit, the storage unit is used to store the audio to be recognized; The CPU is further configured to determine a data specification of the audio to be identified based on a data volume of the audio to be identified and a storage volume of the storage unit.

6. The speech recognition device according to any one of claims 1 to 3, characterized in that: The CPU is specifically used for: It is determined that the source of the initial audio is a microphone array connected to the CPU, and the initial audio is subjected to microphone array noise reduction to obtain the audio to be recognized.

7. The speech recognition device according to any one of claims 1 to 3, characterized in that: The CPU and the NPU are integrated on the same chip.

8. A sound pickup device, characterized in that: include: main housing; A pickup, the pickup being mounted on the main housing; The speech recognition device according to any one of claims 1 to 7, wherein the speech recognition device is electrically connected to the microphone.