CN105511896B - Manage the method and electronic equipment of multiple speech ciphering equipments - Google Patents
Manage the method and electronic equipment of multiple speech ciphering equipments Download PDFInfo
- Publication number
- CN105511896B CN105511896B CN201410498621.7A CN201410498621A CN105511896B CN 105511896 B CN105511896 B CN 105511896B CN 201410498621 A CN201410498621 A CN 201410498621A CN 105511896 B CN105511896 B CN 105511896B
- Authority
- CN
- China
- Prior art keywords
- speech ciphering
- ciphering equipment
- equipment
- application program
- packet name
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of methods for managing multiple speech ciphering equipments, comprising the following steps: presets the default system attribute variable of each speech ciphering equipment;When starting needs the application program using speech ciphering equipment, the system property variable of each speech ciphering equipment is detected, and search based on the application program and system property variable and match speech ciphering equipment corresponding with the application program;Start corresponding speech ciphering equipment.The invention also discloses a kind of electronic equipments for managing multiple speech ciphering equipments.When the present invention makes application program launching, corresponding its most suitable speech ciphering equipment of starting, guarantee application program and speech ciphering equipment match and the realization of normal function, the relationship of each application program and multiple speech ciphering equipment resources is distributed with reasonable management.
Description
Technical field
The present invention relates to device management techniques fields more particularly to a kind of method for managing multiple speech ciphering equipments and electronics to set
It is standby.
Background technique
Currently, the application program on many electronic equipments such as TV is needed using speech ciphering equipment, such as: jump, camera, QQ
The small assistant of video, voice, input method etc., to provide richer, convenient entertainment service for user.But in current electronic device
The speech ciphering equipment of sound-recording function can be provided, and often more than one can provide the speech ciphering equipment of sound-recording function extremely for TV
Rare camera, remote controler etc..And each application program and multiple speech ciphering equipments money are managed currently without an administrative mechanism
The reasonable distribution in source causes the distribution of application program and multiple speech ciphering equipment resources chaotic, influences user to the body of application program
Effect is tested, or even makes application program that can not normally realize the function that user wants.Such as start the video recording journey of camera on TV
When sequence, it should routinely start corresponding camera as sound pick-up outfit, but due to none good administrative mechanism, and TV
On in addition to there are also remote controlers can also be used as sound pick-up outfit for camera, therefore, it is possible to can be wrong when starting the video recording program of camera
That misses has used remote controler as sound pick-up outfit, in this way, the no sound of video recording that the video recording program that will lead to camera finally obtains,
Can not normal use, meanwhile, because remote controler is usually to use battery, if long-term chaotic mistake use remote controler as recording
Equipment, the electricity that will lead to remote controller battery exhaust quickly.Therefore, a kind of administrative mechanism is badly in need of to carry out multiple speech ciphering equipments
Management.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
It is a primary object of the present invention to solve reasonably manage each application program of distribution and multiple speech ciphering equipments
The technical issues of resource.
To achieve the above object, a kind of method managing multiple speech ciphering equipments provided by the invention, the method includes with
Lower step:
Preset the default system attribute variable of each speech ciphering equipment;
When starting needs the application program using speech ciphering equipment, the system property variable of each speech ciphering equipment is detected, and
It is searched based on the application program and system property variable and matches speech ciphering equipment corresponding with the application program;
Start corresponding speech ciphering equipment.
Preferably, the step of default system attribute variable for presetting each speech ciphering equipment specifically:
Add the default system attribute variable of each speech ciphering equipment in the property system of operating system, and by each voice
The initial value of the default system attribute variable of equipment is set as the first Boolean.
Preferably, the system for when starting needs the application program using speech ciphering equipment, detecting each speech ciphering equipment
Attribute variable, and searched based on the application program and system property variable and match speech ciphering equipment corresponding with the application program
The step of include:
It, will be described if in the system property variable including the information of the corresponding Default sound equipment of the application program
The value of the system property variable of Default sound equipment is set as the second Boolean.
Preferably, the system for when starting needs the application program using speech ciphering equipment, detecting each speech ciphering equipment
Attribute variable, and searched based on the application program and system property variable and match speech ciphering equipment corresponding with the application program
The step of further include:
If there is no the information of the corresponding Default sound equipment of the application program in the system property variable, institute is obtained
The application process of application program is stated, and obtains the application packet name of the application program according to the application process;
It is searched in the preset packet name extensible markup language document of each speech ciphering equipment according to the application packet name
Matching, when being matched to the application packet name in the packet name extensible markup language document, by corresponding speech ciphering equipment
The value of system property variable is set as the second Boolean.
Preferably, the system for when starting needs the application program using speech ciphering equipment, detecting each speech ciphering equipment
Attribute variable, and searched based on the application program and system property variable and match speech ciphering equipment corresponding with the application program
The step of further include:
When the application packet name can not be matched in the packet name extensible markup language document, according to the application
Program obtains main display interface information and application name in the statement file of the application program using packet name, and according to described
Main display interface information, application name and application packet name, in the preset matching character extensible markup language text of each speech ciphering equipment
Lookup matching is carried out in part:
If being only matched to the main display in the preset matching character extensible markup language document of a speech ciphering equipment
Interface information, application name and application packet name, then set the second Boolean for the value of the system property variable of the speech ciphering equipment;And
The application packet name is added in the preset packet name extensible markup language document of the speech ciphering equipment;
If being matched to main display circle in the preset matching character extensible markup language document of multiple speech ciphering equipments
Face information, application name and application packet name, then show that the most speech ciphering equipment of matched character for selection by the user selects user
The value of the system property variable for the speech ciphering equipment selected is set as the second Boolean;And the application packet name is added to user's selection
The preset packet name extensible markup language document of speech ciphering equipment in;
If can not all be matched to the master in the preset matching character extensible markup language document of each speech ciphering equipment
Display interface information, application name and packet name is applied, then display reminding information, to prompt user voluntarily to select the application program pair
The value of the system property variable for the speech ciphering equipment that user voluntarily selects is set the second Boolean by the speech ciphering equipment answered;And it will
The application packet name is added in the preset packet name extensible markup language document of speech ciphering equipment that user voluntarily selects.
Preferably, the step of starting corresponding speech ciphering equipment specifically:
When detecting that the value of system property variable of speech ciphering equipment is set as the second Boolean, the speech ciphering equipment is obtained
Production firm's sequence number and/or product ID, and according to the production firm's sequence number and/or product sequence of the speech ciphering equipment of acquisition
Row number starts corresponding speech ciphering equipment.
In addition, to achieve the above object, the present invention also provides a kind of electronic equipment for managing multiple speech ciphering equipments, the electricity
Sub- equipment includes:
Setting module, for presetting the default system attribute variable of each speech ciphering equipment;
Matching module is searched, for detecting each speech ciphering equipment when starting needs the application program using speech ciphering equipment
System property variable, and searched based on the application program and system property variable and match language corresponding with the application program
Sound equipment;
Starting module, for starting corresponding speech ciphering equipment.
Preferably, the setting module is specifically used for:
Add the default system attribute variable of each speech ciphering equipment in the property system of operating system, and by each voice
The initial value of the default system attribute variable of equipment is set as the first Boolean.
Preferably, the lookup matching module is used for:
It, will be described if in the system property variable including the information of the corresponding Default sound equipment of the application program
The value of the system property variable of Default sound equipment is set as the second Boolean.
Preferably, the lookup matching module is also used to:
If there is no the information of the corresponding Default sound equipment of the application program in the system property variable, institute is obtained
The application process of application program is stated, and obtains the application packet name of the application program according to the application process;
It is searched in the preset packet name extensible markup language document of each speech ciphering equipment according to the application packet name
Matching, when being matched to the application packet name in the packet name extensible markup language document, by corresponding speech ciphering equipment
The value of system property variable is set as the second Boolean.
Preferably, the lookup matching module is also used to:
When the application packet name can not be matched in the packet name extensible markup language document, according to the application
Program obtains main display interface information and application name in the statement file of the application program using packet name, and according to described
Main display interface information, application name and application packet name, in the preset matching character extensible markup language text of each speech ciphering equipment
Lookup matching is carried out in part:
If being only matched to the main display in the preset matching character extensible markup language document of a speech ciphering equipment
Interface information, application name and application packet name, then set the second Boolean for the value of the system property variable of the speech ciphering equipment;And
The application packet name is added in the preset packet name extensible markup language document of the speech ciphering equipment;
If being matched to main display circle in the preset matching character extensible markup language document of multiple speech ciphering equipments
Face information, application name and application packet name, then show that the most speech ciphering equipment of matched character for selection by the user selects user
The value of the system property variable for the speech ciphering equipment selected is set as the second Boolean;And the application packet name is added to user's selection
The preset packet name extensible markup language document of speech ciphering equipment in;
If can not all be matched to the master in the preset matching character extensible markup language document of each speech ciphering equipment
Display interface information, application name and packet name is applied, then display reminding information, to prompt user voluntarily to select the application program pair
The value of the system property variable for the speech ciphering equipment that user voluntarily selects is set the second Boolean by the speech ciphering equipment answered;And it will
The application packet name is added in the preset packet name extensible markup language document of speech ciphering equipment that user voluntarily selects.
Preferably, the starting module is specifically used for:
When detecting that the value of system property variable of speech ciphering equipment is set as the second Boolean, the speech ciphering equipment is obtained
Production firm's sequence number and/or product ID, and according to the production firm's sequence number and/or product sequence of the speech ciphering equipment of acquisition
Row number starts corresponding speech ciphering equipment.
A kind of method managing multiple speech ciphering equipments proposed by the present invention and electronic equipment, by presetting multiple speech ciphering equipments
Default system attribute variable, when starting needs the application program using speech ciphering equipment, the system that detects each speech ciphering equipment
Attribute variable, and matching voice corresponding with the application program is searched based on the application program of starting and system property variable and is set
It is standby, in this way, management is allocated by the system property variable of the speech ciphering equipment of application program and detection thus according to starting,
When can make application program launching, corresponding its most suitable speech ciphering equipment of starting guarantees the mating of application program and speech ciphering equipment
Using and normal function realization, the relationship of each application program and multiple speech ciphering equipment resources is distributed with reasonable management.
Detailed description of the invention
Fig. 1 is the flow diagram for one embodiment of method that the present invention manages multiple speech ciphering equipments;
Fig. 2 is the functional block diagram for one embodiment of electronic equipment that the present invention manages multiple speech ciphering equipments.
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.
The present invention provides a kind of method for managing multiple speech ciphering equipments.
Referring to Fig.1, Fig. 1 is the flow diagram for one embodiment of method that the present invention manages multiple speech ciphering equipments.
In one embodiment, the method for the multiple speech ciphering equipments of the management includes:
Step S10 presets the default system attribute variable of each speech ciphering equipment;
In the present embodiment, firstly, adding the default system attribute of each speech ciphering equipment in the property system of operating system
Variable, and the first Boolean is set by the initial value of the default system attribute variable of each speech ciphering equipment.It should be noted that
In the present embodiment, the first Boolean can be one in "true" true or "false" false, be not limited thereto, the present embodiment
In only by the first Boolean be false for be illustrated.In this way, by the first of the default system attribute variable of each speech ciphering equipment
Initial value is set as false, can be easily directly by the speech ciphering equipment when to be needed in subsequent operation using a certain speech ciphering equipment
System property variable change be set as true, you can learn that the recalls information.
Step S20 detects the system property of each speech ciphering equipment when starting needs the application program using speech ciphering equipment
Variable, and searched based on the application program and system property variable and match speech ciphering equipment corresponding with the application program;
When starting needs the application program using speech ciphering equipment, each speech ciphering equipment is detected in the bottom of operating system
System property variable, as described in can check in system property variable whether include as described in the corresponding Default sound of application program set
Standby information, if so, then directly by the value of the system property variable of the Default sound equipment be set as the second Boolean namely
True, application program is true according to the system property variable that the speech ciphering equipment returns, you can learn that the speech ciphering equipment is to need
Search matched speech ciphering equipment corresponding with current application program;If the system property variable that application program gets return is all
False then illustrates the speech ciphering equipment being adapted to currently without the application program with starting, then needs the phase of the application program according to starting
Information is closed, such as progress information, using other relevant informations of packet name, application name and the application program in current all speech ciphering equipments
In carry out lookup matching, find the corresponding speech ciphering equipment of application program with starting.
Step S30 starts corresponding speech ciphering equipment.
After determining speech ciphering equipment corresponding with current application program, the facility information of corresponding speech ciphering equipment is obtained, it is such as raw
Produce manufacturer's sequence number (Vendor ID) and/or product ID (Product ID) and it is more relevant to the speech ciphering equipment its
His information.After finding speech ciphering equipment corresponding with current application program and getting the relevant device information of the speech ciphering equipment,
Corresponding speech ciphering equipment can be called and started according to the facility information, so that the speech ciphering equipment and current application program cooperation are real
Now corresponding function.
The present embodiment is by presetting the default system attribute variables of multiple speech ciphering equipments, when starting is needed using speech ciphering equipment
Application program when, detect the system property variable of each speech ciphering equipment, and the application program based on starting and system property become
Amount searches corresponding with the application program speech ciphering equipment of matching, in this way, by application program and detection thus according to starting
The system property variable of speech ciphering equipment is allocated management, and when can make application program launching, its is most suitable for corresponding starting
Speech ciphering equipment, guarantee application program and speech ciphering equipment match and the realization of normal function, respectively with reasonable management distribution
The relationship of a application program and multiple speech ciphering equipment resources.
Specifically, above-mentioned steps S20 can be following implementations:
After application program launching, it can check in the system property variable whether include the application program pair first
The information for the Default sound equipment answered, the Default sound equipment can be having set when factory with the application program phase
The Default device matched.
If including the information of the corresponding Default sound equipment of the application program in the system property variable, illustrate
The Default device to match with the application program is found, then is directly set the value of the system property variable of the Default sound equipment
It is set to true, the application program is true according to the system property variable of return, you can learn that the Default sound equipment is
Require to look up matched speech ciphering equipment corresponding with current application program.In this way, can be quick according to the system property variable
Be matched to the Default sound equipment to match with the application program, it is very convenient quick.
If there is no the information of the corresponding Default sound equipment of the application program in the system property variable, illustrate this
The Default device not matched with the application program in system then needs to be carried out according to the relevant information of the application program of starting
Search matching.Firstly, obtaining the application process for the application program being currently up, and the application is obtained according to the application process
Program applies packet name;According to the application packet name in preset packet name extensible markup language (xml) text of each speech ciphering equipment
Lookup matching is carried out in part, when being matched to the application packet name in the packet name extensible markup language document, is then illustrated
The corresponding speech ciphering equipment of the packet name extensible markup language document be require to look up it is matched corresponding with current application program
Speech ciphering equipment.Then set true for the value of the system property variable of the corresponding speech ciphering equipment, the application program according to
The system property variable of return is true, you can learn that requiring to look up matched speech ciphering equipment corresponding with current application program.
When the application packet name can not be matched in the packet name extensible markup language document, further, root
According to main display interface (Activity) letter of the application program obtained using packet name in the statement file of the application program
Breath and application name, and according to the main display interface information of the application program, application name and packet name is applied, in each speech ciphering equipment
Lookup matching is carried out in preset matching character extensible markup language document.Wherein, the preset matching character of speech ciphering equipment can
Include preset multiple matching characters in extended markup language file, as keyword come with the relevant information of application program into
Row matching, such as the matching character of remote controler speech ciphering equipment can be preset as long-range (remote), voice, language point, input method.
If being only matched to the main display in the preset matching character extensible markup language document of a speech ciphering equipment
Interface information, application name and application packet name, then illustrate the corresponding speech ciphering equipment of the matching character extensible markup language document
As require to look up matched speech ciphering equipment corresponding with current application program.Then by the system property of the corresponding speech ciphering equipment
The value of variable is set as true, and the application program is true according to the system property variable of return, you can learn that requiring to look up
Matched speech ciphering equipment corresponding with current application program.Further, the application packet name is added to the corresponding voice
In the preset packet name extensible markup language document of equipment, when starting the application program so as to next time, directly wrapped according to its application
Name can be matched to corresponding speech ciphering equipment, more convenient.
If being matched to main display circle in the preset matching character extensible markup language document of multiple speech ciphering equipments
Face information, application name and application packet name, then show that the most speech ciphering equipment of matched character for selection by the user selects user
The value of the system property variable for the speech ciphering equipment selected is set as true, and the application program is according to the system property variable of return
True, you can learn that requiring to look up matched speech ciphering equipment corresponding with current application program.Further, by the application packet
Name is added in the corresponding preset packet name extensible markup language document of speech ciphering equipment, so that next time starts the application program
When, corresponding speech ciphering equipment directly can be matched to using packet name according to it, it is more convenient.
If can not all be matched to the master in the preset matching character extensible markup language document of each speech ciphering equipment
Display interface information, application name and packet name is applied, then display reminding information, to prompt user voluntarily to select the application program pair
The value of the system property variable for the speech ciphering equipment that user voluntarily selects is set true by the speech ciphering equipment answered, described to apply journey
Sequence is true according to the system property variable of return, you can learn that requiring to look up matched voice corresponding with current application program
Equipment.Further, the application packet name is added to the corresponding preset packet name extensible markup language text of speech ciphering equipment
In part, when starting the application program so as to next time, corresponding speech ciphering equipment directly can be matched to using packet name according to it, more
It is convenient.
The present invention further provides a kind of electronic equipments for managing multiple speech ciphering equipments.
Referring to Fig. 2, Fig. 2 is the functional module signal for one embodiment of electronic equipment that the present invention manages multiple speech ciphering equipments
Figure.
In one embodiment, the electronic equipment of the multiple speech ciphering equipments of the management includes:
Setting module 01, for presetting the default system attribute variable of each speech ciphering equipment;
Matching module 02 is searched, for each voice being detected and being set when starting needs the application program using speech ciphering equipment
Standby system property variable, and it is corresponding with the application program based on the application program and the lookup matching of system property variable
Speech ciphering equipment;
Starting module 03, for starting corresponding speech ciphering equipment.
In the present embodiment, firstly, adding the default system attribute of each speech ciphering equipment in the property system of operating system
Variable, and the first Boolean is set by the initial value of the default system attribute variable of each speech ciphering equipment.It should be noted that
In the present embodiment, the first Boolean can be one in "true" true or "false" false, be not limited thereto, the present embodiment
In only by the first Boolean be false for be illustrated.In this way, by the first of the default system attribute variable of each speech ciphering equipment
Initial value is set as false, can be easily directly by the speech ciphering equipment when to be needed in subsequent operation using a certain speech ciphering equipment
System property variable change be set as true, you can learn that the recalls information.
When starting needs the application program using speech ciphering equipment, each speech ciphering equipment is detected in the bottom of operating system
System property variable, as described in can check in system property variable whether include as described in the corresponding Default sound of application program set
Standby information, if so, then directly by the value of the system property variable of the Default sound equipment be set as the second Boolean namely
True, application program is true according to the system property variable that the speech ciphering equipment returns, you can learn that the speech ciphering equipment is to need
Search matched speech ciphering equipment corresponding with current application program;If the system property variable that application program gets return is all
False then illustrates the speech ciphering equipment being adapted to currently without the application program with starting, then needs the phase of the application program according to starting
Information is closed, such as progress information, using other relevant informations of packet name, application name and the application program in current all speech ciphering equipments
In carry out lookup matching, find the corresponding speech ciphering equipment of application program with starting.
After determining speech ciphering equipment corresponding with current application program, the facility information of corresponding speech ciphering equipment is obtained, it is such as raw
Produce manufacturer's sequence number (Vendor ID) and/or product ID (Product ID) and it is more relevant to the speech ciphering equipment its
His information.
After finding speech ciphering equipment corresponding with current application program and getting the relevant device information of the speech ciphering equipment,
Corresponding speech ciphering equipment can be called and started according to the facility information, so that the speech ciphering equipment and current application program cooperation are real
Now corresponding function.
The present embodiment is by presetting the default system attribute variables of multiple speech ciphering equipments, when starting is needed using speech ciphering equipment
Application program when, detect the system property variable of each speech ciphering equipment, and the application program based on starting and system property become
Amount searches corresponding with the application program speech ciphering equipment of matching, in this way, by application program and detection thus according to starting
The system property variable of speech ciphering equipment is allocated management, and when can make application program launching, its is most suitable for corresponding starting
Speech ciphering equipment, guarantee application program and speech ciphering equipment match and the realization of normal function, respectively with reasonable management distribution
The relationship of a application program and multiple speech ciphering equipment resources.
Wherein, above-mentioned lookup matching module 02 specifically can be used for:
After application program launching, it can check in the system property variable whether include the application program pair first
The information for the Default sound equipment answered, the Default sound equipment can be having set when factory with the application program phase
The Default device matched.
If including the information of the corresponding Default sound equipment of the application program in the system property variable, illustrate
The Default device to match with the application program is found, then is directly set the value of the system property variable of the Default sound equipment
It is set to true, the application program is true according to the system property variable of return, you can learn that the Default sound equipment is
Require to look up matched speech ciphering equipment corresponding with current application program.In this way, can be quick according to the system property variable
Be matched to the Default sound equipment to match with the application program, it is very convenient quick.
If there is no the information of the corresponding Default sound equipment of the application program in the system property variable, illustrate this
The Default device not matched with the application program in system then needs to be carried out according to the relevant information of the application program of starting
Search matching.Firstly, obtaining the application process for the application program being currently up, and the application is obtained according to the application process
Program applies packet name;According to the application packet name in preset packet name extensible markup language (xml) text of each speech ciphering equipment
Lookup matching is carried out in part, when being matched to the application packet name in the packet name extensible markup language document, is then illustrated
The corresponding speech ciphering equipment of the packet name extensible markup language document be require to look up it is matched corresponding with current application program
Speech ciphering equipment.Then set true for the value of the system property variable of the corresponding speech ciphering equipment, the application program according to
The system property variable of return is true, you can learn that requiring to look up matched speech ciphering equipment corresponding with current application program.
When the application packet name can not be matched in the packet name extensible markup language document, further, root
According to main display interface (Activity) letter of the application program obtained using packet name in the statement file of the application program
Breath and application name, and according to the main display interface information of the application program, application name and packet name is applied, in each speech ciphering equipment
Lookup matching is carried out in preset matching character extensible markup language document.Wherein, the preset matching character of speech ciphering equipment can
Include preset multiple matching characters in extended markup language file, as keyword come with the relevant information of application program into
Row matching, such as the matching character of remote controler speech ciphering equipment can be preset as long-range (remote), voice, language point, input method.
If being only matched to the main display in the preset matching character extensible markup language document of a speech ciphering equipment
Interface information, application name and application packet name, then illustrate the corresponding speech ciphering equipment of the matching character extensible markup language document
As require to look up matched speech ciphering equipment corresponding with current application program.Then by the system property of the corresponding speech ciphering equipment
The value of variable is set as true, and the application program is true according to the system property variable of return, you can learn that requiring to look up
Matched speech ciphering equipment corresponding with current application program.Further, the application packet name is added to the corresponding voice
In the preset packet name extensible markup language document of equipment, when starting the application program so as to next time, directly wrapped according to its application
Name can be matched to corresponding speech ciphering equipment, more convenient.
If being matched to main display circle in the preset matching character extensible markup language document of multiple speech ciphering equipments
Face information, application name and application packet name, then show that the most speech ciphering equipment of matched character for selection by the user selects user
The value of the system property variable for the speech ciphering equipment selected is set as true, and the application program is according to the system property variable of return
True, you can learn that requiring to look up matched speech ciphering equipment corresponding with current application program.Further, by the application packet
Name is added in the corresponding preset packet name extensible markup language document of speech ciphering equipment, so that next time starts the application program
When, corresponding speech ciphering equipment directly can be matched to using packet name according to it, it is more convenient.
If can not all be matched to the master in the preset matching character extensible markup language document of each speech ciphering equipment
Display interface information, application name and packet name is applied, then display reminding information, to prompt user voluntarily to select the application program pair
The value of the system property variable for the speech ciphering equipment that user voluntarily selects is set true by the speech ciphering equipment answered, described to apply journey
Sequence is true according to the system property variable of return, you can learn that requiring to look up matched voice corresponding with current application program
Equipment.Further, the application packet name is added to the corresponding preset packet name extensible markup language text of speech ciphering equipment
In part, when starting the application program so as to next time, corresponding speech ciphering equipment directly can be matched to using packet name according to it, more
It is convenient.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.Pass through above embodiment party
The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software
The mode of hardware platform is realized, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.It is based on
Such understanding, substantially the part that contributes to existing technology can be with software product in other words for technical solution of the present invention
Form embody, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including
Some instructions are used so that a terminal device (can be mobile phone, computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.
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 method for managing multiple speech ciphering equipments, which is characterized in that the described method comprises the following steps:
The initial value for presetting the default system attribute variable of each speech ciphering equipment is the first Boolean;
When starting needs the application program using speech ciphering equipment, detect whether to exist comprising the corresponding default of the application program
The system property variable of the information of speech ciphering equipment;
The system property variable of information comprising the corresponding Default sound equipment of the application program if it does not exist, then described in acquisition
The application process of application program, and according to the application process obtain the application program apply packet name;
Lookup matching is carried out in the preset packet name extensible markup language document of each speech ciphering equipment according to the application packet name,
When being matched to the application packet name in the packet name extensible markup language document, by the system category of corresponding speech ciphering equipment
The value of property variable is set as the second Boolean;
Start corresponding speech ciphering equipment, wherein first Boolean is two different values from the second Boolean.
2. managing the method for multiple speech ciphering equipments as described in claim 1, which is characterized in that described to preset each speech ciphering equipment
Default system attribute variable initial value be the first Boolean the step of specifically:
Add the default system attribute variable of each speech ciphering equipment in the property system of operating system, and by each speech ciphering equipment
The initial value of default system attribute variable be set as the first Boolean.
3. managing the method for multiple speech ciphering equipments as claimed in claim 2, which is characterized in that described when starting is needed using language
When the application program of sound equipment, the system in the presence of the information comprising the corresponding Default sound equipment of the application program is detected whether
Attribute variable, later further include:
The system property variable of information comprising the corresponding Default sound equipment of the application program if it exists, then will be comprising
The value for stating the system property variable of the information of the corresponding Default sound equipment of application program is set as the second Boolean.
4. managing the method for multiple speech ciphering equipments as described in claim 1, which is characterized in that described according to the application packet name
After carrying out lookup matching in the preset packet name extensible markup language document of each speech ciphering equipment, further includes:
When the application packet name can not be matched in the packet name extensible markup language document, according to the application program
Obtain main display interface information and application name in the statement file of the application program using packet name, and it is aobvious according to the master
Show interface information, application name and apply packet name, in the preset matching character extensible markup language document of each speech ciphering equipment
Carry out lookup matching:
If being only matched to the main display interface in the preset matching character extensible markup language document of a speech ciphering equipment
Information, application name and packet name is applied, then set the second Boolean for the value of the system property variable of the speech ciphering equipment, and by institute
It states and is added in the preset packet name extensible markup language document of the speech ciphering equipment using packet name;
If being matched to the main display interface letter in the preset matching character extensible markup language document of multiple speech ciphering equipments
Breath, application name and application packet name, then show the most speech ciphering equipment of matched character, for selection by the user, by user's selection
The value of the system property variable of speech ciphering equipment is set as the second Boolean, and the application packet name is added to the language of user's selection
In the preset packet name extensible markup language document of sound equipment;
If can not all be matched to the main display in the preset matching character extensible markup language document of each speech ciphering equipment
Interface information, application name and packet name is applied, then display reminding information, to prompt user voluntarily to select the application program corresponding
The value of the system property variable for the speech ciphering equipment that user voluntarily selects is set the second Boolean by speech ciphering equipment, and will be described
It is added in the preset packet name extensible markup language document of speech ciphering equipment that user voluntarily selects using packet name.
5. such as the method for the multiple speech ciphering equipments of management of any of claims 1-4, which is characterized in that the starting pair
The step of speech ciphering equipment answered specifically:
When detecting that the value of system property variable of speech ciphering equipment is set as the second Boolean, the production of the speech ciphering equipment is obtained
Manufacturer's sequence number and/or product ID, and according to the production firm's sequence number and/or product serial of the speech ciphering equipment of acquisition
Number, start corresponding speech ciphering equipment.
6. a kind of electronic equipment for managing multiple speech ciphering equipments, which is characterized in that the electronic equipment includes:
Setting module, the initial value of the default system attribute variable for presetting each speech ciphering equipment are the first Boolean;
Matching module is searched, for detecting whether to exist comprising described when starting needs the application program using speech ciphering equipment
The system property variable of the information of the corresponding Default sound equipment of application program;
The system property variable of information comprising the corresponding Default sound equipment of the application program if it does not exist, then described in acquisition
The application process of application program, and according to the application process obtain the application program apply packet name;
Lookup matching is carried out in the preset packet name extensible markup language document of each speech ciphering equipment according to the application packet name,
When being matched to the application packet name in the packet name extensible markup language document, by the system category of corresponding speech ciphering equipment
The value of property variable is set as the second Boolean;
Starting module, for starting corresponding speech ciphering equipment, wherein first Boolean and the second Boolean are two differences
Value.
7. managing the electronic equipment of multiple speech ciphering equipments as claimed in claim 6, which is characterized in that the setting module is specific
For:
Add the default system attribute variable of each speech ciphering equipment in the property system of operating system, and by each speech ciphering equipment
The initial value of default system attribute variable be set as the first Boolean.
8. managing the electronic equipment of multiple speech ciphering equipments as claimed in claim 6, which is characterized in that the lookup matching module
It is also used to:
The system property variable of information comprising the corresponding Default sound equipment of the application program if it exists, then will be comprising
The value for stating the system property variable of the information of the corresponding Default sound equipment of application program is set as the second Boolean.
9. managing the electronic equipment of multiple speech ciphering equipments as claimed in claim 6, which is characterized in that the lookup matching module
It is also used to:
When the application packet name can not be matched in the packet name extensible markup language document, according to the application program
Obtain main display interface information and application name in the statement file of the application program using packet name, and it is aobvious according to the master
Show interface information, application name and apply packet name, in the preset matching character extensible markup language document of each speech ciphering equipment
Carry out lookup matching:
If being only matched to the main display interface in the preset matching character extensible markup language document of a speech ciphering equipment
Information, application name and application packet name, then set the second Boolean for the value of the system property variable of the speech ciphering equipment;And by institute
It states and is added in the preset packet name extensible markup language document of the speech ciphering equipment using packet name;
If being matched to the main display interface letter in the preset matching character extensible markup language document of multiple speech ciphering equipments
Breath, application name and application packet name, then show the most speech ciphering equipment of matched character, for selection by the user, by user's selection
The value of the system property variable of speech ciphering equipment is set as the second Boolean;And the application packet name is added to the language of user's selection
In the preset packet name extensible markup language document of sound equipment;
If can not all be matched to the main display in the preset matching character extensible markup language document of each speech ciphering equipment
Interface information, application name and packet name is applied, then display reminding information, to prompt user voluntarily to select the application program corresponding
The value of the system property variable for the speech ciphering equipment that user voluntarily selects is set the second Boolean by speech ciphering equipment;And it will be described
It is added in the preset packet name extensible markup language document of speech ciphering equipment that user voluntarily selects using packet name.
10. the electronic equipment of the multiple speech ciphering equipments of management as described in any one of claim 6-9, which is characterized in that described
Starting module is specifically used for:
When detecting that the value of system property variable of speech ciphering equipment is set as the second Boolean, the production of the speech ciphering equipment is obtained
Manufacturer's sequence number and/or product ID, and according to the production firm's sequence number and/or product serial of the speech ciphering equipment of acquisition
Number, start corresponding speech ciphering equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410498621.7A CN105511896B (en) | 2014-09-25 | 2014-09-25 | Manage the method and electronic equipment of multiple speech ciphering equipments |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410498621.7A CN105511896B (en) | 2014-09-25 | 2014-09-25 | Manage the method and electronic equipment of multiple speech ciphering equipments |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105511896A CN105511896A (en) | 2016-04-20 |
CN105511896B true CN105511896B (en) | 2019-02-26 |
Family
ID=55719905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410498621.7A Active CN105511896B (en) | 2014-09-25 | 2014-09-25 | Manage the method and electronic equipment of multiple speech ciphering equipments |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105511896B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7051114B1 (en) * | 2000-11-01 | 2006-05-23 | Cisco Technology, Inc. | System and method for integrating directory servers |
JP2008217483A (en) * | 2007-03-05 | 2008-09-18 | Mobile Software Market Kk | Function achievement system in application program of portable telephone |
CN103702046A (en) * | 2013-12-18 | 2014-04-02 | 四川长虹电器股份有限公司 | Method for opening voice equipment in selectable mode |
CN104007952A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Input method, device and electronic device |
-
2014
- 2014-09-25 CN CN201410498621.7A patent/CN105511896B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7051114B1 (en) * | 2000-11-01 | 2006-05-23 | Cisco Technology, Inc. | System and method for integrating directory servers |
JP2008217483A (en) * | 2007-03-05 | 2008-09-18 | Mobile Software Market Kk | Function achievement system in application program of portable telephone |
CN104007952A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Input method, device and electronic device |
CN103702046A (en) * | 2013-12-18 | 2014-04-02 | 四川长虹电器股份有限公司 | Method for opening voice equipment in selectable mode |
Also Published As
Publication number | Publication date |
---|---|
CN105511896A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109308357B (en) | Method, device and equipment for obtaining answer information | |
WO2018006469A1 (en) | Knowledge graph-based human-robot interaction method and system | |
JP5768185B2 (en) | Method and apparatus for automatically displaying application components on a desktop | |
CN106778117B (en) | Permission open method, apparatus and system | |
CN107527619B (en) | Method and device for positioning voice control service | |
CN109034907A (en) | Ad data put-on method and device, electronic equipment, storage medium | |
CN108810642B (en) | Bullet screen display method and device and electronic equipment | |
CN108885740A (en) | Active Intelligent Personal Assistant | |
US20170195737A1 (en) | Method for video search and electronic device | |
CN107613400A (en) | A kind of implementation method and device of voice barrage | |
CN104281656B (en) | The method and apparatus of label information are added in the application | |
CN109410943A (en) | Voice control method and system of equipment and intelligent terminal | |
CN109389870A (en) | A kind of data adaptive method of adjustment and its device applied in electronic instruction | |
WO2022160596A1 (en) | Inquiry information processing method and apparatus, and medium | |
CN108733666B (en) | Server information pushing method, terminal information sending method, device and system | |
CN112532507B (en) | Method and device for presenting an emoticon, and for transmitting an emoticon | |
CN110888988B (en) | Method, device and equipment for generating question and answer information | |
CN111142993A (en) | Information acquisition method, terminal and computer storage medium | |
CN110992937A (en) | Language offline recognition method, terminal and readable storage medium | |
CN111159382A (en) | Method and device for constructing and using session system knowledge model | |
CN109002434A (en) | Customer service question and answer matching method, server and storage medium | |
CN105335466A (en) | Audio data retrieval method and apparatus | |
CN103701836B (en) | Information processing method, terminal device and server | |
CN105679349A (en) | Method and device for controlling recording marks of intelligent terminal | |
CN106716418A (en) | A software recommending method and device, a terminal and a server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |