A speech recognition method, device and electronic device

By associating audio and image data in the recording device, and using the image text recognition results for speech recognition, the problem of low audio data recognition accuracy in the recording scene is solved, especially in the scene of unfamiliar words in the professional field, the recognition accuracy is improved. and efficiency.

CN112102843BActive Publication Date: 2024-09-06BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010990404.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2024-09-06
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

In recording scenarios in the professional field, the speech recognition accuracy of the recorded audio data is low, especially when unfamiliar words in the professional field are involved, and it is difficult for the existing technology to effectively recognize them.

Method used

By acquiring and associating audio data and image data in the recording device, the image text recognition results are used for speech recognition, keywords are extracted and matched with the audio data, if the match is successful, the keywords are used as the recognition text, otherwise the speech recognition vocabulary is used. match.

Benefits of technology

The accuracy of speech recognition is improved, especially in scenes containing unfamiliar words in professional fields. By combining the associated information of audio and image data, the accuracy and efficiency of recognition are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112102843B
    Figure CN112102843B
Patent Text Reader

Abstract

An embodiment of the present invention provides a speech recognition method, device and electronic device, wherein the method includes: acquiring target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; performing speech recognition on the target audio data based on the target image data to determine corresponding speech recognition text information; and then performing speech recognition on the target audio data by combining information associated with the target audio data to improve the accuracy of speech recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a speech recognition method, device and electronic equipment. Background Art

[0002] In recent years, recording equipment, as a product in the professional field, has developed rapidly and entered the public field. Various groups such as journalists, students, and teachers usually need recording equipment for recording. In addition, recording equipment is also needed for recording various TV programs, movies, music, etc.

[0003] During or after recording, users may need to perform speech recognition on the audio data obtained from the recording to determine the corresponding speech recognition text (commonly known as transcription). However, in many scenarios, such as training lectures and large conferences, professional words often appear, and there are many unfamiliar words in these professional fields. For the audio data obtained from recordings in these scenarios, the existing speech recognition accuracy is low. Summary of the invention

[0004] The embodiment of the present invention provides a speech recognition method to improve the accuracy of speech recognition.

[0005] Correspondingly, the embodiment of the present invention further provides a speech recognition device and an electronic device to ensure the implementation and application of the above method.

[0006] In order to solve the above problems, an embodiment of the present invention discloses a speech recognition method, which specifically includes: acquiring target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; performing speech recognition on the target audio data based on the target image data, and determining corresponding speech recognition text information.

[0007] Optionally, performing speech recognition on the target audio data based on the target image data to determine corresponding speech recognition text information includes: performing text recognition on the target image data to determine corresponding image text information; performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information.

[0008] Optionally, the target image data includes an image frame, and performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: determining a target timestamp corresponding to the target image data; and performing speech recognition on the target audio data after the target timestamp based on the image text information to determine the corresponding speech recognition text information.

[0009] Optionally, performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information includes: performing speech recognition on the complete target audio data based on the image text information of all image frames contained in the target image data to determine corresponding speech recognition text information.

[0010] Optionally, performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: extracting keywords from the image text information; performing feature extraction on the target audio data and determining the syllable corresponding to the audio data based on the extracted feature information, and matching the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, using the matched keyword as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, matching the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0011] An embodiment of the present invention also discloses a speech recognition device, which specifically includes: an acquisition module, used to acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; and a recognition module, used to perform speech recognition on the target audio data based on the target image data, and determine corresponding speech recognition text information.

[0012] Optionally, the recognition module includes: an image recognition submodule, used to perform text recognition on the target image data to determine corresponding image text information; and a speech recognition submodule, used to perform speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information.

[0013] Optionally, the target image data includes an image frame, and the speech recognition submodule is used to determine the target timestamp corresponding to the target image data; based on the image text information, speech recognition is performed on the target audio data after the target timestamp to determine the corresponding speech recognition text information.

