CN115206282A - Test method, device, electronic equipment and medium based on voice synthesis system - Google Patents

Test method, device, electronic equipment and medium based on voice synthesis system Download PDF

Info

Publication number
CN115206282A
CN115206282A CN202210820836.0A CN202210820836A CN115206282A CN 115206282 A CN115206282 A CN 115206282A CN 202210820836 A CN202210820836 A CN 202210820836A CN 115206282 A CN115206282 A CN 115206282A
Authority
CN
China
Prior art keywords
test
synthesis system
test result
information
result
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
Application number
CN202210820836.0A
Other languages
Chinese (zh)
Inventor
孙奥兰
王健宗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210820836.0A priority Critical patent/CN115206282A/en
Publication of CN115206282A publication Critical patent/CN115206282A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the application provides a testing method, a testing device, electronic equipment and a testing medium based on a voice synthesis system, and belongs to the technical field of system testing. The method comprises the following steps: acquiring version information and test environment information of a voice synthesis system; determining a test plan set according to the version information and the test environment information; creating a test result table according to the test plan set; and carrying out case test, safety test, performance test, interface test and sampling test on the voice synthesis system, adding different test results into the same test result table, and finally determining target test information of the voice synthesis system according to the added test result table. The embodiment of the application can distinguish different test results of the voice synthesis system and display the different test results in the same test result table, so that the accuracy of testing the voice synthesis system is improved, and testers can conveniently check the test results.

Description

