Test method and device based on speech synthesis system, electronic equipment and medium

By acquiring version and environment information from the speech synthesis system, creating a test result table, and performing step-by-step testing, the problem of time-consuming, labor-intensive, and confusing results in existing testing methods is solved, achieving more efficient and accurate test result display.

CN115206282BActive Publication Date: 2026-02-10PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210820836.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2026-02-10
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

Existing testing methods for speech synthesis systems are time-consuming and labor-intensive, and the test results are inaccurate and difficult to distinguish, affecting testing efficiency and accuracy.

Method used

By obtaining the version information and test environment information of the speech synthesis system, a test plan set is determined, and a test result table is created. Test cases, security, performance, interface, and sampling tests are performed separately, and the results are stored in the test result table for easy viewing and analysis later.

Benefits of technology

It improves the accuracy and efficiency of speech synthesis system testing, reduces the possibility of system attacks, enhances system compatibility and operational stability, and facilitates the identification and viewing of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115206282B_ABST
    Figure CN115206282B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of based on the test method, device, electronic equipment and medium of speech synthesis system, belong to system test technical field.The method comprises: obtaining the version information of speech synthesis system and test environment information;According to version information and test environment information, determine test plan set;According to test plan set, create test result table;And the case test of speech synthesis system, safety test, performance test, interface test and sampling test, different test results are added to the same test result table, finally according to the test result table after adding, determine the target test information of speech synthesis system.The embodiment of the application can distinguish the different test results of speech synthesis system, and show in the same test result table, to improve the accuracy of speech synthesis system test, it is convenient for tester to check test result.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of system testing, in particular to a test method and device based on a speech synthesis system, an electronic device and a medium. BACKGROUND

[0002] At present, with the rapid development of the Internet, people's quality of life gradually improves, and various application systems emerge in an endless stream, so it is particularly important to test the application system. The speech synthesis system is the main application system of multimedia and network live broadcast, and the speech synthesis system test needs an operator to test the hardware and software of the system respectively to check whether there are any conditions that do not meet the system specification and whether the running environment of the application system is safe, so as to verify whether the functions and performance of the software system meet the requirements specified in the specification under the condition that the running environment is safe. The existing system test tests all components in the application system together, including software testing, hardware testing, network environment testing, etc., so the test personnel needs to track and record throughout the test process, which consumes a lot of time and labor costs, and may result in inaccurate test results. In addition, during the process of checking the test results, various test results are mixed together, which is not convenient for the test personnel to check. SUMMARY

[0003] The main purpose of the embodiments of the present application is to provide a test method and device based on a speech synthesis system, electronic device and medium, which can distinguish different test results of the speech synthesis system and display them in the same test result table, thereby improving the accuracy of the speech synthesis system test and facilitating the test personnel to check the test results.

[0004] To achieve the above purpose, the first aspect of the embodiments of the present application provides a test method based on a speech synthesis system, which comprises:

[0005] Obtaining version information and test environment information of the speech synthesis system;

[0006] According to the version information and the test environment information, a test plan set of the speech synthesis system is determined, wherein the test plan set includes case testing, security testing, performance testing, interface testing and sampling testing;

[0007] According to the test plan set, a test result table is created;

[0008] The case testing is performed on the speech synthesis system to obtain a case test result, and the case test result is added to the test result table;

[0009] The security test is performed on the speech synthesis system to obtain a security test result, and the security test result is added to the test result table;

[0010] The performance test is performed on the speech synthesis system to obtain a performance test result, and the performance test result is added to the test result table;

[0011] The interface test is performed on the speech synthesis system to obtain an interface test result, and the interface test result is added to the test result table;

[0012] The 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 the test result table;

[0013] The target test information of the speech synthesis system is determined according to the added test result table.

[0014] In some embodiments, the test plan set of the speech synthesis system is determined according to the version information and the test environment information, including:

[0015] The version information is merged into the test environment information to obtain a merging result;

[0016] The test plan set of the speech synthesis system is determined according to the merging result.

[0017] In some embodiments, the use case test includes a test sample use case; the use case test is performed on the speech synthesis system to obtain a use case test result, including:

[0018] The test sample use case is input to the speech synthesis system for testing to obtain a test sample value;

[0019] The use case test result is obtained by comparing the test sample value with a preset use case value in the speech synthesis system.

[0020] In some embodiments, the security test includes an information test, an unauthorized test, and an authorization test; the security test is performed on the speech synthesis system to obtain a security test result, including:

[0021] The information test is performed on the speech synthesis system to obtain an information result;

[0022] The unauthorized test is performed on the speech synthesis system to obtain an unauthorized result;

[0023] The authorization test is performed on the speech synthesis system to obtain an authorization result;

[0024] The information result, the unauthorized result and the authorized result are integrated to obtain the security test result.

[0025] In some embodiments, the performance test includes a release scene use case; and the performance test on the voice synthesis system to obtain a performance test result includes:

[0026] The release scene use case is input to the voice synthesis system for stress testing to obtain the performance test result.

[0027] In some embodiments, the interface test includes a release interface use case; and the interface test on the voice synthesis system to obtain an interface test result includes:

[0028] The release interface use case is input to the voice synthesis system for testing according to the release interface use case and the release scene use case to obtain the interface test result.

[0029] In some embodiments, the test environment information includes dialogue information and audio information; and the sampling test on the voice synthesis system to obtain a sampling test result includes:

[0030] The dialogue interface corresponding to the dialogue information is determined from the interface test result according to the dialogue information;

[0031] The audio interface corresponding to the audio information is determined from the interface test result according to the audio information;

[0032] The release scene use case is sampled according to the dialogue interface to obtain target dialogue information corresponding to the dialogue information;

[0033] The release scene use case is sampled according to the audio interface to obtain target audio information corresponding to the audio information;

[0034] The target dialogue information and the target audio information are integrated to obtain the sampling test result.

[0035] To achieve the above object, a second aspect of the embodiment of the present application provides a testing device based on a voice synthesis system, which comprises:

[0036] An information acquisition module is configured to acquire version information and test environment information of the voice synthesis system;

[0037] A requirement determination module is configured to determine a test plan set of the voice synthesis system according to the version information and the test environment information, wherein the test plan set is used to represent system requirements of the voice synthesis system;

[0038] a result creation module configured to create a test result table according to the test plan set;

[0039] a use case test module configured to perform the use case test on the speech synthesis system, obtain a use case test result, and add the use case test result to the test result table;

[0040] a security test module configured to perform the security test on the speech synthesis system, obtain a security test result, and add the security test result to the test result table;

[0041] a performance test module configured to perform the performance test on the speech synthesis system, obtain a performance test result, and add the performance test result to the test result table;

[0042] an interface test module configured to perform the interface test on the speech synthesis system, obtain an interface test result, and add the interface test result to the test result table;

[0043] a sampling test module configured to perform the sampling test on the speech synthesis system according to the test environment information, obtain a sampling test result, and add the sampling test result to the test result table;

[0044] a target determination module configured to determine target test information of the speech synthesis system according to the test result table after the addition.

[0045] To achieve the above object, a third aspect of embodiments of the present application provides an electronic device, which comprises a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program is executed by the processor to realize the method of the first aspect.

[0046] To achieve the above object, a fourth aspect of embodiments of the present application provides a storage medium, which is a computer readable storage medium, for computer readable storage, and the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the method of the first aspect.

[0047] The test method and device based on the speech synthesis system, the electronic equipment and the storage medium provided by the application first determine a test plan set of the speech synthesis system according to obtained version information and test environment information of the speech synthesis system, then create a test result table according to the test plan set, facilitate the storage of subsequent test results, after obtaining the test result table, perform a use case test on the speech synthesis system, and store the use case test result in the test result table, then perform a security test on the speech synthesis system, store the security test result in the test result table, thereby improving the security of the speech synthesis system and reducing the possibility of attack on the speech synthesis system, after determining the security of the speech synthesis system, perform a performance test on the speech synthesis system, and add the performance test result to the test result table, thereby improving the compatibility of the speech synthesis system and improving the operation efficiency of the speech synthesis system, then perform an interface test, obtain multiple interfaces of the speech synthesis system, facilitate the test on the publishing scene, improve the security in the test process, finally perform a sampling test on the speech synthesis system according to the test environment information, and add the sampling test result to the test result table, the target test information of the speech synthesis system can be determined according to the test result table, the test process of the speech synthesis system is completed, different test results of the speech synthesis system can be distinguished and displayed in the same test result table, thereby improving the accuracy of the test on the speech synthesis system and facilitating the test personnel to check the test result. BRIEF DESCRIPTION OF DRAWINGS

[0048] Figure 1 is a flowchart of the test method based on the speech synthesis system provided by the embodiment of the application;

[0049] Figure 2 is a flowchart of step S102 in Figure 1 ;

[0050] Figure 3 is a flowchart of step S104 in Figure 1 ;

[0051] Figure 4 is a flowchart of step S105 in Figure 1 ;

[0052] Figure 5 is a flowchart of step S106 in Figure 1 ;

[0053] Figure 6 is a flowchart of step S107 in Figure 1 ;

[0054] Figure 7 is a flowchart of step S108 in Figure 1 ;

[0055] Figure 8is a structural schematic diagram of a test device based on a speech synthesis system provided by an embodiment of the present application.

[0056] Figure 9 is a hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0058] It should be noted that although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a manner different from the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above-described drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

[0060] First, several terms involved in the present application are analyzed:

[0061] Artificial intelligence (AI): is a new technical science that studies, develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science, and artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a similar way to human intelligence. The research in this field includes robots, language recognition, image recognition, natural language processing and expert systems, etc. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also the theory, method, technology and application system of using digital computers or digital computer controlled machines to simulate, extend and expand human intelligence, to perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0062] Information Extraction: Information Extraction is a text processing technology that extracts specified types of entities, relationships, events, and other factual information from natural language text and forms structured data output. Information extraction is a technique for extracting specific information from text data. Text data is composed of specific units such as sentences, paragraphs, and chapters, and text information is composed of specific units such as words, phrases, sentences, paragraphs, or combinations of these units. Extracting noun phrases, names, and locations from text data is text information extraction. Of course, the information extracted by text information extraction technology can be various types of information.

[0063] Use Case: Use Case is a description of how a system reacts to external requests in software engineering or system engineering, and is a technique for obtaining requirements through user scenarios. Each use case provides one or more scenarios that describe how the system interacts with the end user or other systems, i.e., who can use the system and what they can do to achieve a clear business goal. When writing use cases, avoid using technical terms and use the language of the end user or domain expert. Use cases are generally created by software developers and end users together.

[0064] Test Case: A Test Case is a description of a test task for a specific software product, embodying test plans, methods, techniques, and strategies. Its content includes test objectives, test environments, input data, test steps, expected results, test scripts, and finally forms a document. Simply put, a test case is a set of test inputs, execution conditions, and expected results prepared for a specific goal to verify whether a specific software requirement is met.

[0065] Horizontal Ultra Vires: Horizontal Ultra Vires refers to an attacker attempting to access resources of a user with the same permissions as himself. How to understand it? For example, in a certain system, there is a function of personal information, and A account and B account can access this function, but the personal information of A account and B account is different, which can be understood as the division of horizontal authority in the function of A account and B account personal information. At this time, A account accesses B account's personal information through attack means, which is a horizontal ultra vires vulnerability.

[0066] Vertical Ultra Vires: Vertical Ultra Vires is the Ultra Vires between different levels or different roles, and Vertical Ultra Vires can be divided into upward Ultra Vires and downward Ultra Vires. Upward Ultra Vires refers to a low-level user trying to access the resources of a high-level user. For example, a system is divided into ordinary users and administrator users, the administrator has system management functions, and the ordinary user does not have. We can understand that the management function has vertical permission division. If the ordinary user can access the management function by using some attack means, we call it upward Ultra Vires. Downward Ultra Vires is that a high-level user accesses the information of a low-level user.

[0067] Unauthorized Access: In a multi-user computer system, the user obtains certain data on a computer without the right of the system administrator to enter the system or the right of the user to access certain files, directories, and other resources.

[0068] Baseline Correction: The baseline in the system or computer is corrected to ensure the stability of the baseline, so that the measurement repeatability is high and the sensitivity of the system is improved.

[0069] Therefore, the embodiment of the present 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 them in the same test result table, thereby improving the accuracy of the speech synthesis system test and facilitating the test personnel to check the test results.

[0070] The test method and device based on a speech synthesis system, an electronic device and a storage medium provided by the embodiment of the present application are specifically described by the following embodiments. First, the test method based on a speech synthesis system in the embodiment of the present application is described.

[0071] The embodiment of the present application can acquire and process related data based on artificial intelligence technology. Artificial intelligence (AI) is the use of digital computers or digital computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0072] The basic technology of artificial intelligence generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, robot technology, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.

[0073] The test method based on the speech synthesis system provided in the embodiments of the present application relates to the technical field of artificial intelligence. The test method based on the speech synthesis system provided in the embodiments of the present application can be applied to a terminal, can also be applied to a server end, and can further be software running in the terminal or the server end. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like; the server end can be configured as a stand-alone physical server, can also be configured as a server cluster or a distributed system composed of multiple physical servers, and can further be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms; and the software can be an application program for implementing the test method based on the speech synthesis system, but is not limited to the above forms.

[0074] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected by a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0075] Figure 1 is an optional flowchart of the test method based on the speech synthesis system provided in the embodiments of the present application, Figure 1 The method in the above can include but is not limited to steps S101 to S109.

[0076] Step S101, obtaining version information of a speech synthesis system and test environment information;

[0077] It can be understood that the version information of the speech synthesis system can include but is not limited to release content, release time, or release category, and the like, and the test environment information is a test environment corresponding to the version information of the speech synthesis system.

