Audio testing method and device, storage medium and terminal

文档序号:1613960 发布日期:2020-01-10 浏览:27次 中文

阅读说明:本技术 一种音频测试方法、装置、存储介质及终端 (Audio testing method and device, storage medium and terminal ) 是由 黄长斌 于 2019-09-30 设计创作,主要内容包括:本申请实施例公开了一种音频测试方法、装置、存储介质及终端,属于测试技术领域;方法包括:接收发声器测试指令;响应于发声器测试指令,随机生成目标音频文件,并以目标音频文件控制发声器发出音频;显示音频文件选项集合;选择音频文件选项;根据测试人员选择的音频文件选项与目标音频文件的匹配结果,生成发声器的测试结果。本申请实施例中,测试人员只有在听过音频后,才能够在音频文件选项集合中选出与目标音频文件匹配的音频文件选项,避免出现测试人员漏测试的情形。当测试人员选择音频文件选项后,由终端基于选择的音频文件选项与目标音频文件的匹配结果,来生成发声器的测试结果,更加准确、可靠。(The embodiment of the application discloses an audio test method, an audio test device, a storage medium and a terminal, and belongs to the technical field of test; the method comprises the following steps: receiving a sounder test instruction; responding to a sounder test instruction, randomly generating a target audio file, and controlling the sounder to send out audio by using the target audio file; displaying an audio file option set; selecting an audio file option; and generating a test result of the sounder according to the matching result of the audio file option selected by the tester and the target audio file. In the embodiment of the application, only after listening to the audio, the tester can select the audio file option matched with the target audio file from the audio file option set, so that the condition that the tester misses the test is avoided. After the tester selects the audio file option, the terminal generates a test result of the sounder based on the matching result of the selected audio file option and the target audio file, and the test result is more accurate and reliable.)

1. An audio testing method, comprising the steps of:

receiving a sounder test instruction;

responding to the sounder test instruction, randomly generating a target audio file, and controlling the sounder to send out audio by using the target audio file;

displaying the audio file option set through a display screen; wherein the set of audio file options includes audio file options that match the target audio file;

selecting audio file options according to a selection instruction triggered by a tester;

and generating a test result of the sounder according to the matching result of the audio file option selected by the tester and the target audio file.

2. The method of claim 1, wherein the randomly generating a target audio file comprises:

acquiring a pre-configured audio file set; wherein the set of audio files comprises a plurality of audio files;

and randomly selecting at least one audio file from the audio file set as the target audio file.

3. The method of claim 2, further comprising:

inquiring the associated audio files of the audio file options selected by the tester according to a preset mapping relation;

when the associated audio file is the same as the target audio file, the audio file option selected by the tester is matched with the target audio file; or when the associated audio file is not the same as the target audio file, the audio file option selected by the tester is not matched with the target audio file.

4. The method of claim 3, further comprising:

and establishing a mapping relation between the audio file options and the audio files.

5. The method of claim 1, wherein the randomly generating a target audio file comprises:

randomly generating one or more of an audio type, an audio time, and an audio amount;

generating a target audio file based on one or more of the audio type, audio time, and audio quantity.

6. The method of claim 1, wherein generating the test result for the sounder based on the matching of the audio file option selected by the tester with the target audio file comprises:

when the audio file option selected by the tester is matched with the target audio file, generating a test identifier which represents that the audio test of the sounder passes; or the like, or, alternatively,

and when the audio file option selected by the tester is not matched with the target audio file, displaying the audio file option matched with the target audio file through a display screen.

7. The method of claim 1, further comprising:

acquiring a face image of the testing personnel through a camera;

and carrying out face recognition based on the face image to obtain the identity of the tester, and binding the identity with the test result of the sounder.

8. An audio testing apparatus, comprising:

the receiving module is used for receiving a sounder test instruction;

the response module is used for responding to the sounder test instruction, randomly generating a target audio file and controlling the sounder to send out audio by using the target audio file;

the display module is used for displaying the audio file option set through a display screen; wherein the set of audio file options includes audio file options that match the target audio file;

the selection module is used for selecting audio file options according to a selection instruction triggered by a tester;

and the generating module is used for generating a test result of the sounder according to the matching result of the audio file option selected by the tester and the target audio file.

9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1 to 7.

10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.

Technical Field

The present application relates to the field of testing technologies, and in particular, to an audio testing method and apparatus, a storage medium, and a terminal.