[0014] Optionally, the speech recognition submodule is used to perform speech recognition on the complete target audio data based on image text information of all image frames contained in the target image data, and determine corresponding speech recognition text information.

[0015] Optionally, the speech recognition submodule is used to extract keywords from the image text information; perform feature extraction on the target audio data and determine the syllable corresponding to the audio data based on the extracted feature information, and match the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, use the matched keyword as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, match the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary, and determine the speech recognition text information corresponding to the target audio data.

[0016] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the speech recognition method as described in any one of the embodiments of the present invention.

[0017] An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: obtaining target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; performing speech recognition on the target audio data based on the target image data, and determining corresponding speech recognition text information.

[0018] Optionally, performing speech recognition on the target audio data based on the target image data to determine corresponding speech recognition text information includes: performing text recognition on the target image data to determine corresponding image text information; performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information.

[0019] Optionally, the target image data includes an image frame, and performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: determining a target timestamp corresponding to the target image data; and performing speech recognition on the target audio data after the target timestamp based on the image text information to determine the corresponding speech recognition text information.

[0020] Optionally, performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information includes: performing speech recognition on the complete target audio data based on the image text information of all image frames contained in the target image data to determine corresponding speech recognition text information.

[0021] Optionally, performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: extracting keywords from the image text information; performing feature extraction on the target audio data and determining the syllable corresponding to the audio data based on the extracted feature information, and matching the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, using the matched keyword as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, matching the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0022] The embodiments of the present invention include the following advantages:

[0023] In an embodiment of the present invention, target audio data can be obtained, as well as target image data collected by a recording device during the process of recording the target audio data and associated with the target audio data; then, speech recognition is performed on the target audio data based on the target image data to determine corresponding speech recognition text information; and then, speech recognition is performed on the target audio data in combination with information associated with the target audio data to improve the accuracy of speech recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a flow chart of steps of an embodiment of a speech recognition method of the present invention;

[0025] Figure 2 is a flowchart of steps of an optional embodiment of a speech recognition method of the present invention;

[0026] Figure 3 is a flowchart of steps of another embodiment of a speech recognition method of the present invention;

[0027] Figure 4 is a flowchart of steps of another optional embodiment of a speech recognition method of the present invention;

[0028] Figure 5 is a structural block diagram of an embodiment of a speech recognition device of the present invention;

[0029] Figure 6 is a structural block diagram of an optional embodiment of a speech recognition device of the present invention;

[0030] Figure 7 A structural block diagram of an electronic device for speech recognition according to an exemplary embodiment;

[0031] Figure 8The figure is a schematic structural diagram of an electronic device for speech recognition according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0033] Reference Figure 1 , shows a flow chart of a speech recognition method embodiment of the present invention, which may specifically include the following steps:

[0034] Step 102: Acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data.

[0035] Step 104: Perform speech recognition on the target audio data according to the target image data to determine corresponding speech recognition text information.

[0036] In an embodiment of the present invention, a recording device provided with an image acquisition module is provided. When a user uses the recording device to record audio data, the recording device supports the user to use the recording device to perform image acquisition, so that the user can record data from multiple dimensions. After the image acquisition, the acquired image data can be associated with the recorded audio data, thereby ensuring the association between the data recorded in multiple dimensions. Subsequently, when the user needs to perform speech recognition on the audio data acquired by the recording device and associated with the image data, the audio data and the image data associated with the audio data can be obtained; then, the audio data can be combined with the image data associated with the audio data to perform speech recognition on the audio data, so as to improve the accuracy of speech recognition of the audio data.

[0037] For the convenience of subsequent explanation, the audio data that the user needs to perform speech recognition on may be referred to as target audio data; the image data associated with the target audio data may be referred to as target image data; and the speech recognition result obtained by performing speech recognition on the target audio data may be referred to as speech recognition text information.

[0038] The recording device may refer to a device with a recording function, such as a recording pen, a translation device such as a translation pen, a translation machine, etc.; this is not limited in the embodiment of the present invention.

