The voice input method of electronic business card system and electronic business card, speech retrieval method
Technical field
The present invention relates to information technology, particularly to voice input method, the speech retrieval method of a kind of electronic business card system and electronic business card.
Background technology
Business card is contemporary society private contact and public affair associate in a kind of economical and practical articles for use.Business card owing to printing specification, word is succinct, be easy to carry, be prone to preserve, welcome by various circles of society, be widely used in various circles of society.
Common business card is all in name relevant information printed on chip, so do not carry with, as people, the business card being pre-printed, when then people to exchange some contact details, without paper pen or inconvenient paper using pen, cannot easily the contact information record that the other side informs be got off between people.
If during it addition, a people receives a lot of business card, to carry out numerous business cards arranging, preservation can take a lot of time, and numerous business cards be carried out retrieval and finds a business card and be also required to a lot of time.
Summary of the invention
The technical problem to be solved in the present invention is, can record contact details easily and set up electronic business card, and numerous electronic business cards can be carried out quick-searching.
For solving above-mentioned technical problem, the invention provides a kind of electronic business card system, including voice acquisition module, speech analysis module, pronunciation extracting module, key word identification module, electronic business card manager, electronic business card data storehouse;
Voice acquisition module, is used for gathering voice, and output voice signal is to speech analysis module;
Speech analysis module, is used for detecting whether voice signal is efficient voice, if efficient voice, then voice signal is transferred to pronunciation extracting module;
Pronunciation extracting module, extracts phonetic feature according to the voice signal received and exports key word identification module;
Key word identification module, for phonetic feature carries out key word identification, output key word is to electronic business card manager;
Electronic business card manager, for setting up the different electronic business card of identification code in electronic business card data storehouse according to key word, or browses, retrieves, deletes, revises the electronic business card set up in electronic business card data storehouse;
Electronic business card data storehouse, is used for storing electronic business card, and each electronic business card in electronic business card data storehouse includes an identification code and multiple attribute-property value pair.
If described electronic business card manager receives the key word entering typing state, or receive the typing state selection signal that user sends otherwise, then enter typing state, the electronic business card manager entering typing state is different from electronic business card data storehouse the electronic business card of existing electronic business card for a newly-built identification code, and makes newly-built electronic business card enliven.
If described electronic business card manager receives the key word entering browse state, or receive the browse state selection signal that user sends otherwise, then enter browse state, enter the electronic business card manager of browse state for exporting the electronic business card in electronic business card data storehouse.
If the electronic business card manager entering browse state receives an electronic business card identification code, or receive the selection signal of the electronic business card that user sends otherwise, then make this electronic business card enliven.
If described electronic business card manager receives the key word entering retrieval status, or receive the retrieval status selection signal that user sends otherwise, then enter retrieval status, the electronic business card manager entering retrieval status is used for carrying out described electronic business card data storehouse electronic business card retrieval, the electronic business card in the electronic business card data storehouse that output retrieves.
Enter the electronic business card manager of retrieval status, receive search key, mate with search key if electronic business card data storehouse exists property value, then export all properties and the property value of each electronic business card including this property value.
After all properties of each electronic business card that the electronic business card manager output of entrance retrieval status retrieves and property value, if receiving the identification code key word of an electronic business card retrieved, or receive the selection signal of the electronic business card retrieved that user sends otherwise, then make this electronic business card retrieved enliven.
Described electronic business card manager, when an electronic business card enlivens,
If receiving deletion electronic business card key word, then delete this and enliven electronic business card,
If receiving an existing attribute keywords in this electronic business card, then make this attribute in this electronic business card enliven, if receiving the attribute keywords not having in this electronic business card, then in this electronic business card this attribute newly-built and make its enliven.
Described electronic business card manager, when in this electronic business card, an attribute enlivens,
If receiving deletion property value key word, then delete this attribute in this electronic business card and respective attributes value;
If receiving activation property value key word, then the property value of this attribute in this electronic business card is made to enliven.
Described electronic business card manager, when in this electronic business card, the property value of an attribute enlivens,
If receiving a property value key word, then replace the former property value of this attribute of this electronic business card with this property value being newly received.
Voice acquisition module can be mike.
Speech analysis module is by voice signal sub-frame processing, and the energy of current speech signal frame is E, and voice threshold values is T, and initial speech threshold values is Ti, and the workflow of speech analysis module is as follows:
One. start, T=Ti;
Two. the ENERGY E of current speech signal frame is compared with voice threshold values T, carries out step 3 if as E less than T, carry out step 4 if as E more than or equal to T;
Three. it is judged to non-effective voice, enters non-effective voice status, current speech signal is not transferred to pronunciation extracting module, and updates voice threshold T=E*a, then carry out step 2;
Four. it is judged to efficient voice, enters efficient voice state, current speech signal is transferred to pronunciation extracting module, and updates voice threshold T=E*b, then carry out step 2;
Wherein a, b are threshold coefficient, 0 < b < a≤1.
When key word identification module carries out key word identification to phonetic feature, the multiple results first providing optimum select for user, and then user therefrom selects the result confirmed export electronic business card data library module as key word.
Key word identification module, the result selection signal that the phonetic feature extracted according to pronunciation extracting module or user send otherwise determines that user therefrom selects the result confirmed.
For solving above-mentioned technical problem, present invention also offers the voice input method of a kind of electronic business card, comprise the following steps:
One. gather voice signal;
Two. whether detection voice signal is efficient voice, if efficient voice, then carries out step 3, otherwise carries out step one;
Three. extract phonetic feature according to the voice signal gathered;
Four. phonetic feature is carried out key word identification, exports key word;
Five. set up in electronic business card data storehouse according to key word and include an identification code and the electronic business card of multiple attribute-property value pair.
For solving above-mentioned technical problem, present invention also offers a kind of speech retrieval method of electronic business card, comprise the following steps:
One. setting up electronic business card data storehouse, each electronic business card in electronic business card data storehouse includes an identification code and multiple attribute-property value pair, and the identification code of each electronic business card is different;
Two. gather voice signal;
Three. whether detection voice signal is efficient voice, if efficient voice, then carries out step 3, otherwise carries out step one;
Four. extract phonetic feature according to the voice signal gathered;
Five. phonetic feature is carried out key word identification, exports key word;
Six. with the matching degree of the property value in electronic business card data storehouse, electronic business card data storehouse is carried out electronic business card retrieval according to key word.
Present invention also offers a kind of efficient voice decision method, comprise the following steps:
One. starting, T=Ti, T are voice threshold values, and Ti is initial speech threshold values;
Two. the ENERGY E of current speech signal frame is compared with voice threshold values T, carries out step 3 if as E less than T, carry out step 4 if as E more than or equal to T;
Three. it is judged to non-effective voice, and updates voice threshold T=E*a, then carry out step 2;
Four. it is judged to efficient voice, and updates voice threshold T=E*b, then carry out step 2;
A, b are threshold coefficient, 0 < b < a≤1.
The present invention, by the business card electronization of user, typing can be entered, browse, the states such as retrieval, under typing state, as long as the card information that user will employ is (such as name, phone, email address etc.) say, this card information just can be recorded in electronic business card data storehouse by electronic business card system, set up an electronic business card, under retrieval status, as long as user says the arbitrary attribute or property value oneself can remembered, electronic business card data storehouse just can be inquired about by electronic business card system, there is provided corresponding electronic business card information to user, realize the quick-searching to numerous electronic business cards.Electronic business card in the present invention is the set of a series of attribute-property value, has good autgmentability, it is simple to user individual customizes.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings and the present invention is described in further detail by detailed description of the invention.
Fig. 1 is the electronic business card system one embodiment schematic diagram of the present invention;
Fig. 2 is the workflow schematic diagram of speech analysis module;
Fig. 3 is electronic business card schematic diagram;
Fig. 4 is the voice typing method flow diagram of electronic business card;
Fig. 5 is the speech retrieval method flow diagram of electronic business card.
Detailed description of the invention
Electronic business card system one embodiment of the present invention is as it is shown in figure 1, include voice acquisition module, speech analysis module, pronunciation extracting module, key word identification module, electronic business card manager, electronic business card data storehouse;
Voice acquisition module, is used for gathering voice, and output voice signal is to speech analysis module, and voice acquisition module can be mike;
Speech analysis module, is used for detecting whether voice signal is efficient voice, if efficient voice, then voice signal is transferred to pronunciation extracting module, if not efficient voice, voice signal is not transferred to pronunciation extracting module;
Speech analysis module is by voice signal sub-frame processing, if 20ms is a frame, the energy of current speech signal frame is E, and voice threshold values is T, and initial speech threshold values is Ti, the workflow of speech analysis module as shown in Figure 2:
One. starting, voice threshold values T is equal to initial speech threshold values Ti, T=Ti;
Two. the ENERGY E of current speech signal frame is compared with voice threshold values T, carries out step 3 if as E less than T, carry out step 4 if as E more than or equal to T;
Three. it is judged to non-effective voice, enters non-effective voice status, current speech signal is not transferred to pronunciation extracting module, and updates voice threshold T=E*a, then carry out step 2;
Four. it is judged to efficient voice, enters efficient voice state, current speech signal is transferred to pronunciation extracting module, and updates voice threshold T=E*b, then carry out step 2;
Wherein a, b are threshold coefficient, and 0 < b < a≤1, threshold coefficient example a, b adjust as required, such as, can take a=1.0, b=0.3;In this embodiment, voice threshold values T changes with ENERGY E and the voice status of current speech signal frame, can teach and take out efficient voice accurately.
Pronunciation extracting module, extract phonetic feature according to the voice signal received and export key word identification module, such as conventional Mel-cepstrum (MFCC), during extracting characteristic parameter, speech enhan-cement, quiet detection will be first passed through, to improve systematic function and robustness;
Key word identification module, the phonetic feature for extracting pronunciation extracting module carries out key word identification, and output key word is to electronic business card manager;Key word identification belongs to a branch of speech recognition, it is intended in continuous speech by the analysis to phonetic feature, detect word interested, and ignore uninterested information, key word identification module is when providing key word, the multiple results that can first provide optimum select for user, and then user therefrom selects the result confirmed export electronic business card manager as key word.
Key word identification module can select signal to determine according to the result that the phonetic feature of pronunciation extracting module extraction or user send otherwise, and user therefrom selects the result confirmed.One embodiment, user provides voice, key word identification module provides " 1. Zhang San ", " 2. Zhang Sanfeng ", " 3. Li Si " three results, if the desired result of user is " Zhang San ", then user says " Zhang San " again or reading " 1 " confirms, or user says " cancellation " again and terminates this key word identification and carry out next key word identification, key word identification module be given described three results to user select after, if the phonetic feature extracted according to pronunciation extracting module subsequently recognizes key word " Zhang San " or " 1 ", then export key word " Zhang San " to electronic business card data library module, " cancel " if the phonetic feature extracted according to pronunciation extracting module subsequently recognizes key word, then terminate this key word identification and carry out next key word identification.
Electronic business card data storehouse, is used for storing electronic business card, and each electronic business card in electronic business card data storehouse is as it is shown on figure 3, include an identification code and multiple attribute-property value pair;
Electronic business card manager, the key word transmitted according to key word identification module is set up the different electronic business card of identification code in described electronic business card data storehouse, or is browsed, retrieves, deletes, revises the electronic business card set up in electronic business card data storehouse;
If described electronic business card manager receives the key word (such as " typing ") entering typing state, or receive the typing state selection signal that user sends otherwise, then enter typing state, the electronic business card manager entering typing state is different from electronic business card data storehouse the electronic business card of existing electronic business card for a newly-built identification code, and makes this newly-built electronic business card enliven;
If described electronic business card manager receives the key word (such as " browsing ") entering browse state, or receive the browse state selection signal that user sends otherwise, then enter browse state, enter the electronic business card manager of browse state for exporting the electronic business card in electronic business card data storehouse;If the electronic business card manager entering browse state receives an electronic business card identification code, or receive the selection signal of the electronic business card that user sends otherwise, then make this electronic business card enliven;
If described electronic business card manager receives the key word (such as " retrieval ") entering retrieval status, or receive the retrieval status selection signal that user sends otherwise, then enter retrieval status, the electronic business card manager entering retrieval status is used for carrying out described electronic business card data storehouse electronic business card retrieval, the electronic business card in the electronic business card data storehouse that output retrieves;Enter the electronic business card manager of retrieval status, receive search key (such as " Zhang San "), if electronic business card data storehouse existing property value mate with search key (" Zhang San "), then export all properties and the property value (such as " identification code 1; name Zhang San, phone ×××× ×××× ") of each electronic business card including this property value;After all properties of each electronic business card that the electronic business card manager output of entrance retrieval status retrieves and property value, if receiving the identification code of an electronic business card retrieved, or receive the selection signal of the electronic business card retrieved that user sends otherwise, then make this electronic business card retrieved enliven;
Described electronic business card manager, when an electronic business card enlivens, if receiving deletion electronic business card key word, then delete this and enliven business card, if receiving an existing attribute keywords (such as " name ") in this electronic business card, this attribute (" name ") in this electronic business card is then made to enliven, if receiving the attribute keywords (such as " mailbox ") not having in this electronic business card, then in this electronic business card this attribute newly-built (" mailbox ") and make its enliven;
Described electronic business card manager, when an attribute enlivens in this electronic business card, if receiving deletion property value key word, then deletes this attribute in this electronic business card and respective attributes value;If receiving activation property value key word (such as " property value "), then the property value of this attribute in this electronic business card is made to enliven;
Described electronic business card manager, when in this electronic business card, the property value of an attribute enlivens, if receiving a property value key word (such as " Zhang San "), then replace the former property value of this attribute of this electronic business card with this property value being newly received (such as " Zhang San ").
The electronic business card system of the present invention, the voice input method of electronic business card as shown in Figure 4, comprises the following steps:
One. gather voice signal;
Two. whether detection voice signal is efficient voice, if efficient voice, then carries out step 3, otherwise carries out step one;
Three. extract phonetic feature according to the voice signal gathered;
Four. phonetic feature is carried out key word identification, exports key word;
Five. set up in electronic business card data storehouse according to key word and include an identification code and the electronic business card of multiple attribute-property value pair.
The electronic business card system of the present invention, the speech retrieval method of electronic business card is as it is shown in figure 5, comprise the following steps:
One. setting up electronic business card data storehouse, each electronic business card in electronic business card data storehouse includes attribute, property value two data item;
Two. gather voice signal;
Three. whether detection voice signal is efficient voice, if efficient voice, then carries out step 3, otherwise carries out step one;
Four. extract phonetic feature according to the voice signal gathered;
Five. phonetic feature is carried out key word identification, exports key word;
Six. with the matching degree of the property value in electronic business card data storehouse, electronic business card data storehouse is carried out electronic business card retrieval according to key word.
The present invention, by the business card electronization of user, typing can be entered, browse, the states such as retrieval, under typing state, as long as the card information that user will employ is (such as name, phone, email address etc.) say, this card information just can be recorded in electronic business card data storehouse by electronic business card system, set up an electronic business card, under retrieval status, as long as user says the arbitrary attribute or property value oneself can remembered, electronic business card data storehouse just can be inquired about by electronic business card system, there is provided corresponding electronic business card information to user, realize the quick-searching to numerous electronic business cards.Electronic business card in the present invention is the set of a series of attribute-property value, has good autgmentability, it is simple to user individual customizes.