Test method, device, electronic equipment and medium based on voice synthesis system
Technical Field
The present invention relates to the field of system testing technologies, and in particular, to a testing method and apparatus, an electronic device, and a medium based on a speech synthesis system.
Background
At present, with the rapid development of the internet, the quality of life of people gradually improves, and various application systems come into existence, so that it becomes especially important to perform system testing on application systems, where a speech synthesis system becomes a main application system for multimedia and live webcasting, and the speech synthesis system testing requires an operator to separately test hardware and software of the system, and to check whether conditions that do not conform to a system specification and whether the operating environment of the application system is safe or not exist, so as to verify whether the function, performance, and the like of a software system meet the requirements formulated by the specification under the condition that the operating environment is safe. In the existing system test, all components in an application system are tested together, including software test, hardware test, network environment test and the like, so that a large amount of time cost and labor cost are consumed, the problems of inaccurate test results and the like can occur due to the fact that a tester needs to track and record in the whole process in the test process, and in the process of checking the test results later, the various test results are mixed together, so that the tester is inconvenient to check.
Disclosure of Invention
The embodiment of the application mainly aims to provide a testing method, a testing device, electronic equipment and a testing medium based on a voice synthesis system, which can distinguish different testing results of the voice synthesis system and display the different testing results in the same testing result table, so that the testing accuracy of the voice synthesis system is improved, and testing personnel can conveniently check the testing results.
In order to achieve the above object, a first aspect of the embodiments of the present application provides a testing method based on a speech synthesis system, where the method includes:
acquiring version information and test environment information of the voice synthesis system;
determining a test plan set of the voice synthesis system according to the version information and the test environment information, wherein the test plan set comprises use case testing, safety testing, performance testing, interface testing and sampling testing;
creating a test result table according to the test plan set;
performing the case test on the voice synthesis system to obtain a case test result, and adding the case test result to the test result table;
performing the safety test on the voice synthesis system to obtain a safety test result, and adding the safety test result to the test result table;
performing the performance test on the voice synthesis system to obtain a performance test result, and adding the performance test result to the test result table;
performing the interface test on the voice synthesis system to obtain an interface test result, and adding the interface test result to the test result table;
performing the sampling test on the voice synthesis system according to the test environment information to obtain a sampling test result, and adding the sampling test result to the test result table;
and determining target test information of the voice synthesis system according to the added test result table.
In some embodiments, the determining a set of test plans for the speech synthesis system from the version information and the test environment information comprises:
merging the version information to the test environment information to obtain a merging result;
and determining the test plan set of the speech synthesis system according to the merging result.
In some embodiments, the use case test comprises a test sample use case; the example test is performed on the voice synthesis system to obtain an example test result, and the example test result includes:
inputting the test sample case to the voice synthesis system for testing to obtain a test sample value;
and comparing the test sample value with a preset case value in the voice synthesis system to obtain the case test result.
In some embodiments, the security test includes an information test, an override test, and an authorization test; the performing the security test on the speech synthesis system to obtain a security test result includes:
carrying out the information test on the voice synthesis system to obtain an information result;
performing the override test on the voice synthesis system to obtain an override result;
performing the authorization test on the voice synthesis system to obtain an authorization result;
and integrating the information result, the override result and the authorization result to obtain the safety test result.
In some embodiments, the performance test comprises a release scenario use case; the performance test of the speech synthesis system to obtain a performance test result includes:
and inputting the publishing scene case into the voice synthesis system for pressure test to obtain the performance test result.
In some embodiments, the interface test comprises a release interface use case; the interface test is performed on the speech synthesis system to obtain an interface test result, and the interface test result includes:
and inputting the publishing interface case into the voice synthesis system, and testing according to the publishing interface case and the publishing scene case to obtain the interface test result.
In some embodiments, the test environment information includes tactical information and audio information; the sampling test is performed on the speech synthesis system to obtain a sampling test result, and the sampling test result comprises:
determining a dialect interface corresponding to the dialect information from the interface test result according to the dialect information;
determining an audio interface corresponding to the audio information from the interface test result according to the audio information;
sampling the publishing scene case according to the voice operation interface to obtain target voice operation information corresponding to the voice operation information;
sampling the publishing scene case according to the audio interface to obtain target audio information corresponding to the audio information;
and integrating the target dialect information and the target audio information to obtain the sampling test result.
In order to achieve the above object, a second aspect of the embodiments of the present application provides a testing apparatus based on a speech synthesis system, the apparatus including:
the information acquisition module is used for acquiring version information and test environment information of the voice synthesis system;
a requirement determining module, configured to determine a test plan set of the speech synthesis system according to the version information and the test environment information, where the test plan set is used to characterize system requirements of the speech synthesis system;
the result creating module is used for creating a test result table according to the test plan set;
the case testing module is used for carrying out the case testing on the voice synthesis system to obtain a case testing result, and adding the case testing result to the testing result table;
the safety test module is used for carrying out the safety test on the voice synthesis system to obtain a safety test result, and adding the safety test result to the test result table;
the performance test module is used for carrying out the performance test on the voice synthesis system to obtain a performance test result, and adding the performance test result to the test result table;
the interface test module is used for carrying out the interface test on the voice synthesis system to obtain an interface test result and adding the interface test result to the test result table;
the sampling test module is used for carrying out sampling test on the voice synthesis system according to the test environment information to obtain a sampling test result, and adding the sampling test result to the test result table;
and the target determining module is used for determining target test information of the voice synthesis system according to the added test result table.
In order to achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for implementing connection communication between the processor and the memory, where the program implements the method of the first aspect when executed by the processor.
To achieve the above object, a fourth aspect of the embodiments of the present application proposes a storage medium, which is a computer-readable storage medium for computer-readable storage, and stores one or more programs, which are executable by one or more processors to implement the method of the first aspect.
The test method and the test device based on the voice synthesis system, the electronic equipment and the storage medium are characterized in that firstly, a test plan set of the voice synthesis system is determined according to the acquired version information and the test environment information of the voice synthesis system, then a test result table is established according to the test plan set, the subsequent test results are convenient to store, after the test result table is obtained, the voice synthesis system is subjected to case test, the case test results are stored in the test result table, then the voice synthesis system is subjected to safety test, the safety of the voice synthesis system is improved, the possibility that the voice synthesis system is attacked is reduced, after the safety of the voice synthesis system is determined, the performance test is carried out on the voice synthesis system, the performance test results are added to the test result table, the compatibility of the voice synthesis system is improved, the operation efficiency of the voice synthesis system is improved, then the interface test is carried out, a plurality of interfaces of the voice synthesis system are obtained, the test is convenient for testing the release scene, the safety in the test process is improved, finally, the voice synthesis system is subjected to sampling test according to the test environment information, the sampling test results are added into the test result table, the voice synthesis system can be accurately tested, and the test result of the voice synthesis system can be conveniently viewed, and the test result can be accurately carried out, so that the test result of the voice synthesis system can be completed in the test process.
Drawings
FIG. 1 is a flow chart of a testing method based on a speech synthesis system according to an embodiment of the present application;
FIG. 2 is a flowchart of step S102 in FIG. 1;
FIG. 3 is a flowchart of step S104 in FIG. 1;
fig. 4 is a flowchart of step S105 in fig. 1;
FIG. 5 is a flowchart of step S106 in FIG. 1;
fig. 6 is a flowchart of step S107 in fig. 1;
FIG. 7 is a flowchart of step S108 in FIG. 1;
FIG. 8 is a schematic structural diagram of a test apparatus based on a speech synthesis system according to an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
First, several terms referred to in the present application are resolved:
artificial Intelligence (AI): is a new technical science for researching and developing theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science, which attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence, and research in this field includes robotics, language recognition, image recognition, natural language processing, expert systems, and the like. The artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use the knowledge to obtain the best results.
Information Extraction (Information Extraction): and extracting entity, relation, event and other factual information of specified types from the natural language text, and forming a text processing technology for outputting structured data. Information extraction is a technique for extracting specific information from text data. The text data is composed of specific units, such as sentences, paragraphs and chapters, and the text information is composed of small specific units, such as words, phrases, sentences and paragraphs or combinations of these specific units. The extraction of noun phrases, names of people, names of places, etc. in the text data is text information extraction, and of course, the information extracted by the text information extraction technology can be various types of information.
Use Case (Use Case): or interpreting the use case and the use condition, which is the description of how the system reacts to the external request in software engineering or system engineering, and is a technology for acquiring the demand through the use scene of the user. Each use case provides one or more scenarios that illustrate how the system interacts with the end user or other system, i.e., who can do what with the system, to achieve a clear business goal. Technical terminology is to be avoided when writing use cases, and the language of the end user or domain expert should be used. Use cases are typically coauthored by software developers and end users.
Test Case (Test Case): the method refers to the description of testing tasks performed on a specific software product, and embodies testing schemes, methods, technologies and strategies. The contents of the test object, the test environment, the input data, the test steps, the expected results, the test scripts and the like are included, and finally, a document is formed. Simply considered, a test case is a set of test inputs, execution conditions, and expected results tailored for a particular purpose to verify whether a particular software requirement is met.
Horizontal override (Horizontal Ultra Vires): horizontal override refers to how well an attacker tries to access the resources of a user who has the same rights as the attacker? For example, a system has a function of personal details, both the account a and the account B can access the function, but the personal information of the account a is different from the personal information of the account B, and the function of the personal details of the account a and the account B can be understood as division with horizontal authority. At this time, the account A accesses the personal data of the account B through an attack means, which is a horizontal unauthorized hole.
Vertical Ultra Vires (Vertical Ultra Vires): the vertical override is an override between different levels or between different roles, and can be further divided into an upward override and a downward override. The upward override refers to that a low-level user attempts to access resources of a high-level user, for example, a system is divided into a normal user and an administrator user, the administrator has system management functions, but the normal user does not have the system management functions, so that the management functions can be understood to have vertical authority division, and if the normal user can access the management functions by using some attack means, the system management functions are called the upward override. A downward override is a high level user accessing low level user information.
Unauthorized Access (Unauthorized Access): in a multi-user computer system, a user acts to obtain particular data on a computer without the system administrator granting the user the right to access the system or without the user having the right to access resources such as particular files, directories, etc.
Baseline Correction (Baseline Correction): the baseline in the system or the computer is corrected, so that the stability of West Yong can be ensured, the measurement repeatability is high, and the sensitivity of the system is improved.
Based on this, the embodiment of the application provides a test method and device based on a speech synthesis system, an electronic device and a storage medium, which can distinguish different test results of the speech synthesis system and display the different test results in the same test result table, thereby improving the accuracy of testing the speech synthesis system and facilitating a tester to check the test results.
The method and apparatus for testing based on a speech synthesis system, the electronic device, and the storage medium provided in the embodiments of the present application are specifically described in the following embodiments, and first, the method for testing based on a speech synthesis system in the embodiments of the present application is described.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The embodiment of the application provides a testing method based on a voice synthesis system, and relates to the technical field of artificial intelligence. The testing method based on the voice synthesis system provided by the embodiment of the application can be applied to a terminal, a server side and software running in the terminal or the server side. In some embodiments, the terminal may be a smartphone, tablet, laptop, desktop computer, or the like; the server side can be configured as an independent physical server, can also be configured as a server cluster or a distributed system formed by a plurality of physical servers, and can also be configured as a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (content distribution network) and big data and artificial intelligence platforms; the software may be an application or the like that implements a test method based on a speech synthesis system, but is not limited to the above form.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Fig. 1 is an optional flowchart of a testing method based on a speech synthesis system according to an embodiment of the present application, where the method in fig. 1 may include, but is not limited to, steps S101 to S109.
Step S101, acquiring version information and test environment information of a voice synthesis system;
it is understood that the version information of the speech synthesis system may include, but is not limited to, release content, release time, or release category, and the test environment information is a test environment corresponding to the version information of the speech synthesis system.
Step S102, determining a test plan set of the voice synthesis system according to the version information and the test environment information;
it should be noted that the test plan set includes use case test, safety test, performance test, interface test and sampling test;
step S103, a test result table is created according to the test plan set;
it should be noted that the test result table is used to store result values subjected to the use case test, the security test, the performance test, the interface test, and the sampling test.
Step S104, carrying out case test on the voice synthesis system to obtain a case test result, and adding the case test result to a test result table;
step S105, carrying out safety test on the voice synthesis system to obtain a safety test result, and adding the safety test result to a test result table;
step S106, carrying out performance test on the voice synthesis system to obtain a performance test result, and adding the performance test result to a test result table;
step S107, interface test is carried out on the voice synthesis system to obtain an interface test result, and the interface test result is added to a test result table;
step S108, sampling test is carried out on the voice synthesis system according to the test environment information to obtain a sampling test result, and the sampling test result is added to a test result table;
and step S109, determining target test information of the voice synthesis system according to the added test result table.
In steps S101 to S109 illustrated in this embodiment of the application, first, a test plan set of the speech synthesis system is determined according to version information and test environment information of the obtained speech synthesis system, then a test result table is created according to the test plan set, storage of subsequent test results is facilitated, after the test result table is obtained, a use case test is performed on the speech synthesis system, a use case test result is stored in the test result table, security test is performed on the speech synthesis system, and the security test result is stored in the test result table, thereby improving the security of the speech synthesis system, reducing the possibility of the speech synthesis system being attacked, after the security of the speech synthesis system is determined, a performance test is performed on the speech synthesis system, and the performance test result is added to the test result table, thereby improving the compatibility of the speech synthesis system, improving the operating efficiency of the speech synthesis system, then an interface test is performed, a plurality of interfaces of the speech synthesis system are obtained, testing a release scenario is facilitated, the security in the test process is improved, finally, a sampling test result is performed on the speech synthesis system according to the test environment information, a sampling test result is added to the test result table, a plurality of the interfaces of the speech synthesis system can be determined according to the test result, a test result of the speech synthesis system can be determined according to be capable of improving the accuracy of the test result, and a test result of the test result, thereby improving the test result of the test system in the test process of the test system.
In step S101 of some embodiments, version information of the speech synthesis system and test environment information are obtained, so as to facilitate subsequent testing of the speech synthesis system.
It should be noted that before obtaining the version information of the speech synthesis system, the content of the version information needs to be checked first, and after the content is checked, the version information and the test environment information of the speech synthesis system are obtained.
It is to be understood that the review of the content of the version information may be a manual review or a machine review, and the embodiment is not limited in particular.
In step S102 of some embodiments, a test plan set of the speech synthesis system is determined according to the version information and the test environment information, thereby facilitating subsequent testing of the speech synthesis system.
It can be understood that the test plan set includes a use case test, a security test, a performance test, an interface test, and a sampling test, where the test plan set further includes a test time period or a test version, and the time period may be in a specific time interval, an execution duration of the use case test, an execution duration of the security test, an execution duration of the performance test, an execution duration of the interface test, an execution duration of the sampling test, and the like, or may be in a specific time interval, an execution number of the use case test, an execution number of the security test, an execution number of the performance test, an execution number of the interface test, an execution number of the sampling test, and the like, and this embodiment is not particularly limited.
In step S103 of some embodiments, a test result table is created according to the test plan set, so as to facilitate subsequent storage and display of the test results.
It should be noted that different storage areas are divided for different test results in the test result table, where the case test result is stored in the test result area, the safety test result is stored in the safety test result area, the performance test result is stored in the performance result area, the interface test result is stored in the interface test result area, the sampling test result is stored in the sampling test result area, and different test results may be stored in corresponding storage areas in the test result table according to the result identifier or the result pointer, which is not particularly limited in this embodiment.
In step S104 of some embodiments, a case test is performed on the speech synthesis system to obtain a case test result, and the case test result is added to a corresponding area in the test result table, so that a subsequent tester can conveniently check the case test result.
It should be noted that the case testing is to add a new case to the speech synthesis system for testing, so as to determine whether the speech synthesis system meets the preset system requirement through the test case, if the preset system requirement is met, the case passes the testing, the test success result is recorded in the test result table, if the preset system requirement is not met, the case does not pass the testing, a failed case is obtained, and a tester can select to discard the failed case or store the failed case in the test result table for recording.
In step S105 of some embodiments, a security test is performed on the speech synthesis system to obtain a security test result, and the security test result is added to a corresponding area in the test result table, so as to improve the security of the speech synthesis system test and reduce the possibility of the speech synthesis system being attacked.
It can be understood that the security test of the speech synthesis system can detect whether the security measures of the speech synthesis system are perfect, whether the speech synthesis system is easy to be illegally invaded, whether the speech synthesis system has potential threats, and the like.
In step S106 of some embodiments, a performance test is performed on the speech synthesis system to obtain a performance test result, and the performance test result is added to a corresponding area in the test result table, so as to improve the compatibility of the speech synthesis system and test the stability of the speech synthesis system.
It is understood that the performance test of the speech synthesis system includes, but is not limited to, performing the test on the maximum concurrency number, the overload capacity, or the throughput of the speech synthesis system.
In step S107 of some embodiments, an interface test is performed on the speech synthesis system to obtain an interface test result, and the interface test result is added to a corresponding area in the test result table, so as to implement data interaction of the speech synthesis system, facilitate data transmission and display, and facilitate multiple function verification.
In step S108 of some embodiments, a sampling test is performed on the speech synthesis system according to the test environment information to obtain a sampling test result, and the sampling test result is added to a corresponding area in the test result table to improve the accuracy of the test on the speech synthesis system.
It should be noted that the sampling method of the sampling test includes, but is not limited to, mechanical sampling, equidistant sampling, or random sampling, and the present embodiment is not limited in particular.
Referring to fig. 2, in some embodiments, step S102 may include, but is not limited to, step S201 to step S202:
step S201, merging the version information to the test environment information to obtain a merging result;
and S202, determining a test plan set of the speech synthesis system according to the merging result.
In step S201 of some embodiments, the version information of the speech synthesis system is merged into the test environment information, so as to obtain a merged result, which facilitates subsequent generation of the test plan set.
It should be noted that before merging the version information into the testing environment information, baseline verification needs to be performed on the version information, and after the verification is passed, the version information and the testing environment information are merged to obtain a merging result, where the merging result records the testing details of the version information.
It is to be understood that the merging result includes, but is not limited to, a version number, a version name, or a version code including version information, and the embodiment is not limited in particular.
In step S202 of some embodiments, a test plan set of the speech synthesis system is determined according to the merging result, so that the speech synthesis system can be tested according to the test plan set, thereby simplifying the test procedure of the speech synthesis system.
It should be noted that the version of the test plan set is iterative, and the test plan set may be updated according to the requirement of the tester, which is not specifically limited in this embodiment.
Referring to fig. 3, in some embodiments, S104 may include, but is not limited to, steps S301 to S302;
it should be noted that the use case test includes a test sample use case.
Step S301, inputting a test sample case into a voice synthesis system for testing to obtain a test sample value;
step S302, comparing the test sample value with a preset case value in the voice synthesis system to obtain a case test result.
In step S301 of some embodiments, a test sample case is input to a speech synthesis system for testing, so as to obtain a test sample value, which is convenient for comparing with a preset case value subsequently, thereby determining a case test result.
In step S302 of some embodiments, a case test result is obtained by comparing the test sample value with a preset case value in the speech synthesis system, thereby completing a case test process for the speech synthesis system.
It should be noted that the preset use case value in the speech synthesis system is the system requirement of the speech synthesis system, and the test sample value is compared with the preset use case value, so as to determine whether the test sample value meets the requirement of the speech synthesis system.
Referring to fig. 4, in some embodiments, step S105 may include, but is not limited to, step S401 to step S404:
it should be noted that the security test includes an information test, an override test and an authorization test.
Step S401, carrying out information test on a speech synthesis system to obtain an information result;
step S402, carrying out an override test on the voice synthesis system to obtain an override result;
it will be appreciated that the override test includes a horizontal override test and a vertical override test.
Step S403, carrying out authorization test on the voice synthesis system to obtain an authorization result;
and S404, integrating the information result, the unauthorized result and the authorization result to obtain a safety test result.
In step S401 of some embodiments, an information test is performed on the speech synthesis system to obtain an information result, so as to avoid the situation that the speech synthesis system includes sensitive information or dangerous information, or information leakage occurs, and thus ensure information security of the speech synthesis system.
It can be understood that the information test is performed on the speech synthesis system, so that the sensitive information field or the dangerous information field and the like in the speech synthesis system can be identified, the sensitive information field and the dangerous information field are screened and deleted, an information result is obtained, and the information safety of the speech synthesis system is ensured.
In step S402 of some embodiments, an override test is performed on the speech synthesis system to obtain an override result, so as to avoid an override bug occurring in the speech synthesis system and reduce the possibility of being attacked by a potential threat.
It can be understood that the unauthorized access person can be prevented from using the authority of the authorized person to operate the data by adopting the unauthorized test for the voice synthesis system, so that the authority of the access person can be verified in the process of adding, deleting, changing or searching the database of the voice synthesis system by using the unauthorized test, thereby ensuring the system safety of the voice synthesis system and avoiding illegal invasion.
In step S403 of some embodiments, an authorization test is performed on the speech synthesis system to obtain an authorization result, thereby avoiding unauthorized access holes and avoiding situations such as information leakage and malicious attack in the speech synthesis system.
It should be noted that the authorization test on the speech synthesis system may be means of configuring security parameters, login authentication, or monitoring an access port for the speech synthesis system, and the embodiment is not limited in particular.
In step S404 of some embodiments, the information result, the override result, and the authorization result are integrated to obtain a security test result, thereby implementing multi-aspect protection on the speech synthesis system and improving the security of the speech synthesis system.
Referring to fig. 5, in some embodiments, step S106 may further include, but is not limited to, step S501:
it should be noted that the performance test includes a release scenario case.
Step S501, inputting the publishing scene case into a voice synthesis system for pressure test to obtain a performance test result.
In step S501 of some embodiments, the publishing scene case in the performance test is added to the speech synthesis system for performing a stress test, so as to obtain a performance test result, improve the compatibility and reliability of the speech synthesis system, and improve the stability of the speech synthesis system.
It should be noted that, the pressure test of the speech synthesis system includes, but is not limited to, a load test, an intensity test, a database capacity test, a competition test or a benchmark test of the test speech synthesis system, and whether the test speech synthesis system can normally operate in a normal data volume state and an overload data volume state is tested, so as to obtain a maximum concurrency number of the speech synthesis system, and test service response time and distribution of a publishing scene case in the speech synthesis system, thereby improving data capacity and stability of the speech synthesis system.
Referring to fig. 6, in some embodiments, step S107 includes, but is not limited to, step S601:
it should be noted that the interface test includes publishing an interface use case.
Step S601, inputting the publishing interface case into the voice synthesis system, and testing according to the publishing interface case and the publishing scene case to obtain an interface test result.
In step S601 in some embodiments, the publishing interface case is input into the speech synthesis system, and the test is performed according to the publishing interface case and the publishing scene case to obtain an interface test result, which is convenient for subsequently checking the speech synthesis system and simplifying a test procedure of the speech synthesis system.
It can be understood that the type of the publishing interface case corresponds to the type of the publishing scene case, which is convenient for testing the speech synthesis system in the publishing scene case.
Referring to fig. 7, in some embodiments, step S108 may include, but is not limited to, step S701 to step S705:
it should be noted that the test environment information includes the dialogies information and the audio information.
Step S701, determining a dialect interface corresponding to the dialect information from the interface test result according to the dialect information;
it is understood that the dialoging information includes a speaker name, a dialoging scene, a dialoging environment, and the like, and the embodiment is not particularly limited.
Step S702, determining an audio interface corresponding to the audio information from the interface test result according to the audio information;
it is understood that the audio information includes audio tone, audio tone quality, and the like, and the embodiment is not particularly limited.
Step S703, sampling the publishing scene case according to the conversational interface, and obtaining target conversational information corresponding to the conversational information;
step S704, sampling the publishing scene case according to the audio interface to obtain target audio information corresponding to the audio information;
step S705, integrating the target dialect information and the target audio information to obtain a sampling test result.
In step S703 of some embodiments, the publishing scene case is sampled according to the tactical interface to obtain target tactical information corresponding to the tactical information, thereby simplifying the flow of sampling test and avoiding large-scale system test.
It should be noted that the publishing scene use case is sampled according to the speech technology interface, so as to determine whether the speech technology information is consistent with the preset speech technology in the publishing scene use case, and thus the target speech technology information is obtained according to the judgment result, and the accuracy of the speech synthesis system is improved.
In step S704 of some embodiments, the publishing scene case is sampled according to the audio interface to obtain target audio information corresponding to the audio information, so as to facilitate testing of the audio information.
It should be noted that the publishing scene case is sampled according to the audio interface, so as to determine whether the audio information is consistent with the preset audio in the publishing scene case, and thus, the target audio information is obtained according to the determination result, and the accuracy of the speech synthesis system is improved.
In step S705, the target dialoging information and the target audio information are integrated to obtain a sampling test result, so as to completely test the speech synthesis system.
Referring to fig. 8, an embodiment of the present application further provides a testing apparatus based on a speech synthesis system, which can implement the testing method based on the speech synthesis system, and the apparatus includes:
an information obtaining module 801, configured to obtain version information and test environment information of a speech synthesis system;
a requirement determining module 802, configured to determine a test plan set of the speech synthesis system according to the version information and the test environment information, where the test plan set is used to represent system requirements of the speech synthesis system;
a result creating module 803, configured to create a test result table according to the test plan set;
the case testing module 804 is used for performing case testing on the voice synthesis system to obtain a case testing result, and adding the case testing result to the testing result table;
a safety test module 805, configured to perform a safety test on the speech synthesis system to obtain a safety test result, and add the safety test result to the test result table;
a performance testing module 806, configured to perform a performance test on the speech synthesis system to obtain a performance test result, and add the performance test result to the test result table;
an interface test module 807 for performing interface test on the speech synthesis system to obtain an interface test result, and adding the interface test result to the test result table;
a sampling test module 808, configured to perform sampling test on the speech synthesis system according to the test environment information to obtain a sampling test result, and add the sampling test result to the test result table;
and the target determining module 809 is configured to determine target test information of the speech synthesis system according to the added test result table.
The specific implementation of the testing apparatus based on the speech synthesis system is substantially the same as the specific implementation of the testing method based on the speech synthesis system, and is not described herein again.
An embodiment of the present application further provides an electronic device, where the electronic device includes: the testing device comprises a memory, a processor, a program stored on the memory and capable of running on the processor, and a data bus for realizing connection communication between the processor and the memory, wherein when the program is executed by the processor, the testing method based on the voice synthesis system is realized. The electronic equipment can be any intelligent terminal including a tablet computer, a vehicle-mounted computer and the like.
Referring to fig. 9, fig. 9 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided in the embodiment of the present Application;
the Memory 902 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM). The memory 902 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 902 and called by the processor 901 to execute the test method based on the speech synthesis system according to the embodiments of the present application;
an input/output interface 903 for implementing information input and output;
a communication interface 904, configured to implement communication interaction between the device and another device, where communication may be implemented in a wired manner (e.g., USB, network cable, etc.), and communication may also be implemented in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.);
a bus 905 that transfers information between various components of the device (e.g., the processor 901, the memory 902, the input/output interface 903, and the communication interface 904);
wherein the processor 901, the memory 902, the input/output interface 903 and the communication interface 904 are communicatively connected to each other within the device via a bus 905.
The embodiment of the present application further provides a storage medium, which is a computer-readable storage medium for a computer-readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the above-mentioned test method based on a speech synthesis system.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The test method based on the voice synthesis system, the test device based on the voice synthesis system, the electronic equipment and the storage medium provided by the embodiment of the application comprise the steps of firstly determining a test plan set of the voice synthesis system according to the obtained version information and the test environment information of the voice synthesis system, then creating a test result table according to the test plan set, facilitating the storage of subsequent test results, after obtaining the test result table, carrying out case test on the voice synthesis system, storing the case test results into the test result table, then carrying out safety test on the voice synthesis system, storing the safety test results into the test result table, thereby improving the safety of the voice synthesis system, reducing the possibility of attacking the voice synthesis system, after determining the safety of the voice synthesis system, carrying out performance test on the voice synthesis system, adding the performance test results into the test result table, thereby improving the compatibility of the voice synthesis system, improving the operating efficiency of the voice synthesis system, then carrying out interface test, obtaining a plurality of interfaces of the voice synthesis system, facilitating the test on a release scene, improving the safety in the test process, finally carrying out sampling on the voice synthesis system according to the test environment information, adding the test results into the test result table, and enabling the test result table to be capable of accurately showing the voice synthesis system, thereby improving the test result of the voice synthesis system.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation to the technical solutions provided in the embodiments of the present application, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems with the evolution of technology and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-7 are not intended to limit the embodiments of the present application and may include more or fewer steps than those shown, or some of the steps may be combined, or different steps may be included.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, and functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like (if any) in the description of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and the scope of the claims of the embodiments of the present application is not limited thereby. Any modifications, equivalents, and improvements that may occur to those skilled in the art without departing from the scope and spirit of the embodiments of the present application are intended to be within the scope of the claims of the embodiments of the present application.

Claims (10)

1. A testing method based on a speech synthesis system, the method comprising:
acquiring version information and test environment information of the voice synthesis system;
determining a test plan set of the voice synthesis system according to the version information and the test environment information, wherein the test plan set comprises use case testing, safety testing, performance testing, interface testing and sampling testing;
creating a test result table according to the test plan set;
carrying out the case test on the voice synthesis system to obtain a case test result, and adding the case test result to the test result table;
performing the safety test on the voice synthesis system to obtain a safety test result, and adding the safety test result to the test result table;
performing the performance test on the voice synthesis system to obtain a performance test result, and adding the performance test result to the test result table;
performing the interface test on the voice synthesis system to obtain an interface test result, and adding the interface test result to the test result table;
performing the sampling test on the voice synthesis system according to the test environment information to obtain a sampling test result, and adding the sampling test result to the test result table;
and determining target test information of the voice synthesis system according to the added test result table.
2. The method for testing a speech synthesis system according to claim 1, wherein the determining a set of test plans for the speech synthesis system based on the version information and the test environment information comprises:
merging the version information to the testing environment information to obtain a merging result;
and determining the test plan set of the speech synthesis system according to the merging result.
3. The method of claim 1, wherein the use case test comprises a test sample use case; the example test is performed on the voice synthesis system to obtain an example test result, and the example test result includes:
inputting the test sample case to the voice synthesis system for testing to obtain a test sample value;
and comparing the test sample value with a preset case value in the voice synthesis system to obtain the case test result.
4. The method for testing a speech synthesis system according to claim 1, wherein the security test includes an information test, an override test, and an authorization test; the performing the security test on the speech synthesis system to obtain a security test result includes:
performing the information test on the voice synthesis system to obtain an information result;
performing the override test on the voice synthesis system to obtain an override result;
performing the authorization test on the voice synthesis system to obtain an authorization result;
and integrating the information result, the override result and the authorization result to obtain the safety test result.
5. The method according to claim 1, wherein the performance test comprises a release scenario case; the performing the performance test on the speech synthesis system to obtain a performance test result includes:
and inputting the publishing scene case into the voice synthesis system for pressure test to obtain the performance test result.
6. The method for testing a speech synthesis system according to claim 5, wherein the interface test comprises a release interface use case; the interface test is performed on the speech synthesis system to obtain an interface test result, and the interface test result includes:
and inputting the publishing interface case into the voice synthesis system, and testing according to the publishing interface case and the publishing scene case to obtain the interface test result.
7. The method for testing a speech synthesis system according to claim 6, wherein the test environment information includes dialogistic information and audio information; the sampling test is performed on the speech synthesis system to obtain a sampling test result, and the sampling test result includes:
determining a dialect interface corresponding to the dialect information from the interface test result according to the dialect information;
determining an audio interface corresponding to the audio information from the interface test result according to the audio information;
sampling the publishing scene case according to the voice operation interface to obtain target voice operation information corresponding to the voice operation information;
sampling the publishing scene case according to the audio interface to obtain target audio information corresponding to the audio information;
and integrating the target dialect information and the target audio information to obtain the sampling test result.
8. A test apparatus based on a speech synthesis system, the apparatus comprising:
the information acquisition module is used for acquiring version information and test environment information of the voice synthesis system;
a requirement determining module, configured to determine a test plan set of the speech synthesis system according to the version information and the test environment information, where the test plan set is used to characterize system requirements of the speech synthesis system;
a result creating module for creating a test result table according to the test plan set;
the case testing module is used for carrying out the case testing on the voice synthesis system to obtain a case testing result, and adding the case testing result to the testing result table;
the safety test module is used for carrying out the safety test on the voice synthesis system to obtain a safety test result, and adding the safety test result to the test result table;
the performance test module is used for carrying out the performance test on the voice synthesis system to obtain a performance test result, and adding the performance test result to the test result table;
the interface test module is used for carrying out the interface test on the voice synthesis system to obtain an interface test result and adding the interface test result to the test result table;
the sampling test module is used for carrying out sampling test on the voice synthesis system according to the test environment information to obtain a sampling test result, and adding the sampling test result to the test result table;
and the target determining module is used for determining target test information of the voice synthesis system according to the added test result table.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for enabling a connection communication between the processor and the memory, the program, when executed by the processor, implementing the steps of the method for testing based on a speech synthesis system according to any one of claims 1 to 7.
10. A storage medium, which is a computer-readable storage medium, for computer-readable storage, wherein the storage medium stores one or more programs, which are executable by one or more processors, to implement the steps of the method for testing based on a speech synthesis system of any one of claims 1 to 7.
CN202210820836.0A 2022-07-13 2022-07-13 Test method, device, electronic equipment and medium based on voice synthesis system Pending CN115206282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820836.0A CN115206282A (en) 2022-07-13 2022-07-13 Test method, device, electronic equipment and medium based on voice synthesis system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820836.0A CN115206282A (en) 2022-07-13 2022-07-13 Test method, device, electronic equipment and medium based on voice synthesis system