[0039] Among them, the steps 102 to 104 can be executed by the recording device or by other devices. The other devices may refer to electronic devices other than the recording device, and may include terminal devices or servers. The embodiment of the present invention does not limit this.

[0040] In summary, in an embodiment of the present invention, target audio data can be obtained, as well as target image data collected by a recording device during the process of recording the target audio data and associated with the target audio data; then, speech recognition is performed on the target audio data based on the target image data to determine corresponding speech recognition text information; and then, speech recognition is performed on the target audio data in combination with information associated with the target audio data to improve the accuracy of speech recognition.

[0041] Reference Figure 2 , showing a step flow chart of an optional embodiment of a speech processing method of the present invention.

[0042] Step 202: Acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data.

[0043] In an embodiment of the present invention, speech recognition can be performed on the target audio data in real time while the recording device is recording the target audio data; or speech recognition can be performed on the target audio data (i.e., non-real-time target audio data) after the recording device has recorded the audio data; this is not limited in the embodiment of the present invention.

[0044] Among them, after the recording device records the audio data, the recording device can perform voice recognition on the target audio data; the target audio data can also be transmitted from the recording device to other devices, and then the other devices can recognize the target audio data. The embodiment of the present invention does not limit this.

[0045] Step 204: Perform text recognition on the target image data to determine corresponding image text information.

[0046] Step 206: Perform speech recognition on the target audio data according to the image text information to determine corresponding speech recognition text information.

[0047] In the embodiment of the present invention, text recognition may be performed on the target image data to determine the text information in the target image data. In order to distinguish the text information obtained by text recognition from the speech recognition text information, the text information obtained by text recognition may be referred to as image text information.

[0048] In one example, OCR (Optical Character Recognition) technology may be used for text recognition.

[0049] Then, the target audio data is subjected to speech recognition in combination with the image text information to determine the corresponding speech recognition text information; wherein the image text information can be utilized in the speech recognition process of the target audio data to improve the accuracy of the speech recognition of the target audio data.

[0050] Please refer to the following sub-steps 2062 to 2068:

[0051] Sub-step 2062: extract keywords from the image text information.

[0052] Sub-step 2064: extract features from the target audio data and determine the syllables corresponding to the target audio data based on the extracted feature information, and match the syllables corresponding to the target audio data with the keywords.

[0053] Sub-step 2066: If there is a keyword that matches the syllable corresponding to the target audio data, the matched keyword is used as the speech recognition text information of the corresponding syllable.

[0054] Sub-step 2068: If there is no keyword that matches the syllable corresponding to the target audio data, the syllable corresponding to the target audio data is matched with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0055] In one example of the present invention, on the one hand, proper nouns can be extracted from the image text information as keywords. The proper nouns include various names such as names of people, places, countries, landscapes, species, medicines, etc. Then, based on the keywords, speech recognition is performed on the target audio data. On the other hand, feature extraction can be performed on the target audio data and the syllables corresponding to the target audio data can be determined based on the extracted feature information; then the syllables corresponding to the target audio data are matched with the speech recognition vocabulary.

[0056] Among them, in the process of matching the syllables corresponding to the target audio data with the speech recognition vocabulary, the matching can be performed in order of the priority of the words in the speech recognition vocabulary from high to low; that is, the syllables corresponding to the target audio data are first matched with the high-priority words, and when there is no high-priority word that matches the syllable corresponding to the target audio data, it is matched with the high-priority words in the speech recognition vocabulary.