[0078] Step S102, determining a test plan set of the speech synthesis system according to the version information and the test environment information;

[0079] It should be noted that the test plan set includes case test, security test, performance test, interface test and sampling test.

[0080] Step S103, creating a test result table according to the test plan set;

[0081] It should be noted that the test result table is used to store the result values after the case test, the security test, the performance test, the interface test and the sampling test.

[0082] Step S104, performing the case test on the speech synthesis system to obtain a case test result, and adding the case test result to the test result table;

[0083] Step S105, performing the security test on the speech synthesis system to obtain a security test result, and adding the security test result to the test result table;

[0084] Step S106, performing the performance test on the speech synthesis system to obtain a performance test result, and adding the performance test result to the test result table;

[0085] Step S107, performing the interface test on the speech synthesis system to obtain an interface test result, and adding the interface test result to the test result table;

[0086] Step S108, performing the sampling test on the speech 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;

[0087] Step S109, determining the target test information of the speech synthesis system according to the added test result table.

[0088] Steps S101 to S109 as shown in the embodiments of this application involve: First, determining a test plan set for the speech synthesis system based on the obtained version information and test environment information. Then, creating a test result table based on the test plan set to facilitate the storage of subsequent test results. After obtaining the test result table, performing test case testing on the speech synthesis system and storing the test case test results in the test result table. Next, performing security testing on the speech synthesis system and storing the security test results in the test result table, thereby improving the security of the speech synthesis system and reducing the possibility of attacks. After confirming the security of the speech synthesis system, performing performance testing on the speech synthesis system and storing the performance test results... The results are added to the test results table to improve the compatibility and operating efficiency of the speech synthesis system. Then, interface testing is performed to obtain multiple interfaces of the speech synthesis system, facilitating testing in deployment scenarios and improving security during the testing process. Finally, sampling tests are conducted on the speech synthesis system based on the test environment information, and the sampling test results are added to the test results table. The target test information for the speech synthesis system can be determined based on the test results table, completing the testing process. This allows for the differentiation of different test results and their display in the same test results table, thereby improving the accuracy of the speech synthesis system test and making it easier for testers to view the test results.

[0089] In step S101 of some embodiments, the version information of the speech synthesis system and the test environment information are obtained to facilitate subsequent testing of the speech synthesis system.

[0090] It should be noted that before obtaining the version information of the speech synthesis system, the content of the version information needs to be reviewed first. After the content is approved, the version information of the speech synthesis system and the test environment information can be obtained.

[0091] It is understood that the review of version information can be conducted manually or by machine, and this embodiment does not impose any specific restrictions.

[0092] In step S102 of some embodiments, a test plan set for the speech synthesis system is determined based on version information and test environment information, thereby facilitating subsequent testing of the speech synthesis system.

[0093] It is understood that the test plan set includes test cases, security tests, performance tests, interface tests, and sampling tests. The test plan set also includes test time periods or test versions, etc. The time period can be the execution duration of test cases, security tests, performance tests, interface tests, and sampling tests within a specific time interval, or it can be the number of times test cases, security tests, performance tests, interface tests, and sampling tests are executed within a specific time interval, etc. This embodiment does not impose specific limitations.

[0094] In step S103 of some embodiments, a test result table is created based on the test plan set to facilitate the subsequent storage and display of test results.

[0095] It should be noted that the test result table is divided into different storage areas for different test results. Specifically, test case test results are stored in the test result area, security test results are stored in the security test result area, performance test results are stored in the performance result area, interface test results are stored in the interface test result area, and sampling test results are stored in the sampling test result area. Furthermore, different test results can be stored in the corresponding storage area of ​​the test result table according to the result identifier or result pointer. This implementation does not impose specific restrictions.

[0096] In step S104 of some embodiments, test cases are performed on the speech synthesis system to obtain test case test results, and the test case test results are added to the corresponding area of ​​the test result table so that testers can view the test case test results later.

[0097] It should be noted that test case testing involves adding new test cases to the speech synthesis system for testing. The test cases are used to determine whether the speech synthesis system meets the preset system requirements. If the preset system requirements are met, the test case passes the test and the successful test result is recorded in the test result table. If the preset system requirements are not met, the test case fails the test and becomes a failed test case. Testers can choose to discard the failed test case or store it in the test result table for recording.

[0098] In step S105 of some embodiments, a security test is performed on the speech synthesis system to obtain the security test results. The security test results are then added to the corresponding area in the test result table, thereby improving the security of the speech synthesis system test and reducing the possibility of the speech synthesis system being attacked.