Background

In order to ensure the quality of the product, each function of the product needs to be strictly tested before the product leaves a factory; for example, for a product with a sound generator, the acoustic performance of the sound generator needs to be tested before the product is shipped out. In the related technology, when the acoustic performance is tested, a tester directly senses whether the acoustic performance of a product is normal through artificial listening test; however, this test method completely depends on the judgment result finally given by the tester, and even if the tester gives the judgment result without performing the audio test, the judgment result cannot be found; the test results are not reliable enough.

Disclosure of Invention

The embodiment of the application provides an audio test method, an audio test device, a storage medium and a terminal, which can solve the problem that the related technology completely depends on the final judgment result given by a tester, and even if the tester gives the judgment result without audio test, the judgment result cannot be found; the test result is not reliable enough.

The technical scheme is as follows;

in a first aspect, an embodiment of the present application provides an audio testing method, including the following steps:

receiving a sounder test instruction;

responding to a sounder test instruction, randomly generating a target audio file, and controlling the sounder to send out audio by using the target audio file;

displaying the audio file option set through a display screen; wherein the set of audio file options includes audio file options that match the target audio file;

selecting audio file options according to a selection instruction triggered by a tester;

and generating a test result of the sounder according to the matching result of the audio file option selected by the tester and the target audio file.

In a second aspect, an embodiment of the present application provides an audio testing apparatus, including:

the receiving module is used for receiving a sounder test instruction;

the response module is used for responding to the sounder test instruction, randomly generating a target audio file and controlling the sounder to send out audio by using the target audio file;

the display module is used for displaying the audio file option set through a display screen; wherein the set of audio file options includes audio file options that match the target audio file;

the selection module is used for selecting audio file options according to a selection instruction triggered by a tester;

and the generating module is used for generating a test result of the sounder according to the matching result of the audio file option selected by the tester and the target audio file.

In a third aspect, embodiments of the present application provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform any of the method steps described above.

In a fourth aspect, an embodiment of the present application provides a terminal, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform any of the method steps described above.

The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:

in the embodiment of the application, after receiving a sounder test instruction, the terminal randomly generates a target audio file to control the sounder to send out audio, and displays an audio file option set through a display screen for a tester to select; the method and the device enable the tester to select the audio file option matched with the target audio file from the audio file option set only after listening to the audio, and avoid the condition that the tester misses the test. After the tester selects the audio file option, the terminal generates a test result of the sounder based on the matching result of the selected audio file option and the target audio file; compared with the test result directly given by a tester, the test result of the embodiment of the application is more accurate and reliable.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application;

FIG. 2 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;

FIG. 3 is an architectural diagram of the android operating system of FIG. 1;

FIG. 4 is an architecture diagram of the IOS operating system of FIG. 1;

fig. 5 is a schematic interface display diagram of a terminal according to an embodiment of the present application;

fig. 6 is a schematic view of another interface display of the terminal provided in the embodiment of the present application;

FIG. 7 is a flowchart illustrating an audio testing method according to an embodiment of the present application;

FIG. 8 is a schematic flowchart of an audio testing method provided in an embodiment of the present application;

FIG. 9 is a schematic flowchart of an audio testing method provided in an embodiment of the present application;

fig. 10 is a schematic structural diagram of an audio testing apparatus 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 clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.

In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.

Referring to fig. 1, a block diagram of a terminal 100 according to an exemplary embodiment of the present application is shown. The terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.

Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.

The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.

Referring to fig. 2, the memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.

In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.

Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 3, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal 100, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game-like application, an instant messaging program, a photo beautification program, a shopping program, and the like.

Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 4, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on terminal 100. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.

In the framework shown in FIG. 4, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.

The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.

The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens for receiving touch operations of a user on or near the touch display screens by using any suitable object such as a finger, a touch pen, and the like, and displaying user interfaces of various applications. The touch display screen is generally provided at a front panel of the terminal 100. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.

In addition, those skilled in the art will appreciate that the configuration of terminal 100 illustrated in the above-described figures is not intended to be limiting of terminal 100, and that terminal 100 may include more or less components than those shown, or some components may be combined, or a different arrangement of components. For example, the terminal 100 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.

In the embodiment of the present application, the main body of execution of each step may be the terminal 100 described above. Optionally, the execution subject of each step is an operating system of the terminal 100. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.