[0057] Compared with speech recognition, text recognition has a higher accuracy rate. Therefore, in order to improve the accuracy of speech recognition, the embodiment of the present invention can add keywords to the speech recognition vocabulary, and set the priority of the keywords to be higher than the priority of the original words in the speech recognition vocabulary. Then, the syllable corresponding to the target audio data can be matched with the keyword first, and a search can be performed to find out whether there is a keyword that matches the syllable corresponding to the target audio data. If there is a keyword that matches the syllable corresponding to the target audio data, the matched keyword is used as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, the syllable corresponding to the target audio data is matched with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0058] In summary, in the embodiments of the present invention, text recognition can be performed on the target image data to determine the corresponding image text information; then, speech recognition can be performed on the target audio data based on the image text information to determine the corresponding speech recognition text information; since the accuracy of text recognition is higher than that of speech recognition, the target audio data can be recognized based on the image text information in the target image data associated with the target audio data, which can further improve the accuracy of speech recognition.

[0059] Secondly, in an embodiment of the present invention, keywords can be extracted from the image text information; then, feature extraction is performed on the target audio data and the syllable corresponding to the audio data is determined based on the extracted feature information, and the syllable corresponding to the target audio data is matched with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, the matched keyword is used as the speech recognition text information of the corresponding syllable; and thus, there is no need to match the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary, thereby improving the speech recognition efficiency.

[0060] In order to facilitate the subsequent description, the embodiment of the present invention first describes how to collect image data and associate the image data with audio data during the process of recording audio data.

[0061] During the recording process, the recording device receives an image acquisition instruction.

[0062] In an embodiment of the present invention, when a user needs to record, the recording function of the recording device can be turned on and the recording device can be used to record. During the recording process, when the user needs to record data of other dimensions such as image data, such as printed data, projection images, etc., an image acquisition operation can be performed. After the user performs the image acquisition operation, the corresponding recording device can receive the image acquisition instruction corresponding to the image acquisition operation.

[0063] In an example of the present invention, a user may perform an image acquisition operation in a recording device, and correspondingly, the recording device may generate an image acquisition instruction based on the image acquisition operation performed by the user.

[0064] In one example of the present invention, when the recording device is connected to other devices, the user can also execute the image acquisition device in the application corresponding to the recording device of the other device. At this time, the other device can generate an image acquisition instruction according to the user's image acquisition operation, and then send the image acquisition instruction to the recording device.

[0065] Image acquisition is performed according to the image acquisition instruction.

[0066] Then the recording device can call the image acquisition module to acquire images according to the image acquisition instruction to obtain image data.

[0067] During the recording process, the user may perform multiple image acquisition operations, and correspondingly, the recording device may receive multiple image acquisition instructions. The recording device may perform an image acquisition once each time it receives an image acquisition instruction to obtain a corresponding image frame.

[0068] The captured image data and the recorded audio data are associated and stored.

[0069] In the embodiment of the present invention, in order to facilitate the user to use the recorded data of multiple dimensions at the same time later, after the image data is collected, the collected image data can be associated with the audio data obtained by recording, and stored in the recording device. The image data and the audio data can be associated based on the time of the collected image data and the time corresponding to the audio data obtained by recording, which is not limited in the embodiment of the present invention.

[0070] In one example, after each image frame is captured, the recording device may associate the image frame with the audio frame corresponding to the image frame obtained during the recording process, thereby associating the captured image data with the audio data obtained during the recording. In another example, the recording device may store the image frame after each image frame is captured, and after the recording is completed, associate each image frame of the image data with the corresponding audio frame in the audio data obtained during the recording.

[0071] Among them, the method of associating each image frame with the corresponding audio frame can be as follows: for the target image frame in the image data, determine the target timestamp corresponding to the target image frame; determine the target audio frame in the audio data whose timestamp is the same as the target timestamp; and associate the target image frame with the target audio frame.

[0072] If the recording device associates each image frame with the audio frame corresponding to the image frame obtained during the recording process after each image frame is captured, then one image frame captured each time can be used as the target image frame. If the recording device associates each image frame of the image data with the corresponding audio frame in the audio data obtained during the recording after the recording is completed, then one image frame can be arbitrarily selected from the image data as the target image frame each time until all image frames in the image data are associated with the corresponding audio frames in the audio data.

[0073] In an embodiment of the present invention, for a target image frame, a target timestamp corresponding to the target image frame can be determined, and a target audio frame with a timestamp identical to the target timestamp can be obtained from the audio data obtained from the recording; then the target image frame and the target audio frame are associated.

[0074] The following is an example of performing speech recognition on target audio data in real time while recording the target audio data using a recording device.

[0075] Reference Figure 3 , showing a step flow chart of another speech processing method embodiment of the present invention.

[0076] Step 302: Acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data.

[0077] In the embodiment of the present invention, during the real-time speech recognition of the target audio data, each time the recording device collects a segment of audio data, the segment of audio data is used as the target audio data, and then speech recognition is performed on the segment of target audio data.

[0078] When the user does not use a recording device to collect images during the process of recording the target audio data, the recording device cannot obtain the target image data associated with the target audio data when performing voice recognition on the target audio data.

[0079] When the user uses a recording device to capture images and obtains target image data during the process of recording the target audio data, the recording device will associate the target image data with the target audio data. Then, when the speech recognition is performed on the target audio data, the target image data corresponding to the target audio data can be obtained. The target image data may include one image frame or multiple image frames; this is not limited in the embodiment of the present invention.

[0080] Step 304: Perform text recognition on the target image data to determine corresponding image text information.

[0081] In the embodiment of the present invention, text recognition may be performed on the target image data to determine the image text information corresponding to the target image, and then speech recognition may be performed on the target audio data based on the image text information to determine the corresponding speech recognition text information.

[0082] In the embodiment of the present invention, in the process of performing speech recognition on the segment of target audio data, in addition to performing speech recognition based on the image text information of the target image data associated with the segment of target audio data, speech recognition can also be performed based on the image text information of the target image data associated with each segment of target audio data recorded before the segment of target audio data during this recording process. In other words, speech recognition can be performed on the segment of target audio data associated with it based on the image text information of the target image data, and speech recognition can also be performed on other segments of target audio data obtained after the segment of target audio data. Please refer to steps 306-308:

[0083] Step 306: Determine a target timestamp corresponding to the target image data.

[0084] Step 308: Perform speech recognition on the target audio data after the target timestamp based on the image text information to determine the corresponding speech recognition text information.

[0085] In an embodiment of the present invention, the target timestamp corresponding to the target image data can be determined first, and then, based on the image text information corresponding to the target image data, speech recognition can be performed on the target audio data whose timestamp is after the target timestamp to determine the corresponding speech recognition text information. In other words, if a segment of target audio data includes an audio frame whose timestamp is after the target timestamp, the image text information corresponding to the target image data can be used to perform speech recognition on the segment of target audio data. The specific speech recognition method can refer to the above-mentioned sub-steps 2062 to 2068, which will not be repeated here.

[0086] In summary, in the embodiment of the present invention, the target timestamp corresponding to the target image data can be determined, and based on the image text information, speech recognition is performed on the target audio data after the target timestamp to determine the corresponding speech recognition text information; thereby, the accuracy of real-time speech recognition can be improved.

[0087] The following is an example of performing speech recognition on target audio data after the audio data is recorded by a recording device.

[0088] Reference Figure 4 , showing a step flow chart of another optional embodiment of the speech recognition method of the present invention.

[0089] Step 402: Acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data.

[0090] In the embodiment of the present invention, after the recording device finishes recording the target audio data, the target audio data and the target image data associated with the target audio data can be obtained; then, speech recognition is performed on the target audio data according to the target image data to determine the corresponding speech recognition text information, which can refer to steps 404 to 406:

[0091] Step 404: Perform text recognition on the target image data to determine corresponding image text information.

[0092] Step 406: Perform speech recognition on all audio frames included in the target audio data based on the image text information of all image frames included in the target image data, and determine corresponding speech recognition text information.