[0099] Understandably, security testing of speech synthesis systems can detect whether the security measures of the speech synthesis system are adequate, whether the speech synthesis system is susceptible to unauthorized intrusion, and whether there are any potential threats to the speech synthesis system.

[0100] In step S106 of some embodiments, the speech synthesis system is subjected to performance testing to obtain performance test results. The performance test results are then added to the corresponding area in the test result table to improve the compatibility of the speech synthesis system and test the stability of the speech synthesis system.

[0101] It is understood that performance testing of a speech synthesis system includes, but is not limited to, testing metrics such as the maximum number of concurrent users, overload capacity, or throughput of the speech synthesis system. This embodiment does not impose specific limitations on these metrics.

[0102] In step S107 of some embodiments, the speech synthesis system is subjected to interface testing to obtain interface test results. The interface test results are then added to the corresponding area of ​​the test result table to realize data interaction of the speech synthesis system, which facilitates data transmission and display and enables various functional verifications.

[0103] In step S108 of some embodiments, the speech synthesis system is sampled and tested according to the test environment information to obtain the sampling test results. The sampling test results are then added to the corresponding area in the test result table to improve the accuracy of the test of the speech synthesis system.

[0104] It should be noted that the sampling methods for sampling tests include, but are not limited to, mechanical sampling, systematic sampling, or random sampling, and this embodiment does not impose any specific limitations.

[0105] Please see Figure 2 In some embodiments, step S102 may include, but is not limited to, steps S201 to S202:

[0106] Step S201: Merge the version information into the test environment information to obtain the merging result;

[0107] Step S202: Determine the test plan set for the speech synthesis system based on the merging results.

[0108] In step S201 of some embodiments, the version information of the speech synthesis system is merged into the test environment information to obtain the merging result, which facilitates the subsequent generation of the test plan set.

[0109] It should be noted that before merging the version information into the test environment information, a baseline verification of the version information is required. After the verification is passed, the version information and the test environment information are merged to obtain the merge result. The merge result records the test details of the version information.

[0110] It is understood that the merged result includes, but is not limited to, version number, version name, or version code, which contain version information. This embodiment does not impose any specific restrictions.

[0111] In step S202 of some embodiments, a test plan set for the speech synthesis system is determined based on the merging results, which facilitates subsequent testing of the speech synthesis system based on the test plan set, thereby simplifying the testing process of the speech synthesis system.

[0112] It should be noted that the test plan set is iterative and can be updated according to the needs of the testers. This embodiment does not impose specific restrictions.

[0113] Please see Figure 3 In some embodiments, S104 may include, but is not limited to, steps S301 to S302;

[0114] It should be noted that test case testing includes test sample test cases.

[0115] Step S301: Input the test sample cases into the speech synthesis system for testing to obtain the test sample values;

[0116] Step S302: Compare the test sample values ​​with the preset test case values ​​in the speech synthesis system to obtain the test case test results.

[0117] In step S301 of some embodiments, test sample cases are input into the speech synthesis system for testing to obtain test sample values, which are then compared with preset test case values ​​to determine the test case test results.

[0118] In step S302 of some embodiments, the test sample value is compared with the preset test case value in the speech synthesis system to obtain the test case test result, thereby completing the process of test case testing of the speech synthesis system.

[0119] It should be noted that the preset test case values ​​in the speech synthesis system are the system requirements of the speech synthesis system. The test sample values ​​are compared with the preset test case values ​​to determine whether the test sample values ​​meet the requirements of the speech synthesis system.

[0120] Please see Figure 4 In some embodiments, step S105 may include, but is not limited to, steps S401 to S404:

[0121] It should be noted that security testing includes information testing, privilege escalation testing, and authorization testing.

[0122] Step S401: Perform information testing on the speech synthesis system to obtain information results;

[0123] Step S402: Perform an overreach test on the speech synthesis system to obtain the overreach result;

[0124] It is understandable that unauthorized access testing includes horizontal unauthorized access testing and vertical unauthorized access testing.

[0125] Step S403: Perform an authorization test on the speech synthesis system and obtain the authorization result;

[0126] Step S404: Integrate the information results, unauthorized access results, and authorized access results to obtain the security test results.

[0127] In step S401 of some embodiments, the speech synthesis system is tested to obtain information results, thereby avoiding situations such as the speech synthesis system including sensitive or dangerous information or information leakage, thus ensuring the information security of the speech synthesis system.

[0128] It is understandable that information testing of a speech synthesis system can identify sensitive or dangerous information fields within it, allowing for the filtering and deletion of these fields to obtain the final information, thereby ensuring the information security of the speech synthesis system.

[0129] In step S402 of some embodiments, an unauthorized access test is performed on the speech synthesis system to obtain unauthorized access results, thereby avoiding unauthorized access vulnerabilities in the speech synthesis system and reducing the possibility of being attacked by potential threats.

