CN110058916A - A kind of phonetic function jump method, device, equipment and computer storage medium - Google Patents
A kind of phonetic function jump method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN110058916A CN110058916A CN201910332505.0A CN201910332505A CN110058916A CN 110058916 A CN110058916 A CN 110058916A CN 201910332505 A CN201910332505 A CN 201910332505A CN 110058916 A CN110058916 A CN 110058916A
- Authority
- CN
- China
- Prior art keywords
- target
- jump
- jump instruction
- instruction
- current
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present invention proposes a kind of phonetic function jump method, device, equipment and computer storage medium, which comprises determines the version of current system, obtains target jump instruction collection corresponding with the version of current system;Speech recognition is carried out to current speech information, obtains current speech text;The command keyword concentrated to target jump instruction traverses, the present instruction keyword traversed is compared with current speech text, when including the present instruction keyword in current speech text, determine that the present instruction keyword jumps keyword for target, and concentrates from target jump instruction to obtain and jump the corresponding target jump instruction of keyword with target;Finally target jump instruction is parsed, type is jumped to determine that target jump instruction is corresponding, and realizing that phonetic function jumps based on type is jumped, the present invention can be compatible with the application of miscellaneous editions, and jumping for respective objects application interface can be successfully carried out after voice responsive information.
Description
Technical field
The present invention relates to intelligent sound technical field more particularly to a kind of phonetic function jump method, device, equipment and meters
Calculation machine storage medium.
Background technique
Now with more and more intelligent sound class products, all kinds of instructions of user, Yong Huxi can be executed by voice
It no matter hopes in what scene, can all jump to the corresponding page, if user says " opening system setting ", then open corresponding system
The page is set, and user says " opening network settings ", then opens the corresponding network settings page.Each machine due to system version not
Together, and under same system the various versions using APP loaded also disunity, this prevents phonetic order from being compatible with well
The application of various versions can not carry out jumping for corresponding interface based on phonetic order.
Summary of the invention
The main purpose of the present invention is to provide the storages of a kind of phonetic function jump method, device, equipment and computer
Medium, it is intended to solve the application that phonetic order cannot be compatible with different editions well, carry out jumping for corresponding interface.
To achieve the above object, it the present invention provides a kind of phonetic function jump method, the described method comprises the following steps:
It determines the version of current system, obtains target jump instruction collection corresponding with the version of the current system;
Current speech information is obtained, speech recognition is carried out to the current speech information, obtains current speech text;
To the target jump instruction concentrate command keyword traverse, by the present instruction keyword traversed with
The current speech text is compared;
When including the present instruction keyword in the current speech text, determine that the present instruction keyword is
Target jumps keyword, and concentrates from the target jump instruction to obtain and jump the corresponding target of keyword with the target and jump
Instruction;
The target jump instruction is parsed, determines that the target jump instruction is corresponding according to parsing result and jumps
Type;
Realize that phonetic function jumps based on the type that jumps.
Preferably, described that the target jump instruction is parsed, determine that the target jumps finger according to parsing result
Corresponding the step of jumping type is enabled, is specifically included:
The target jump instruction is parsed;
If parsing result is the packet name of target application, it is determined that the target jump instruction belongs to first kind jump instruction;
It is described that the step of phonetic function jumps is realized based on the type that jumps, it specifically includes:
Determine the first preset function corresponding with the first kind jump instruction, the packet name of the target application is corresponding
Character string is sent into first preset function, calls first preset function that current interface is jumped to the target to realize
The interface of application.
Preferably, described that the target jump instruction is parsed, determine that the target jumps finger according to parsing result
Corresponding the step of jumping type is enabled, is specifically included:
The target jump instruction is parsed;
If parsing result is that the packet name of target application and the sub-interface of target application jump list, it is determined that the mesh
Mark jump instruction belongs to the second class jump instruction;
It is described that the step of phonetic function jumps is realized based on the type that jumps, it specifically includes:
The target jump instruction it is corresponding jump type be the second class jump instruction when, obtain the target and answer
Current application version number in the current system;
It is jumped from the sub-interface of the target application and searches application version number in list no more than the current application version
Number target sub-interface jump parameter;
When finding application version number and jumping parameter no more than the sub-interface of the current application version number, described in calling
Target sub-interface jumps parameter to realize the sub-interface that current interface is jumped to the target application.
Preferably, the sub-interface from the target application jumps lookup application version number in list and works as no more than described
After the step of target sub-interface of preceding application version number jumps parameter, further includes:
When not finding application version number and jumping parameter no more than the sub-interface of the current application version number, determine with
Corresponding second preset function of the second class jump instruction, called second preset function to jump current interface to realize
Go to the sub-interface of the target application.
Preferably, described that the target jump instruction is parsed, determine that the target jumps finger according to parsing result
Corresponding the step of jumping type is enabled, is specifically included:
The target jump instruction is parsed;
If parsing result is user defined commands, it is determined that the target jump instruction belongs to third class jump instruction;
The determining corresponding target of keyword that jumps with the target is without interface application, and according to the third class jump instruction
Start the target without interface functional application.
Preferably, the version of the determining current system obtains target corresponding with the version of the current system and jumps
The step of instruction set, specifically includes:
The version for determining current system is obtained from destination server and described current according to the version of the current system
The version number of the corresponding cloud phonetic order collection of the version of system;
Obtain the version number of local phonetic order collection;
The version number of the cloud phonetic order collection is compared with the version number of the local phonetic order collection;
When the version number of the cloud phonetic order collection is greater than the version number of the local phonetic order collection, from described
The cloud phonetic order collection is downloaded in destination server, and the local language is replaced by the cloud phonetic order collection downloaded
Sound instruction set is as current speech instruction set;
Target jump instruction collection is obtained from the current speech instruction set.
Preferably, the version number of the version number by the cloud phonetic order collection and the local phonetic order collection
After the step of being compared, further includes:
When the version number of the cloud phonetic order collection is identical as the local version number of phonetic order collection, from institute
It states local phonetic order and concentrates acquisition target jump instruction collection.
In addition, to achieve the above object, the present invention also proposes that a kind of phonetic function jumps device, and described device includes:
Detection module obtains target corresponding with the version of the current system and jumps for determining the version of current system
Turn instruction set;
Speech recognition module carries out speech recognition to the current speech information, obtains for obtaining current speech information
Current speech data, and current speech text is converted by the current speech data;
Comparison module, the command keyword for concentrating to the target jump instruction traverse, work as what is traversed
Preceding command keyword is compared with the current speech text;
Module being obtained, when for including the present instruction keyword in the current speech text, being worked as described in judgement
Preceding command keyword is that target jumps keyword, and concentrates to obtain from the target jump instruction and jump keyword with the target
Corresponding target jump instruction;
Parsing module determines that the target jumps according to parsing result for parsing to the target jump instruction
It instructs and corresponding jumps type;
Jump module, for realizing that phonetic function jumps based on the type that jumps.
In addition, to achieve the above object, the present invention also proposes that a kind of phonetic function jumps equipment, and the equipment includes: to deposit
Reservoir, processor and it is stored in the phonetic function jump routine that can be run on the memory and on the processor, it is described
Phonetic function jump routine is arranged for carrying out the step of phonetic function jump method as described above.
In addition, to achieve the above object, the present invention also proposes a kind of computer storage medium, the computer storage medium
It is stored with phonetic function jump routine, the phonetic function jump routine is arranged for carrying out the phonetic function side of jumping as described above
The step of method.
The present invention proposes a kind of phonetic function jump method, device, equipment and computer storage medium, the method packet
It includes: determining the version of current system, obtain target jump instruction collection corresponding with the version of current system;To current speech information
Speech recognition is carried out, current speech text is obtained;The command keyword concentrated to target jump instruction traverses, and will traverse
Present instruction keyword be compared with current speech text, in current speech text include the present instruction keyword
When, determine that the present instruction keyword jumps keyword for target, and concentrate to obtain from target jump instruction and jump with target
The corresponding target jump instruction of keyword;Finally target jump instruction is parsed, to determine that target jump instruction is corresponding
Type is jumped, and realizes that phonetic function jumps based on type is jumped, the present invention can be compatible with the application of miscellaneous editions, in response language
Jumping for respective objects application interface can be successfully carried out after message breath.
Detailed description of the invention
Fig. 1 is that the phonetic function for the hardware running environment that the embodiment of the present invention is related to jumps the structural representation of equipment
Figure;
Fig. 2 is a kind of flow diagram of the first embodiment of phonetic function jump method of the present invention;
Fig. 3 is in the embodiment of the present invention when target jump instruction belongs to the situation of the second class jump instruction, with the mesh
Mark jump instruction corresponds to the display diagram of code;
Fig. 4 is a kind of flow diagram of the second embodiment of phonetic function jump method of the present invention;
Fig. 5 is the structural block diagram that a kind of phonetic function jumps device.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is that the phonetic function for the hardware running environment that the embodiment of the present invention is related to jumps the knot of equipment
Structure schematic diagram.
As shown in Figure 1, it may include: processor 1001, such as CPU that the phonetic function, which jumps equipment, communication bus 1002,
User interface 1003, network interface 1004, memory 1005 and sound transducer.Wherein, communication bus 1002 for realizing
Connection communication between these components.User interface 1003 may include display screen (Display) and sound transducer, can be selected
Family interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard
Wireline interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory.Memory 1005 is optional
It can also be the storage device independently of aforementioned processor 1001.
The phonetic function is jumped it will be understood by those skilled in the art that device structure shown in Fig. 1 is not constituted
The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.The phonetic function of the present embodiment, which jumps equipment, can be the mobile terminals such as smart phone or tablet computer.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and phonetic function jump routine.
Phonetic function shown in Fig. 1 jumps in equipment, and network interface 1004 is mainly used for being counted with destination server
According to communication;User interface 1003 is mainly used for obtaining current speech information, and can be with the current use of input current speech information
Family carries out data interaction;Processor 1001, the memory 1005 of equipment of the invention can be set and jump equipment in phonetic function
In, the phonetic function jumps equipment and calls the phonetic function jump routine stored in memory 1005 by processor 1001,
And the step of executing the phonetic function jump method.
Based on above-mentioned hardware configuration, a kind of embodiment of phonetic function jump method of the present invention is proposed.
It should be noted that current voice jumps distinct issues and has:
Often irregularly upgrading updates for various applications in system, such as the certain page structures variation applied, and voice is answered
With not upgrading accordingly, it will lead to voice turn function and do not work;
Using newly-increased or delete some interfaces, phonetic order, which does not increase accordingly or deletes, will also result in voice and jumps function
It can not work;
Each machine is since the service condition of user is different, and the version of various applications is not also identical, some versions are new, some
Version is old, this prevents phonetic order from being compatible with the applications of various versions well, carries out jumping for corresponding interface.
In the present embodiment, referring to Fig. 2, the phonetic function jump method the following steps are included:
Step S10: determining the version of current system, obtains target jump instruction corresponding with the version of the current system
Collection.
It should be noted that the executing subject of the present embodiment is the above-mentioned voice for being mounted with the phonetic function jump routine
Function jumps the processor of equipment, and the phonetic function, which jumps equipment, can be the movement such as smart phone or tablet computer eventually
End.
The present embodiment is illustrated for jumping equipment as the phonetic function using smart phone, such as the smart phone
Operating system be Android operation system, corresponding current system version MIUI_10.2.It is in the version for determining current system
After MIUI_10.2, target jump instruction collection corresponding with the MIUI_10.2 version of current system can be obtained.
Specifically, the target jump instruction rally is artificially predefined by programmer, and difference is jumped finger by the present embodiment
What is enabled is divided into following three kinds and jumps type, while corresponding parameter and example are as follows:
First kind jump instruction: jumping to some application, that is, opens the homepage of some application, such as " opens TV cat ", this
The parameter that kind jumps instruction is Keyword List, the packet name for jumping application etc., and corresponding certain first kind jump instruction is corresponding
Code may is that
Wherein, keywords is expressed as keyword parameter, is characterized as the keyword of instruction retrieval, an instruction should be as far as possible
Comprising all alias, that such as " Tencent's video " " cloud audiovisual aurora " " penguin video " is opened is all same application APP, only name
Claim different.For another example, " opening bluetooth ", " opening bluetooth ", " bluetooth detection ", " bluetooth connection " etc. are all the instructions for opening bluetooth
Different sayings, saying are equivalent, as long as the keyword " bluetooth " carried in user speech among these is taken as this instruction.
Package expression jumps the packet name of application, and the packet name for jumping application in above-mentioned code is " com.sky.shop ".
Version indicates the version number of the applicable application of above-mentioned jump instruction, i.e., above-mentioned jump instruction is suitable for intelligent hand
The packet name of device is the APP that applies of " com.sky.shop " in machine, and this is necessary for " 1.01.01 " using the version number of APP.
Second class jump instruction: opening some specific subpage for applying APP, such as " opens network settings ", it is that system is set
The second level page set, parameter have: Keyword List jumps list;
Specifically, the corresponding code of corresponding certain the second class jump instruction may is that
It should be noted that the Intent (intention) in above-mentioned code is the bridge of major component connection in Android operation system
Beam acts on to be responsible for corresponding movement action, action of once-through operation in and being related to data (packet name package), additional number
According to (version number for corresponding application of registering) is described, Android operation system is responsible for finding then according to the description of this Intent
Intent is passed to called component by corresponding component, and completes the calling of component, can realize the page jump and
Biography value.
Jump list and describe various different editions and jump parameter, wherein the attribute for jumping list may include: execute it is dynamic
Make action, applicable version number, application the packet name, other parameters etc. jumped.Wherein, execution movement action must be at least
One, other configurations as needed.If instruction is all suitable for for all using the version of APP, then one is only needed to configure
action。
Third class jump instruction: custom instruction,
Specifically, the corresponding code of corresponding certain third class jump instruction may is that
In above-mentioned code all be open bluetooth instruction different sayings, saying be it is equivalent, i.e., purpose open bluetooth, fit
Function for certain no interfaces executes instruction, and parameter has: Keyword List keywords, unique identification jump customized
String name userdefined.
In the concrete realization, the processor of mobile phone can detect the version information of current system, the version information of current system
Sequence number including terminating machine model and terminating machine, mobile phone, which can be stored, is corresponding with instruction set with the version information of current system
Command_config.json file, wherein command_config.json file includes jump instruction collection command
list。
Step S20: obtaining current speech information, carries out speech recognition to the current speech information, obtains current speech
Text.
In the concrete realization, speech recognition can be carried out by way of template matching, the mode of template matching will pass through
Four processes: feature extraction, template training, template classification, judgement.There are three types of common technologies: dynamic time warping (DTW),
Hidden Markov (HMM) theory, vector quantization (VQ) technology.
The present embodiment preferably uses vector quantization (VectorQuantization), and it is a kind of important for carrying out speech recognition
Compression method.It is compared compared with hidden Markov, vector quantization is primarily adapted for use in the speech recognition of small vocabulary, isolated word
In.Its process is: by each frame of k sampling point of voice signal waveform, or having each parameter frame of k parameter, it is empty to constitute k dimension
Between in a vector, then vector is quantified.When quantization, k dimension infinite space is divided into M zone boundary and forms one
Then voice messaging is sent into this training pattern and obtains input vector by a training pattern, by input vector and these boundaries into
Row compares, and is quantified as the center vector value of " distance " the smallest zone boundary.The design of vector quantizer is exactly from a large amount of
The code book trained in sample of signal is designed best from actual effect set off in search to good distortion measure defined formula
Vector Quantization, with it is least search and calculated distortion operand, realize the average signal-to-noise ratio of maximum possible, i.e., will obtain
The current speech information got is sent into above-mentioned training pattern, and then can match most quasi- current speech text.
Step S30: the command keyword concentrated to the target jump instruction traverses, the present instruction that will be traversed
Keyword is compared with the current speech text;
It should be noted that described instruction keyword can be character string relevant to the page turn function of mobile phone, refer to
It enables keyword that can be pre-stored in the target jump instruction to concentrate, such as command keyword can be different APP application
Title, command keyword are also possible to the function title of mobile phone itself.
Step S40: when in the current speech text comprising the present instruction keyword, determine the present instruction
Keyword is that target jumps keyword, and concentrates from the target jump instruction and to obtain that jump keyword with the target corresponding
Target jump instruction.
It will be appreciated that for example described current speech text is " opening bluetooth ", processor concentrates target jump instruction
After being traversed, when the present instruction keyword traversed is " bluetooth ", then illustrate that the current speech text " is opened blue
It include command keyword " bluetooth " then to determine that the present instruction keyword " bluetooth " is that target jumps keyword in tooth ", simultaneously
It can be obtained from target jump instruction collection command list and jump keyword " bluetooth " corresponding target jump instruction with target.
The code of corresponding target jump instruction may is that
Step S50: parsing the target jump instruction, determines the target jump instruction pair according to parsing result
That answers jumps type;
Step S60: realize that phonetic function jumps based on the type that jumps.
Specifically, processor can parse the corresponding code of above-mentioned target jump instruction, be determined according to parsing result
The target jump instruction is corresponding to jump type;
Such as the parsing result of above-mentioned code is user defined commands (description for there was only userdefined), then really
The fixed target jump instruction belongs to third class jump instruction, and obtains the self-defined title jumped "
com.sky.action.BLUETOOTH_OPEN";Then determine that jump the corresponding target of keyword with the target answers without interface
Start the target without interface functional application with (i.e. bluetooth equipment), and according to the third class jump instruction.
The present embodiment determines the version of current system first, obtains target jump instruction corresponding with the version of current system
Collection;Then current speech information is obtained, speech recognition is carried out to current speech information, obtains current speech text;Again to target
The command keyword that jump instruction is concentrated is traversed, and the present instruction keyword traversed is compared with current speech text
It is right, when in current speech text comprising the present instruction keyword, determine that the present instruction keyword jumps for target
Keyword, and concentrate to obtain from target jump instruction and jump the corresponding target jump instruction of keyword with target;Finally to target
Jump instruction is parsed, and is determined that target jump instruction is corresponding according to parsing result and is jumped type, and is real based on type is jumped
Existing phonetic function jumps, and then can be compatible with the application of miscellaneous editions, can successfully carry out after voice responsive information corresponding
Target application interface jumps.
Further, in an embodiment, when executing the step S50, the target jump instruction is parsed, if
Parsing result is the packet name of target application, it is determined that the target jump instruction belongs to first kind jump instruction;
Correspondingly, the step S60, specifically includes: determining the first default letter corresponding with the first kind jump instruction
The corresponding character string of the packet name of the target application is sent into first preset function, calls first preset function by number
To realize the interface that current interface is jumped to the target application.
The first preset function of the embodiment of the present invention can be startActivity function, that is to say, that find
When matched target jump instruction, preferentially judge whether the target jump instruction is first kind jump instruction, i.e. only packet name is retouched
State, then jumped by packet name, i.e. startActivity mode is jumped, and is jumped success, is then terminated, jump failure, then on
The false information that reports an error is analyzed to destination server;
If the target jump instruction is not first kind jump instruction, executes and judge whether the target jump instruction is
The step of three classes jump instruction, i.e., only userdefined description then get the self-defined title jumped, unique according to this
Character title executes corresponding operation, jumps success, then terminates, jumps failure, then reports error message to destination server point
Analysis;
Further, it if the target jump instruction is also not third class jump instruction, executes and judges that the target jumps
The step of whether instruction is the second class jump instruction, i.e., when executing the step S50, solve the target jump instruction
Analysis, if parsing result is that the packet name of target application and the sub-interface of target application jump list, it is determined that the target jumps
Instruction belongs to the second class jump instruction;
Correspondingly, the step S60, specifically includes: being described the in the corresponding type that jumps of the target jump instruction
When two class jump instructions, current application version number of the target application in the current system is obtained;It is answered from the target
Sub-interface jumps the target sub-interface that lookup application version number is not more than the current application version number in list and jumps ginseng
Number:
The first lookup result and corresponding executive mode are as follows: currently answered finding application version number no more than described
When jumping parameter with the sub-interface of version number, the target sub-interface is called to jump parameter to realize current interface jumping to institute
State the sub-interface of target application.
Second of lookup result and corresponding executive mode are as follows: current no more than described not finding application version number
When the sub-interface of application version number jumps parameter, the second preset function corresponding with the second class jump instruction is determined, call
Current interface is jumped to the sub-interface of the target application to realize by second preset function.
That is, if there is matching instruction, and inquiring is the instruction of the second class, then gets and jump list, column hops
Table describes different editions and jumps parameter.It is described if any version number version, then first obtains the version of this application in current system
Number, it is set as V1, finds in list and is less than or equal to V1 and the jump term parameter closest to V1, jumped according to this parameter
Turn;It is such as described without version number, then according to unique action;It is jumped by the second preset function, the second default letter
Number, which can be, states startActivity function, is also possible to sendbroadcast function.No matter and then can be realized current system
The application APP installed in system is any version, or has which type of difference between each application, can be realized compatibility and respectively answers
The function that voice jumps is realized with the version of APP, and phonetic order can accurately jump to the respective interface of target application.
Further, for the application scenarios when target jump instruction is the second class jump instruction, a kind of voice is proposed
The another embodiment process of function jump method.
With reference to Fig. 3, Fig. 3 is in the present embodiment when target jump instruction belongs to the situation of the second class jump instruction, with institute
State the display diagram that target jump instruction corresponds to code.
In the present embodiment, the step S20 is executed, such as processor carries out speech recognition to current speech information, obtains
Current speech text is " opening viewing history ", then when executing step S30, the instruction that traversal target jump instruction is concentrated is crucial
Word traversing result is compared with the current speech text " opening viewing history ", if the present instruction traversed is crucial
Word is related to " viewing history ", then successful match (determining that the present instruction keyword jumps keyword for target), and executes S40
In concentrated from the target jump instruction and obtain the corresponding step for jumping with the target the corresponding target jump instruction of keyword.
When and then executing step S50 and step S60, parsing result includes the packet name and target application of target application
Sub-interface jump list, determine that the target jump instruction belongs to the second class jump instruction.Above-mentioned jump instruction as can be seen from Figure 3
Support that Video Applications that version is 10101 and version are 10102 Video Applications simultaneously.Inquire Bao Mingwei in current system
The application version of com.sky.video be 10103, then selection be less than or equal to 10103 that maximum version, i.e., 10102 pairs
The parameter com.sky.video.action.HistoryNew that jumps answered is jumped.It is performed simultaneously following code:
In the concrete realization, it can will jump parameter com.sky.video.action.HistoryNew and be sent into Intent group
In part, a new page jump object, corresponding code are instantiated are as follows:
Intent intent=new Intent (" com.sky.video.action.HistoryNew ");
And then, by calling the preset function startActivity in context abstract class context to realize
Current interface is jumped to the sub-interface for being used to show broadcasting record of video object application, corresponding code are as follows:
context.startActivity(intent)。
No matter the present embodiment can be realized what version the application APP installed in current system is, can be achieved compatible each
The version of self-application APP realizes the function that voice jumps, and phonetic order can accurately jump to the respective interface of target application.
Further, the first embodiment based on above-mentioned phonetic function jump method proposes a kind of phonetic function of the present invention
The second embodiment of jump method, with reference to Fig. 4, Fig. 4 is a kind of stream of the second embodiment of phonetic function jump method of the present invention
Journey schematic diagram.
In the present embodiment, the step S10 is specifically included:
Step S101: determining the version of current system, is obtained from destination server according to the version of the current system
The version number of cloud phonetic order collection corresponding with the version of the current system;
It should be noted that the present embodiment is illustrated for jumping equipment as the phonetic function using smart phone,
Such as the operating system of the smart phone is Android operation system, corresponding current system version MIUI_10.2.
It specifically, can be by the sequence number of the sequence number of type number and machine to destination server when mobile phone is switched on every time
Request is sent, to obtain type system as the instruction set of MIUI_10.2, is then obtained and current system from destination server
The version number of the corresponding cloud phonetic order collection of MIUI_10.2 version.
Step S102: the version number of local phonetic order collection is obtained;
Step S103: by the version number of the version number of the cloud phonetic order collection and the local phonetic order collection into
Row compares;
Step S104: it is greater than the version number of the local phonetic order collection in the version number of the cloud phonetic order collection
When, the cloud phonetic order collection is downloaded from the destination server, and institute is replaced by the cloud phonetic order collection downloaded
Local phonetic order collection is stated as current speech instruction set;
Step S105: target jump instruction collection is obtained from the current speech instruction set.
It should be noted that after the step S103, if comparison result is the version of the cloud phonetic order collection
This number identical as the local version number of phonetic order collection, then directly executes from the local phonetic order and concentrate acquisition
The step of target jump instruction collection.
Target jump instruction collection is that current speech instruction set command_ is written with json format in the present embodiment
In config.json, and it is saved in local voice function and jumps in equipment.
The present embodiment can obtain newest cloud phonetic order collection relevant to the version of current system in real time, into
And newest jump instruction collection can be obtained, it can evade since often irregularly upgrading updates application APP various in system, but
It is that voice application in system does not upgrade accordingly, the caused inoperative defect of voice turn function.
In addition, the embodiment of the present invention also proposes that a kind of phonetic function jumps device, and described device includes: with reference to Fig. 5
Detection module 10 obtains target corresponding with the version of the current system for determining the version of current system
Jump instruction collection;
Speech recognition module 20 carries out speech recognition to the current speech information, obtains for obtaining current speech information
Current speech text is converted into current speech data, and by the current speech data;
Comparison module 30, the command keyword for concentrating to the target jump instruction traverses, by what is traversed
Present instruction keyword is compared with the current speech text;
Module 40 is obtained, when for including the present instruction keyword in the current speech text, described in judgement
Present instruction keyword is that target jumps keyword, and concentrates to obtain from the target jump instruction and jump key with the target
The corresponding target jump instruction of word;
Parsing module 50 determines that the target is jumped according to parsing result for parsing to the target jump instruction
Turn instruction and corresponding jumps type;
Jump module 60, for realizing that phonetic function jumps based on the type that jumps.
It can be it will be appreciated that the phonetic function of the present embodiment jumps device and be loaded into above-mentioned phonetic function and jump equipment
Application software APP, the specific embodiment that the phonetic function of the present embodiment jumps device please refers to above-mentioned phonetic function
The embodiment of jump method, it will not be described here for the present embodiment.
In addition, the embodiment of the present invention also proposes that a kind of computer storage medium, the computer storage medium are stored with language
Sound function jump routine, the phonetic function jump routine are arranged for carrying out the step of phonetic function jump method as described above
Suddenly.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of phonetic function jump method, which is characterized in that the described method includes:
It determines the version of current system, obtains target jump instruction collection corresponding with the version of the current system;
Current speech information is obtained, speech recognition is carried out to the current speech information, obtains current speech text;
To the target jump instruction concentrate command keyword traverse, by the present instruction keyword traversed with it is described
Current speech text is compared;
When including the present instruction keyword in the current speech text, determine that the present instruction keyword is target
It jumps keyword, and concentrates from the target jump instruction to obtain and jump the corresponding target of keyword with the target and jump finger
It enables;
The target jump instruction is parsed, the corresponding jump class of the target jump instruction is determined according to parsing result
Type;
Realize that phonetic function jumps based on the type that jumps.
2. the method as described in claim 1, which is characterized in that it is described that the target jump instruction is parsed, according to solution
Analysis result determines the target jump instruction corresponding the step of jumping type, specifically includes:
The target jump instruction is parsed;
If parsing result is the packet name of target application, it is determined that the target jump instruction belongs to first kind jump instruction;
It is described that the step of phonetic function jumps is realized based on the type that jumps, it specifically includes:
The first preset function corresponding with the first kind jump instruction is determined, by the corresponding character of packet name of the target application
String is sent into first preset function, calls first preset function that current interface is jumped to the target application to realize
Interface.
3. the method as described in claim 1, which is characterized in that it is described that the target jump instruction is parsed, according to solution
Analysis result determines the target jump instruction corresponding the step of jumping type, specifically includes:
The target jump instruction is parsed;
If parsing result is that the packet name of target application and the sub-interface of target application jump list, it is determined that the target is jumped
Turn instruction and belongs to the second class jump instruction;
It is described that the step of phonetic function jumps is realized based on the type that jumps, it specifically includes:
The target jump instruction it is corresponding jump type be the second class jump instruction when, obtain the target application and exist
Current application version number in the current system;
It is jumped from the sub-interface of the target application and searches application version number in list no more than the current application version number
Target sub-interface jumps parameter;
When finding application version number and jumping parameter no more than the sub-interface of the current application version number, the target is called
Sub-interface jumps parameter to realize the sub-interface that current interface is jumped to the target application.
4. method as claimed in claim 3, which is characterized in that the sub-interface from the target application, which jumps in list, to be looked into
After the step of looking for application version number to jump parameter no more than the target sub-interface of the current application version number, further includes:
When not finding application version number and jumping parameter no more than the sub-interface of the current application version number, it is determining with it is described
Corresponding second preset function of second class jump instruction, called second preset function to jump to current interface to realize
The sub-interface of the target application.
5. the method as described in claim 1, which is characterized in that it is described that the target jump instruction is parsed, according to solution
Analysis result determines the target jump instruction corresponding the step of jumping type, specifically includes:
The target jump instruction is parsed;
If parsing result is user defined commands, it is determined that the target jump instruction belongs to third class jump instruction;
The determining corresponding target of keyword that jumps with the target is without interface application, and according to third class jump instruction starting
The target is without interface functional application.
6. the method according to claim 1 to 5, which is characterized in that the version of the determining current system, obtain with
It the step of version of the current system corresponding target jump instruction collection, specifically includes:
The version for determining current system is obtained from destination server and the current system according to the version of the current system
The corresponding cloud phonetic order collection of version version number;
Obtain the version number of local phonetic order collection;
The version number of the cloud phonetic order collection is compared with the version number of the local phonetic order collection;
When the version number of the cloud phonetic order collection is greater than the version number of the local phonetic order collection, from the target
The cloud phonetic order collection is downloaded in server, and the local voice is replaced by the cloud phonetic order collection downloaded and is referred to
Collection is enabled to be used as current speech instruction set;
Target jump instruction collection is obtained from the current speech instruction set.
7. method as claimed in claim 6, which is characterized in that the version number by the cloud phonetic order collection with it is described
After the step of version number of local phonetic order collection is compared, further includes:
When the version number of the cloud phonetic order collection is identical as the local version number of phonetic order collection, from described
The phonetic order on ground, which is concentrated, obtains target jump instruction collection.
8. a kind of phonetic function jumps device, which is characterized in that described device includes:
Detection module obtains target corresponding with the version of the current system and jumps finger for determining the version of current system
Enable collection;
Speech recognition module carries out speech recognition to the current speech information for obtaining current speech information, obtains current
Voice data, and current speech text is converted by the current speech data;
Comparison module, the command keyword for concentrating to the target jump instruction traverse, the current finger that will be traversed
Keyword is enabled to be compared with the current speech text;
Module being obtained, when for including the present instruction keyword in the current speech text, determining the current finger
It enables keyword be that target jumps keyword, and concentrates from the target jump instruction and to obtain that jump keyword with the target corresponding
Target jump instruction;
Parsing module determines the target jump instruction according to parsing result for parsing to the target jump instruction
It is corresponding to jump type;
Jump module, for realizing that phonetic function jumps based on the type that jumps.
9. a kind of phonetic function jumps equipment, which is characterized in that the equipment includes: memory, processor and is stored in described
On memory and the phonetic function jump routine that can run on the processor, the phonetic function jump routine are configured to reality
Now the step of phonetic function jump method as described in any one of claims 1 to 7.
10. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with phonetic function and jumps journey
Sequence, the phonetic function jump routine are arranged for carrying out the phonetic function jump method as described in any one of claims 1 to 7
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910332505.0A CN110058916A (en) | 2019-04-23 | 2019-04-23 | A kind of phonetic function jump method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910332505.0A CN110058916A (en) | 2019-04-23 | 2019-04-23 | A kind of phonetic function jump method, device, equipment and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110058916A true CN110058916A (en) | 2019-07-26 |
Family
ID=67320368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910332505.0A Pending CN110058916A (en) | 2019-04-23 | 2019-04-23 | A kind of phonetic function jump method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110058916A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110473537A (en) * | 2019-08-22 | 2019-11-19 | 百度在线网络技术(北京)有限公司 | Control method, device, equipment and the storage medium of voice technical ability |
CN111083545A (en) * | 2019-11-18 | 2020-04-28 | 北京小米移动软件有限公司 | Remote operation control method, remote operation control device, and storage medium |
CN112657188A (en) * | 2021-01-07 | 2021-04-16 | 福建天晴在线互动科技有限公司 | Method and system for skipping keywords in game event text |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070255564A1 (en) * | 2006-05-01 | 2007-11-01 | Microsoft Corporation | Voice authentication system and method |
CN103336687A (en) * | 2013-06-17 | 2013-10-02 | 深圳市金立通信设备有限公司 | Application interface switching method and terminal |
CN107845384A (en) * | 2017-10-30 | 2018-03-27 | 江西博瑞彤芸科技有限公司 | A kind of audio recognition method |
CN107909998A (en) * | 2017-10-18 | 2018-04-13 | 成都市共维科技有限公司 | Phonetic order processing method, device, computer equipment and storage medium |
CN108305626A (en) * | 2018-01-31 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | The sound control method and device of application program |
CN108470566A (en) * | 2018-03-08 | 2018-08-31 | 腾讯科技(深圳)有限公司 | A kind of application operating method and device |
CN108632653A (en) * | 2018-05-30 | 2018-10-09 | 腾讯科技(深圳)有限公司 | Voice management-control method, smart television and computer readable storage medium |
CN108766429A (en) * | 2018-06-05 | 2018-11-06 | 北京百度网讯科技有限公司 | Voice interactive method and device |
-
2019
- 2019-04-23 CN CN201910332505.0A patent/CN110058916A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070255564A1 (en) * | 2006-05-01 | 2007-11-01 | Microsoft Corporation | Voice authentication system and method |
CN103336687A (en) * | 2013-06-17 | 2013-10-02 | 深圳市金立通信设备有限公司 | Application interface switching method and terminal |
CN107909998A (en) * | 2017-10-18 | 2018-04-13 | 成都市共维科技有限公司 | Phonetic order processing method, device, computer equipment and storage medium |
CN107845384A (en) * | 2017-10-30 | 2018-03-27 | 江西博瑞彤芸科技有限公司 | A kind of audio recognition method |
CN108305626A (en) * | 2018-01-31 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | The sound control method and device of application program |
CN108470566A (en) * | 2018-03-08 | 2018-08-31 | 腾讯科技(深圳)有限公司 | A kind of application operating method and device |
CN108632653A (en) * | 2018-05-30 | 2018-10-09 | 腾讯科技(深圳)有限公司 | Voice management-control method, smart television and computer readable storage medium |
CN108766429A (en) * | 2018-06-05 | 2018-11-06 | 北京百度网讯科技有限公司 | Voice interactive method and device |
Non-Patent Citations (3)
Title |
---|
印润远等: "《移动互联网技术实用教程》", 31 January 2019 * |
李磊: "《嵌入式系统与云计算开发 基于Android系统的实验案例基础教程》", 31 August 2018, 北京航空航天大学出版社 * |
杨昊: "微软易问语音助手应用设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110473537A (en) * | 2019-08-22 | 2019-11-19 | 百度在线网络技术(北京)有限公司 | Control method, device, equipment and the storage medium of voice technical ability |
CN110473537B (en) * | 2019-08-22 | 2022-04-26 | 百度在线网络技术(北京)有限公司 | Voice skill control method, device, equipment and storage medium |
CN111083545A (en) * | 2019-11-18 | 2020-04-28 | 北京小米移动软件有限公司 | Remote operation control method, remote operation control device, and storage medium |
CN112657188A (en) * | 2021-01-07 | 2021-04-16 | 福建天晴在线互动科技有限公司 | Method and system for skipping keywords in game event text |
CN112657188B (en) * | 2021-01-07 | 2022-05-17 | 福建天晴在线互动科技有限公司 | Method and system for skipping keywords in game event text |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10791200B2 (en) | Method, apparatus and server for providing voice service | |
JP5754368B2 (en) | Mobile terminal remote operation method using vehicle integrated operation device, and vehicle integrated operation device | |
RU2699587C2 (en) | Updating models of classifiers of understanding language based on crowdsourcing | |
US11749276B2 (en) | Voice assistant-enabled web application or web page | |
US7853453B2 (en) | Analyzing dialog between a user and an interactive application | |
CN111049996A (en) | Multi-scene voice recognition method and device and intelligent customer service system applying same | |
CN110058916A (en) | A kind of phonetic function jump method, device, equipment and computer storage medium | |
MX2007015186A (en) | Speech application instrumentation and logging. | |
CN111796860B (en) | Micro front end scheme implementation method and device | |
CN107423213A (en) | A kind of filec descriptor distribution detection method and device | |
CN112286485B (en) | Method and device for controlling application through voice, electronic equipment and storage medium | |
CN108831444B (en) | Semantic resource training method and system for voice conversation platform | |
KR20150077580A (en) | Method and apparatus for providing of service based speech recognition | |
CN110275704A (en) | Page data processing method and device, storage medium and electronic equipment | |
CN109637536B (en) | Method and device for automatically identifying semantic accuracy | |
CN113987149A (en) | Intelligent session method, system and storage medium for task robot | |
CN106372203A (en) | Information response method and device for smart terminal and smart terminal | |
CN109273004B (en) | Predictive speech recognition method and device based on big data | |
CN105278928A (en) | IVR external interface configuration method and IVR external interface configuration device | |
CN111240776A (en) | Dynamic wallpaper setting method and device, storage medium and electronic equipment | |
CN112380871A (en) | Semantic recognition method, apparatus, and medium | |
CN113821692A (en) | Data processing method, device, server and storage medium | |
CN113205809A (en) | Voice wake-up method and device | |
CN111797636B (en) | Offline semantic analysis method and system | |
KR20150027426A (en) | Apparatus and Method for Verifying Scripts Automatically |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190726 |
|
RJ01 | Rejection of invention patent application after publication |