A kind of voice automated testing methodTechnical field
The present invention relates to technical field of voice recognition more particularly to a kind of voice automated testing methods.
Background technique
Speech recognition is a kind of cross discipline of identification voice formation instruction, since its high efficiency has been widely used for workThe every field such as industry, household electrical appliances, communication, automotive electronics, medical treatment, home services, consumption electronic product.
Field involved in speech recognition technology includes: signal processing, pattern-recognition, probability theory and information theory, sounding machineReason and hearing mechanism, artificial intelligence etc..
Voice is more more and more universal and instruction is more and more abundant, and traditional manual testing will cover phonetic order on a large scale,Write the heavy workload of test case, inefficiency, regression test cost is huge.
Summary of the invention
Goal of the invention of the invention is to provide a kind of voice automated testing method, using technical side provided by the inventionCase solves existing manual testing's heavy workload, low efficiency and the big technical problem of regression test cost.
In order to solve the above technical problem, the present invention provides a kind of voice automated testing methods, comprising the following steps:
S201, write or import phonetic order use-case.
S202, text corresponding with the phonetic order use-case is broadcasted to equipment to be tested by voice;
S203, the equipment to be tested carry out speech processes;
The correctness of S204, the equipment verification phonetic order to be tested.
Preferably, in step s 201, phonetic order use-case is write or imported in RF tool.
Preferably, in step S202, third party's sound source is called to broadcast voice by RF tool.
Preferably, in step S204, after the correctness of the equipment verification phonetic order to be tested, and it is reported to RF workTool.
From the foregoing, it will be observed that available following the utility model has the advantages that being write by RF tool using technical solution provided by the inventionPhonetic order case and calling third party's sound source, test case are write simply, support to import, and are improved use-case and are write efficiency;It is realThe reuse of existing voice resource, improves the reliability of tone testing result;Automatic execute tests and judges whether test result meetsIt is expected that;System hardware input cost is lower, completes stability test;Manpower is largely saved, testing efficiency and survey are promotedCoverage rate is tried, testing cost is reduced.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of invention without any creative labor, may be used also for those of ordinary skill in the artTo obtain other drawings based on these drawings.
Fig. 1 is voice of embodiment of the present invention automated testing method flow chart.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description.Obviously, described embodiment is only section Example of the present invention, instead of all the embodiments.Based on thisEmbodiment in invention, those of ordinary skill in the art's every other reality obtained under that premise of not paying creative laborExample is applied, shall fall within the protection scope of the present invention.
Voice is more more and more universal and instruction is more and more abundant, and in the exploitation of speech recognition technology, traditional manual testing is wantedCovering phonetic order on a large scale, writes the heavy workload of test case, inefficiency, and regression test cost is huge.
As shown in Figure 1, to solve the above-mentioned problems, the present embodiment proposes a kind of voice automated testing method, including withLower step:
S201, write or import phonetic order use-case.
Phonetic order use-case is write or imported in RF tool.
S202, text corresponding with phonetic order use-case is broadcasted to equipment to be tested by voice.
Third party's sound source is called to broadcast voice by RF tool.
S203, equipment to be tested carry out speech processes.
The correctness of S204, equipment verification phonetic order to be tested.
After the correctness of equipment verification phonetic order to be tested, and it is reported to RF tool.
Phonetic order case is write by RF tool and calls third party's sound source, and test case writes simply, supports to leadEnter, improves use-case and write efficiency;It realizes the reuse of voice resource, improves the reliability of tone testing result;Automatically test is executedAnd judge whether test result meets expection;System hardware input cost is lower, completes stability test;Largely saveManpower promotes testing efficiency and test coverage, reduces testing cost.
Embodiments described above does not constitute the restriction to the technical solution protection scope.It is any in above-mentioned implementationMade modifications, equivalent substitutions and improvements etc., should be included in the protection model of the technical solution within the spirit and principle of modeWithin enclosing.