[0130] Understandably, using privilege escalation testing on speech synthesis systems can prevent unauthorized users from manipulating data using the permissions of authorized users. Therefore, using privilege escalation testing can ensure that the permissions of users are verified during the process of adding, deleting, modifying, or searching the database of the speech synthesis system, thereby ensuring the system security of the speech synthesis system and preventing illegal intrusion.

[0131] In step S403 of some embodiments, an authorization test is performed on the speech synthesis system to obtain the authorization result, thereby avoiding unauthorized access vulnerabilities and preventing information leakage or malicious attacks on the speech synthesis system.

[0132] It should be noted that authorization testing of the speech synthesis system can be carried out by means such as configuring security parameters for the speech synthesis system, login verification, or monitoring access ports, and this embodiment does not impose specific restrictions.

[0133] In step S404 of some embodiments, the information results, unauthorized access results, and authorized access results are integrated to obtain the security test results, thereby achieving multi-faceted protection of the speech synthesis system and improving the security of the speech synthesis system.

[0134] Please see Figure 5 In some embodiments, step S106 may also include, but is not limited to, step S501:

[0135] It should be noted that performance testing includes release scenario test cases.

[0136] Step S501: Input the release scenario test cases into the speech synthesis system for stress testing and obtain the performance test results.

[0137] In step S501 of some embodiments, release scenario test cases from performance testing are added to the speech synthesis system for stress testing, thereby obtaining performance test results, improving the compatibility and reliability of the speech synthesis system, and improving the stability of the speech synthesis system.

[0138] It should be noted that stress testing of a speech synthesis system includes, but is not limited to, load testing, strength testing, database capacity testing, competition testing, or benchmark testing. This testing aims to determine whether the speech synthesis system can operate normally under normal and excessive data volumes, obtain the maximum concurrency of the speech synthesis system, and test the service response time and distribution of release scenario use cases in the speech synthesis system, thereby improving the data capacity and stability of the speech synthesis system.

[0139] Please see Figure 6 In some embodiments, step S107 includes, but is not limited to, step S601:

[0140] It should be noted that interface testing includes release interface test cases.

[0141] Step S601: Input the release interface test cases into the speech synthesis system, perform tests based on the release interface test cases and release scenario test cases, and obtain the interface test results.

[0142] In step S601 of some embodiments, the release interface test case is input into the speech synthesis system, and tests are performed based on the release interface test case and the release scenario test case to obtain the interface test results, which facilitates subsequent inspection of the speech synthesis system and simplifies the testing process of the speech synthesis system.

[0143] Understandably, the types of release interface test cases correspond to the types of release scenario test cases, which facilitates testing the speech synthesis system in the release scenario test cases.

[0144] Please see Figure 7 In some embodiments, step S108 may include, but is not limited to, steps S701 to S705:

[0145] It should be noted that the test environment information includes both spoken word information and audio information.

[0146] Step S701: Determine the dialogue interface corresponding to the dialogue information from the interface test results based on the dialogue information;

[0147] It is understood that the script information includes the speaker's name, the script scenario, and the script environment, etc., and this embodiment does not impose specific limitations.

[0148] Step S702: Determine the audio interface corresponding to the audio information from the interface test results based on the audio information;

[0149] It is understood that audio information includes audio timbre, audio quality, etc., and this embodiment does not impose specific limitations.

[0150] Step S703: Sample the release scenario use cases according to the dialogue interface to obtain the target dialogue information corresponding to the dialogue information;

[0151] Step S704: Sample the release scenario use cases according to the audio interface to obtain the target audio information corresponding to the audio information;

[0152] Step S705: Integrate the target speech information and target audio information to obtain the sampling test results.

[0153] In step S703 of some embodiments, the release scenario use cases are sampled according to the dialogue interface to obtain the target dialogue information corresponding to the dialogue information, thereby simplifying the sampling test process and avoiding large-scale system testing.

[0154] It should be noted that the release scenario use cases are sampled based on the dialogue interface to determine whether the dialogue information is consistent with the preset dialogue in the release scenario use cases. Based on the judgment result, the target dialogue information is obtained, thereby improving the accuracy of the speech synthesis system.

[0155] In step S704 of some embodiments, the release scenario use cases are sampled according to the audio interface to obtain target audio information corresponding to the audio information, which facilitates the testing of the audio information.

[0156] It should be noted that the release scenario use cases are sampled based on the audio interface to determine whether the audio information is consistent with the preset audio in the release scenario use cases. Based on the judgment result, the target audio information is obtained, thereby improving the accuracy of the speech synthesis system.

[0157] In step S705 of some embodiments, the target speech information and target audio information are integrated to obtain sampling test results, thereby completing the overall test of the speech synthesis system.

[0158] Please see Figure 8 This application also provides a testing device based on a speech synthesis system, which can implement the above-mentioned testing method based on a speech synthesis system. The device includes:

[0159] The information acquisition module 801 is used to acquire version information of the speech synthesis system and test environment information.

[0160] The requirement determination module 802 is used to determine the test plan set of the speech synthesis system based on version information and test environment information. The test plan set is used to characterize the system requirements of the speech synthesis system.

[0161] Result creation module 803 is used to create a test result table based on the test plan set;

[0162] The test case module 804 is used to perform test case tests on the speech synthesis system, obtain the test case test results, and add the test case test results to the test result table.

[0163] The security test module 805 is used to perform security tests on the speech synthesis system, obtain security test results, and add the security test results to the test result table.

[0164] The performance testing module 806 is used to perform performance testing on the speech synthesis system, obtain performance test results, and add the performance test results to the test result table.

[0165] The interface testing module 807 is used to perform interface testing on the speech synthesis system, obtain interface test results, and add the interface test results to the test result table.

[0166] The sampling test module 808 is used to perform sampling tests on the speech synthesis system based on the test environment information, obtain the sampling test results, and add the sampling test results to the test result table.

[0167] The target determination module 809 is used to determine the target test information of the speech synthesis system based on the added test result table.

[0168] The specific implementation of the test device based on the speech synthesis system is basically the same as the specific implementation of the test method based on the speech synthesis system described above, and will not be repeated here.

[0169] This application also 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 communication between the processor and the memory. When the program is executed by the processor, it implements the aforementioned test method based on a speech synthesis system. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0170] Please see Figure 9 , Figure 9 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:

[0171] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0172] The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 using the test method based on the speech synthesis system of the embodiments of this application.

[0173] The input / output interface 903 is used to implement information input and output;

[0174] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0175] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0176] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0177] This application also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, which can be executed by one or more processors to implement the above-described test method based on the speech synthesis system.

[0178] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, 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, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0179] The testing method, testing device, electronic device, and storage medium based on a speech synthesis system provided in this application embodiment first determine a test plan set for the speech synthesis system based on the obtained version information and test environment information. Then, a test result table is created based on the test plan set to facilitate the storage of subsequent test results. After obtaining the test result table, test cases are performed on the speech synthesis system, and the test case results are stored in the test result table. Next, security testing is performed on the speech synthesis system, and the security test results are stored in the test result table. This improves the security of the speech synthesis system and reduces the possibility of attacks. After confirming the security of the speech synthesis system, further testing is conducted on the speech synthesis system. The system performs performance testing, adding the results to the test results table to improve the compatibility and operational efficiency of the speech synthesis system. Next, interface testing is conducted to obtain multiple interfaces of the speech synthesis system, facilitating testing in deployment scenarios and enhancing security during the testing process. Finally, sampling tests are performed on the speech synthesis system based on the test environment information, and the sampling test results are added to the test results table. The target test information for the speech synthesis system can be determined based on the test results table, completing the testing process. This allows for the differentiation of different test results and their display in the same test results table, thereby improving the accuracy of the speech synthesis system testing and facilitating tester review of the results.

[0180] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0181] It will be understood by those skilled in the art that Figures 1-7 The technical solutions shown do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0182] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0183] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0184] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0185] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0186] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0187] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0188] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0189] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0190] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A testing method based on a speech synthesis system, characterized in that, The method includes: Obtain the version information and test environment information of the speech synthesis system; wherein, the test environment information is the test environment corresponding to the version information of the speech synthesis system; The test plan set for the speech synthesis system is determined based on the version information and the test environment information, wherein the test plan set includes test case testing, security testing, performance testing, interface testing, and sampling testing. A test result table is created based on the test plan set; wherein, different storage areas are divided for different test results in the test result table, and different test results are stored in the corresponding storage area of ​​the test result table according to the result identifier or result pointer; Perform the test cases on the speech synthesis system to obtain the test case test results, and add the test case test results to the test result area of ​​the test result table; The security test is performed on the speech synthesis system to obtain the security test results, and the security test results are added to the security test result area of ​​the test result table. The performance test is performed on the speech synthesis system to obtain the performance test results, and the performance test results are added to the performance result area of ​​the test result table. The interface test is performed on the speech synthesis system to obtain the interface test results, and the interface test results are added to the interface test result area of ​​the test result table; The speech synthesis system is subjected to the sampling test based on the test environment information to obtain the sampling test results, and the sampling test results are added to the sampling test result area of ​​the test result table. The target test information for the speech synthesis system is determined based on the added test result table. The performance test includes release scenario test cases; the performance test of the speech synthesis system to obtain the performance test results includes: inputting the release scenario test cases into the speech synthesis system for stress testing to obtain the performance test results; The test environment information includes speech information and audio information; the sampling test of the speech synthesis system to obtain the sampling test result includes: determining the speech interface corresponding to the speech information from the interface test results based on the speech information; determining the audio interface corresponding to the audio information from the interface test results based on the audio information; sampling the release scenario use cases based on the speech interface to obtain target speech information corresponding to the speech information; sampling the release scenario use cases based on the audio interface to obtain target audio information corresponding to the audio information; and integrating the target speech information and the target audio information to obtain the sampling test result.

2. The test method for the speech synthesis system according to claim 1, characterized in that, The step of determining the test plan set for the speech synthesis system based on the version information and the test environment information includes: The version information is merged into the test environment information to obtain the merging result; The test plan set for the speech synthesis system is determined based on the merging results.

3. The testing method for the speech synthesis system according to claim 1, characterized in that, The test case testing includes test sample test cases; the process of performing the test case testing on the speech synthesis system to obtain the test case test results includes: The test sample cases are input into the speech synthesis system for testing to obtain test sample values; The test results are obtained by comparing the test sample values ​​with the preset test case values ​​in the speech synthesis system.

4. The test method for the speech synthesis system according to claim 1, characterized in that, The security test includes information testing, unauthorized access testing, and authorization testing; the security test results obtained by performing the security test on the speech synthesis system include: The information test is performed on the speech synthesis system to obtain the information result; The privilege escalation test is performed on the speech synthesis system to obtain the privilege escalation result; The licensing test was performed on the speech synthesis system to obtain the licensing results; The security test results are obtained by integrating the information results, the unauthorized access results, and the authorized access results.

5. The test method for the speech synthesis system according to claim 1, characterized in that, The interface testing includes release interface test cases; the interface testing of the speech synthesis system to obtain interface test results includes: The release interface test case is input into the speech synthesis system, and the system is tested according to the release interface test case and the release scenario test case to obtain the interface test results.

6. A testing device based on a speech synthesis system, characterized in that, The device includes: an information acquisition module, used to acquire version information and test environment information of the speech synthesis system; wherein, the test environment information is a test environment corresponding to the version information of the speech synthesis system; The requirement determination module is used to determine the test plan set of the speech synthesis system based on the version information and the test environment information, wherein the test plan set is used to characterize the system requirements of the speech synthesis system; The result creation module is used to create a test result table based on the test plan set; wherein, the test result table is divided into different storage areas for different test results, and different test results are stored in the corresponding storage area of ​​the test result table according to the result identifier or result pointer; The test case testing module is used to perform test case tests on the speech synthesis system, obtain test case test results, and add the test case test results to the test result area of ​​the test result table; The security testing module is used to perform security tests on the speech synthesis system, obtain security test results, and add the security test results to the security test result area of ​​the test result table. The performance testing module is used to perform performance testing on the speech synthesis system, obtain performance test results, and add the performance test results to the performance result area of ​​the test result table; the performance testing includes release scenario test cases; the process of performing performance testing on the speech synthesis system and obtaining performance test results includes: inputting the release scenario test cases into the speech synthesis system for stress testing and obtaining the performance test results; The interface testing module is used to perform interface testing on the speech synthesis system, obtain interface test results, and add the interface test results to the interface test result area of ​​the test result table. A sampling test module is used to perform sampling tests on the speech synthesis system based on the test environment information, obtain sampling test results, and add the sampling test results to the sampling test result area of ​​the test result table; the test environment information includes speech information and audio information; the sampling test on the speech synthesis system to obtain sampling test results includes: determining the speech interface corresponding to the speech information from the interface test results based on the speech information; determining the audio interface corresponding to the audio information from the interface test results based on the audio information; sampling the release scenario use cases based on the speech interface to obtain target speech information corresponding to the speech information; sampling the release scenario use cases based on the audio interface to obtain target audio information corresponding to the audio information; and integrating the target speech information and the target audio information to obtain the sampling test results; The target determination module is used to determine the target test information of the speech synthesis system based on the added test result table.

7. An electronic device, characterized in that, The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for establishing communication between the processor and the memory. When the program is executed by the processor, it implements the steps of the test method for a speech synthesis system as described in any one of claims 1 to 5.

8. A storage medium, said storage medium being a computer-readable storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the test method based on the speech synthesis system according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Semantic cloud function quality testing method and device, storage medium and equipment

    CN109389972A

  • Method and device for testing speech synthesis quality

    CN109473121A