Publications (1)

Publication Number Publication Date
CN115206282A true CN115206282A (en) 2022-10-18

Family

ID=83579203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820836.0A Pending CN115206282A (en) 2022-07-13 2022-07-13 Test method, device, electronic equipment and medium based on voice synthesis system

Country Status (1)

Country Link
CN (1) CN115206282A (en)

Similar Documents

Publication Publication Date Title
US8799869B2 (en) System for ensuring comprehensiveness of requirements testing of software applications
US8966636B2 (en) Transforming unit tests for security testing
CN108667855B (en) Network flow abnormity monitoring method and device, electronic equipment and storage medium
US10120783B2 (en) Determining test case efficiency
CN111416811A (en) Unauthorized vulnerability detection method, system, equipment and storage medium
CN108459850B (en) Method, device and system for generating test script
CN113342639A (en) Applet security risk assessment method and electronic device
CN112597018A (en) Interface test case generation method, device, equipment and storage medium
CN115033887A (en) Open source component safety management method and system, electronic equipment and storage medium
CN111563257A (en) Data detection method and device, computer readable medium and terminal equipment
CN111324510B (en) Log processing method and device and electronic equipment
Riadi et al. A study of mobile forensic tools evaluation on android-based LINE messenger
CN109818972B (en) Information security management method and device for industrial control system and electronic equipment
CN104375935A (en) Method and device for testing SQL injection attack
CN112882948A (en) Stability testing method, device and system for application and storage medium
CN111222181B (en) AI model supervision method, system, server and storage medium
Nelson et al. Cooperative mode: Comparative storage metadata verification applied to the Xbox 360
CN115206282A (en) Test method, device, electronic equipment and medium based on voice synthesis system
CN116361793A (en) Code detection method, device, electronic equipment and storage medium
CN115037531A (en) Unauthorized access vulnerability detection method, device and system
Findlay A forensically-sound methodology for advanced data acquisition from embedded devices at-scene
CN108874462A (en) A kind of browser behavior acquisition methods, device, storage medium and electronic equipment
CN114662097A (en) CSV file injection attack detection method and device, electronic equipment and storage medium
CN114546857A (en) Interface test case generation method and device, electronic equipment and storage medium
CN111190986B (en) Map data comparison method and device

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