[0093] In an embodiment of the present invention, speech recognition can be performed on the complete target audio data based on the target image data collected during the entire process of recording the target audio data. In particular, text recognition can be performed on all image frames contained in the target image data to determine the image text information corresponding to each image frame; then, based on the image text information corresponding to each image frame, speech recognition can be performed on all audio frames contained in the target audio data to determine the corresponding speech recognition text information.

[0094] In summary, in the embodiment of the present invention, speech recognition can be performed on the complete target audio data based on the image text information of all image frames contained in the target image data to determine the corresponding speech recognition text information; thereby providing speech recognition accuracy for non-real-time audio data.

[0095] In an optional embodiment of the present invention, the method further includes: receiving a transmission instruction; transmitting the data corresponding to the transmission instruction to other devices; the data corresponding to the transmission instruction may include at least one of the following: target audio data, target image data, voice recognition text information, and image text information. Then, the user can transmit one or more of the target audio data, target image data, voice recognition text information, and image text information to other devices; so that the user can use the target audio data, target image data, voice recognition text information, and image text information in other devices. The transmission instruction may include a sharing instruction, a forwarding instruction, a transfer instruction, etc., which is not limited in the embodiment of the present invention.

[0096] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0097] Reference Figure 5 , shows a structural block diagram of an embodiment of a speech recognition device of the present invention, which may specifically include the following modules:

[0098] An acquisition module 502 is used to acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data;

[0099] The recognition module 504 is used to perform speech recognition on the target audio data according to the target image data to determine corresponding speech recognition text information.

[0100] Reference Figure 6 , shows a structural block diagram of an optional embodiment of a speech recognition device of the present invention.

[0101] In an optional embodiment of the present invention, the identification module 504 includes:

[0102] The image recognition submodule 5042 is used to perform text recognition on the target image data to determine the corresponding image text information;

[0103] The speech recognition submodule 5044 is used to perform speech recognition on the target audio data according to the image text information to determine the corresponding speech recognition text information.

[0104] In an optional embodiment of the present invention, the target image data includes an image frame.

[0105] The speech recognition submodule 5044 is used to determine the target timestamp corresponding to the target image data; based on the image text information, perform speech recognition on the target audio data after the target timestamp to determine the corresponding speech recognition text information.

[0106] In an optional embodiment of the present invention, the speech recognition submodule 5044 is used to perform speech recognition on the complete target audio data based on the image text information of all image frames contained in the target image data, and determine the corresponding speech recognition text information.

[0107] In an optional embodiment of the present invention, the speech recognition submodule 5044 is used to extract keywords from the image text information; perform feature extraction on the target audio data and determine the syllable corresponding to the audio data based on the extracted feature information, and match the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, the matched keyword is used as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, the syllable corresponding to the target audio data is matched with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0108] In summary, in an embodiment of the present invention, target audio data can be obtained, as well as target image data collected by a recording device during the process of recording the target audio data and associated with the target audio data; then, speech recognition is performed on the target audio data based on the target image data to determine corresponding speech recognition text information; and then, speech recognition is performed on the target audio data in combination with information associated with the target audio data to improve the accuracy of speech recognition.

[0109] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0110] Figure 7 1 is a block diagram of an electronic device 700 for speech recognition according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0111] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0112] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0113] The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0114] The power component 706 provides power to the various components of the electronic device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.

[0115] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0116] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0117] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0118] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0119] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 714 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 714 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0120] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0121] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0122] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a speech recognition method, the method comprising: acquiring target audio data and target image data associated with the target audio data, the target image data being collected by a recording device during the process of recording the target audio data; performing speech recognition on the target audio data based on the target image data, and determining corresponding speech recognition text information.

[0123] Optionally, performing speech recognition on the target audio data based on the target image data to determine corresponding speech recognition text information includes: performing text recognition on the target image data to determine corresponding image text information; performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information.

[0124] Optionally, the target image data includes an image frame, and performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: determining a target timestamp corresponding to the target image data; and performing speech recognition on the target audio data after the target timestamp based on the image text information to determine the corresponding speech recognition text information.