The terminal 100 of the embodiment of the present application may further include a display device, where the display device may be various devices capable of implementing a display function, for example: a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. The user can view information such as displayed text, images, and video using the display device on the terminal 100101. The terminal 100 may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.

In the terminal 100 shown in fig. 1, the processor 110 may be configured to call an application program stored in the memory 120 and specifically execute the audio test method according to the embodiment of the present application.

The sounder may be any device having a generating function; the sound generator may be a loudspeaker or a receiver, for example. The loudspeaker is also called a loudspeaker, and is an electroacoustic device for converting an audio electrical signal into a sound signal; for example, the speaker of the mobile phone is mainly used for playing ring tones and music. A receiver, also called a receiver, is an electroacoustic device that converts an audio electrical signal into an acoustic signal; for example, a receiver on a mobile phone is mainly used for listening to the speaking voice of a calling party when a call is made.

In the technical scheme provided by the embodiment of the application, after receiving a sounder test instruction, the terminal 100 randomly generates a target audio file to control the sounder to send out audio, and displays an audio file option set through a display screen for a tester to select; the method and the device enable the tester to select the audio file option matched with the target audio file from the audio file option set only after listening to the audio, and avoid the condition that the tester misses the test. After the tester selects the audio file option, the terminal 100 generates a test result of the sounder based on the matching result of the selected audio file option and the target audio file; compared with the test result directly given by a tester, the test result of the embodiment of the application is more accurate and reliable.

In the following method embodiments, for convenience of description, only the main body of execution of each step is described as the terminal 100.

The audio testing method provided by the embodiment of the present application will be described in detail below with reference to fig. 7 to 9.

Referring to fig. 7, a flow chart of an audio testing method according to an embodiment of the present application is shown. As shown in fig. 7, the method of the embodiment of the present application may include the following steps:

s701, receiving a sounder test instruction.

The sounder test instruction is used for performing audio test on the sounder, and the sounder test instruction may be generated by the terminal 100 based on test operation triggered by a tester, and the type of the test operation may be one or more of touch operation, voice control operation, key operation, and somatosensory operation. For example, the terminal 100 receives an instruction to start an audio test application, displays an audio test interface, the audio test interface is provided with a virtual test button, when the terminal 100 receives a single-click operation on the test button, the touch screen of the terminal 100 generates a sounder test instruction, and sends the sounder test instruction to the processor of the terminal 100, and the processor of the terminal 100 receives the sounder test instruction from the touch screen.

S702, responding to the sounder test instruction, randomly generating a target audio file, and controlling the sounder to send out audio by using the target audio file.

The randomly generated target audio file may be at least one audio file randomly selected by the terminal 100 directly in a preset audio file set. The randomly generated target audio file may also be at least one audio file randomly generated by the terminal 100 based on one or more of an audio type, an audio time, and an audio amount.

The target audio file randomly generated by the terminal 100 is specifically one audio file or multiple audio files, and may be default by the system or preset by a tester.

And S703, displaying the audio file option set through the display screen.

Wherein the set of audio file options includes audio file options that match the target audio file.

The audio file option set comprises a plurality of audio file options, and the plurality of audio file options comprise at least one audio file option matched with the target audio file.

When the target audio file is an audio file, an audio file option matching the target audio file may be included in the audio file option set. For example, the target audio file is a female voice reading Tang poem; the audio file option set comprises options of male voices and options of female voices; wherein, the options of the female voice are audio file options matched with the target audio file.

When the target audio file is an audio file, the audio file option set may also include more than two audio file options matching the target audio file. For example, the target audio file is a female voice reading Tang poem; the audio file option set comprises a male voice option, a female voice option, a reading option, a singing option, a Chinese option and an English option; the options of the female voice, the options of reading and the options of Chinese are all audio file options matched with the target audio file.

When the target audio file is more than two audio files, one audio file option matched with the target audio file can be included in the audio file option set. For example, the target audio file is a man singing Chinese song after reading Tang poetry aloud by a female voice; the audio file option set comprises options of only male voice, options of only female voice and options of both male voice and female voice; wherein, the options of both male and female voices are the audio file options matched with the target audio file. When the target audio file is two or more audio files, the time interval between the audio files should be as large as possible for the tester to distinguish. For example, after each audio file is sent by the sounder, the next audio file is played at an interval of more than 1 second. Specifically, the male vocal singing Chinese song after reading Tang poetry aloud by female voice may be: after the audio file of the Tang poem is played by the female, the voice is stopped for 1 second, and then the audio file of the Chinese song played by the male is played.

When the target audio file is two or more audio files, the audio file option set may also include two or more audio file options matching the target audio file. For example, the target audio file is a man singing Chinese song after reading Tang poetry aloud by a female voice; the audio file option set comprises options of only male voice, options of only female voice, options of both male voice and female voice, Chinese options and English options; the options of both the male and female voices and the options of the Chinese language are audio file options matched with the target audio file.

When the target audio file is more than two audio files, the audio file option set may only be composed of audio file options matched with each audio file. For example, the target audio file is a male voice first and a female voice later; the audio file option set comprises options of male voices and options of female voices; at this time, the audio file options matched with the target audio file are: selecting the options of male voice and then selecting the options of female voice; i.e. at this point it needs to be decided in connection with the order in which the tester selects each audio file.

And S704, selecting an audio file option according to a selection instruction triggered by the tester.

The selection instruction is used for selecting the audio file option, the selection instruction may be generated by the terminal 100 based on a selection operation triggered by a tester, and the type of the selection operation may be one or more of a touch operation, a voice control operation, a key operation and a body sensing operation. For example, the terminal 100 displays an audio file option set interface when the vibration of the target audio file is completed, and generates a selection instruction when the terminal 100 detects a single-click operation of any audio file option in the audio file option set.

When the audio file option set comprises more than two audio file options matched with the target audio file, in order to obtain the complete selection of the tester, options representing the completion of the selection, such as determination and the like, can be displayed on the display screen of the terminal 100, so that when the tester selects the options representing the completion of the selection, such as determination and the like, the selection instruction is generated completely; the decision is then made based on the selection made by the tester. For example, the target audio file is a man singing Chinese song after reading Tang poetry aloud by a female voice; the audio file option set comprises options of only male voice, options of only female voice, options of both male voice and female voice, Chinese options and English options; in addition, certain options are displayed on the display screen of the terminal 100; after the tester clicks both the options of the male and female voices and the Chinese options, the selection instruction is generated only after clicking the determined options.

S705, generating a test result of the sounder according to the matching result of the audio file option selected by the tester and the target audio file.

When the audio file option set only comprises one audio file option matched with the target audio file, the audio file option selected by the tester is matched with the target audio file only when the audio file option selected by the tester is completely matched with the target audio file.

When the audio file option set comprises more than two audio file options matched with the target audio file, the audio file option selected by the tester is matched with the target audio file only when the matching rate of the audio file option selected by the tester and the target audio file is greater than a threshold value.

The matching rate of the audio file option selected by the tester and the target audio file may be: the ratio of the number of audio file options matched with the target audio file in the plurality of audio file options selected by the tester to the total number of audio file options matched with the target audio file in the audio file option set. If the total number of the audio file options matched with the target audio file in the audio file option set is 3, and the number of the audio file options matched with the target audio file in the plurality of audio file options selected by the tester is 1, the matching rate of the audio file options selected by the tester and the target audio file is 1/3.

Of course, in order to avoid that the tester selects all the audio file options in the audio file option set, and thus misjudges the audio file options as the matching condition, when the matching rate between the audio file options selected by the tester and the target audio file is calculated, the ratio of the number of the audio file options selected by the tester to the total number of the audio file options matched with the target audio file in the audio file option set needs to be considered. Specifically, when the number of the audio file options selected by the tester is greater than the total number, the mismatching of the selections can be directly judged. If the total number of the audio file options matched with the target audio file in the audio file option set is 3, and the number of the audio file options selected by the tester is 4, the selection is directly judged to be unmatched.

The matching rate of the audio file option selected by the tester and the target audio file can also be: the match rate of the order of the plurality of audio file options selected by the tester to the order in which their matching audio files occur in the target audio file. For example, the target audio file is a male voice first and a female voice later; the audio file option set includes a male voice option and a female voice option. If the tester selects the options of the male voice first and then selects the options of the female voice, the sequence of the options of the male voice selected by the tester is 1, and the sequence of the options of the female voice selected by the tester is 2; and the audio file matched with the male voice option in the target audio file is 1, and the audio file matched with the female voice option is 2, namely the matching rate of the audio file option selected by the tester and the target audio file is 100%.

The specific value of the threshold may be default of the system, or may be preset by the tester.

In the embodiment of the application, after receiving a sounder test instruction, the terminal 100 randomly generates a target audio file to control the sounder to emit audio, and displays an audio file option set through a display screen for a tester to select; the method and the device enable the tester to select the audio file option matched with the target audio file from the audio file option set only after listening to the audio, and avoid the situation that the tester misses the test. After the tester selects the audio file option, the terminal 100 generates a test result of the sounder based on the matching result of the selected audio file option and the target audio file; compared with the test result directly given by a tester, the test result of the embodiment of the application is more accurate and reliable.

Please refer to fig. 8 and fig. 9, which are schematic flow charts of audio testing methods according to embodiments of the present application. The embodiment of the present application is illustrated by applying the audio test method to the terminal 100.

When the randomly generated target audio file in step S702 is: when the terminal 100 directly selects at least one audio file randomly from the preset audio file set, the audio testing method of the embodiment of the application may include the following steps:

s801, establishing a mapping relation between audio file options and audio files.

When a plurality of audio file options are preset in the terminal 100, in order to facilitate the terminal 100 to quickly acquire an audio file matched with the audio file option selected by the tester, the terminal 100 may directly determine the associated audio file of the audio file option selected by the tester through the mapping relationship by establishing the mapping relationship between the audio file option and the audio file, and determine whether the selected audio file option is matched with the target audio file by determining whether the associated audio file is matched with the target audio file. When the audio file option is not preset in the terminal 100, the terminal 100 may generate the audio file option based on the duration or the number of intervals of the target audio file, etc.

S802, receiving a sounder test instruction.

Specifically, refer to step S701, which is not described herein again.

And S803, responding to the sounder test instruction, and acquiring a pre-configured audio file set.

Wherein the set of audio files comprises a plurality of audio files.

S804, at least one audio file is randomly selected from the audio file set to serve as a target audio file, and the target audio file is used for controlling the sounder to vibrate.

After receiving the sounder test instruction, the terminal 100 directly calls a pre-configured audio file set, and randomly selects one or more audio files in the audio file set as target audio files.

And S805, displaying the audio file option set through the display screen.

Wherein the set of audio file options includes audio file options that match the target audio file.

The audio file option set may be an audio file option set randomly generated by the terminal 100 based on the target audio file. For example, when a plurality of audio file options are preset on the terminal 100 and an audio file option matching the target audio file is included: the audio file option set may be composed of at least one audio file option selected by the terminal 100 from a plurality of preset audio file options and matched with the target audio file, and at least one audio file option selected from the plurality of preset audio file options and not matched with the target audio file.

When a plurality of audio file options are preset on the terminal 100, but no audio file option matching with the target audio file exists: the audio file option set may be composed of at least one audio file option generated by the terminal 100 according to the duration, the interval number, and the like of the target audio file, and at least one audio file option selected from a plurality of preset audio file options; at this time, the terminal 100 defines the audio file option associated with the duration and the number of intervals in the audio file option set as the audio file option matching the target audio file. For example, when the total duration of the target audio file is a first preset value, the terminal 100 generates a long audio option, and defines the long audio option as an audio file option matching the target audio file; when the total duration of the target audio file is a second preset value, the terminal 100 generates a short audio option, and defines the short audio option as an audio file option matched with the target audio file; when the interval frequency of the target audio file is 1, generating a plurality of audio options on the terminal 100, and defining the plurality of audio options as audio file options matched with the target audio file; when the number of intervals of the target audio file is 0, the terminal 100 generates a single audio option, and defines the single audio option as an audio file option matching the target audio file. In order to facilitate a tester to accurately judge whether the target vibration mode is a long audio or a short audio without a time detection tool, the difference between the first preset value and the second preset value is larger; for example, the first preset value may be 20 seconds, and the second preset value may be 5 seconds. Specifically, when the target audio file is male 10 seconds later and then female 10 seconds later, the terminal 100 may directly generate the long audio option and the multi-audio option according to the total length of the target audio file 20 seconds and the number of intervals 1 time, and then select the short audio option and the single audio option from the multiple audio file options to form an audio file option set; and define the option of long audio and the option of multi-audio as the audio file option matching the target audio file.

When no audio file option is available on the terminal 100: the audio file option set may also be an audio file option set directly generated by the terminal 100 according to the duration and the interval times of the target audio file, and an option in the audio file option set associated with the duration and the interval times is defined as an audio file option matched with the target audio file. Specifically, when the target audio file is male 10 seconds later and then female 10 seconds later, the terminal 100 may directly generate a long audio option, a multi-audio option, a short audio option, and a single audio option according to the total length of the target audio file 20 seconds and the number of times of interval 1, so as to form an audio file option set; and define the option of long audio and the option of multi-audio as the audio file option matching the target audio file.

