A kind of voice recognition data preprocess methodTechnical field
The present invention relates to field of speech recognition, more particularly to a kind of voice recognition data preprocess method.
Background technology
Speech recognition technology be widely used to the user terminals such as mobile phone, pc in such as:Input method, langue leaning system is searchedCable system product major part speech recognition application products absolutely are all to gather to use using user terminal in speech recognition technology applicationFamily recording data, is sent to a kind of voice knowledge that background server is identified pattern such as Publication No. CN103137129 AOther method and electronic installation, user's service condition that it passes through electronic installation collect user specific information, record the speech of user,Remote server is set to produce remote speech recognition result of speech of record etc., the shortcoming of this pattern is backstage identifying systemThe hardware system support of powerful performance is needed, high cost is built, it is more than one hundred million easily just to substantially meet large user's amount requirements for accessAnd if user terminal machine must can be calculated energy by user under network connection state using speech recognition application productPower is used, and can just be significantly reduced hardware cost but the typically no server system of user terminal computing capability is strong, thereforeNeed a kind for the treatment of for optimizing and speech recognition calculating being carried out in user terminal, the method for improving recognition efficiency.
The content of the invention
It is an object of the invention to provide one kind can Optimum utilization user terminal computing capability carry out speech recognition scoring effectRate and the treatment voice recognition data method that carries out.
Concrete technical scheme is comprised the following steps:
Step 1) organizational standard audio file, arrange the audio file for needing to generate data model;
Step 2) received text is edited, reduction needs the texts such as the literary section of identification scoring, sentence, word;
Step 3) configuration pronunciation dictionary, general pronunciation dictionary or special pronunciation dictionary that configuration this article section needs are used;
Step 4) generation correspondence speech model, correspondence speech model is generated according to above step output file, preserve languageSound model file;
Step 5) call the speech recognition engine be identified to standard pronunciation characteristic using the speech model of generationTreatment, generates and preserves standard pronunciation data model;
Step 6) pre-generatmg data model is loaded directly into application product using pre-generatmg data model carries out to userRecording is identified scoring.
Further, the step 1) it is specifically divided into following steps:
11) because user terminal CPU computing capabilitys are limited, carrying out speech recognition scoring needs identification goal-setting oneDetermine in scope and be such as set as a text content for unit;
Further, the step 2) in reduction text the step of it is as follows:An XML configuration file is created, to everyIndividual sentence or word create a node all in configuration file, and path and correspondence text are quoted comprising audio file in nodeThis;
Further, the step 3) in configuration pronunciation dictionary the step of it is as follows:31) completion word or sentence are matched somebody with somebody and are postponed,Node correspondence for each word configures the pronunciation of pronunciation dictionary, and is associated;32) further, pronunciation dictionary is divided intoConventional pronunciation dictionary and special pronunciation dictionary, if all words are all in conventional pronunciation dictionary in a literary section, at this moment just notNeed to configure special pronunciation dictionary, the word for being otherwise accomplished by creating to not having in each common dictionary carries out pronunciation mark additionTo special pronunciation dictionary;
Further, the step 4) Plays sound biometric data is as follows the step of generate:Using step 2) middle volumeThe standard audio and received text configuration file and step 3 collected) in the pronunciation dictionary that edits use speech recognition engine workThe literary section speech model of tool generation this article section, literary section speech model is for describing user pronunciation space, in identifying user pronunciationWhen, speech recognition engine is carried out rapidly and efficiently beta pruning under the conditions of vocabulary is constrained, quickly recognize user pronunciation content;
Further, the step 5) in speech model generation module the step of it is as follows:Speech recognition engine is called, it is incomingAcoustic model and in step 4) in generation literary section speech model, successively in step 2) in generation configuration file inside eachNode configures word or sentence carries out speech recognition, preserves the audio file identification number that identification engine returns to the configuration of each nodeAccording to local text, so far, the text of each word or sentence standard pronunciation is obtained, pronounced, rhythm, stress, intonationFeature-based data model to user pronunciation recognize score when only need to the incoming identification engine of data model, recognize engine useContrast scoring directly is carried out with standard pronunciation data model after the pronunciation identification of family, mark is obtained without being identified to standard pronunciationQuasi- sound data model.
The beneficial effects of the present invention are:By implementation steps of the invention, the speech recognition application such as spoken language exercise withThe speech recognition used time in the terminal of family reduces half, and the raising of recognition efficiency allows to be carried out using user terminal computing capabilityIdentification, without building server system, without network access, user can be obtained in using standalone version speech recognition applicationPreferably experience.
Brief description of the drawings
The present invention is described in further detail with reference to accompanying drawing:
Fig. 1 is the FB(flow block) of the application.
Specific embodiment
Below by preferred embodiment shown with reference to the accompanying drawings, the present invention is explained in detail, but the invention is not restricted toThe embodiment.
Step as shown in Figure 1 is as follows, and first three step is resource preparation process:
1 organizational standard audio file, arrangement needs to generate the audio file of data model;Because user terminal CPU is calculatedEnergy power restriction, is such as set as a class for unit within the specific limits identification goal-setting to carry out speech recognition scoring needsLiterary content;
2 editor's received texts, reduction needs the texts such as the literary section of identification scoring, sentence, word, creates an XMLConfiguration file, a node is created to each sentence or word in configuration file, is quoted comprising audio file in nodePath and correspondence text;
3 configuration pronunciation dictionaries, configuration this article section needs the general pronunciation dictionary or special pronunciation dictionary used, and completes single, with postponing, the node correspondence for each word configures the pronunciation of pronunciation dictionary, and is associated for word or sentence;Further,Pronunciation dictionary is divided into conventional pronunciation dictionary and special pronunciation dictionary, if all words are all in conventional pronunciation dictionary a literary sectionIn, at this moment avoiding the need for configuring special pronunciation dictionary, the word for being otherwise accomplished by creating to not having in each common dictionary is carried outPronunciation mark is added to special pronunciation dictionary;
After resource is ready, speech model treatment is carried out:
4 generation correspondence speech models, use the standard audio and received text configuration file and step that are editted in step 23) pronunciation dictionary editted in generates the literary section speech model of this article section, literary section speech model using speech recognition engine instrumentIt is, for describing user pronunciation space, when identifying user is pronounced, speech recognition engine is carried out under the conditions of vocabulary is constrained fastFast efficiently beta pruning, quickly recognizes user pronunciation content;
5 using generation speech model call speech recognition engine carry out to standard pronunciation characteristic be identified treatment,Generate and preserve standard pronunciation data model;Call speech recognition engine, incoming acoustic model and the literary section language for generating in step 4Sound model, successively in step 2) in generation configuration file inside each node configuration word or sentence carry out voice knowledgeNot, preserve identification engine and return to the audio file identification data of each node configuration to local text, so far, obtained everyThe text of individual word or sentence standard pronunciation, pronunciation, rhythm, stress, the feature-based data model of intonation is recognized to user pronunciationNeed to only recognize engine after user pronunciation is recognized directly with standard pronunciation data model in the incoming identification engine of data model during scoringContrast scoring is carried out, standard pronunciation data model is obtained without being identified to standard pronunciation;
6 are loaded directly into pre-generatmg data model using pre-generatmg data model in application product user recording is enteredRow identification scoring;
Voice recognition data method of the invention, including standard audio file organization module, standard text editing module, hairSound lexicon configuration module, speech model generation module, standard pronunciation characteristic recognition processing module is preserved and is ultimately generated standard pronunciationTo file system, pre-generatmg data model is loaded directly into application product carries out that user recording is identified to comment data modelPoint, solve the problems, such as to need to recognize standard pronunciation in actual applications and then the efficiency most to user recording identification is low.
Above specific embodiment is merely illustrative of the technical solution of the present invention and unrestricted, although with reference to example to this hairIt is bright to be described in detail, it will be understood by those within the art that, technical scheme can be modifiedOr equivalent, without deviating from the spirit and scope of technical solution of the present invention, it all should cover in claim of the inventionIn the middle of scope.