CN114420092A - Voice test method, system, device, electronic equipment and storage medium - Google Patents

Voice test method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114420092A
CN114420092A CN202210071939.1A CN202210071939A CN114420092A CN 114420092 A CN114420092 A CN 114420092A CN 202210071939 A CN202210071939 A CN 202210071939A CN 114420092 A CN114420092 A CN 114420092A
Authority
CN
China
Prior art keywords
control command
semantic analysis
master control
module
voice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210071939.1A
Other languages
Chinese (zh)
Inventor
李辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202210071939.1A priority Critical patent/CN114420092A/en
Publication of CN114420092A publication Critical patent/CN114420092A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/01Assessment or evaluation of speech recognition systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • G10L13/04Details of speech synthesis systems, e.g. synthesiser structure or memory management
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • G10L15/1822Parsing for meaning understanding
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The embodiment of the invention discloses a voice test method, a system, a device, electronic equipment and a storage medium, wherein the voice test method comprises the following steps: receiving an active control command configuration file; reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format; sending the main control command to a semantic analysis module; and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to the service module, wherein the service module is used for executing the master control command based on the semantic analysis result. By the embodiment of the invention, the voice test can be performed on the vehicle-mounted device by receiving the master control command, and the working efficiency of the vehicle-mounted voice test is improved. And each module of the automatic test car machine executes the state of the master control command, so that the manpower resource is saved, and the user experience is improved.

Description

