WO2021128880A1 - Speech recognition method, device, and device for speech recognition - Google Patents

Speech recognition method, device, and device for speech recognition Download PDF

Info

Publication number
WO2021128880A1
WO2021128880A1 PCT/CN2020/110037 CN2020110037W WO2021128880A1 WO 2021128880 A1 WO2021128880 A1 WO 2021128880A1 CN 2020110037 W CN2020110037 W CN 2020110037W WO 2021128880 A1 WO2021128880 A1 WO 2021128880A1
Authority
WO
WIPO (PCT)
Prior art keywords
personalized
vocabulary
users
user
similarity
Prior art date
Application number
PCT/CN2020/110037
Other languages
French (fr)
Chinese (zh)
Inventor
郑宏
Original Assignee
北京搜狗科技发展有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京搜狗科技发展有限公司 filed Critical 北京搜狗科技发展有限公司
Publication of WO2021128880A1 publication Critical patent/WO2021128880A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Definitions

  • This application relates to the field of computer technology, and in particular to a voice recognition method, device, and device for voice recognition.
  • Voice recognition technology is a technology that allows machines to convert voice signals into corresponding texts or commands through the process of recognition and understanding.
  • speech recognition technology has been developed rapidly, the accuracy of speech recognition has been continuously improved, and the application in the field of human-computer interaction is gradually expanding.
  • the embodiments of the present application provide a voice recognition method, device, and device for voice recognition, which can improve the accuracy of voice recognition.
  • an embodiment of the present application discloses a voice recognition method, and the method includes:
  • the personalized vocabulary being established based on historical input content generated during the user's use of the input method
  • the speech recognition result corresponding to the speech information is determined.
  • an embodiment of the present application discloses a voice recognition device, which includes:
  • the voice receiving module is used to receive the voice information input by the user
  • Thesaurus acquisition module configured to acquire the user's personalized thesaurus, the personalized thesaurus is established based on the historical input content generated during the user's use of the input method;
  • a weight determination module configured to determine the decoding path weight corresponding to the voice information according to the personalized vocabulary
  • the result determining module is configured to determine the voice recognition result corresponding to the voice information according to the decoding path weight.
  • an embodiment of the present application discloses a device for speech recognition, including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be composed of one or more programs.
  • the execution of the one or more programs by the above processor includes instructions for performing the following operations:
  • the personalized vocabulary being established based on historical input content generated during the user's use of the input method
  • the speech recognition result corresponding to the speech information is determined.
  • an embodiment of the present application discloses a machine-readable medium with instructions stored thereon, which when executed by one or more processors, cause the device to execute one or more of the aforementioned voice recognition methods.
  • the embodiment of the application After receiving the voice information input by the user, the embodiment of the application obtains the user's personalized vocabulary, and determines the decoding path weight corresponding to the voice information according to the personalized vocabulary, and according to the decoding path weight To determine the voice recognition result corresponding to the voice information. Since the personalized thesaurus is established based on the historical input content generated during the user’s use of the input method, the personalized dictionary conforms to the user’s input habits, and can be based on the user’s input in the process of decoding the voice information input by the user. The personalized vocabulary of ”performs real-time weighting on the speech decoding path, so that the final recognition result tends to the user’s input habits, thereby improving the accuracy of speech recognition.
  • Fig. 1 is a flowchart of steps of an embodiment of a speech recognition method of the present application
  • Fig. 2 is a structural block diagram of an embodiment of a speech recognition device of the present application
  • FIG. 3 is a block diagram of a device 800 for speech recognition according to the present application.
  • Fig. 4 is a schematic diagram of the structure of a server in some embodiments of the present application.
  • Step 101 Receive voice information input by a user
  • Step 102 Obtain a personalized vocabulary of the user, where the personalized vocabulary is established based on historical input content generated when the user uses the input method;
  • Step 103 Determine the decoding path weight corresponding to the voice information according to the personalized vocabulary
  • Step 104 Determine a voice recognition result corresponding to the voice information according to the decoding path weight.
  • the voice recognition method in the embodiments of this application can be applied to electronic devices, including but not limited to: servers, smart phones, tablets, e-book readers, MP3 (Moving Picture Experts Compression Standard Audio Level 3, Moving Picture Experts) Group Audio Layer III) Players, MP4 (Moving Picture Experts Group Audio Layer IV) Players, laptop portable computers, car computers, desktop computers, set-top boxes, smart TVs, wearables Equipment and so on.
  • electronic devices including but not limited to: servers, smart phones, tablets, e-book readers, MP3 (Moving Picture Experts Compression Standard Audio Level 3, Moving Picture Experts) Group Audio Layer III) Players, MP4 (Moving Picture Experts Group Audio Layer IV) Players, laptop portable computers, car computers, desktop computers, set-top boxes, smart TVs, wearables Equipment and so on.
  • the voice recognition method of the embodiment of the present application can be used to automatically recognize the voice information input by the user, and convert the voice information into corresponding text information.
  • the voice information may be a continuous voice, such as a sentence, a sentence, and so on. It can be understood that the embodiment of the present application does not limit the source of the voice information.
  • the voice information may be a voice segment collected in real time through the recording function of the electronic device.
  • the obtaining the voice information input by the user may specifically include: obtaining the voice information input or sent or received by the user through an instant messaging application.
  • the instant messaging application is an application program that implements online chat and communication through instant messaging technology.
  • the voice information acquired by the embodiment of the present application may include: voice information input by the user through an instant messaging application, voice information sent by the user to the communication peer through the instant messaging application, and voice information received by the user from the communication peer through the instant messaging application.
  • the voice information input by the user may be divided into multiple frames of voice segments according to the preset window length and frame shift.
  • the window length can be used to represent the duration of each frame of speech segment
  • the frame shift can be used to represent the time difference between adjacent frames. For example, when the window length is 25ms and the frame is shifted by 15ms, the first frame of speech segment is 0-25ms, the second frame of speech segment is 15-40ms, and so on.
  • the specific window length and frame shift can be set according to actual needs, which is not limited in the embodiment of the present application.
  • the electronic device may also perform noise reduction processing on the voice information, so as to improve the subsequent system's ability to process the information.
  • this embodiment of the application pre-establishes a personalized vocabulary for users.
  • the personalized vocabulary is established based on the historical input content generated during the user's use of the input method, and can reflect the user's input. habit.
  • the embodiment of this application establishes its own personalized word database for each user based on the historical input content generated by each user in the process of using the input method.
  • the personalized word database conforms to the user's input habits and is based on the user's personalized word database.
  • the decoding path weight corresponding to the voice information input by the user can be determined, and then the speech recognition result corresponding to the speech information can be determined according to the decoding path weight.
  • the historical input content generated during the user's use of the input method may specifically include: text content that has been on the screen before the current cursor position, or text content copied by the user.
  • the historical input content may also be text content input by the user in an instant messaging application and sent to the communication peer, or may also be text content input by the user in an input environment such as a browser, document, microblog, and mail; It can be understood that the embodiment of the present application does not limit the specific source of the historical input content.
  • the voice decoder when the "libing" voice information input by user A is received, the voice decoder combines user A's personalized vocabulary in the process of decoding user A's voice information. It is known that the historical input content generated during the input method of user A often contains "Li Bing". Therefore, additional weight can be added to the decoding path containing "Li Bing", so that the decoding path is preferentially selected, and user A's voice is obtained. The voice recognition result of the message is "Li Bing".
  • the voice decoder can automatically load the user’s personalized vocabulary, and then decode the personalized vocabulary that hits the personalized vocabulary during the decoding process.
  • the path is weighted in real time, so that the final recognition result is inclined to the user's input habits, which can improve the accuracy of speech recognition.
  • the method may further include:
  • Step S11 Collect historical input content generated by the user in the process of using the input method
  • Step S12 preprocessing the historical input content to obtain preprocessed historical input content
  • Step S13 Filter non-personalized words in the preprocessed historical input content to obtain personalized words
  • Step S14 Establish a personalized vocabulary of the user according to the personalized vocabulary.
  • the embodiment of the present application can save the historical input content generated by the user through the input method when the user uses the input method, and establish the user's personalized vocabulary based on the historical input content.
  • the historical input content can be stored in the user's terminal device, or can be stored in a cloud server.
  • the embodiment of the present application may preprocess the user's historical input content, for example, perform data cleaning on the historical input content, remove noise data, etc., to obtain the preprocessed historical input content.
  • filter the non-personalized vocabulary in the preprocessed historical input content to obtain the personalized vocabulary.
  • the non-personalized vocabulary may include conjunctions, prepositions, function words and so on.
  • the personalized vocabulary may include common person names, place names, organization names, personal idioms, domain interest vocabulary, internet hot words, etc. It can be understood that the type of the personalized vocabulary can be preset according to actual needs, and the embodiment of the present application does not limit the type of the personalized vocabulary.
  • the personalized vocabulary can be used as a kind of portrait description of the user.
  • the personalized vocabulary can be stored in the user's terminal device, or can be stored in a cloud server, and the user's personalized vocabulary has a one-to-one correspondence with the user's identity information. For example, the correspondence relationship between the user identification and the user's personalized vocabulary can be established, or the correspondence between the user's voiceprint characteristics and the user's personalized vocabulary can also be established.
  • the user identification of the user such as a login account
  • voiceprint recognition of the voice input by the user can be performed to obtain the voiceprint characteristics of the user.
  • the user’s personalized vocabulary can be loaded from the cloud server.
  • the weight of the decoding path that hits the personalized vocabulary It can be enhanced in real time, so that the final voice recognition result tends to the personalized vocabulary in the user's personalized vocabulary, which conforms to the user's input habits.
  • the user's personalized vocabulary can be updated periodically. For example, after the user’s personalized vocabulary is established, the input content generated by the user through the input method can be obtained in real time, and the input content can be preprocessed and filtered to obtain personalized vocabulary, which is added to the user’s existing personalized vocabulary In this way, the user’s personalized vocabulary can be continuously updated to adapt to the user’s new input habits and preferences.
  • the method may further include:
  • Step S21 Calculate the similarity between the personalized word databases of at least two users
  • Step S22 If it is determined that the similarity satisfies the preset condition, merge the personalized vocabulary of the at least two users to obtain a combined personalized vocabulary.
  • the embodiment of the present application calculates the similarity of the personalized vocabulary of different users to determine whether the user has similar input habits, and merges the personalized vocabulary of users with similar input habits to realize the personality of the user.
  • the lexicon is expanded.
  • the personalized vocabulary of the at least two users can be merged , Get the merged personalized vocabulary.
  • obtaining the personalized vocabulary of the user may specifically include: obtaining the merged personalized vocabulary.
  • the merged personalized vocabulary N(uv) can be loaded, and the decoding path weight corresponding to the voice information can be determined according to the personalized vocabulary in N(uv).
  • the merged personalized vocabulary N(uv) can be loaded, and the decoding path corresponding to the voice information can be determined according to the personalized vocabulary in N(uv) Weights.
  • the calculating the similarity between the personalized vocabulary of at least two users may specifically include:
  • Step S31 Calculate the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
  • Step S32 Calculate the similarity between the personalized vocabulary of the at least two users according to the cosine distance.
  • the embodiment of the present application can calculate the similarity between users through the common personalized vocabulary included in the user personalized vocabulary.
  • the embodiment of the present application may calculate the cosine distance between the personalized word databases of at least two users according to the common vocabulary included in the personalized word databases of the at least two users.
  • the common vocabulary refers to the number of common personalized vocabulary.
  • N(u) denote user U’s personalized vocabulary, including user U’s personalized vocabulary
  • N(v) denote user V’s personalized vocabulary, including user V Personalized vocabulary.
  • the similarity W UV between N(u) and N(v) can be calculated by the cosine distance, as follows:
  • Step S22 determines that the similarity between the personalized vocabularies of the at least two users meets a preset condition, which may specifically include: if the cosine distance between the personalized vocabularies of the at least two users is less than a preset threshold, It is determined that the similarity between the personalized word databases of the at least two users meets the preset condition. That is, if W UV is less than the preset threshold, it can be determined that the similarity between user U's personalized vocabulary N(u) and user V's personalized vocabulary N(v) satisfies the preset condition, and N(u ) And N(v) can be combined.
  • a preset condition may specifically include: if the cosine distance between the personalized vocabularies of the at least two users is less than a preset threshold, It is determined that the similarity between the personalized word databases of the at least two users meets the preset condition. That is, if W UV is less than the preset threshold, it can be determined that the similarity between user U's personalized vocabulary
  • the method may further include:
  • Step S41 Classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
  • Step S42 Perform statistics on the personalized vocabulary corresponding to different fields in the personalized vocabulary, and determine the personalized label corresponding to the personalized vocabulary.
  • the field to which the personalized vocabulary belongs in the user's personalized vocabulary can also be determined, and then the user's personalized vocabulary can be marked with a personalized label indicating the field tendency.
  • the user’s personalized vocabulary contains personalized words such as “hot pot”, “western food”, “net celebrity restaurant”, etc., since these personalized words correspond to “food”, the user’s personalization can be determined
  • the personalized labels corresponding to the thesaurus are “food”, “food”, etc.
  • the user’s personalized vocabulary contains personalized words such as “blockchain”, “face recognition”, and “cloud computing”, since the corresponding field of these personalized words is "IT technology”, it can be determined
  • the personalized tags corresponding to the user's personalized vocabulary are "IT Engineer", “IT Technology”, etc.
  • personalized vocabulary corresponding to different fields can be preset, and the personalized vocabulary corresponding to different fields in the user's personalized vocabulary can be counted, and the personalized label corresponding to the personalized vocabulary can be determined.
  • the user's personalized vocabulary can be labeled with multiple different personalized tags.
  • the personalized vocabulary corresponding to different fields in a user’s personalized vocabulary is counted, and the user’s personalized vocabulary includes the fields of "finance", "judicial", and "medical health”.
  • the personalized vocabulary of the user can be labeled with multiple personalized labels such as “financial”, “judicial”, and “medical health” for the user's personalized vocabulary.
  • Step S22 determines that the similarity between the personalized vocabularies of the at least two users meets a preset condition, which may specifically include: if the personalized vocabularies of the at least two users have the same personalized tag, determining that all the personalized vocabularies of the at least two users have the same personalized tag. It is stated that the similarity between the personalized word databases of at least two users meets the preset condition.
  • two users have the same personalized tag, it means that the two users have the same field tendency. For example, the two users may be engaged in the same profession or have the same hobbies. Therefore, if it is determined that the personalized vocabularies of at least two users have the same personalized label, it can be determined that the similarity between the personalized vocabularies of the at least two users meets the preset condition, and the at least two user The personalized vocabulary of each user is merged.
  • the merging of the personalized vocabulary of the at least two users in step S22 to obtain the merged personalized vocabulary may specifically include:
  • the vocabulary that meets the matching condition in the personalized vocabulary of the at least two users is merged to obtain a merged personalized vocabulary.
  • the personalized vocabulary of the at least two users may be merged, and two solutions may be adopted for the merging.
  • all vocabularies in the personalized vocabulary to be merged can be combined.
  • N(u) denote user U's personalized vocabulary, which includes user U's personalized vocabulary
  • N(v) represents user V's personalized vocabulary, which includes user V's personalized vocabulary. If the similarity between N(u) and N(v) meets the preset condition, all words in N(u) and all words in N(v) can be merged.
  • de-duplication can be performed after merging. After processing, the merged personalized vocabulary is obtained.
  • the matching conditions may include: belonging to the same field, having the same personalized label, and so on. It can be understood that those skilled in the art can set the matching conditions according to actual needs. For example, in the above example, after determining that the similarity between N(u) and N(v) meets a preset condition, the words that meet the matching condition can be further determined in N(u) and N(v), such as determining N( U) and N(v) belong to the same field vocabulary, and then only the words belonging to the same field in N(u) and N(v) are merged. Of course, after the merge, you can perform de-duplication and other processing to obtain the merged Personalized thesaurus.
  • the determining the decoding path weight corresponding to the voice information according to the personalized vocabulary may specifically include:
  • Step S51 matching the word sequences corresponding to each decoding path of the voice information with the personalized word database
  • Step S52 Determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary.
  • the voice segment corresponding to the voice information may be scored by the acoustic model and the language model by the frame by frame through a preset decoding network, so as to obtain a voice recognition result.
  • the basic structure of the decoding network is a directed graph composed of nodes and arcs. Each arc can save an entry and its acoustic model information and/or language model information.
  • acoustic model information is generally expressed as acoustic model scores
  • language model information is generally expressed as language model scores.
  • Speech recognition is the process of finding an optimal path on this directed graph based on the input speech data.
  • the acoustic model is used to calculate the probability from speech to syllable
  • the language model is used to calculate the probability from syllable to word.
  • Both the acoustic model score and the language model score can be obtained through pre-model training.
  • the electronic device on which the voice recognition method runs can obtain the voice recognition result according to the final score result after performing acoustic model scoring and language model checking on the voice segment frame by frame. Specifically, after the acoustic model scoring and the language model checking are performed, the scores of all nodes on each decoding path in the decoding network can be added to form the score of the decoding path. Then, the one or more decoding paths with the highest scores are backtracked, and the word sequence corresponding to the corresponding decoding path can be obtained. In this way, the phrase or sentence composed of the obtained word sequence can be used as the result of speech recognition.
  • Step 104 determining the voice recognition result corresponding to the voice information according to the decoding path weight, may specifically include: determining the voice information corresponding to the weight of the decoding path corresponding to the matching vocabulary in the word sequence of each decoding path The result of speech recognition.
  • the word sequence corresponding to each decoding path is matched with the user's personalized vocabulary, if one or more of the word sequences have matching words in the personalized vocabulary ,
  • the weight of the decoding path corresponding to the matched vocabulary is determined according to the word frequency information corresponding to the matched vocabulary. For example, for the user U, who often inputs "Li Bing" through the input method, his personalized vocabulary may include the personalized vocabulary "Li Bing" and the word frequency corresponding to the personalized vocabulary.
  • the voice decoder will match the word sequence corresponding to each decoding path with the user's personalized vocabulary.
  • the method may further include:
  • Step S61 Acquire context information of the matched vocabulary in the speech recognition result
  • Step S62 Perform error correction on the speech recognition result according to the context information, and obtain an error-corrected speech recognition result.
  • the personalized vocabulary in the user's personalized vocabulary can reflect the user's input habits, only determining the weight of the decoding path based on the personalized vocabulary may cause some false incentives. For example, if the voice information input by a user is "lijiewansui" (Long live understanding), since the user's personalized vocabulary contains the personalized vocabulary "Sister Li” with a high word frequency, it may be recognized as “Long live Lijie” result. However, according to the context information, it can be known that the result that the user wants to output may be “Long Live Understanding", which leads to an error in the recognition result.
  • the context information of the matched vocabulary in the voice recognition result can also be obtained, and based on the context information, the voice recognition result Perform error correction and obtain the speech recognition result after error correction.
  • the voice recognition result can be determined as "Long live Sister Li” according to the user's personalized vocabulary.
  • the context information of the matching vocabulary "Sister Li” in the voice recognition result can be obtained. If the voice recognition result of the obtained voice information is "Long live Sister Li, Silian is not guilty", according to the following information "Silian is not guilty", it can be determined that the voice recognition result is wrong, and the voice recognition result can be corrected.
  • the word sequence with the second highest weight in the decoding path corresponding to the voice information can be obtained.
  • the embodiment of the present application can obtain the user's personalized vocabulary, and determine the decoding path weight corresponding to the voice information according to the personalized vocabulary, and The decoding path weight determines the voice recognition result corresponding to the voice information. Since the personalized thesaurus is established based on the historical input content generated during the user’s use of the input method, the personalized dictionary conforms to the user’s input habits, and can be based on the user’s input in the process of decoding the voice information input by the user.
  • the personalized vocabulary of ” performs real-time weighting on the speech decoding path, so that the final recognition result tends to the user’s input habits, thereby improving the accuracy of speech recognition.
  • FIG. 2 a structural block diagram of an embodiment of a speech recognition device of the present application is shown, and the device may specifically include:
  • the voice receiving module 201 is used to receive voice information input by the user;
  • the lexicon acquisition module 202 is configured to acquire a personalized lexicon of the user, and the personalized lexicon is established based on the historical input content generated during the process of using the input method by the user;
  • the weight determination module 203 is configured to determine the decoding path weight corresponding to the voice information according to the personalized vocabulary
  • the result determining module 204 is configured to determine the voice recognition result corresponding to the voice information according to the decoding path weight.
  • the device may further include:
  • a data collection module which is used to collect historical input content generated by the user in the process of using the input method
  • the data processing module is used to preprocess the historical input content to obtain the preprocessed historical input content
  • the data filtering module is used to filter the non-personalized vocabulary in the pre-processed historical input content to obtain the personalized vocabulary
  • the vocabulary establishment module is used to establish the personalized vocabulary of the user according to the personalized vocabulary.
  • the device may further include:
  • the similarity calculation module is used to calculate the similarity between the personalized vocabulary of at least two users
  • the database merging module is configured to merge the personalized lexicons of the at least two users if it is determined that the similarity between the personalized lexicons of the at least two users meets a preset condition to obtain the merged personality
  • the vocabulary acquisition module is specifically configured to obtain the merged personalized vocabulary.
  • the similarity calculation module may specifically include:
  • the distance calculation submodule is configured to calculate the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
  • a similarity calculation sub-module configured to calculate the similarity between the personalized vocabularies of the at least two users according to the cosine distance
  • the database merging module may specifically include:
  • the first determining sub-module is configured to determine that if the cosine distance between the personalized vocabularies of the at least two users is less than a preset threshold, determine that the similarity between the personalized vocabularies of the at least two users meets the preset threshold Set conditions.
  • the device may further include:
  • the vocabulary classification module is used to classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
  • the label establishment module is configured to perform statistics on the personalized vocabulary corresponding to different fields in the personalized dictionary, and determine the personalized label corresponding to the user;
  • the database merging module may specifically include:
  • the first merging sub-module is used to merge all the words in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary
  • the first merging sub-module is used to merge the vocabulary that meets the matching condition in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary.
  • the database merging module may specifically include:
  • the second determining sub-module is configured to determine that the similarity between the personalized vocabularies of the at least two users meets a preset condition if the personalized vocabularies of the at least two users have the same personalized tag.
  • the weight determination module may specifically include:
  • the lexicon matching sub-module is used to match the word sequence corresponding to each decoding path of the voice information with the personalized lexicon;
  • a weight determination submodule configured to determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary;
  • the result determination module is specifically configured to determine the speech recognition result corresponding to the speech information according to the weight of the decoding path corresponding to the matching vocabulary in the word sequence of each decoding path.
  • the device may further include:
  • a context acquisition module configured to acquire context information of the matched vocabulary in the speech recognition result
  • the result error correction module is configured to perform error correction on the speech recognition result according to the context information to obtain the speech recognition result after the error correction.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • An embodiment of the application provides a device for speech recognition, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors
  • the one or more programs include instructions for performing the following operations: receiving voice information input by a user; acquiring a personalized vocabulary of the user, and the personalized vocabulary is generated according to the process of using the input method by the user
  • the historical input content is established; according to the personalized vocabulary, the decoding path weight corresponding to the speech information is determined; according to the decoding path weight, the speech recognition result corresponding to the speech information is determined.
  • Fig. 3 is a block diagram showing a device 800 for speech recognition according to an exemplary embodiment.
  • the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
  • the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, And the communication component 816.
  • the processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing element 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support operations in the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 804 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 and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable and Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power supply component 806 provides power to various components of the device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from users.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice information processing mode, the microphone is configured to receive external audio signals.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the device 800 with various aspects of status assessment.
  • the sensor component 814 can detect the on/off status of the device 800 and the relative positioning of components.
  • the component is the display and the keypad of the device 800.
  • the sensor component 814 can also detect the position change of the device 800 or a component of the device 800. , The presence or absence of contact between the user and the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800.
  • the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
  • the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency information processing (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency information processing
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the apparatus 800 may be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing equipment (DSPD), programmable logic devices (PLD), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing equipment
  • PLD programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which may be executed by the processor 820 of the device 800 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • Fig. 4 is a schematic diagram of the structure of a server in some embodiments of the present application.
  • the server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and a memory 1932, one or one
  • the above storage medium 1930 (for example, one or one storage device with a large amount of storage) for storing application programs 1942 or data 1944.
  • the memory 1932 and the storage medium 1930 may be short-term storage or permanent storage.
  • the program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the server.
  • the central processing unit 1922 may be configured to communicate with the storage medium 1930, and execute a series of instruction operations in the storage medium 1930 on the server 1900.
  • the server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941 , Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.
  • a non-transitory computer-readable storage medium when instructions in the storage medium are executed by a processor of a device (server or terminal), the device can execute the voice recognition method shown in FIG. 1.
  • a non-transitory computer-readable storage medium When the instructions in the storage medium are executed by the processor of the device (server or terminal), the device can execute a voice recognition method, the method comprising: receiving user input Acquire the user’s personalized vocabulary, the personalized vocabulary is established based on the historical input content generated during the user’s use of the input method; determine the voice according to the personalized vocabulary The decoding path weight corresponding to the information; and the speech recognition result corresponding to the speech information is determined according to the decoding path weight.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment
  • the instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Abstract

A speech recognition method and a device (800) for speech recognition. The method specifically comprises: receiving speech information inputted by a user (101); obtaining a personalized vocabulary of the user, wherein the personalized vocabulary is established according to historical input content generated according to a process during which the user uses an input method (102); according to the personalized vocabulary, determining a decoding path weight corresponding to the speech information (103); and according to the decoding path weight, determining a speech recognition result corresponding to the speech information (104). The described method and device (800) may improve the accuracy of speech recognition.

Description

一种语音识别方法、装置和用于语音识别的装置Speech recognition method, device and device for speech recognition
本申请要求在2019年12月26日提交中国专利局、申请号为201911369489.9、发明名称为“一种语音识别方法、装置和用于语音识别的装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 26, 2019, the application number is 201911369489.9, and the invention title is "a voice recognition method, device and device for voice recognition", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种语音识别方法、装置和用于语音识别的装置。This application relates to the field of computer technology, and in particular to a voice recognition method, device, and device for voice recognition.
背景技术Background technique
语音识别技术就是让机器通过识别和理解过程把语音信号转变为相应的文本或命令的技术。随着科学技术的不断发展,语音识别技术得到了飞速的发展,语音识别的准确率不断提高,在人机交互领域的应用正在逐步扩大。Voice recognition technology is a technology that allows machines to convert voice signals into corresponding texts or commands through the process of recognition and understanding. With the continuous development of science and technology, speech recognition technology has been developed rapidly, the accuracy of speech recognition has been continuously improved, and the application in the field of human-computer interaction is gradually expanding.
在实际应用中,不同用户说出相同发音的语音时,可能对应不同的含义。例如,用户A说“libing”时,用户A想要得到的语音识别结果是“李冰”,而用户B说“libing”时,用户B想要得到的语音识别结果是“李兵”。在这种情况下,可能导致语音识别的准确性较低。In practical applications, when different users speak the same pronunciation, they may correspond to different meanings. For example, when user A says "libing", the voice recognition result that user A wants is "Li Bing", and when user B says "libing", the voice recognition result that user B wants is "Li Bing". In this case, the accuracy of speech recognition may be low.
发明内容Summary of the invention
本申请实施例提供一种语音识别方法、装置和用于语音识别的装置,可以提语音识别的准确性。The embodiments of the present application provide a voice recognition method, device, and device for voice recognition, which can improve the accuracy of voice recognition.
为了解决上述问题,本申请实施例公开了一种语音识别方法,所述方法包括:In order to solve the above-mentioned problem, an embodiment of the present application discloses a voice recognition method, and the method includes:
接收用户输入的语音信息;Receive voice information input by the user;
获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Acquiring a personalized vocabulary of the user, the personalized vocabulary being established based on historical input content generated during the user's use of the input method;
根据所述个性化词库,确定所述语音信息对应的解码路径权重;Determining the decoding path weight corresponding to the voice information according to the personalized vocabulary;
根据所述解码路径权重,确定所述语音信息对应的语音识别结果。According to the decoding path weight, the speech recognition result corresponding to the speech information is determined.
另一方面,本申请实施例公开了一种语音识别装置,所述装置包括:On the other hand, an embodiment of the present application discloses a voice recognition device, which includes:
语音接收模块,用于接收用户输入的语音信息;The voice receiving module is used to receive the voice information input by the user;
词库获取模块,用于获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Thesaurus acquisition module, configured to acquire the user's personalized thesaurus, the personalized thesaurus is established based on the historical input content generated during the user's use of the input method;
权重确定模块,用于根据所述个性化词库,确定所述语音信息对应的解码路径权重;A weight determination module, configured to determine the decoding path weight corresponding to the voice information according to the personalized vocabulary;
结果确定模块,用于根据所述解码路径权重,确定所述语音信息对应的语音识别结果。The result determining module is configured to determine the voice recognition result corresponding to the voice information according to the decoding path weight.
再一方面,本申请实施例公开了一种用于语音识别的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:In another aspect, an embodiment of the present application discloses a device for speech recognition, including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be composed of one or more programs. The execution of the one or more programs by the above processor includes instructions for performing the following operations:
接收用户输入的语音信息;Receive voice information input by the user;
获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Acquiring a personalized vocabulary of the user, the personalized vocabulary being established based on historical input content generated during the user's use of the input method;
根据所述个性化词库,确定所述语音信息对应的解码路径权重;Determining the decoding path weight corresponding to the voice information according to the personalized vocabulary;
根据所述解码路径权重,确定所述语音信息对应的语音识别结果。According to the decoding path weight, the speech recognition result corresponding to the speech information is determined.
又一方面,本申请实施例公开了一种机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如前述一个或多个所述的语音识别方法。In another aspect, an embodiment of the present application discloses a machine-readable medium with instructions stored thereon, which when executed by one or more processors, cause the device to execute one or more of the aforementioned voice recognition methods.
本申请实施例包括以下优点:The embodiments of the present application include the following advantages:
本申请实施例在接收用户输入的语音信息之后,获取所述用户的个性化词库,并且根据所述个性化词库,确定所述语音信息对应的解码路径权重,以及根据所述解码路径权重,确定所述语音信息对应的语音识别结果。由于所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立,该个性化词库符合用户的输入习惯,在对用户输入的语音信息进行解码过程中可以根据用户的个性化词库对语音解码路径进行实时加权,从而使得最终的识别结果倾向于用户的输入习惯,进而可以提高语音识别的准确性。After receiving the voice information input by the user, the embodiment of the application obtains the user's personalized vocabulary, and determines the decoding path weight corresponding to the voice information according to the personalized vocabulary, and according to the decoding path weight To determine the voice recognition result corresponding to the voice information. Since the personalized thesaurus is established based on the historical input content generated during the user’s use of the input method, the personalized dictionary conforms to the user’s input habits, and can be based on the user’s input in the process of decoding the voice information input by the user. The personalized vocabulary of ”performs real-time weighting on the speech decoding path, so that the final recognition result tends to the user’s input habits, thereby improving the accuracy of speech recognition.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例 的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请的一种语音识别方法实施例的步骤流程图;Fig. 1 is a flowchart of steps of an embodiment of a speech recognition method of the present application;
图2是本申请的一种语音识别装置实施例的结构框图;Fig. 2 is a structural block diagram of an embodiment of a speech recognition device of the present application;
图3是本申请的一种用于语音识别的装置800的框图;及FIG. 3 is a block diagram of a device 800 for speech recognition according to the present application; and
图4是本申请的一些实施例中服务器的结构示意图。Fig. 4 is a schematic diagram of the structure of a server in some embodiments of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
方法实施例Method embodiment
参照图1,示出了本申请的一种语音识别方法实施例的步骤流程图,具体可以包括如下步骤:1, it shows a flowchart of steps of an embodiment of a voice recognition method of the present application, which may specifically include the following steps:
步骤101、接收用户输入的语音信息;Step 101: Receive voice information input by a user;
步骤102、获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Step 102: Obtain a personalized vocabulary of the user, where the personalized vocabulary is established based on historical input content generated when the user uses the input method;
步骤103、根据所述个性化词库,确定所述语音信息对应的解码路径权重;Step 103: Determine the decoding path weight corresponding to the voice information according to the personalized vocabulary;
步骤104、根据所述解码路径权重,确定所述语音信息对应的语音识别结果。Step 104: Determine a voice recognition result corresponding to the voice information according to the decoding path weight.
本申请实施例的语音识别方法可适用于电子设备,所述电子设备包括但不限于:服务器、智能手机、平板电脑、电子书阅读器、MP3(动态影像专家压缩标准音频层面3,Moving Picture Experts Group Audio Layer III)播放器、MP4(动态影像专家压缩标准音频层面4,Moving Picture Experts Group Audio Layer IV)播放器、膝上型便携计算机、车载电脑、台式计算机、机顶盒、智能电视机、可穿戴设备等等。The voice recognition method in the embodiments of this application can be applied to electronic devices, including but not limited to: servers, smart phones, tablets, e-book readers, MP3 (Moving Picture Experts Compression Standard Audio Level 3, Moving Picture Experts) Group Audio Layer III) Players, MP4 (Moving Picture Experts Group Audio Layer IV) Players, laptop portable computers, car computers, desktop computers, set-top boxes, smart TVs, wearables Equipment and so on.
本申请实施例的语音识别方法可用于自动识别用户输入的语音信息, 将该语音信息转化为对应的文本信息。所述语音信息可以是一段连续的语音,例如一个句子、一段话等。可以理解,本申请实施例对所述语音信息的来源不加以限制,例如,所述语音信息可以为通过所述电子设备的录音功能实时采集的语音片段。The voice recognition method of the embodiment of the present application can be used to automatically recognize the voice information input by the user, and convert the voice information into corresponding text information. The voice information may be a continuous voice, such as a sentence, a sentence, and so on. It can be understood that the embodiment of the present application does not limit the source of the voice information. For example, the voice information may be a voice segment collected in real time through the recording function of the electronic device.
在本申请的一种可选实施例中,所述获取用户输入的语音信息,具体可以包括:获取用户通过即时通讯应用输入或发送或接收的语音信息。In an optional embodiment of the present application, the obtaining the voice information input by the user may specifically include: obtaining the voice information input or sent or received by the user through an instant messaging application.
其中,所述即时通讯应用是通过即时通讯技术来实现在线聊天、交流的应用程序。本申请实施例获取的语音信息可以包括:用户通过即时通讯应用输入的语音信息、用户通过即时通讯应用向通讯对端发送的语音信息、用户通过即时通讯应用从通讯对端接收的语音信息。Wherein, the instant messaging application is an application program that implements online chat and communication through instant messaging technology. The voice information acquired by the embodiment of the present application may include: voice information input by the user through an instant messaging application, voice information sent by the user to the communication peer through the instant messaging application, and voice information received by the user from the communication peer through the instant messaging application.
在本申请实施例中,可以根据预先设定的窗长和帧移,将用户输入的语音信息切分多帧语音片段。其中,窗长可以用于代表每一帧语音片段的时长,帧移可以用于代表相邻帧之间的时差。例如,当窗长为25ms帧移15ms时,第一帧语音片段为0~25ms,第二帧语音片段为15~40ms,依次类推。具体的窗长和帧移可以根据实际需求自行设定,本申请实施例对此不做限定。In the embodiment of the present application, the voice information input by the user may be divided into multiple frames of voice segments according to the preset window length and frame shift. Among them, the window length can be used to represent the duration of each frame of speech segment, and the frame shift can be used to represent the time difference between adjacent frames. For example, when the window length is 25ms and the frame is shifted by 15ms, the first frame of speech segment is 0-25ms, the second frame of speech segment is 15-40ms, and so on. The specific window length and frame shift can be set according to actual needs, which is not limited in the embodiment of the present application.
可选地,在将所述语音信息切分多帧语音片段之前,所述电子设备还可以对所述语音信息进行降噪处理,以提高后续系统对该信息的处理能力。Optionally, before dividing the voice information into multiple frames of voice segments, the electronic device may also perform noise reduction processing on the voice information, so as to improve the subsequent system's ability to process the information.
为了提高语音识别的准确性,本申请实施例预先为用户建立个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立,可以反映用户的输入习惯。In order to improve the accuracy of speech recognition, this embodiment of the application pre-establishes a personalized vocabulary for users. The personalized vocabulary is established based on the historical input content generated during the user's use of the input method, and can reflect the user's input. habit.
目前语音识别过程中,导致语音识别不够准确的主要问题在于对同音词的替换出现错误。例如,用户A说“libing”时,用户A想要得到的语音识别结果是“李冰”,而用户B说“libing”时,用户B想要得到的语音识别结果是“李兵”。对于同音词“libing”,不同的用户具有不同的语音识别意图。In the current speech recognition process, the main problem that causes the speech recognition to be inaccurate is the error in the replacement of homophones. For example, when user A says "libing", the voice recognition result that user A wants is "Li Bing", and when user B says "libing", the voice recognition result that user B wants is "Li Bing". For the homophone "libing", different users have different speech recognition intentions.
本申请实施例基于每个用户在使用输入法过程中产生的历史输入内容,为每个用户建立自身的个性化词库,该个性化词库符合用户的输入习惯,根据用户的个性化词库,可以确定用户输入的语音信息对应的解码路径权重,进而可以根据该解码路径权重,确定该语音信息对应的语音识别结果。The embodiment of this application establishes its own personalized word database for each user based on the historical input content generated by each user in the process of using the input method. The personalized word database conforms to the user's input habits and is based on the user's personalized word database. , The decoding path weight corresponding to the voice information input by the user can be determined, and then the speech recognition result corresponding to the speech information can be determined according to the decoding path weight.
其中,用户在使用输入法过程中产生的历史输入内容,具体可以包括:当前光标位置之前已上屏的文本内容、或者用户拷贝的文本内容等。所述历史输入内容还可以为用户在即时通讯应用中输入的向通信对端发送的文本内容,或者,还可以为用户在浏览器、文档、微博、邮件等输入环境中输入的文本内容;可以理解,本申请实施例对于所述历史输入内容的具体来源不加以限制。Among them, the historical input content generated during the user's use of the input method may specifically include: text content that has been on the screen before the current cursor position, or text content copied by the user. The historical input content may also be text content input by the user in an instant messaging application and sent to the communication peer, or may also be text content input by the user in an input environment such as a browser, document, microblog, and mail; It can be understood that the embodiment of the present application does not limit the specific source of the historical input content.
在本申请的一种应用示例中,当接收到用户A输入的“libing”语音信息时,语音解码器在对用户A的语音信息进行解码的过程中,结合用户A的个性化词库,可以得知用户A使用输入法过程中产生的历史输入内容经常包含“李冰”,因此,可以对包含“李冰”的解码路径增加额外的权重,使得该解码路径被优先选择,进而得到用户A的语音信息的语音识别结果为“李冰”。In an application example of this application, when the "libing" voice information input by user A is received, the voice decoder combines user A's personalized vocabulary in the process of decoding user A's voice information. It is known that the historical input content generated during the input method of user A often contains "Li Bing". Therefore, additional weight can be added to the decoding path containing "Li Bing", so that the decoding path is preferentially selected, and user A's voice is obtained. The voice recognition result of the message is "Li Bing".
由此,使用本申请的语音识别方法,在接收用户通过麦克风输入的语音信息之后,语音解码器可以自动加载该用户的个性化词库,然后在解码过程中对于命中该个性化词库的解码路径进行实时加权,从而使得最终的识别结果倾向于用户的输入习惯,进而可以提高语音识别的准确性。Therefore, using the voice recognition method of the present application, after receiving the voice information input by the user through the microphone, the voice decoder can automatically load the user’s personalized vocabulary, and then decode the personalized vocabulary that hits the personalized vocabulary during the decoding process. The path is weighted in real time, so that the final recognition result is inclined to the user's input habits, which can improve the accuracy of speech recognition.
在本申请的一种可选实施例中,所述获取所述用户的个性化词库之前,所述方法还可以包括:In an optional embodiment of the present application, before the obtaining the user's personalized vocabulary, the method may further include:
步骤S11、收集所述用户在使用输入法过程中产生的历史输入内容;Step S11: Collect historical input content generated by the user in the process of using the input method;
步骤S12、对所述历史输入内容进行预处理,得到预处理后的历史输入内容;Step S12, preprocessing the historical input content to obtain preprocessed historical input content;
步骤S13、对所述预处理后的历史输入内容中的非个性化词汇进行过滤,得到个性化词汇;Step S13: Filter non-personalized words in the preprocessed historical input content to obtain personalized words;
步骤S14、根据所述个性化词汇,建立所述用户的个性化词库。Step S14: Establish a personalized vocabulary of the user according to the personalized vocabulary.
本申请实施例可以在用户使用输入法的过程中,保存用户通过输入法产生的历史输入内容,根据这些历史输入内容,建立用户的个性化词库。The embodiment of the present application can save the historical input content generated by the user through the input method when the user uses the input method, and establish the user's personalized vocabulary based on the historical input content.
可以理解,所述历史输入内容可以存储在用户的终端设备,或者可以存储在云端服务器。本申请实施例可以对用户的历史输入内容进行预处理,例如对历史输入内容进行数据清洗,去除噪音数据等,得到预处理后的历史输入内容。然后对预处理后的历史输入内容中的非个性化词汇进行过滤, 得到个性化词汇。其中,所述非个性化词汇可以包括连词、介词、虚词等。所述个性化词汇可以包括常用人名、地名、机构名、个人习惯用语、领域兴趣词汇、网络热词等。可以理解,所述个性化词汇的种类可以根据实际需要预先设置,本申请实施例对所述个性化词汇的种类不加以限制。所述个性化词汇可以作为用户的一种画像描述。It can be understood that the historical input content can be stored in the user's terminal device, or can be stored in a cloud server. The embodiment of the present application may preprocess the user's historical input content, for example, perform data cleaning on the historical input content, remove noise data, etc., to obtain the preprocessed historical input content. Then filter the non-personalized vocabulary in the preprocessed historical input content to obtain the personalized vocabulary. Wherein, the non-personalized vocabulary may include conjunctions, prepositions, function words and so on. The personalized vocabulary may include common person names, place names, organization names, personal idioms, domain interest vocabulary, internet hot words, etc. It can be understood that the type of the personalized vocabulary can be preset according to actual needs, and the embodiment of the present application does not limit the type of the personalized vocabulary. The personalized vocabulary can be used as a kind of portrait description of the user.
所述个性化词库可以存储在用户的终端设备,或者可以存储在云端服务器,并且用户的个性化词库与用户的身份信息具有一一对应的关系。例如,可以建立用户标识与用户的个性化词库之间的对应关系,或者,还可以建立用户的声纹特征与用户的个性化词库之间的对应关系。The personalized vocabulary can be stored in the user's terminal device, or can be stored in a cloud server, and the user's personalized vocabulary has a one-to-one correspondence with the user's identity information. For example, the correspondence relationship between the user identification and the user's personalized vocabulary can be established, or the correspondence between the user's voiceprint characteristics and the user's personalized vocabulary can also be established.
当用户对着终端设备的麦克风输入一段语音之后,可以获取该用户的用户标识,如登录账号等;或者,还可以对该用户输入的语音进行声纹识别,得到该用户的声纹特征。根据该用户的用户标识或者声纹特征,可以从云端服务器加载该用户的个性化词库,在对该用户输入的语音信息进行语音识别的过程中,对于命中个性化词库的解码路径的权重可以进行实时加强,从而使得最终语音识别的结果倾向于该用户个性化词库中的个性化词汇,符合该用户的输入习惯。After the user inputs a piece of voice into the microphone of the terminal device, the user identification of the user, such as a login account, can be obtained; or, voiceprint recognition of the voice input by the user can be performed to obtain the voiceprint characteristics of the user. According to the user’s user identification or voiceprint characteristics, the user’s personalized vocabulary can be loaded from the cloud server. In the process of voice recognition of the voice information input by the user, the weight of the decoding path that hits the personalized vocabulary It can be enhanced in real time, so that the final voice recognition result tends to the personalized vocabulary in the user's personalized vocabulary, which conforms to the user's input habits.
可选地,对于用户的个性化词库,可以周期性地进行更新。例如,在建立用户的个性化词库之后,可以实时获取用户通过输入法产生的输入内容,并且对该输入内容进行预处理以及过滤,得到个性化词汇,加入到用户已有的个性化词库中,使得用户的个性化词库可以不断更新,不断适应用户新的输入习惯和喜好。Optionally, the user's personalized vocabulary can be updated periodically. For example, after the user’s personalized vocabulary is established, the input content generated by the user through the input method can be obtained in real time, and the input content can be preprocessed and filtered to obtain personalized vocabulary, which is added to the user’s existing personalized vocabulary In this way, the user’s personalized vocabulary can be continuously updated to adapt to the user’s new input habits and preferences.
在本申请的一种可选实施例中,所述建立所述用户的个性化词库之后,所述方法还可以包括:In an optional embodiment of the present application, after the establishment of the user's personalized vocabulary, the method may further include:
步骤S21、计算至少两个用户的个性化词库之间的相似度;Step S21: Calculate the similarity between the personalized word databases of at least two users;
步骤S22、若确定所述相似度满足预设条件,则对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库。Step S22: If it is determined that the similarity satisfies the preset condition, merge the personalized vocabulary of the at least two users to obtain a combined personalized vocabulary.
在具体应用中,有些用户具有相似的输入习惯,通常也具有相同或相近的语音识别结果。因此,本申请实施例通过对不同用户的个性化词库计算相似度,判断用户是否具有相似的输入习惯,并且对具有相似输入习惯的用户的个性化词库进行合并,以实现对用户的个性化词库进行扩充。In specific applications, some users have similar input habits and usually have the same or similar speech recognition results. Therefore, the embodiment of the present application calculates the similarity of the personalized vocabulary of different users to determine whether the user has similar input habits, and merges the personalized vocabulary of users with similar input habits to realize the personality of the user. The lexicon is expanded.
具体地,如果至少两个用户的个性化词库之间的相似度满足预设条件,说明该至少两个用户具有相似的输入习惯,则可以对该至少两个用户的个性化词库进行合并,得到合并后的个性化词库。Specifically, if the similarity between the personalized vocabulary of at least two users meets the preset condition, indicating that the at least two users have similar input habits, the personalized vocabulary of the at least two users can be merged , Get the merged personalized vocabulary.
例如,对于用户U和用户V,如果用户U的个性化词库N(u)和用户V的个性化词库N(v)之间的相似度满足预设条件,则可以将N(u)和N(v)进行合并,得到合并后的个性化词库N(uv),合并后的个性化词库N(uv)中包括N(u)中的个性化词汇和N(v)中的个性化词汇。步骤102所述获取所述用户的个性化词库,具体可以包括:获取所述合并后的个性化词库。For example, for user U and user V, if the similarity between user U's personalized vocabulary N(u) and user V's personalized vocabulary N(v) meets a preset condition, then N(u) Merge with N(v) to obtain the merged personalized vocabulary N(uv). The merged personalized vocabulary N(uv) includes the personalized words in N(u) and the words in N(v) Personalized vocabulary. In step 102, obtaining the personalized vocabulary of the user may specifically include: obtaining the merged personalized vocabulary.
在对用户U输入的语音信息进行识别的过程中,可以加载合并后的个性化词库N(uv),根据N(uv)中的个性化词汇,确定该语音信息对应的解码路径权重。同样地,在对用户V输入的语音信息进行识别的过程中,可以加载合并后的个性化词库N(uv),根据N(uv)中的个性化词汇,确定该语音信息对应的解码路径权重。由此,用户U和用户V的个性化词库均得到了扩充,这样可以更加丰富用户的个性化词库,进一步提高语音识别的准确性。In the process of recognizing the voice information input by the user U, the merged personalized vocabulary N(uv) can be loaded, and the decoding path weight corresponding to the voice information can be determined according to the personalized vocabulary in N(uv). Similarly, in the process of recognizing the voice information input by user V, the merged personalized vocabulary N(uv) can be loaded, and the decoding path corresponding to the voice information can be determined according to the personalized vocabulary in N(uv) Weights. As a result, both the personalized vocabulary of user U and user V have been expanded, which can enrich the user's personalized vocabulary and further improve the accuracy of speech recognition.
在本申请的一种可选实施例中,所述计算至少两个用户的个性化词库之间的相似度,具体可以包括:In an optional embodiment of the present application, the calculating the similarity between the personalized vocabulary of at least two users may specifically include:
步骤S31、根据所述至少两个用户的个性化词库包含的共同词汇量,计算所述至少两个用户的个性化词库之间的余弦距离;Step S31: Calculate the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
步骤S32、根据所述余弦距离,计算所述至少两个用户的个性化词库之间的相似度。Step S32: Calculate the similarity between the personalized vocabulary of the at least two users according to the cosine distance.
通常,如果两个用户的个性化词库中包含的共同的个性化词汇越多,说明这两个用户的输入习惯越相似,也即这两个用户的个性化词库的相似度越高。因此,本申请实施例可以通过用户个性化词库中包含的共同的个性化词汇来计算用户之间的相似度。Generally, if the personalized vocabulary of two users contains more common personalized vocabulary, it means that the input habits of the two users are more similar, that is, the similarity of the personalized vocabulary of the two users is higher. Therefore, the embodiment of the present application can calculate the similarity between users through the common personalized vocabulary included in the user personalized vocabulary.
具体地,本申请实施例可以根据至少两个用户的个性化词库包含的共同词汇量,计算所述至少两个用户的个性化词库之间的余弦距离。其中,所述共同词汇量指的是共同的个性化词汇的数量。Specifically, the embodiment of the present application may calculate the cosine distance between the personalized word databases of at least two users according to the common vocabulary included in the personalized word databases of the at least two users. Wherein, the common vocabulary refers to the number of common personalized vocabulary.
例如,对于用户U和用户V,令N(u)表示用户U的个性化词库,其中包括用户U的个性化词汇;令N(v)表示用户V的个性化词库,其中包括用 户V的个性化词汇。那么,可以通过余弦距离来计算N(u)和N(v)之间的相似度W UV,具体如下: For example, for user U and user V, let N(u) denote user U’s personalized vocabulary, including user U’s personalized vocabulary; let N(v) denote user V’s personalized vocabulary, including user V Personalized vocabulary. Then, the similarity W UV between N(u) and N(v) can be calculated by the cosine distance, as follows:
Figure PCTCN2020110037-appb-000001
Figure PCTCN2020110037-appb-000001
根据公式(1)可以看出,N(u)和N(v)的共同词汇量越多,那么他们之间的相似度也就越高。步骤S22确定所述至少两个用户的个性化词库之间的相似度满足预设条件,具体可以包括:若所述至少两个用户的个性化词库之间的余弦距离小于预设阈值,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。也即,如果W UV小于预设阈值,则可以确定用户U的个性化词库N(u)和用户V的个性化词库N(v)之间的相似度满足预设条件,N(u)和N(v)可以合并。 According to formula (1), it can be seen that the more common vocabulary of N(u) and N(v), the higher the similarity between them. Step S22 determines that the similarity between the personalized vocabularies of the at least two users meets a preset condition, which may specifically include: if the cosine distance between the personalized vocabularies of the at least two users is less than a preset threshold, It is determined that the similarity between the personalized word databases of the at least two users meets the preset condition. That is, if W UV is less than the preset threshold, it can be determined that the similarity between user U's personalized vocabulary N(u) and user V's personalized vocabulary N(v) satisfies the preset condition, and N(u ) And N(v) can be combined.
在本申请的一种可选实施例中,所述建立所述用户的个性化词库之后,所述方法还可以包括:In an optional embodiment of the present application, after the establishment of the user's personalized vocabulary, the method may further include:
步骤S41、根据所述个性化词库中个性化词汇对应的领域,对所述个性化词汇进行分类;Step S41: Classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
步骤S42、对所述个性化词库中不同领域对应的个性化词汇进行统计,确定所述个性化词库对应的个性化标签。Step S42: Perform statistics on the personalized vocabulary corresponding to different fields in the personalized vocabulary, and determine the personalized label corresponding to the personalized vocabulary.
本申请实施例在建立用户的个性化词库之后,还可以确定用户的个性化词库中个性化词汇所属的领域,进而可以对用户的个性化词库打上表示领域倾向的个性化标签。In the embodiment of the present application, after establishing the user's personalized vocabulary, the field to which the personalized vocabulary belongs in the user's personalized vocabulary can also be determined, and then the user's personalized vocabulary can be marked with a personalized label indicating the field tendency.
例如,如果用户的个性化词库中包含“火锅”、“西餐”、“网红餐厅”等个性化词汇,由于这些个性化词汇对应的领域为“美食”,则可以确定该用户的个性化词库对应的个性化标签为“吃货”、“美食”等。又如,如果用户的个性化词库中包含“区块链”、“人脸识别”、“云计算”等个性化词汇,由于这些个性化词汇对应的领域为“IT科技”,则可以确定该用户的个性化词库对应的个性化标签为“IT工程师”、“IT科技”等。For example, if the user’s personalized vocabulary contains personalized words such as “hot pot”, “western food”, “net celebrity restaurant”, etc., since these personalized words correspond to “food”, the user’s personalization can be determined The personalized labels corresponding to the thesaurus are "food", "food", etc. For another example, if the user’s personalized vocabulary contains personalized words such as "blockchain", "face recognition", and "cloud computing", since the corresponding field of these personalized words is "IT technology", it can be determined The personalized tags corresponding to the user's personalized vocabulary are "IT Engineer", "IT Technology", etc.
在本申请实施例中,可以预先设置不同领域对应的个性化词汇,对用户的个性化词库中不同领域对应的个性化词汇进行统计,可以确定个性化词库对应的个性化标签。在实际应用中,如果某一个用户的个性化词库中 包含多个不同领域对应的个性化词汇,则可以对该用户的个性化词库打上多个不同的个性化标签。例如,对某用户的个性化词库中不同领域对应的个性化词汇进行统计,得到该用户的个性化词库中包括“财经”领域、“司法”领域、“医疗健康”领域等多个领域的个性化词汇,则可以为该用户的个性化词库打上“财经”、“司法”、以及“医疗健康”等多个个性化标签。In the embodiment of the present application, personalized vocabulary corresponding to different fields can be preset, and the personalized vocabulary corresponding to different fields in the user's personalized vocabulary can be counted, and the personalized label corresponding to the personalized vocabulary can be determined. In practical applications, if a user's personalized vocabulary contains multiple personalized vocabularies corresponding to different fields, then the user's personalized vocabulary can be labeled with multiple different personalized tags. For example, the personalized vocabulary corresponding to different fields in a user’s personalized vocabulary is counted, and the user’s personalized vocabulary includes the fields of "finance", "judicial", and "medical health". The personalized vocabulary of the user can be labeled with multiple personalized labels such as "financial", "judicial", and "medical health" for the user's personalized vocabulary.
步骤S22确定所述至少两个用户的个性化词库之间的相似度满足预设条件,具体可以包括:若所述至少两个用户的个性化词库具有相同的个性化标签,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。Step S22 determines that the similarity between the personalized vocabularies of the at least two users meets a preset condition, which may specifically include: if the personalized vocabularies of the at least two users have the same personalized tag, determining that all the personalized vocabularies of the at least two users have the same personalized tag. It is stated that the similarity between the personalized word databases of at least two users meets the preset condition.
如果两个用户具有相同的个性化标签,说明这两个用户具有相同的领域倾向,例如这两个用户可能从事相同的职业,或者具有相同的爱好等。因此,若确定至少两个用户的个性化词库具有相同的个性化标签,则可以确定所述至少两个用户的个性化词库之间的相似度满足预设条件,可以将所述至少两个用户的个性化词库进行合并。If two users have the same personalized tag, it means that the two users have the same field tendency. For example, the two users may be engaged in the same profession or have the same hobbies. Therefore, if it is determined that the personalized vocabularies of at least two users have the same personalized label, it can be determined that the similarity between the personalized vocabularies of the at least two users meets the preset condition, and the at least two user The personalized vocabulary of each user is merged.
在本申请的一种可选实施例中,步骤S22中所述对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库,具体可以包括:In an optional embodiment of the present application, the merging of the personalized vocabulary of the at least two users in step S22 to obtain the merged personalized vocabulary may specifically include:
对所述至少两个用户的个性化词库中的全部词汇进行合并,得到合并后的个性化词库;或者Merging all the words in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary; or
对所述至少两个用户的个性化词库中的满足匹配条件的词汇进行合并,得到合并后的个性化词库。The vocabulary that meets the matching condition in the personalized vocabulary of the at least two users is merged to obtain a merged personalized vocabulary.
在本申请实施例中,在确定相似度满足预设条件的至少两个用户的个性化词库之后,可以对该至少两个用户的个性化词库进行合并,合并可以采用两种方案。In the embodiment of the present application, after determining the personalized vocabulary of at least two users whose similarity meets a preset condition, the personalized vocabulary of the at least two users may be merged, and two solutions may be adopted for the merging.
具体地,可以对待合并的个性化词汇中的全部词汇进行合并,例如,对于用户U和用户V,令N(u)表示用户U的个性化词库,其中包括用户U的个性化词汇;令N(v)表示用户V的个性化词库,其中包括用户V的个性化词汇。如果N(u)和N(v)的相似度满足预设条件,则可以将N(u)中的全部词汇和N(v)中的全部词汇进行合并,当然,合并后可以进行去重等处理,得到合并后的个性化词库。Specifically, all vocabularies in the personalized vocabulary to be merged can be combined. For example, for user U and user V, let N(u) denote user U's personalized vocabulary, which includes user U's personalized vocabulary; N(v) represents user V's personalized vocabulary, which includes user V's personalized vocabulary. If the similarity between N(u) and N(v) meets the preset condition, all words in N(u) and all words in N(v) can be merged. Of course, de-duplication can be performed after merging. After processing, the merged personalized vocabulary is obtained.
或者,还可以仅对待合并的个性化词汇中的满足匹配条件的词汇进行 合并。其中,所述匹配条件可以包括:属于相同的领域、具有相同的个性化标签等。可以理解,本领域技术人员可以根据实际需要设置所述匹配条件。例如,在上述示例中,确定N(u)和N(v)的相似度满足预设条件之后,可以进一步在N(u)和N(v)中确定满足匹配条件的词汇,如确定N(u)和N(v)中属于相同领域的词汇,进而仅对N(u)和N(v)中属于相同领域的词汇进行合并,当然,合并后可以进行去重等处理,得到合并后的个性化词库。Or, it is also possible to merge only the words that meet the matching conditions among the personalized words to be merged. Wherein, the matching conditions may include: belonging to the same field, having the same personalized label, and so on. It can be understood that those skilled in the art can set the matching conditions according to actual needs. For example, in the above example, after determining that the similarity between N(u) and N(v) meets a preset condition, the words that meet the matching condition can be further determined in N(u) and N(v), such as determining N( U) and N(v) belong to the same field vocabulary, and then only the words belonging to the same field in N(u) and N(v) are merged. Of course, after the merge, you can perform de-duplication and other processing to obtain the merged Personalized thesaurus.
在本申请的一种可选实施例中,所述根据所述个性化词库,确定所述语音信息对应的解码路径权重,具体可以包括:In an optional embodiment of the present application, the determining the decoding path weight corresponding to the voice information according to the personalized vocabulary may specifically include:
步骤S51、对所述语音信息对应各解码路径的词序列,分别与所述个性化词库进行匹配;Step S51, matching the word sequences corresponding to each decoding path of the voice information with the personalized word database;
步骤S52、根据所述词序列在所述个性化词库中的匹配词汇对应的词频信息,确定所述匹配词汇对应解码路径的权重。Step S52: Determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary.
本申请实施例可以通过预设的解码网络,对所述语音信息对应的语音片段逐帧进行声学模型打分和语言模型查分,以得到语音识别结果。其中,解码网络的基本结构是一个有向图,由结点和弧组成。每个弧上可以保存一个词条以及这个词条的声学模型信息和/或语言模型信息。在实践中,声学模型信息一般表现为声学模型得分,语言模型信息一般表现为语言模型得分,语音识别就是根据输入的语音数据在这个有向图上寻找一条最优路径的过程。其中,声学模型用于从语音到音节的概率计算,语言模型用于从音节到字的概率计算。声学模型得分和语言模型得分都可以通过预先的模型训练得到。In the embodiment of the present application, the voice segment corresponding to the voice information may be scored by the acoustic model and the language model by the frame by frame through a preset decoding network, so as to obtain a voice recognition result. Among them, the basic structure of the decoding network is a directed graph composed of nodes and arcs. Each arc can save an entry and its acoustic model information and/or language model information. In practice, acoustic model information is generally expressed as acoustic model scores, and language model information is generally expressed as language model scores. Speech recognition is the process of finding an optimal path on this directed graph based on the input speech data. Among them, the acoustic model is used to calculate the probability from speech to syllable, and the language model is used to calculate the probability from syllable to word. Both the acoustic model score and the language model score can be obtained through pre-model training.
在本申请实施例中,语音识别方法运行于其上的电子设备在对语音片段逐帧进行声学模型打分和语言模型查分后,可以根据最终的得分结果得到语音识别结果。具体地,在进行声学模型打分和语言模型查分后,可以将解码网络中每条解码路径上所有节点的得分相加,作为该解码路径的得分。然后对得分最高的一条或多条解码路径进行回溯,就可以得到相应解码路径所对应的词序列。这样,由得到的词序列所组成的短语或句子,就可以作为语音识别结果。In the embodiment of the present application, the electronic device on which the voice recognition method runs can obtain the voice recognition result according to the final score result after performing acoustic model scoring and language model checking on the voice segment frame by frame. Specifically, after the acoustic model scoring and the language model checking are performed, the scores of all nodes on each decoding path in the decoding network can be added to form the score of the decoding path. Then, the one or more decoding paths with the highest scores are backtracked, and the word sequence corresponding to the corresponding decoding path can be obtained. In this way, the phrase or sentence composed of the obtained word sequence can be used as the result of speech recognition.
步骤104根据所述解码路径权重,确定所述语音信息对应的语音识别结果,具体可以包括:根据所述各解码路径的词序列中所述匹配词汇对应 解码路径的权重,确定所述语音信息对应的语音识别结果。 Step 104, determining the voice recognition result corresponding to the voice information according to the decoding path weight, may specifically include: determining the voice information corresponding to the weight of the decoding path corresponding to the matching vocabulary in the word sequence of each decoding path The result of speech recognition.
本申请实施例在上述解码过程中,对每一条解码路径对应的词序列,分别与用户的个性化词库进行匹配,如果其中一个或多个词序列在所述个性化词库中存在匹配词汇,则根据所述匹配词汇对应的词频信息,确定所述匹配词汇对应解码路径的权重。例如,对于用户U,其经常通过输入法输入“李冰”,则其个性化词库中可以包括个性化词汇“李冰”以及该个性化词汇对应的词频。当用户U通过麦克风输入语音信息“libing”时,语音解码器对该语音信息进行解码的过程中,会对每一条解码路径对应的词序列,分别与用户的个性化词库进行匹配。假设词序列“李冰”和“李兵”在用户U的个性化词库中均存在匹配词汇,则获取该个性化词库中匹配词汇“李冰”和“李兵”的词频,假设“李冰”的词频大于“李兵”,则可以确定解码路径“李冰”对应的权重大于解码路径“李兵”的权重。由此,可以得到最终的识别结果为“李冰”,该识别结果符合用户U的输入习惯,因此识别结果更加准确。In this embodiment of the application, in the foregoing decoding process, the word sequence corresponding to each decoding path is matched with the user's personalized vocabulary, if one or more of the word sequences have matching words in the personalized vocabulary , The weight of the decoding path corresponding to the matched vocabulary is determined according to the word frequency information corresponding to the matched vocabulary. For example, for the user U, who often inputs "Li Bing" through the input method, his personalized vocabulary may include the personalized vocabulary "Li Bing" and the word frequency corresponding to the personalized vocabulary. When the user U inputs the voice information "libing" through the microphone, in the process of decoding the voice information, the voice decoder will match the word sequence corresponding to each decoding path with the user's personalized vocabulary. Assuming that the word sequences "Li Bing" and "Li Bing" both have matching words in the user U's personalized thesaurus, obtain the word frequency of the matching words "Li Bing" and "Li Bing" in the personalized thesaurus, and assume the word frequency of "Li Bing" If it is greater than "Li Bing", it can be determined that the weight corresponding to the decoding path "Li Bing" is greater than the weight of the decoding path "Li Bing". Therefore, the final recognition result can be obtained as "Li Bing", which conforms to the input habit of the user U, and therefore the recognition result is more accurate.
在本申请的一种可选实施例中,步骤104根据所述解码路径权重,确定所述语音信息对应的语音识别结果之后,所述方法还可以包括:In an optional embodiment of the present application, after determining the voice recognition result corresponding to the voice information according to the decoding path weight in step 104, the method may further include:
步骤S61、获取所述匹配词汇在所述语音识别结果中的上下文信息;Step S61: Acquire context information of the matched vocabulary in the speech recognition result;
步骤S62、根据所述上下文信息,对所述语音识别结果进行纠错,得到纠错后的语音识别结果。Step S62: Perform error correction on the speech recognition result according to the context information, and obtain an error-corrected speech recognition result.
在实际应用中,用户个性化词库中的个性化词汇虽然可以反应用户的输入习惯,但是仅根据个性化词汇确定解码路径的权重,可能会导致一些误激励。例如,假设某用户输入的语音信息为“lijiewansui”(理解万岁),由于该用户的个性化词库中包含词频较高的个性化词汇“李姐”,则可能得到“李姐万岁”这个识别结果。然而,根据上下文信息可以得知,该用户更想输出的结果可能是“理解万岁”,导致识别结果有误。In practical applications, although the personalized vocabulary in the user's personalized vocabulary can reflect the user's input habits, only determining the weight of the decoding path based on the personalized vocabulary may cause some false incentives. For example, if the voice information input by a user is "lijiewansui" (Long live understanding), since the user's personalized vocabulary contains the personalized vocabulary "Sister Li" with a high word frequency, it may be recognized as "Long live Lijie" result. However, according to the context information, it can be known that the result that the user wants to output may be "Long Live Understanding", which leads to an error in the recognition result.
因此,本申请实施例在确定所述语音信息对应的语音识别结果之后,还可以获取所述匹配词汇在所述语音识别结果中的上下文信息,并根据所述上下文信息,对所述语音识别结果进行纠错,得到纠错后的语音识别结果。Therefore, after determining the voice recognition result corresponding to the voice information in the embodiment of the present application, the context information of the matched vocabulary in the voice recognition result can also be obtained, and based on the context information, the voice recognition result Perform error correction and obtain the speech recognition result after error correction.
例如,在上述示例中,根据用户的个性化词库可以确定语音识别结果为“李姐万岁”,此时,可以获取所述匹配词汇“李姐”在所述语音识别结果中 的上下文信息。如获取得到该语音信息的语音识别结果为“李姐万岁,思恋无罪”,根据下文信息“思恋无罪”可以确定该语音识别结果有误,则可以对该语音识别结果进行纠错。具体地,可以获取该语音信息对应的解码路径权重次高的词序列,假设为“理解”,且“理解万岁”与当前上下文信息相符,则可以使用“理解”对“李姐”进行纠错,得到纠错后的语音识别结果“理解万岁”,并且输出纠错后的语音识别结果。For example, in the above example, the voice recognition result can be determined as "Long live Sister Li" according to the user's personalized vocabulary. At this time, the context information of the matching vocabulary "Sister Li" in the voice recognition result can be obtained. If the voice recognition result of the obtained voice information is "Long live Sister Li, Silian is not guilty", according to the following information "Silian is not guilty", it can be determined that the voice recognition result is wrong, and the voice recognition result can be corrected. Specifically, the word sequence with the second highest weight in the decoding path corresponding to the voice information can be obtained. If it is "understanding" and "Long live understanding" is consistent with the current context information, you can use "understand" to correct the error of "Sister Li" , Get the speech recognition result "Long Live Understanding" after error correction, and output the speech recognition result after error correction.
综上,本申请实施例在接收用户输入的语音信息之后,可以获取所述用户的个性化词库,并且根据所述个性化词库,确定所述语音信息对应的解码路径权重,以及根据所述解码路径权重,确定所述语音信息对应的语音识别结果。由于所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立,该个性化词库符合用户的输入习惯,在对用户输入的语音信息进行解码过程中可以根据用户的个性化词库对语音解码路径进行实时加权,从而使得最终的识别结果倾向于用户的输入习惯,进而可以提高语音识别的准确性。In summary, after receiving the voice information input by the user, the embodiment of the present application can obtain the user's personalized vocabulary, and determine the decoding path weight corresponding to the voice information according to the personalized vocabulary, and The decoding path weight determines the voice recognition result corresponding to the voice information. Since the personalized thesaurus is established based on the historical input content generated during the user’s use of the input method, the personalized dictionary conforms to the user’s input habits, and can be based on the user’s input in the process of decoding the voice information input by the user. The personalized vocabulary of ”performs real-time weighting on the speech decoding path, so that the final recognition result tends to the user’s input habits, thereby improving the accuracy of speech recognition.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the described sequence of actions, because According to the embodiments of the present application, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
装置实施例Device embodiment
参照图2,示出了本申请的一种语音识别装置实施例的结构框图,所述装置具体可以包括:Referring to FIG. 2, a structural block diagram of an embodiment of a speech recognition device of the present application is shown, and the device may specifically include:
语音接收模块201,用于接收用户输入的语音信息;The voice receiving module 201 is used to receive voice information input by the user;
词库获取模块202,用于获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;The lexicon acquisition module 202 is configured to acquire a personalized lexicon of the user, and the personalized lexicon is established based on the historical input content generated during the process of using the input method by the user;
权重确定模块203,用于根据所述个性化词库,确定所述语音信息对应的解码路径权重;The weight determination module 203 is configured to determine the decoding path weight corresponding to the voice information according to the personalized vocabulary;
结果确定模块204,用于根据所述解码路径权重,确定所述语音信息对应的语音识别结果。The result determining module 204 is configured to determine the voice recognition result corresponding to the voice information according to the decoding path weight.
可选地,所述装置还可以包括:Optionally, the device may further include:
数据收集模块,用于收集所述用户在使用输入法过程中产生的历史输入内容;A data collection module, which is used to collect historical input content generated by the user in the process of using the input method;
数据处理模块,用于对所述历史输入内容进行预处理,得到预处理后的历史输入内容;The data processing module is used to preprocess the historical input content to obtain the preprocessed historical input content;
数据过滤模块,用于个对所述预处理后的历史输入内容中的非个性化词汇进行过滤,得到个性化词汇;The data filtering module is used to filter the non-personalized vocabulary in the pre-processed historical input content to obtain the personalized vocabulary;
词库建立模块,用于根据所述个性化词汇,建立所述用户的个性化词库。The vocabulary establishment module is used to establish the personalized vocabulary of the user according to the personalized vocabulary.
可选地,所述装置还可以包括:Optionally, the device may further include:
相似度计算模块,用于计算至少两个用户的个性化词库之间的相似度;The similarity calculation module is used to calculate the similarity between the personalized vocabulary of at least two users;
数据库合并模块,用于若确定所述至少两个用户的个性化词库之间的相似度满足预设条件,则对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库;The database merging module is configured to merge the personalized lexicons of the at least two users if it is determined that the similarity between the personalized lexicons of the at least two users meets a preset condition to obtain the merged personality The lexicon
所述词库获取模块,具体用于获取所述合并后的个性化词库。The vocabulary acquisition module is specifically configured to obtain the merged personalized vocabulary.
可选地,所述相似度计算模块,具体可以包括:Optionally, the similarity calculation module may specifically include:
距离计算子模块,用于根据所述至少两个用户的个性化词库包含的共同词汇量,计算所述至少两个用户的个性化词库之间的余弦距离;The distance calculation submodule is configured to calculate the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
相似度计算子模块,用于根据所述余弦距离,计算所述至少两个用户的个性化词库之间的相似度;A similarity calculation sub-module, configured to calculate the similarity between the personalized vocabularies of the at least two users according to the cosine distance;
所述数据库合并模块,具体可以包括:The database merging module may specifically include:
第一确定子模块,用于若所述至少两个用户的个性化词库之间的余弦距离小于预设阈值,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。The first determining sub-module is configured to determine that if the cosine distance between the personalized vocabularies of the at least two users is less than a preset threshold, determine that the similarity between the personalized vocabularies of the at least two users meets the preset threshold Set conditions.
可选地,所述装置还可以包括:Optionally, the device may further include:
词汇分类模块,用于根据所述个性化词库中个性化词汇对应的领域,对所述个性化词汇进行分类;The vocabulary classification module is used to classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
标签建立模块,用于对所述个性化词库中不同领域对应的个性化词汇进行统计,确定所述用户对应的个性化标签;The label establishment module is configured to perform statistics on the personalized vocabulary corresponding to different fields in the personalized dictionary, and determine the personalized label corresponding to the user;
可选地,所述数据库合并模块,具体可以包括:Optionally, the database merging module may specifically include:
第一合并子模块,用于对所述至少两个用户的个性化词库中的全部词汇进行合并,得到合并后的个性化词库;或者The first merging sub-module is used to merge all the words in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary; or
第一合并子模块,用于对所述至少两个用户的个性化词库中的满足匹配条件的词汇进行合并,得到合并后的个性化词库。The first merging sub-module is used to merge the vocabulary that meets the matching condition in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary.
所述数据库合并模块,具体可以包括:The database merging module may specifically include:
第二确定子模块,用于若所述至少两个用户的个性化词库具有相同的个性化标签,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。The second determining sub-module is configured to determine that the similarity between the personalized vocabularies of the at least two users meets a preset condition if the personalized vocabularies of the at least two users have the same personalized tag.
可选地,所述权重确定模块,具体可以包括:Optionally, the weight determination module may specifically include:
词库匹配子模块,用于对所述语音信息对应各解码路径的词序列,分别与所述个性化词库进行匹配;The lexicon matching sub-module is used to match the word sequence corresponding to each decoding path of the voice information with the personalized lexicon;
权重确定子模块,用于根据所述词序列在所述个性化词库中的匹配词汇对应的词频信息,确定所述匹配词汇对应解码路径的权重;A weight determination submodule, configured to determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary;
所述结果确定模块,具体用于根据所述各解码路径的词序列中所述匹配词汇对应解码路径的权重,确定所述语音信息对应的语音识别结果。The result determination module is specifically configured to determine the speech recognition result corresponding to the speech information according to the weight of the decoding path corresponding to the matching vocabulary in the word sequence of each decoding path.
可选地,所述装置还可以包括:Optionally, the device may further include:
上下文获取模块,用于获取所述匹配词汇在所述语音识别结果中的上下文信息;A context acquisition module, configured to acquire context information of the matched vocabulary in the speech recognition result;
结果纠错模块,用于根据所述上下文信息,对所述语音识别结果进行纠错,得到纠错后的语音识别结果。The result error correction module is configured to perform error correction on the speech recognition result according to the context information to obtain the speech recognition result after the error correction.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the foregoing embodiment, the specific manner in which each module performs operation has been described in detail in the embodiment of the method, and detailed description will not be given here.
本申请实施例提供了一种用于语音识别的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包 含用于进行以下操作的指令:接收用户输入的语音信息;获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;根据所述个性化词库,确定所述语音信息对应的解码路径权重;根据所述解码路径权重,确定所述语音信息对应的语音识别结果。An embodiment of the application provides a device for speech recognition, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors The one or more programs include instructions for performing the following operations: receiving voice information input by a user; acquiring a personalized vocabulary of the user, and the personalized vocabulary is generated according to the process of using the input method by the user The historical input content is established; according to the personalized vocabulary, the decoding path weight corresponding to the speech information is determined; according to the decoding path weight, the speech recognition result corresponding to the speech information is determined.
图3是根据一示例性实施例示出的一种用于语音识别的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 3 is a block diagram showing a device 800 for speech recognition according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
参照图3,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。3, the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, And the communication component 816.
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations in the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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 and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the device 800.
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用 户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 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 can be implemented as a touch screen to receive input signals from users. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音信息处理模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice information processing mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the device 800 with various aspects of status assessment. For example, the sensor component 814 can detect the on/off status of the device 800 and the relative positioning of components. For example, the component is the display and the keypad of the device 800. The sensor component 814 can also detect the position change of the device 800 or a component of the device 800. , The presence or absence of contact between the user and the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。 例如,在NFC模块可基于射频信息处理(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 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 816 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 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency information processing (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing equipment (DSPD), programmable logic devices (PLD), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which may be executed by the processor 820 of the device 800 to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
图4是本申请的一些实施例中服务器的结构示意图。该服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在服务器1900上执行存储介质1930中的一系列指令操作。Fig. 4 is a schematic diagram of the structure of a server in some embodiments of the present application. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and a memory 1932, one or one The above storage medium 1930 (for example, one or one storage device with a large amount of storage) for storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 may be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the server. Furthermore, the central processing unit 1922 may be configured to communicate with the storage medium 1930, and execute a series of instruction operations in the storage medium 1930 on the server 1900.
服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941 , Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置(服务器或者终端)的处理器执行时,使得装置能够执行图1所示的语音识别方法。A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device (server or terminal), the device can execute the voice recognition method shown in FIG. 1.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置(服务器或者终端)的处理器执行时,使得装置能够执行一种语音识别方法,所述方法包括:接收用户输入的语音信息;获取所述用户的个性化词 库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;根据所述个性化词库,确定所述语音信息对应的解码路径权重;根据所述解码路径权重,确定所述语音信息对应的语音识别结果。A non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the device (server or terminal), the device can execute a voice recognition method, the method comprising: receiving user input Acquire the user’s personalized vocabulary, the personalized vocabulary is established based on the historical input content generated during the user’s use of the input method; determine the voice according to the personalized vocabulary The decoding path weight corresponding to the information; and the speech recognition result corresponding to the speech information is determined according to the decoding path weight.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of this application 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 this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing terminal equipment to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing terminal equipment A device for realizing the functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram is generated.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present application. This application is intended to cover any variations, uses, or adaptive changes of this application. These variations, uses, or adaptive changes follow the general principles of this application and include common knowledge or customary technical means in the technical field that are not disclosed in this disclosure. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the application are pointed out by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the application is only limited by the appended claims.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在 本申请的保护范围之内。The above descriptions are only preferred embodiments of this application, and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within range.
以上对本申请所提供的一种语音识别方法、一种语音识别装置和一种用于语音识别的装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above provides a detailed introduction to a voice recognition method, a voice recognition device, and a device for voice recognition provided by the present application. In this article, specific examples are used to illustrate the principles and implementations of the present application. The description of the above embodiments is only used to help understand the method and core idea of the application; at the same time, for those of ordinary skill in the art, according to the idea of the application, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation on this application.

Claims (25)

  1. 一种语音识别方法,其特征在于,所述方法包括:A speech recognition method, characterized in that the method includes:
    接收用户输入的语音信息;Receive voice information input by the user;
    获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Acquiring a personalized vocabulary of the user, the personalized vocabulary being established based on historical input content generated during the user's use of the input method;
    根据所述个性化词库,确定所述语音信息对应的解码路径权重;Determining the decoding path weight corresponding to the voice information according to the personalized vocabulary;
    根据所述解码路径权重,确定所述语音信息对应的语音识别结果。According to the decoding path weight, the speech recognition result corresponding to the speech information is determined.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述用户的个性化词库之前,所述方法还包括:The method according to claim 1, characterized in that, before said obtaining the user's personalized vocabulary, the method further comprises:
    收集所述用户在使用输入法过程中产生的历史输入内容;Collect historical input content generated by the user in the process of using the input method;
    对所述历史输入内容进行预处理,得到预处理后的历史输入内容;Preprocessing the historical input content to obtain preprocessed historical input content;
    对所述预处理后的历史输入内容中的非个性化词汇进行过滤,得到个性化词汇;Filtering non-personalized words in the preprocessed historical input content to obtain personalized words;
    根据所述个性化词汇,建立所述用户的个性化词库。According to the personalized vocabulary, a personalized vocabulary of the user is established.
  3. 根据权利要求2所述的方法,其特征在于,所述建立所述用户的个性化词库之后,所述方法还包括:The method according to claim 2, characterized in that, after the establishment of the user's personalized vocabulary, the method further comprises:
    计算至少两个用户的个性化词库之间的相似度;Calculate the similarity between the personalized vocabulary of at least two users;
    若确定所述至少两个用户的个性化词库之间的相似度满足预设条件,则对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库;If it is determined that the similarity between the personalized word databases of the at least two users meets a preset condition, merge the personalized word databases of the at least two users to obtain a merged personalized word database;
    所述获取所述用户的个性化词库,包括:The obtaining the personalized vocabulary of the user includes:
    获取所述合并后的个性化词库。Obtain the merged personalized vocabulary.
  4. 根据权利要求3所述的方法,其特征在于,所述计算至少两个用户的个性化词库之间的相似度,包括:The method according to claim 3, wherein the calculating the similarity between the personalized vocabulary of at least two users comprises:
    根据所述至少两个用户的个性化词库包含的共同词汇量,计算所述至少两个用户的个性化词库之间的余弦距离;Calculating the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
    根据所述余弦距离,计算所述至少两个用户的个性化词库之间的相似度;Calculating the similarity between the personalized vocabulary of the at least two users according to the cosine distance;
    所述确定所述至少两个用户的个性化词库之间的相似度满足预设条件,包括:The determining that the similarity between the personalized word databases of the at least two users meets a preset condition includes:
    若所述至少两个用户的个性化词库之间的余弦距离小于预设阈值,则 确定所述至少两个用户的个性化词库之间的相似度满足预设条件。If the cosine distance between the personalized vocabularies of the at least two users is less than the preset threshold, it is determined that the similarity between the personalized vocabularies of the at least two users meets the preset condition.
  5. 根据权利要求3所述的方法,其特征在于,所述建立所述用户的个性化词库之后,所述方法还包括:The method according to claim 3, characterized in that, after the establishment of the user's personalized vocabulary, the method further comprises:
    根据所述个性化词库中个性化词汇对应的领域,对所述个性化词汇进行分类;Classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
    对所述个性化词库中不同领域对应的个性化词汇进行统计,确定所述用户对应的个性化标签;Perform statistics on the personalized vocabulary corresponding to different fields in the personalized dictionary, and determine the personalized tag corresponding to the user;
    所述确定所述至少两个用户的个性化词库之间的相似度满足预设条件,包括:The determining that the similarity between the personalized word databases of the at least two users meets a preset condition includes:
    若所述至少两个用户的个性化词库具有相同的个性化标签,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。If the personalized vocabularies of the at least two users have the same personalized label, it is determined that the similarity between the personalized vocabularies of the at least two users meets a preset condition.
  6. 根据权利要求3所述的方法,其特征在于,所述对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库,包括:The method according to claim 3, wherein the merging the personalized vocabulary of the at least two users to obtain the merged personalized vocabulary comprises:
    对所述至少两个用户的个性化词库中的全部词汇进行合并,得到合并后的个性化词库;或者Merging all the words in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary; or
    对所述至少两个用户的个性化词库中的满足匹配条件的词汇进行合并,得到合并后的个性化词库。The vocabulary that meets the matching condition in the personalized vocabulary of the at least two users is merged to obtain a merged personalized vocabulary.
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述个性化词库,确定所述语音信息对应的解码路径权重,包括:The method according to claim 1, wherein the determining the decoding path weight corresponding to the voice information according to the personalized vocabulary comprises:
    对所述语音信息对应各解码路径的词序列,分别与所述个性化词库进行匹配;Matching the word sequences corresponding to each decoding path of the voice information with the personalized word library;
    根据所述词序列在所述个性化词库中的匹配词汇对应的词频信息,确定所述匹配词汇对应解码路径的权重;Determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary;
    所述根据所述解码路径权重,确定所述语音信息对应的语音识别结果,包括:The determining the voice recognition result corresponding to the voice information according to the decoding path weight includes:
    根据所述各解码路径的词序列中所述匹配词汇对应解码路径的权重,确定所述语音信息对应的语音识别结果。The speech recognition result corresponding to the speech information is determined according to the weight of the matching vocabulary corresponding to the decoding path in the word sequence of each decoding path.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述解码路径权重,确定所述语音信息对应的语音识别结果之后,所述方法还包括:The method according to claim 7, wherein, after the speech recognition result corresponding to the speech information is determined according to the decoding path weight, the method further comprises:
    获取所述匹配词汇在所述语音识别结果中的上下文信息;Acquiring context information of the matched vocabulary in the speech recognition result;
    根据所述上下文信息,对所述语音识别结果进行纠错,得到纠错后的语音识别结果。According to the context information, error correction is performed on the speech recognition result to obtain an error-corrected speech recognition result.
  9. 一种语音识别装置,其特征在于,所述装置包括:A speech recognition device, characterized in that the device includes:
    语音接收模块,用于接收用户输入的语音信息;The voice receiving module is used to receive the voice information input by the user;
    词库获取模块,用于获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Thesaurus acquisition module, configured to acquire the user's personalized thesaurus, the personalized thesaurus is established based on the historical input content generated during the user's use of the input method;
    权重确定模块,用于根据所述个性化词库,确定所述语音信息对应的解码路径权重;A weight determination module, configured to determine the decoding path weight corresponding to the voice information according to the personalized vocabulary;
    结果确定模块,用于根据所述解码路径权重,确定所述语音信息对应的语音识别结果。The result determining module is configured to determine the voice recognition result corresponding to the voice information according to the decoding path weight.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    数据收集模块,用于收集所述用户在使用输入法过程中产生的历史输入内容;A data collection module, which is used to collect historical input content generated by the user in the process of using the input method;
    数据处理模块,用于对所述历史输入内容进行预处理,得到预处理后的历史输入内容;The data processing module is used to preprocess the historical input content to obtain the preprocessed historical input content;
    数据过滤模块,用于个对所述预处理后的历史输入内容中的非个性化词汇进行过滤,得到个性化词汇;The data filtering module is used to filter the non-personalized vocabulary in the pre-processed historical input content to obtain the personalized vocabulary;
    词库建立模块,用于根据所述个性化词汇,建立所述用户的个性化词库。The vocabulary establishment module is used to establish the personalized vocabulary of the user according to the personalized vocabulary.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    相似度计算模块,用于计算至少两个用户的个性化词库之间的相似度;The similarity calculation module is used to calculate the similarity between the personalized vocabulary of at least two users;
    数据库合并模块,用于若确定所述至少两个用户的个性化词库之间的相似度满足预设条件,则对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库;The database merging module is configured to merge the personalized lexicons of the at least two users if it is determined that the similarity between the personalized lexicons of the at least two users meets a preset condition to obtain the merged personality The lexicon
    所述词库获取模块,具体用于获取所述合并后的个性化词库。The vocabulary acquisition module is specifically configured to obtain the merged personalized vocabulary.
  12. 根据权利要求11所述的装置,其特征在于,所述相似度计算模块,包括:The device according to claim 11, wherein the similarity calculation module comprises:
    距离计算子模块,用于根据所述至少两个用户的个性化词库包含的共同词汇量,计算所述至少两个用户的个性化词库之间的余弦距离;The distance calculation submodule is configured to calculate the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
    相似度计算子模块,用于根据所述余弦距离,计算所述至少两个用户 的个性化词库之间的相似度;The similarity calculation sub-module is used to calculate the similarity between the personalized vocabulary of the at least two users according to the cosine distance;
    所述数据库合并模块,包括:The database merging module includes:
    第一确定子模块,用于若所述至少两个用户的个性化词库之间的余弦距离小于预设阈值,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。The first determining sub-module is configured to determine that if the cosine distance between the personalized vocabularies of the at least two users is less than a preset threshold, determine that the similarity between the personalized vocabularies of the at least two users meets the preset threshold Set conditions.
  13. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    词汇分类模块,用于根据所述个性化词库中个性化词汇对应的领域,对所述个性化词汇进行分类;The vocabulary classification module is used to classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
    标签建立模块,用于对所述个性化词库中不同领域对应的个性化词汇进行统计,确定所述用户对应的个性化标签;The label establishment module is configured to perform statistics on the personalized vocabulary corresponding to different fields in the personalized dictionary, and determine the personalized label corresponding to the user;
    所述数据库合并模块,包括:The database merging module includes:
    第二确定子模块,用于若所述至少两个用户的个性化词库具有相同的个性化标签,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。The second determining sub-module is configured to determine that the similarity between the personalized vocabularies of the at least two users meets a preset condition if the personalized vocabularies of the at least two users have the same personalized tag.
  14. 根据权利要求11所述的装置,其特征在于,数据库合并模块,包括:The device according to claim 11, wherein the database merging module comprises:
    第一合并子模块,用于对所述至少两个用户的个性化词库中的全部词汇进行合并,得到合并后的个性化词库;或者The first merging sub-module is used to merge all the words in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary; or
    第一合并子模块,用于对所述至少两个用户的个性化词库中的满足匹配条件的词汇进行合并,得到合并后的个性化词库。The first merging sub-module is used to merge the vocabulary that meets the matching condition in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary.
  15. 根据权利要求9所述的装置,其特征在于,所述权重确定模块,包括:The device according to claim 9, wherein the weight determination module comprises:
    词库匹配子模块,用于对所述语音信息对应各解码路径的词序列,分别与所述个性化词库进行匹配;The lexicon matching sub-module is used to match the word sequence corresponding to each decoding path of the voice information with the personalized lexicon;
    权重确定子模块,用于根据所述词序列在所述个性化词库中的匹配词汇对应的词频信息,确定所述匹配词汇对应解码路径的权重;A weight determination submodule, configured to determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary;
    所述结果确定模块,具体用于根据所述各解码路径的词序列中所述匹配词汇对应解码路径的权重,确定所述语音信息对应的语音识别结果。The result determination module is specifically configured to determine the speech recognition result corresponding to the speech information according to the weight of the decoding path corresponding to the matching vocabulary in the word sequence of each decoding path.
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括:The device according to claim 15, wherein the device further comprises:
    上下文获取模块,用于获取所述匹配词汇在所述语音识别结果中的上 下文信息;A context acquisition module, configured to acquire context information of the matched vocabulary in the speech recognition result;
    结果纠错模块,用于根据所述上下文信息,对所述语音识别结果进行纠错,得到纠错后的语音识别结果。The result error correction module is configured to perform error correction on the speech recognition result according to the context information to obtain the speech recognition result after the error correction.
  17. 一种用于语音识别的装置,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:A device for speech recognition, characterized by comprising a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors One or more programs contain instructions for the following operations:
    接收用户输入的语音信息;Receive voice information input by the user;
    获取所述用户的个性化词库,所述个性化词库为根据所述用户使用输入法过程中产生的历史输入内容所建立;Acquiring a personalized vocabulary of the user, the personalized vocabulary being established based on historical input content generated during the user's use of the input method;
    根据所述个性化词库,确定所述语音信息对应的解码路径权重;Determining the decoding path weight corresponding to the voice information according to the personalized vocabulary;
    根据所述解码路径权重,确定所述语音信息对应的语音识别结果。According to the decoding path weight, the speech recognition result corresponding to the speech information is determined.
  18. 根据权利要求17所述的装置,其特征在于,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The device of claim 17, wherein the device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations:
    收集所述用户在使用输入法过程中产生的历史输入内容;Collect historical input content generated by the user in the process of using the input method;
    对所述历史输入内容进行预处理,得到预处理后的历史输入内容;Preprocessing the historical input content to obtain preprocessed historical input content;
    对所述预处理后的历史输入内容中的非个性化词汇进行过滤,得到个性化词汇;Filtering non-personalized words in the preprocessed historical input content to obtain personalized words;
    根据所述个性化词汇,建立所述用户的个性化词库。According to the personalized vocabulary, a personalized vocabulary of the user is established.
  19. 根据权利要求18所述的装置,其特征在于,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The device of claim 18, wherein the device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations:
    计算至少两个用户的个性化词库之间的相似度;Calculate the similarity between the personalized vocabulary of at least two users;
    若确定所述至少两个用户的个性化词库之间的相似度满足预设条件,则对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库;If it is determined that the similarity between the personalized word databases of the at least two users meets a preset condition, merge the personalized word databases of the at least two users to obtain a merged personalized word database;
    所述获取所述用户的个性化词库,包括:The obtaining the personalized vocabulary of the user includes:
    获取所述合并后的个性化词库。Obtain the merged personalized vocabulary.
  20. 根据权利要求19所述的装置,其特征在于,所述计算至少两个用户的个性化词库之间的相似度,包括:The device according to claim 19, wherein said calculating the similarity between the personalized word databases of at least two users comprises:
    根据所述至少两个用户的个性化词库包含的共同词汇量,计算所述至少两个用户的个性化词库之间的余弦距离;Calculating the cosine distance between the personalized word databases of the at least two users according to the common vocabulary included in the personalized word databases of the at least two users;
    根据所述余弦距离,计算所述至少两个用户的个性化词库之间的相似度;Calculating the similarity between the personalized vocabulary of the at least two users according to the cosine distance;
    所述确定所述至少两个用户的个性化词库之间的相似度满足预设条件,包括:The determining that the similarity between the personalized word databases of the at least two users meets a preset condition includes:
    若所述至少两个用户的个性化词库之间的余弦距离小于预设阈值,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。If the cosine distance between the personalized vocabularies of the at least two users is less than the preset threshold, it is determined that the similarity between the personalized vocabularies of the at least two users meets the preset condition.
  21. 根据权利要求19所述的装置,其特征在于,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The apparatus of claim 19, wherein the apparatus is further configured to be executed by one or more processors to execute the one or more programs comprising instructions for performing the following operations:
    根据所述个性化词库中个性化词汇对应的领域,对所述个性化词汇进行分类;Classify the personalized vocabulary according to the field corresponding to the personalized vocabulary in the personalized vocabulary;
    对所述个性化词库中不同领域对应的个性化词汇进行统计,确定所述用户对应的个性化标签;Perform statistics on the personalized vocabulary corresponding to different fields in the personalized dictionary, and determine the personalized tag corresponding to the user;
    所述确定所述至少两个用户的个性化词库之间的相似度满足预设条件,包括:The determining that the similarity between the personalized word databases of the at least two users meets a preset condition includes:
    若所述至少两个用户的个性化词库具有相同的个性化标签,则确定所述至少两个用户的个性化词库之间的相似度满足预设条件。If the personalized vocabularies of the at least two users have the same personalized label, it is determined that the similarity between the personalized vocabularies of the at least two users meets a preset condition.
  22. 根据权利要求19所述的装置,其特征在于,所述对所述至少两个用户的个性化词库进行合并,得到合并后的个性化词库,包括:The device according to claim 19, wherein said merging the personalized word databases of the at least two users to obtain a merged personalized word database comprises:
    对所述至少两个用户的个性化词库中的全部词汇进行合并,得到合并后的个性化词库;或者Merging all the words in the personalized vocabulary of the at least two users to obtain a merged personalized vocabulary; or
    对所述至少两个用户的个性化词库中的满足匹配条件的词汇进行合并,得到合并后的个性化词库。The vocabulary that meets the matching condition in the personalized vocabulary of the at least two users is merged to obtain a merged personalized vocabulary.
  23. 根据权利要求17所述的装置,其特征在于,所述根据所述个性化词库,确定所述语音信息对应的解码路径权重,包括:The device according to claim 17, wherein the determining the decoding path weight corresponding to the voice information according to the personalized vocabulary comprises:
    对所述语音信息对应各解码路径的词序列,分别与所述个性化词库进行匹配;Matching the word sequences corresponding to each decoding path of the voice information with the personalized word library;
    根据所述词序列在所述个性化词库中的匹配词汇对应的词频信息,确 定所述匹配词汇对应解码路径的权重;Determine the weight of the decoding path corresponding to the matched vocabulary according to the word frequency information corresponding to the matched vocabulary of the word sequence in the personalized vocabulary;
    所述根据所述解码路径权重,确定所述语音信息对应的语音识别结果,包括:The determining the voice recognition result corresponding to the voice information according to the decoding path weight includes:
    根据所述各解码路径的词序列中所述匹配词汇对应解码路径的权重,确定所述语音信息对应的语音识别结果。The speech recognition result corresponding to the speech information is determined according to the weight of the matching vocabulary corresponding to the decoding path in the word sequence of each decoding path.
  24. 根据权利要求23所述的装置,其特征在于,所述装置还经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The device of claim 23, wherein the device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations:
    获取所述匹配词汇在所述语音识别结果中的上下文信息;Acquiring context information of the matched vocabulary in the speech recognition result;
    根据所述上下文信息,对所述语音识别结果进行纠错,得到纠错后的语音识别结果。According to the context information, error correction is performed on the speech recognition result to obtain an error-corrected speech recognition result.
  25. 一种机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如权利要求1至8中一个或多个所述的语音识别方法。A machine-readable medium with instructions stored thereon, which when executed by one or more processors, causes a device to execute the voice recognition method according to one or more of claims 1 to 8.
PCT/CN2020/110037 2019-12-26 2020-08-19 Speech recognition method, device, and device for speech recognition WO2021128880A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911369489.9 2019-12-26
CN201911369489.9A CN111145756B (en) 2019-12-26 2019-12-26 Voice recognition method and device for voice recognition

Publications (1)

Publication Number Publication Date
WO2021128880A1 true WO2021128880A1 (en) 2021-07-01

Family

ID=70520583

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110037 WO2021128880A1 (en) 2019-12-26 2020-08-19 Speech recognition method, device, and device for speech recognition

Country Status (2)

Country Link
CN (1) CN111145756B (en)
WO (1) WO2021128880A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145756B (en) * 2019-12-26 2022-06-14 北京搜狗科技发展有限公司 Voice recognition method and device for voice recognition
CN111627438A (en) * 2020-05-21 2020-09-04 四川虹美智能科技有限公司 Voice recognition method and device
CN113808593A (en) * 2020-06-16 2021-12-17 阿里巴巴集团控股有限公司 Voice interaction system, related method, device and equipment
CN112735428A (en) * 2020-12-27 2021-04-30 科大讯飞(上海)科技有限公司 Hot word acquisition method, voice recognition method and related equipment
CN112700764B (en) * 2021-03-19 2021-06-08 北京沃丰时代数据科技有限公司 Hot word voice recognition method and device, electronic equipment and storage medium
CN113593566A (en) * 2021-06-08 2021-11-02 深圳双猴科技有限公司 Voice recognition processing method and system
CN113436614B (en) * 2021-07-02 2024-02-13 中国科学技术大学 Speech recognition method, device, equipment, system and storage medium
CN113744740A (en) * 2021-09-03 2021-12-03 北京烽火万家科技有限公司 Speech recognition method, device and system based on edge calculation over-calculation AIpass
CN113963695A (en) * 2021-10-13 2022-01-21 深圳市欧瑞博科技股份有限公司 Awakening method, awakening device, equipment and storage medium of intelligent equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937383A (en) * 1996-02-02 1999-08-10 International Business Machines Corporation Apparatus and methods for speech recognition including individual or speaker class dependent decoding history caches for fast word acceptance or rejection
US20010039492A1 (en) * 2000-05-02 2001-11-08 International Business Machines Corporation Method, system, and apparatus for speech recognition
US20110066434A1 (en) * 2009-09-17 2011-03-17 Li Tze-Fen Method for Speech Recognition on All Languages and for Inputing words using Speech Recognition
CN105448292A (en) * 2014-08-19 2016-03-30 北京羽扇智信息科技有限公司 Scene-based real-time voice recognition system and method
CN108717851A (en) * 2018-03-28 2018-10-30 深圳市三诺数字科技有限公司 A kind of audio recognition method and device
CN109243468A (en) * 2018-11-14 2019-01-18 北京羽扇智信息科技有限公司 Audio recognition method, device, electronic equipment and storage medium
CN109377998A (en) * 2018-12-11 2019-02-22 科大讯飞股份有限公司 A kind of voice interactive method and device
CN110211576A (en) * 2019-04-28 2019-09-06 北京蓦然认知科技有限公司 A kind of methods, devices and systems of speech recognition
CN111145756A (en) * 2019-12-26 2020-05-12 北京搜狗科技发展有限公司 Voice recognition method and device for voice recognition

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8532994B2 (en) * 2010-08-27 2013-09-10 Cisco Technology, Inc. Speech recognition using a personal vocabulary and language model
CN103065630B (en) * 2012-12-28 2015-01-07 科大讯飞股份有限公司 User personalized information voice recognition method and user personalized information voice recognition system
KR20180074210A (en) * 2016-12-23 2018-07-03 삼성전자주식회사 Electronic device and voice recognition method of the electronic device
CN109243430B (en) * 2017-07-04 2022-03-01 北京搜狗科技发展有限公司 Voice recognition method and device
CN108831439B (en) * 2018-06-27 2023-04-18 广州视源电子科技股份有限公司 Voice recognition method, device, equipment and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937383A (en) * 1996-02-02 1999-08-10 International Business Machines Corporation Apparatus and methods for speech recognition including individual or speaker class dependent decoding history caches for fast word acceptance or rejection
US20010039492A1 (en) * 2000-05-02 2001-11-08 International Business Machines Corporation Method, system, and apparatus for speech recognition
US20110066434A1 (en) * 2009-09-17 2011-03-17 Li Tze-Fen Method for Speech Recognition on All Languages and for Inputing words using Speech Recognition
CN105448292A (en) * 2014-08-19 2016-03-30 北京羽扇智信息科技有限公司 Scene-based real-time voice recognition system and method
CN108717851A (en) * 2018-03-28 2018-10-30 深圳市三诺数字科技有限公司 A kind of audio recognition method and device
CN109243468A (en) * 2018-11-14 2019-01-18 北京羽扇智信息科技有限公司 Audio recognition method, device, electronic equipment and storage medium
CN109377998A (en) * 2018-12-11 2019-02-22 科大讯飞股份有限公司 A kind of voice interactive method and device
CN110211576A (en) * 2019-04-28 2019-09-06 北京蓦然认知科技有限公司 A kind of methods, devices and systems of speech recognition
CN111145756A (en) * 2019-12-26 2020-05-12 北京搜狗科技发展有限公司 Voice recognition method and device for voice recognition

Also Published As

Publication number Publication date
CN111145756A (en) 2020-05-12
CN111145756B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
WO2021128880A1 (en) Speech recognition method, device, and device for speech recognition
CN111460150B (en) Classification model training method, classification method, device and storage medium
CN107291690B (en) Punctuation adding method and device and punctuation adding device
CN106971723B (en) Voice processing method and device for voice processing
CN107102746B (en) Candidate word generation method and device and candidate word generation device
CN107221330B (en) Punctuation adding method and device and punctuation adding device
CN107436691B (en) Method, client, server and device for correcting errors of input method
CN105489220B (en) Voice recognition method and device
CN108399914B (en) Voice recognition method and device
WO2018076450A1 (en) Input method and apparatus, and apparatus for input
CN107564526B (en) Processing method, apparatus and machine-readable medium
CN111128183B (en) Speech recognition method, apparatus and medium
CN107291704B (en) Processing method and device for processing
CN107274903B (en) Text processing method and device for text processing
CN108073303B (en) Input method and device and electronic equipment
CN108345581A (en) A kind of information identifying method, device and terminal device
CN108628819B (en) Processing method and device for processing
CN105139848B (en) Data transfer device and device
CN107424612B (en) Processing method, apparatus and machine-readable medium
WO2021046958A1 (en) Speech information processing method and apparatus, and storage medium
WO2021208531A1 (en) Speech processing method and apparatus, and electronic device
CN111640452B (en) Data processing method and device for data processing
CN108803890A (en) A kind of input method, input unit and the device for input
CN111739535A (en) Voice recognition method and device and electronic equipment
CN112331194A (en) Input method and device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20906001

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20906001

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20906001

Country of ref document: EP

Kind code of ref document: A1