[0125] Optionally, performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information includes: performing speech recognition on the complete target audio data based on the image text information of all image frames contained in the target image data to determine corresponding speech recognition text information.

[0126] Optionally, performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: extracting keywords from the image text information; performing feature extraction on the target audio data and determining the syllable corresponding to the audio data based on the extracted feature information, and matching the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, using the matched keyword as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, matching the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0127] Figure 8: is a structural diagram of an electronic device 800 for speech recognition according to another exemplary embodiment of the present invention. The electronic device 800 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 may be temporary storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server.

[0128] The server may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, one or more keyboards 856, and / or one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0129] In an exemplary embodiment, the server is configured to execute one or more programs including instructions for performing the following operations by one or more central processors 822: acquiring target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; performing speech recognition on the target audio data based on the target image data, and determining corresponding speech recognition text information.

[0130] Optionally, performing speech recognition on the target audio data based on the target image data to determine corresponding speech recognition text information includes: performing text recognition on the target image data to determine corresponding image text information; performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information.

[0131] Optionally, the target image data includes an image frame, and performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: determining a target timestamp corresponding to the target image data; and performing speech recognition on the target audio data after the target timestamp based on the image text information to determine the corresponding speech recognition text information.

[0132] Optionally, performing speech recognition on the target audio data based on the image text information to determine corresponding speech recognition text information includes: performing speech recognition on the complete target audio data based on the image text information of all image frames contained in the target image data to determine corresponding speech recognition text information.

[0133] Optionally, performing speech recognition on the target audio data based on the image text information to determine the corresponding speech recognition text information includes: extracting keywords from the image text information; performing feature extraction on the target audio data and determining the syllable corresponding to the audio data based on the extracted feature information, and matching the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, using the matched keyword as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, matching the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

[0134] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0135] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0138] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0139] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0140] The speech recognition method, speech recognition device and electronic device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A speech recognition method, characterized in that: include: Acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; the target image data associated with the target audio data is obtained by the recording device associating each image frame of the target image data with an audio frame of the target audio data corresponding to the image frame obtained during the recording process after the image frame is collected; the audio frame of the target audio data corresponding to the image frame is obtained by an audio frame whose timestamp in the target audio data is the same as the target timestamp corresponding to the image frame; Performing speech recognition on the target audio data according to the target image data to determine corresponding speech recognition text information; the speech recognition text information is obtained by matching the syllables corresponding to the target audio data with the words in the speech recognition vocabulary in descending order of priority of the words in the speech recognition vocabulary; the words in the speech recognition vocabulary include original words and keywords extracted from the target image data; the priority of the keywords is higher than that of the original words; The performing speech recognition on the target audio data according to the target image data to determine corresponding speech recognition text information includes: Performing text recognition on the target image data to determine corresponding image text information; Determining a target timestamp corresponding to the target image data; According to the image text information, speech recognition is performed on the target audio data after the target timestamp to determine the corresponding speech recognition text information.

2. The method according to claim 1, characterized in that The performing speech recognition on the target audio data according to the image text information to determine the corresponding speech recognition text information includes: According to the image text information of all image frames contained in the target image data, speech recognition is performed on the complete target audio data to determine the corresponding speech recognition text information.

3. The method according to claim 1, characterized in that The performing speech recognition on the target audio data according to the image text information to determine the corresponding speech recognition text information includes: Extracting keywords from the image text information; Extracting features from the target audio data and determining syllables corresponding to the target audio data based on the extracted feature information, and matching the syllables corresponding to the target audio data with the keywords; If there is a keyword that matches the syllable corresponding to the target audio data, the matched keyword is used as the speech recognition text information of the corresponding syllable; If there is no keyword that matches the syllable corresponding to the target audio data, the syllable corresponding to the target audio data is matched with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

4. A speech recognition device, characterized in that: include: an acquisition module, for acquiring target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; the target image data associated with the target audio data is obtained by the recording device associating each image frame of the target image data with an audio frame of the target audio data corresponding to the image frame obtained during the recording process after the image frame is collected; the audio frame of the target audio data corresponding to the image frame is obtained by an audio frame whose timestamp in the target audio data is the same as the target timestamp corresponding to the image frame; A recognition module, configured to perform speech recognition on the target audio data according to the target image data, and determine corresponding speech recognition text information; The speech recognition text information is obtained by matching the syllables corresponding to the target audio data with the words in the speech recognition word library in descending order of priority of the words in the speech recognition word library; the words in the speech recognition word library include original words and keywords extracted from the target image data; the priority of the keywords is higher than that of the original words; The identification module comprises: An image recognition submodule, used to perform text recognition on the target image data to determine the corresponding image text information; The speech recognition submodule is used to determine the target timestamp corresponding to the target image data; based on the image text information, perform speech recognition on the target audio data after the target timestamp to determine the corresponding speech recognition text information.

5. The device according to claim 4, characterized in that The speech recognition submodule is used to perform speech recognition on the complete target audio data based on the image text information of all image frames contained in the target image data, and determine the corresponding speech recognition text information.

6. The device according to claim 4, characterized in that The speech recognition submodule is used to extract keywords from the image text information; perform feature extraction on the target audio data and determine the syllable corresponding to the target audio data based on the extracted feature information, and match the syllable corresponding to the target audio data with the keyword; if there is a keyword that matches the syllable corresponding to the target audio data, use the matched keyword as the speech recognition text information of the corresponding syllable; if there is no keyword that matches the syllable corresponding to the target audio data, match the syllable corresponding to the target audio data with the original word in the speech recognition vocabulary, and determine the speech recognition text information corresponding to the target audio data.

7. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: Acquire target audio data and target image data associated with the target audio data, wherein the target image data is collected by a recording device during the process of recording the target audio data; the target image data associated with the target audio data is obtained by the recording device associating each image frame of the target image data with an audio frame of the target audio data corresponding to the image frame obtained during the recording process after the image frame is collected; the audio frame of the target audio data corresponding to the image frame is obtained by an audio frame whose timestamp in the target audio data is the same as the target timestamp corresponding to the image frame; Performing speech recognition on the target audio data according to the target image data to determine corresponding speech recognition text information; the speech recognition text information is obtained by matching the syllables corresponding to the target audio data with the words in the speech recognition vocabulary in descending order of priority of the words in the speech recognition vocabulary; the words in the speech recognition vocabulary include original words and keywords extracted from the target image data; the priority of the keywords is higher than that of the original words; The performing speech recognition on the target audio data according to the target image data to determine corresponding speech recognition text information includes: Performing text recognition on the target image data to determine corresponding image text information; Determining a target timestamp corresponding to the target image data; According to the image text information, speech recognition is performed on the target audio data after the target timestamp to determine the corresponding speech recognition text information.

8. The electronic device according to claim 7, characterized in that: The performing speech recognition on the target audio data according to the image text information to determine the corresponding speech recognition text information includes: According to the image text information of all image frames contained in the target image data, speech recognition is performed on the complete target audio data to determine the corresponding speech recognition text information.

9. The electronic device according to claim 7, characterized in that: The performing speech recognition on the target audio data according to the image text information to determine the corresponding speech recognition text information includes: Extracting keywords from the image text information; Extracting features from the target audio data and determining syllables corresponding to the target audio data based on the extracted feature information, and matching the syllables corresponding to the target audio data with the keywords; If there is a keyword that matches the syllable corresponding to the target audio data, the matched keyword is used as the speech recognition text information of the corresponding syllable; If there is no keyword that matches the syllable corresponding to the target audio data, the syllable corresponding to the target audio data is matched with the original word in the speech recognition vocabulary to determine the speech recognition text information corresponding to the target audio data.

10. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the processor of the electronic device is enabled to execute the speech recognition method as described in any one of method claims 1-3.