When the terminal 100 is preset with a plurality of audio file option sets and includes an audio file option set matching a target audio file, the audio file option set may also be an audio file option set matching the target audio file selected by the terminal 100 from the preset audio file option sets. In order to facilitate the terminal 100 to quickly acquire the audio file option set matching the target audio file, a mapping relationship between the target audio file and the audio file option set may be established.

And S806, selecting the audio file option according to the selection instruction triggered by the tester.

Specifically, refer to step S704, which is not described herein again.

S807, inquiring the associated audio files of the audio file options selected by the tester according to the preset mapping relation.

S808, when the associated audio file is the same as the target audio file, matching the audio file option selected by the tester with the target audio file; or the like, or, alternatively,

when the associated audio file is not the same as the target audio file, the audio file option selected by the tester is not matched with the target audio file.

When the number of the audio file options selected by the tester is multiple, the associated audio file of each audio file option selected by the tester needs to be inquired, and whether each associated audio file is matched with the target audio file is judged. In order to facilitate the terminal 100 to quickly determine whether the associated audio file matches the target audio file, a mapping relationship between the associated audio file and the target audio file may be established.

For example, the target audio file is a male voice 10 seconds later and then is separated by 1 time and then is played for 10 seconds; the audio file option set includes options for long audio, options for multiple audio, options for short audio, and options for single audio. Wherein, the total time length of the associated audio files of the option of the long audio is 20 seconds; the total time of the associated audio files of the short audio options is 5 seconds; the associated audio files of the options of the plurality of audios are spaced 1 time; the associated audio files for a single audio option are spaced 0 times. The audio files that match the target audio file are long audio and multi-audio. When the tester selects the option of the long audio, matching with the target audio file; when the tester selects the option for short audio, it does not match the target audio file.

S809, when the audio file option selected by the tester is matched with the target audio file, generating a test identifier indicating that the audio test of the sounder passes; or the like, or, alternatively,

and when the audio file option selected by the tester is not matched with the target audio file, displaying the audio file option matched with the target audio file through the display screen.

The step S705 can be referred to for determining whether the audio file option selected by the tester matches the target audio file, and is not repeated herein.

And S810, acquiring a human face image of the tester through the camera.

The face image of the tester is collected, so that the working state of the tester can be monitored conveniently. This step is not limited to being completed in step S810, and may be implemented in any step before S810.

S811, carrying out face recognition based on the face image to obtain the identity of the tester, and binding the identity with the test result of the sounder.

By binding the identity of the tester with the test result of the sounder, when the test result has a problem, the tester can directly trace the responsibility to the specific tester according to the bound identity.

When the randomly generated target audio file in step S702 is: when the terminal 100 randomly generates at least one audio file based on one or more of an audio type, an audio time and an audio amount, the audio testing method of the embodiment of the present application may further include the following steps:

and S901, receiving a sounder test instruction.

Specifically, refer to step S701, which is not described herein again.

And S902, responding to the sounder test instruction, and randomly generating one or more of audio type, audio time and audio quantity.

The one or more of randomly generated audio type, audio time, and audio quantity includes randomly generated audio type, randomly generated audio time, randomly generated audio quantity, randomly generated audio type and audio time, randomly generated audio type and audio quantity, randomly generated audio time and audio quantity, and randomly generated audio type, audio time, and audio quantity. When the randomly generated number of audios includes a plurality of times, the time interval of each audio may also be randomly generated. A plurality of audio clips, which may be of a type such as male voice, female voice, chinese, english, poetry or songs, may be preset in the terminal 100.

And S903, generating a target audio file based on one or more of the audio type, the audio time and the audio quantity, and controlling the sounder to vibrate according to the target audio file.

For example, when the randomly generated audio time is 5 seconds, the generated target audio file may be a partial audio clip selected from a plurality of audio clips to form 5 seconds of audio.

And S904, displaying the audio file option set through the display screen.

Wherein the set of audio file options includes audio file options that match the target audio file.

Specifically, refer to step S805, which is not described herein again.

And S905, selecting an audio file option according to a selection instruction triggered by the tester.

Specifically, refer to step S704, which is not described herein again.