Voice test method, system, device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to a vehicle testing technology, in particular to a voice testing method, a system, a device, electronic equipment and a storage medium.
Background
The vehicle machine is a vehicle-mounted information entertainment product installed in an automobile for short. Along with the increase of the number of automobiles, the intelligent functions of the automobiles are more and more, and the human-computer interaction test is more and more important. The vehicle-mounted voice function is an important human-computer interaction function, and related functional modules are more. And thus the testing of the car voice function is more and more demanding.
The existing vehicle-mounted voice function test is generally carried out by a tester according to test cases, and on a vehicle machine, hundreds of test cases exist in a voice control command of each service module. Resulting in long testing time and large testing task. Under the conditions of time tightness and heavy tasks, the vehicle-mounted voice test work can be completed only by adding manpower, so that the labor cost is increased.
Disclosure of Invention
The invention provides a voice test control method and device, electronic equipment and a storage medium, which can automatically test the execution state of each module of a vehicle machine on a master control command and improve user experience.
In a first aspect, an embodiment of the present invention provides a voice testing method, including:
receiving an active control command configuration file;
reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format;
sending the master control command to a semantic analysis module;
and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to a service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
In a second aspect, an embodiment of the present invention further provides a voice testing apparatus, including:
the first receiving module is used for receiving the configuration file of the active control command;
the command reading module is used for reading the master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format;
the command sending module is used for sending the main control command to the semantic analysis module;
and the second receiving module is used for receiving a semantic analysis result of the master control command returned by the semantic analysis module and sending the semantic analysis result to the service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
In a third aspect, an embodiment of the present invention further provides a voice testing system, where the voice testing system includes a car machine and a background server;
the car machine comprises a test module and at least one service module, wherein the test module is used for executing the voice test method provided by any embodiment of the invention. (ii) a
The background server comprises a semantic analysis module, and the semantic analysis module is used for performing semantic analysis on the received main control command.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a voice testing method as provided by any of the embodiments of the invention.
In a fifth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the voice testing method according to any embodiment of the present invention.
In the embodiment of the invention, an active control command configuration file is received; reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format; sending the master control command to a semantic analysis module; and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to a service module, wherein the service module is used for executing the master control command based on the semantic analysis result. The embodiment of the invention can carry out the vehicle-mounted voice test by receiving the master control command, and can carry out the voice test on the vehicle machine without depending on the test case, thereby improving the working efficiency of the vehicle-mounted voice test. And each module of the automatic test car machine executes the state of the master control command, so that the manpower resource is saved, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of a voice testing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for testing speech provided by an embodiment of the present invention;
FIG. 3 is a block diagram of a voice testing system according to an embodiment of the present invention;
FIG. 4 is a block diagram of a test module according to an embodiment of the present invention;
FIG. 5 is another block diagram of a voice testing system according to an embodiment of the present invention;
FIG. 6 is a block diagram of a voice testing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a voice testing method according to an embodiment of the present invention, where the present embodiment is applicable to an automated test of an execution state of a main control command by each module of a car machine, and the method may be executed by a voice testing apparatus according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. As shown in fig. 1, the voice testing method provided in this embodiment specifically includes the following steps:
step 101, receiving an active control command configuration file.
The active control command configuration file is composed of a master control command, and the master control command is obtained by writing based on test requirements. For example, if the test requirement indicates whether the test vehicle can play music that the user wants to listen to as required, the main control command may be written according to the test requirement: "play Suojilun sunny day". Further, the master control command is converted into a lightweight data exchange format and written into an active control command configuration file. Different master control commands can be written or modified for testing of different requirements. For example, the master control command of "playing the sunny day of zhou jilun" exists in the active control command configuration file, and whether the car machine can accurately identify similar music names needs to be tested, only the "sunny day" in the "playing the sunny day of zhou jilun" needs to be modified into the "cloudy day". After determining the active control command configuration file, further, the active control command configuration file may be received through the master control command reading interface.
102, reading a master control command in an active control command configuration file; wherein, the main control command adopts a lightweight data exchange format.
The lightweight data exchange format may be a JSON Object Notation (JSON) format, and the JSON-format data may be stored in a text format completely independent of a programming language, and may describe the main control command by using a simple and clear hierarchical structure, so that the main control command is easy to be edited and analyzed by a machine. After receiving the active control command configuration file, further, receiving the active control command configuration file through a master control command reading interface, and reading all master control commands in the active control command configuration file one by one.
And 103, sending the master control command to a semantic analysis module.
The semantic analysis module can perform semantic analysis on the master control command to obtain a result of the semantic analysis, and the result can be represented in a quadruple form. Wherein, the quadruple contains key information in the master control command. For example, the master control command is "play on sunny day of zhou jilun", and the quadruple corresponding to the master control command is (play, music, zhou jilun, sunny day). Further, the main control command can be sent to the semantic analysis module through the main control command uploading interface. The semantic analysis module is used for performing semantic analysis on the main control command, so that the machine can analyze the main control command conveniently, and the accuracy of the voice test method is improved.
And 104, receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to a service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
Specifically, after receiving the semantic analysis result of the master control command, the data distribution interface sends the master control command and the semantic analysis result of the master control command to the service module, and the service module executes the corresponding master control command according to the semantic analysis result. For example, the master control command is "play on sunny day of zhou jilun", and the quadruple corresponding to the master control command is (play, music, zhou jilun, sunny day). After receiving (playing, music, Zhou Jie Lun, fine day), the service module can know to control the vehicle-mounted sound equipment to play music according to the playing and the music, and can know that the content to be played by the vehicle-mounted sound equipment is the fine day of the Zhou Jie Lun according to the Zhou Jie Lun and the fine day. Further, the service module can control the vehicle-mounted sound equipment to play the sunny days of Zhou Jieren.
In this embodiment, optionally, the voice testing method is executed in an experimental environment or a driving environment.
In particular, in an experimental environment, a vehicle machine to be tested and related equipment can be arranged on a rack. The related devices include a power supply, a display, a sound device and the like. In a driving environment, a vehicle machine to be tested and related equipment are arranged in a vehicle and are connected with a vehicle Controller through a Controller Area Network (CAN) bus to perform testing. The vehicle controller can control various hardware devices in the vehicle to work according to a master control command, such as vehicle-mounted sound, a vehicle door switch, an air conditioner switch and the like. The experimental environment is more suitable for developers to carry out voice test on the functions of the car machine according to development requirements, and the voice test method is improved according to the voice test result.
The vehicle is subjected to the voice test in different modes aiming at different environments, so that the voice test method is not limited by the environment, and the universality of the voice test method provided by the embodiment of the invention is improved.
The embodiment of the invention configures the file by receiving the active control command; reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format; sending the main control command to a semantic analysis module; and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to the service module, wherein the service module is used for executing the master control command based on the semantic analysis result. According to the technical scheme of the embodiment of the invention, the voice test can be carried out on the vehicle-mounted device by utilizing the master control command, and the master control command can be compiled or modified according to requirements, so that the working efficiency of the vehicle-mounted voice test work is improved. And each module of the automatic test car machine executes the state of the master control command, so that the manpower resource is saved, and the user experience is improved.
FIG. 2 is a flow chart of another method for testing speech provided by an embodiment of the present invention; the embodiment is applicable to the execution state of each module of the automated test vehicle machine on the main control command, and further refines the voice test method, as shown in fig. 2, the refined voice test method mainly includes the following steps:
step 201, receiving an active control command configuration file.
Step 202, reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format.
And step 203, sending the master control command to a TTS broadcast interface for voice broadcast.
The master control command is written according to the test requirement, and is stored in the active control command configuration file in a lightweight exchange data format. The Text To Speech (TTS) interface can perform voice broadcast on the main control command, so that a tester can know the content of the main control command To be tested. For example, the master control command is "play sunny days of zhou jilun", and the active control command file stores "play sunny days of zhou jilun" in JSON format. After the main control command is sent to the TTS broadcast interface, the TTS broadcast interface can play the voice of playing SuoJenlon sunny days.
And step 204, sending the master control command to a semantic analysis module.
The semantic analysis module can perform semantic analysis on the master control command to obtain a result of the semantic analysis, and the result can be represented in a quadruple form.
And 205, receiving a semantic analysis result of the master control command returned by the semantic analysis module, and matching the received semantic analysis result with a preset standard semantic analysis result. If the matching is successful, go to step 206; if the matching fails, go to step 207.
And the standard semantic analysis result is correct corresponding to the main control command preset by the developer in advance, and the result is obtained through semantic analysis and stored. Further, after receiving the semantic analysis result of the master control command returned by the semantic analysis module, matching the received semantic analysis result with a preset standard semantic analysis result. For example, assuming that the master control command is "play sunny day of shedulen," the semantic parsing module parses the master control command into four tuples (x, y, z, w) through semantic parsing, where x represents play, y represents music, z represents shedulen, and w represents sunny day. And if the standard quadruple corresponding to the master control command is (x, y, z, w), the semantic analysis result returned by the semantic analysis module is successfully matched with the standard semantic analysis result through comparison, and the semantic analysis result is sent to the service module. For example, if the semantic parsing module parses the master control command into a quadruple (x, y, z, v) through semantic parsing, and the standard quadruple corresponding to the master control command is (x, y, z, w), it can be known through comparison that the semantic parsing result returned by the semantic parsing module is not matched with the standard semantic parsing result. The master control command is written to the work log.
And step 206, sending the semantic analysis result to a service module.
And step 207, writing the master control command into a work log.
Wherein, the working log can record the master control command with failed matching. The master control command which is failed to be matched is recorded by using the working log, so that the semantic analysis module can train and update in a continuous iteration mode, and the accuracy of the semantic analysis module in analyzing the master control command is improved. Specifically, the received semantic analysis result is matched with a preset standard semantic analysis result, and if the matching fails, the master control command is written into the working log. .
And 208, acquiring an execution result of the service module on the master control command, and if the execution result is an execution failure, executing step 207.
The business module is used for executing the main control command based on the semantic analysis result. Specifically, after the service module receives the semantic analysis result, the semantic analysis result of the master control command is executed. For example, the master control command is "play sunny days of zhou jilun", and after receiving the voice analysis result of the command, the service module executes the corresponding master control command according to the semantic analysis result, and plays sunny days of zhou jilun for the user. If the service module can accurately play the sunny days of Zhou Jieren for the user, the execution result of the main control command by the service module is successfully executed. And if the execution result is that the execution fails, writing the master control command into the working log. Illustratively, the master control command is "play the sunny day of Zhou Jieren". After the service module receives the voice analysis result of the command, if no music is played or wrong music is played, it indicates that the execution result of the main control command by the service module is execution failure. The master control command is written to the work log. The working log can record a master control command that the service module fails to execute. The master control command which is failed to be executed is recorded by using the working log, so that the reason for the failure of the master control command is conveniently analyzed, and the success rate of the business module in executing the master control command is improved.
And step 209, sending the execution result to a TTS broadcast interface for voice broadcast.
Wherein, the execution result comprises the execution success or the execution failure. Specifically, after an execution result of the service module on the main control command is obtained, the execution result is sent to a TTS broadcast interface for voice broadcast. If the execution result is that the execution is successful, the voice broadcast is executed successfully, and if the execution result is that the execution is failed, the voice broadcast is executed failed.
The voice testing method provided by the embodiment of the invention further refines the voice testing method. An active control command profile is received. Reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format. And sending the main control command to a TTS broadcast interface for voice broadcast. And sending the main control command to a semantic analysis module. And receiving a semantic analysis result of the master control command returned by the semantic analysis module, and matching the received semantic analysis result with a preset standard semantic analysis result. And if the matching is successful, sending the semantic analysis result to the service module. And if the matching fails, writing the master control command into the working log. And acquiring an execution result of the main control command by the service module. And if the execution result is that the execution fails, writing the master control command into the working log. And sending the execution result to a TTS (text to speech) broadcast interface for voice broadcast. According to the technical scheme of the embodiment of the invention, the master control command which is failed to be matched is recorded by using the working log, so that the semantic analysis module can conveniently train and update in a continuous iteration mode, and the accuracy of the semantic analysis module in analyzing the master control command is improved. The master control command which is failed to be executed is recorded by using the working log, so that the reason for the failure of the master control command is conveniently analyzed, and the success rate of the business module in executing the master control command is improved. And each module of the automatic test car machine executes the state of the master control command, so that the manpower resource is saved, and the user experience is improved.
Fig. 3 is a structural diagram of a voice testing system according to an embodiment of the present invention, and as shown in fig. 3, the voice testing system includes a car machine 301 and a background server 302.
The in-vehicle device 301 includes a test module and at least one service module. Fig. 4 is a structural diagram of a test module according to an embodiment of the present invention, as shown in fig. 4. The test module comprises a received active control command configuration file, a main control command reading interface, a semantic analysis result judging interface, a TTS (text to speech) broadcasting interface, a main control command uploading interface, a data distribution interface, a semantic analysis result receiving interface and a log counting interface. The service module and the semantic analysis module are connected with the test module, and a data distribution interface in the test module is connected with a data receiving interface in the service module.
The master control command is stored in the active control command configuration file; the master control command reading interface is used for reading master control commands in the active control command configuration file; the TTS broadcast interface is used for broadcasting the main control command received from the main control command reading interface and the service module; the main control command uploading interface is used for sending the received main control command to the semantic analysis module; the semantic analysis result receiving interface is used for receiving a semantic analysis result of the main control command sent by the semantic analysis module; the semantic analysis result judging interface is used for judging whether the analysis result of the main control command matches the standard semantic analysis result; the data distribution interface is used for sending a main control command and a semantic analysis result matched with the standard semantic analysis result to the data receiving interface of the service module; the log statistic interface is used for recording a main control command of semantic analysis failure and service module execution failure.
The background server 302 includes a semantic parsing module for performing semantic parsing on the received main control command.
The system also includes a display, a sound, a power source, and a vehicle controller. Fig. 5 is another structural diagram of a voice testing system according to an embodiment of the present invention, as shown in fig. 5. The power supply, the display and the sound equipment are connected with the car machine; the test module in the vehicle machine can send a main control command in a JSON format to the background server block and receive a semantic analysis result sent by the background server; and the service module in the vehicle machine is connected with the vehicle controller through a CAN bus.
For details of other implementations of the specific voice testing method, reference may be made to the description of the foregoing embodiments, which are not repeated herein.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Fig. 6 is a schematic structural diagram of a voice testing apparatus according to an embodiment of the present invention. The embodiment of the invention provides a voice test control device, which comprises:
a first receiving module 601, configured to receive an active control command configuration file;
a command reading module 602, configured to read a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format;
a command sending module 603, configured to send the master control command to a semantic parsing module;
a second receiving module 604, configured to receive a semantic parsing result of the master control command returned by the semantic parsing module, and send the semantic parsing result to a service module, where the service module is configured to execute the master control command based on the semantic parsing result.
Optionally, the apparatus further comprises:
and after the master control command in the active control command configuration file is read, sending the master control command to a TTS (text to speech) broadcast interface for voice broadcast.
Optionally, the command sending module 603 specifically includes:
receiving a semantic analysis result of the master control command returned by the semantic analysis module, matching the received semantic analysis result with a preset standard semantic analysis result, and if the matching is successful, sending the semantic analysis result to a service module;
and if the matching fails, writing the master control command into a working log.
Optionally, the apparatus further comprises: after the semantic analysis result is sent to a service module, acquiring an execution result of the service module on the master control command;
and sending the execution result to a TTS (text to speech) broadcast interface for voice broadcast.
Optionally, the apparatus further comprises: and after the execution result is sent to the TTS broadcast interface for voice broadcast, if the execution result is execution failure, writing the master control command into a working log.
Optionally, the apparatus is implemented in an experimental or driving environment.
The vehicle stability control device provided by the embodiment of the invention can execute the voice test method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and referring to fig. 7, a schematic structural diagram of a computer system 12 suitable for implementing the electronic device according to an embodiment of the present invention is shown. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the electronic device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement a voice test method provided by the embodiment of the present invention: receiving an active control command configuration file; reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format; sending the master control command to a semantic analysis module; and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to a service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of voice testing, the method comprising:
receiving an active control command configuration file; reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format; sending the master control command to a semantic analysis module; and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to a service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the voice testing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the voice testing apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for testing speech, comprising:
receiving an active control command configuration file;
reading a master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format;
sending the master control command to a semantic analysis module;
and receiving a semantic analysis result of the master control command returned by the semantic analysis module, and sending the semantic analysis result to a service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
2. The voice testing method according to claim 1, further comprising, after reading the master control command in the active control command profile:
and sending the main control command to a TTS (text to speech) broadcast interface for voice broadcast.
3. The voice testing method according to claim 1, wherein receiving a semantic parsing result of the master control command returned by the semantic parsing module, and sending the semantic parsing result to a service module comprises:
receiving a semantic analysis result of the master control command returned by the semantic analysis module, matching the received semantic analysis result with a preset standard semantic analysis result, and if the matching is successful, sending the semantic analysis result to a service module;
and if the matching fails, writing the master control command into a working log.
4. The voice testing method according to claim 3, wherein after sending the semantic parsing result to the service module, the method further comprises:
acquiring an execution result of the service module on the master control command;
and sending the execution result to a TTS (text to speech) broadcast interface for voice broadcast.
5. The voice test method according to claim 4, wherein after sending the execution result to the TTS interface for voice broadcast, the method further comprises:
and if the execution result is that the execution fails, writing the master control command into a working log.
6. The voice testing method according to any one of claims 1 to 5, wherein the voice testing method is performed in an experimental environment or a driving environment.
7. A voice test system is characterized by comprising a vehicle machine and a background server;
the car machine comprises a testing module and at least one service module, wherein the testing module is used for executing the voice testing method of any one of claims 1 to 6;
the background server comprises a semantic analysis module, and the semantic analysis module is used for performing semantic analysis on the received main control command.
8. A speech testing device, comprising:
the first receiving module is used for receiving the configuration file of the active control command;
the command reading module is used for reading the master control command in the active control command configuration file; wherein, the main control command adopts a lightweight data exchange format;
the command sending module is used for sending the main control command to the semantic analysis module;
and the second receiving module is used for receiving a semantic analysis result of the master control command returned by the semantic analysis module and sending the semantic analysis result to the service module, wherein the service module is used for executing the master control command based on the semantic analysis result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a speech testing method as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method for testing speech according to any one of claims 1 to 6.
CN202210071939.1A 2022-01-21 2022-01-21 Voice test method, system, device, electronic equipment and storage medium Pending CN114420092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210071939.1A CN114420092A (en) 2022-01-21 2022-01-21 Voice test method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210071939.1A CN114420092A (en) 2022-01-21 2022-01-21 Voice test method, system, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114420092A true CN114420092A (en) 2022-04-29