S906, when the audio file option selected by the tester is matched with the target audio file, generating a test identifier which represents that the audio test of the sounder passes; or the like, or, alternatively,

and when the audio file option selected by the tester is not matched with the target audio file, displaying the audio file option matched with the target audio file through the display screen.

The step S705 can be referred to for determining whether the audio file option selected by the tester matches the target audio file, and is not repeated herein.

And S907, acquiring a face image of the tester through a camera.

The face image of the tester is collected, so that the working state of the tester can be monitored conveniently. This step is not limited to being completed in step S907, and may be implemented in any step before S907.

S908, carrying out face recognition based on the face image to obtain the identity of the tester, and binding the identity with the test result of the sounder.

By binding the identity of the tester with the test result of the sounder, when the test result has a problem, the tester can directly trace the responsibility to the specific tester according to the bound identity.

In the embodiment of the application, after receiving a sounder test instruction, the terminal 100 randomly generates a target audio file to control the sounder to emit audio, and displays an audio file option set through a display screen for a tester to select; the method and the device enable the tester to select the audio file option matched with the target audio file from the audio file option set only after listening to the audio, and avoid the condition that the tester misses the test. After the tester selects the audio file option, the terminal 100 generates a test result of the sounder based on the matching result of the selected audio file option and the target audio file; compared with the method that the test result is directly obtained by a tester, the method and the device are more accurate and reliable in result.

The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.

Please refer to fig. 10, which shows a schematic structural diagram of an audio testing apparatus according to an exemplary embodiment of the present application. The audio test device may be implemented as all or part of the terminal 100 in software, hardware, or a combination of both. The device includes:

a receiving module 1001 for receiving a sounder test instruction;

the response module 1002 is configured to respond to the sounder test instruction, randomly generate a target audio file, and control the sounder to emit audio according to the target audio file;

a display module 1003, configured to display the audio file option set through a display screen; wherein the set of audio file options includes audio file options that match the target audio file;

the selection module 1004 is used for selecting audio file options according to a selection instruction triggered by a tester;

the generating module 1005 is configured to generate a test result of the sounder according to a matching result of the audio file option selected by the tester and the target audio file.

Optionally, the response module 1002 may include:

the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a pre-configured audio file set; wherein the set of audio files comprises a plurality of audio files;

the device comprises a first generation unit and a second generation unit, wherein the first generation unit is used for randomly selecting at least one audio file from the audio file set as a target audio file.

Optionally, the apparatus may further comprise:

the query module is used for querying the associated audio files of the audio file options selected by the tester according to the preset mapping relation;

the judgment module is used for matching the audio file option selected by the tester with the target audio file when the associated audio file is the same as the target audio file; or when the associated audio file is not the same as the target audio file, the audio file option selected by the tester is not matched with the target audio file.

Optionally, the apparatus may further comprise:

and the establishing module is used for establishing the mapping relation between the audio file options and the audio files.

Optionally, the response module 1002 may include:

a second generating unit for randomly generating one or more of an audio type, an audio time, and an audio amount;

a third generating unit for generating a target audio file based on one or more of audio type, audio time and audio amount.

Optionally, the generating module 1005 may include:

when the audio file option selected by the tester is matched with the target audio file, generating a test identifier which represents that the audio test of the sounder passes; or the like, or, alternatively,

and when the audio file option selected by the tester is not matched with the target audio file, displaying the audio file option matched with the target audio file through the display screen.

It should be noted that, when the apparatus provided in the foregoing embodiment executes the audio testing method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiments of the audio testing method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the embodiments of the method, which are not described herein again.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

In the embodiment of the application, after receiving a sounder test instruction, the terminal 100 randomly generates a target audio file to control the sounder to emit audio, and displays an audio file option set through a display screen for a tester to select; the method and the device enable the tester to select the audio file option matched with the target audio file from the audio file option set only after listening to the audio, and avoid the condition that the tester misses the test. After the tester selects the audio file option, the terminal 100 generates a test result of the sounder based on the matching result of the selected audio file option and the target audio file; compared with the test result directly given by a tester, the test result of the embodiment of the application is more accurate and reliable.

The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 7 to 10, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 7 to 10, which is not described herein again.

The present application also provides a terminal 100 comprising a processor and a memory; wherein the memory stores a computer program adapted to be loaded and executed by the processor to implement the audio testing method of the various embodiments as described above.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:特效处理方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!