Family

ID=81275429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210071939.1A Pending CN114420092A (en) 2022-01-21 2022-01-21 Voice test method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114420092A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116013365A (en) * 2023-03-21 2023-04-25 深圳联友科技有限公司 Voice full-automatic test method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116013365A (en) * 2023-03-21 2023-04-25 深圳联友科技有限公司 Voice full-automatic test method
CN116013365B (en) * 2023-03-21 2023-06-02 深圳联友科技有限公司 Voice full-automatic test method

Similar Documents

Publication Publication Date Title
CN107516510B (en) Automatic voice testing method and device for intelligent equipment
US20200294489A1 (en) Methods, computing devices, and storage media for generating training corpus
CN109086199B (en) Method, terminal and storage medium for automatically generating test script
CN110764945B (en) Crash log processing method, device, equipment and storage medium
US11157699B2 (en) Interactive method and apparatus based on test-type application
US20200219494A1 (en) Conversational agent generation
US8402403B2 (en) Verifying a register-transfer level design of an execution unit
CN109947924B (en) Dialogue system training data construction method and device, electronic equipment and storage medium
CN107153695A (en) Log recording method and device, electronic equipment, storage medium
US20070022321A1 (en) Exception analysis methods and systems
CN111798833A (en) Voice test method, device, equipment and storage medium
CN111552642A (en) Voice automatic test system and method for vehicle machine
CN111061740B (en) Data synchronization method, device and storage medium
CN113485881B (en) Test method and device of temporary speed limiting server, electronic equipment and medium
JP7308335B2 (en) Test method, device, electronic equipment and storage medium for in-vehicle audio equipment
CN112379883A (en) Code file generation method, device, equipment and storage medium
CN114420092A (en) Voice test method, system, device, electronic equipment and storage medium
CN112416803A (en) Automatic testing method and device
CN110633258B (en) Log insertion method, device, computer device and storage medium
CN112069158A (en) Data restoration method, device, equipment and storage medium
CN114879923A (en) Multi-screen control method and device, electronic equipment and storage medium
KR20210042851A (en) audio recognition method, audio recognition apparatus, electronic equipment, computer readable storage medium and computer program
CN112783683A (en) Data processing method, device, equipment and storage medium
CN111767222A (en) Data model verification method and device, electronic equipment and storage medium
CN112948266B (en) Database grammar testing system, method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination