Communication Line Detection Method, Device, Computer Equipment and Storage Medium
By acquiring line identification information, sending connection requests, comparing voice recognition results and judging communication quality, the problem of low detection efficiency of traditional communication lines is solved, and efficient line detection and tag matching are achieved.
Patent Information
- Application Number
- CN202211519546.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-11-30
AI Technical Summary
Traditional communication line detection efficiency is low, and the reliability and stability of the line cannot be effectively judged.
By obtaining the line identification information to be tested, sending a communication connection request, generating a request failure identifier, receiving and comparing the voice recognition results, determining the voice communication quality, and judging the line detection results based on the request failure identifier and the voice communication quality.
It realizes automated detection of communication lines, improves detection efficiency and accuracy, and can quickly distinguish abnormal lines from normal lines.
Smart Images

Figure CN115914034B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a communication line detection method, device, computer equipment, and storage medium. Background Art
[0002] With the development of computer technology, the line management technology in the voice call system plays an increasingly crucial role in realizing stable and highly available voice call services. How to implement an effective and reliable communication line detection technology is an important research direction in line management.
[0003] In traditional technologies, the physical path connection conditions of each communication line are detected manually to determine the reliability and stability of each communication line, but the communication line detection efficiency is low. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a communication line detection method, device, computer equipment, and computer-readable storage medium, which can effectively improve the efficiency of communication line detection.
[0005] A communication line detection method includes:
[0006] Obtain the identification information of the line to be detected;
[0007] Determine the target line to be detected according to the identification information of the line to be detected;
[0008] Send a communication connection request to the target electronic device corresponding to the target line to be detected;
[0009] When the communication connection with the target electronic device fails, generate a request failure flag;
[0010] When the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the voice recognition result sent by the target electronic device, where the voice recognition result is obtained by the target electronic device performing voice recognition on the preset audio;
[0011] Compare the voice recognition result with the standard recognition result corresponding to the preset audio to obtain the voice recognition rate;
[0012] Compare the voice recognition rate with a preset threshold to determine the voice communication quality of the target line to be detected;
[0013] Determine the detection result of the target line to be detected according to the request failure flag and the voice communication quality, where the detection result includes that the line detection is qualified and the line detection is unqualified.
[0014] In one embodiment, when the communication connection with the target electronic device fails, generating a request failure flag includes:
[0015] When the target electronic device is in a shutdown state or a non-existent number state, terminate the communication connection request with the target electronic device and generate a request failure identifier.
[0016] In one embodiment, when the communication connection with the target electronic device is successfully established, send a preset audio to the target electronic device and receive the speech recognition result sent by the target electronic device, including:
[0017] When the communication connection with the target electronic device is successfully established, send a preset audio to the target electronic device, and the preset audio is the audio corresponding to the preset text data;
[0018] Receive the speech recognition text data sent by the target electronic device, and the speech recognition text data is the text data obtained by the target electronic device through speech recognition of the preset audio;
[0019] Compare the speech recognition result with the standard recognition result corresponding to the preset audio to obtain the speech recognition rate, including:
[0020] Compare the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate.
[0021] In one embodiment, compare the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate, including:
[0022] Determine the number of repeated characters in the speech recognition text data and the preset text data;
[0023] Calculate the ratio of the number of repeated characters to the total number of characters in the preset text data to obtain the speech recognition accuracy rate.
[0024] In one embodiment, compare the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate, including:
[0025] Determine the number of repeated words in the speech recognition text data and the preset text data;
[0026] Calculate the ratio of the number of repeated words to the total number of words in the preset text data to obtain the speech recognition accuracy rate.
[0027] In one embodiment, compare the speech recognition rate with a preset threshold to determine the speech communication quality of the target line to be measured, including:
[0028] When the speech recognition accuracy rate is greater than or equal to the first preset threshold, determine that the speech communication quality of the target line to be measured is the first level;
[0029] When the speech recognition accuracy rate is greater than or equal to the second preset threshold and less than the first preset threshold, determine that the voice communication quality of the target line to be tested is the second level, where the second preset threshold is less than the first preset threshold;
[0030] When the speech recognition accuracy rate is less than the second preset threshold, determine that the voice communication quality of the target line to be tested is the third level.
[0031] In one embodiment, determining the detection result of the target line to be tested according to the request failure flag and the voice communication quality includes:
[0032] Determine the corresponding unsmooth line according to the request failure flag, where the unsmooth line is a line that cannot successfully establish a communication connection with the target electronic device;
[0033] Determine that the detection result of the unsmooth line is that the line detection is unqualified;
[0034] Determine the corresponding target smooth line according to the request failure flag, where the target smooth line is a line that can successfully establish a communication connection with the target electronic device;
[0035] When the voice communication quality of the target smooth line is the first level, determine that the detection result of the target smooth line is that the line detection is qualified.
[0036] A communication line detection device includes:
[0037] A line determination module, configured to obtain the identification information of the line to be tested; determine the target line to be tested according to the identification information of the line to be tested;
[0038] A communication module, configured to send a communication connection request to the target electronic device corresponding to the target line to be tested; generate a request failure flag when the communication connection with the target electronic device fails; when the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the speech recognition result sent by the target electronic device, where the speech recognition result is obtained by the target electronic device performing speech recognition on the preset audio;
[0039] A calculation module, configured to obtain the speech recognition rate by comparing the speech recognition result with the standard recognition result corresponding to the preset audio; compare the speech recognition rate with the preset threshold to determine the voice communication quality of the target line to be tested;
[0040] A judgment module, configured to determine the detection result of the target line to be tested according to the request failure flag and the voice communication quality, where the detection result includes that the line detection is qualified and the line detection is unqualified.
[0041] A computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0042] Obtain the identification information of the line to be tested;
[0043] Determine the target line to be tested according to the identification information of the line to be tested;
[0044] Send a communication connection request to the target electronic device corresponding to the target line to be tested;
[0045] When the communication connection with the target electronic device fails, generate a request failure flag;
[0046] When the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the voice recognition result sent by the target electronic device, where the voice recognition result is obtained by the target electronic device performing voice recognition on the preset audio;
[0047] Compare the voice recognition result with the standard recognition result corresponding to the preset audio to obtain the voice recognition rate;
[0048] Compare the voice recognition rate with a preset threshold to determine the voice communication quality of the target line to be tested;
[0049] Determine the detection result of the target line to be tested according to the request failure flag and the voice communication quality, where the detection result includes that the line detection is qualified and the line detection is unqualified.
[0050] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0051] Obtain the identification information of the line to be tested;
[0052] Determine the target line to be tested according to the identification information of the line to be tested;
[0053] Send a communication connection request to the target electronic device corresponding to the target line to be tested;
[0054] When the communication connection with the target electronic device fails, generate a request failure flag;
[0055] When the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the voice recognition result sent by the target electronic device, where the voice recognition result is obtained by the target electronic device performing voice recognition on the preset audio;
[0056] Compare the voice recognition result with the standard recognition result corresponding to the preset audio to obtain the voice recognition rate;
[0057] Compare the voice recognition rate with a preset threshold to determine the voice communication quality of the target line to be tested;
[0058] Determine the detection result of the target line to be tested according to the request failure identifier and the voice communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified.
[0059] The above communication line detection method, device, computer device and storage medium obtain the identification information of the line to be tested, determine the target line to be tested according to the identification information of the line to be tested, send a communication connection request to the target electronic device corresponding to the target line to be tested. When the communication connection with the target electronic device fails, a request failure identifier is generated. When the communication connection with the target electronic device is successful, a preset audio is sent to the target electronic device, and the voice recognition result sent by the target electronic device is received. The voice recognition rate is obtained by comparing the voice recognition result with the standard recognition result corresponding to the preset audio, and the voice communication quality of the target line to be tested is determined by comparing the voice recognition rate with the preset threshold. The detection result of the target line to be tested is determined according to the request failure identifier and the voice communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified. In this way, by analyzing the voice recognition result sent by the target electronic device after detecting the connection situation with the target electronic device and the line is connected, the communication quality of the target line to be tested is judged, and the corresponding labels are matched for each line by comprehensively judging the line connection state and the line communication quality, realizing the automatic detection of the line, thereby effectively improving the efficiency of communication line detection. Brief Description of the Drawings
[0060] Figure 1 It is an application environment diagram of the communication line detection method in an embodiment;
[0061] Figure 2 It is a flowchart of the communication line detection method in an embodiment;
[0062] Figure 3 It is a flowchart of generating the request failure identifier in an embodiment;
[0063] Figure 4 It is a flowchart of determining the voice recognition accuracy rate in an embodiment;
[0064] Figure 5 It is a flowchart of determining the voice recognition accuracy rate in an embodiment;
[0065] Figure 6 It is a flowchart of determining the voice recognition accuracy rate in an embodiment;
[0066] Figure 7 It is a flowchart of determining the voice communication quality in an embodiment;
[0067] Figure 8 It is a flowchart of determining the line detection result in an embodiment;
[0068] Figure 9 is a structural block diagram of a communication line detection device in an embodiment;
[0069] Figure 10 is an internal structure diagram of a computer device in an embodiment. Specific Embodiments
[0070] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0071] The communication line detection method provided by the embodiments of the present application can be applied to, for example, Figure 1 the application environment shown. The computer device 102 obtains the identification information of the line to be measured, determines the target line to be measured according to the identification information of the line to be measured, sends a communication connection request to the target electronic device corresponding to the target line to be measured, generates a request failure flag when the communication connection with the target electronic device fails, and sends a preset audio to the target electronic device when the communication connection with the target electronic device is successful, and receives the speech recognition result sent by the target electronic device. The speech recognition result is obtained by the target electronic device performing speech recognition on the preset audio. The speech recognition rate is obtained by comparing the speech recognition result with the standard recognition result corresponding to the preset audio, and the speech communication quality of the target line to be measured is determined by comparing the speech recognition rate with a preset threshold. The detection result of the target line to be measured is determined according to the request failure flag and the speech communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified. Among them, the computer device 102 may specifically include, but is not limited to, various personal computers, laptop computers, servers, smart phones, tablet computers, smart cameras, and portable wearable devices, etc.
[0072] In one embodiment, as Figure 2 shown, a communication line detection method is provided. Taking the method applied to Figure 1 the computer device 102 therein as an example, the method includes the following steps:
[0073] Step S202: Obtain the identification information of the line to be measured.
[0074] Among them, the identification information of the line to be measured is used to identify the target line that needs to be subjected to line detection.
[0075] Step S204: Determine the target line to be measured according to the identification information of the line to be measured.
[0076] Specifically, the computer device obtains the line identification information to be measured according to the foregoing steps, then reads the serial number of the line identification to be measured in the line identification information to be measured, and determines the corresponding target line to be measured according to the serial number of the line identification to be measured.
[0077] Step S206: Send a communication connection request to the target electronic device corresponding to the target line to be measured.
[0078] Among them, the communication connection request includes the network address information of the target electronic device, the port sequence information, and the network address information of each communication device on the target line to be measured, etc.
[0079] Specifically, the computer device sends a communication connection request carrying the target line to be measured information, the network IP address and port number of the target electronic device to the target electronic device corresponding to the target line to be measured.
[0080] Step S208: When the communication connection with the target electronic device fails, generate a request failure flag.
[0081] Specifically, after the computer device sends the communication connection request to the target electronic device corresponding to the target line to be measured according to the foregoing steps, it receives the connection request feedback information from the target electronic device in real time. When the waiting time exceeds the preset threshold, it will be considered that the communication connection fails, or receives the connection failure information fed back by the target line to be measured, such as feedback information indicating that the target electronic device is an invalid number or in a shutdown state, etc., which indicates a connection failure.
[0082] Step S210: When the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the speech recognition result sent by the target electronic device. The speech recognition result is obtained by the target electronic device performing speech recognition on the preset audio.
[0083] Specifically, after the computer device successfully establishes a communication connection with the target electronic device according to the foregoing steps, it sends a preset audio to the target electronic device and receives the speech recognition result sent from the target electronic device end in real time. Among them, the preset audio can be a Mandarin audio or an English audio or other foreign language audio of a text reading, or a Mandarin audio of a text reading (such as Cantonese, Sichuan dialect, etc.). The preset audio can also be a standard audio with a specific amplitude ratio, and receive the recognition result of the target electronic device end performing frequency and amplitude recognition on this standard audio with a specific amplitude ratio.
[0084] Step S212: Compare the speech recognition result with the standard recognition result corresponding to the preset audio to obtain the speech recognition rate.
[0085] Specifically, the computer device compares the speech recognition result obtained in the foregoing steps with the standard recognition result corresponding to the preset audio to obtain the error of speech recognition, and determines the speech recognition rate according to the error of speech recognition.
[0086] Step S214: Compare the speech recognition rate with a preset threshold to determine the speech communication quality of the target line to be measured.
[0087] Specifically, the computer device compares the speech recognition rate with a preset threshold. When the speech recognition rate is greater than the preset threshold, it is determined that the correct rate of speech recognition is relatively high, indicating that the communication quality of the current detected line is excellent. The speech communication quality of the target line to be measured is determined according to the comparison result between the speech recognition rate and the preset threshold, where the preset threshold can be a single threshold or multiple thresholds.
[0088] Step S216: Determine the detection result of the target line to be measured according to the request failure flag and the speech communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified.
[0089] Specifically, the computer device determines the detection result of the target line to be measured according to the request failure flag and the speech communication quality. When the communication connection request between the computer device and the target electronic device corresponding to the current detected line fails, the current detected line is marked as unqualified according to the request failure flag. When the communication connection between the computer device and the target electronic device corresponding to the current detected line is successful, the detection result corresponding to the current detected line is determined by the speech communication quality of the current detected line determined in the foregoing steps.
[0090] In this embodiment, by obtaining the identification information of the line to be measured, determining the target line to be measured according to the identification information of the line to be measured, sending a communication connection request to the target electronic device corresponding to the target line to be measured, generating a request failure flag when the communication connection with the target electronic device fails, sending a preset audio to the target electronic device when the communication connection with the target electronic device is successful, receiving the speech recognition result sent by the target electronic device, comparing the speech recognition result with the standard recognition result corresponding to the preset audio to obtain the speech recognition rate, comparing the speech recognition rate with a preset threshold to determine the speech communication quality of the target line to be measured, and determining the detection result of the target line to be measured according to the request failure flag and the speech communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified. In this way, by analyzing the speech recognition result sent from the target electronic device end according to the connection situation with the target electronic device and after the line is connected, the communication quality of the target line to be measured is judged, and the corresponding tags are matched for each line by comprehensively judging the line connection state and the line communication quality, realizing the automatic detection of the line, thereby effectively improving the efficiency of communication line detection.
[0091] In one embodiment, as Figure 3 shown, when the communication connection with the target electronic device fails, a request failure identifier is generated, including:
[0092] Step S302, when the target electronic device is in a shutdown state or a non-existent number state, terminate the communication connection request with the target electronic device and generate a request failure identifier.
[0093] Specifically, the computer device sends a communication connection request carrying the target line information to be measured, the network IP address and port number of the target electronic device to the target electronic device corresponding to the target line to be measured according to the foregoing steps, and receives the communication connection result fed back from the target electronic device in real time. When the waiting time for the computer device to wait for the feedback information from the target electronic device exceeds the preset duration, it is determined that the communication connection fails and a request failure identifier is generated. Or when the received feedback information shows request failure information such as the target electronic device being a non-existent number or in a shutdown state, a request failure identifier is generated.
[0094] In this embodiment, by receiving the feedback information of the communication connection request to determine the working state of the target electronic device to generate the corresponding request failure identifier. When the target electronic device is in a shutdown state or a non-existent number state, terminate the communication connection request with the target electronic device and generate a request failure identifier, effectively realizing the effective distinction between the abnormal communication line and the corresponding target electronic device and the normal line and target electronic device, and effectively improving the detection efficiency of the communication line by generating the corresponding request failure identifier.
[0095] In one embodiment, as Figure 4 shown, when the communication connection with the target electronic device is successful, a preset audio is sent to the target electronic device and the speech recognition result sent by the target electronic device is received, including:
[0096] Step S402, when the communication connection with the target electronic device is successful, send a preset audio to the target electronic device, and the preset audio is the audio corresponding to the preset text data.
[0097] Specifically, when the computer device successfully establishes a communication connection with the target electronic device, a preset audio is sent to the target electronic device, where the preset audio is audio corresponding to preset text data, which can be a text recitation audio. The computer device will adjust the playback speed of the audio in the preset audio to generate text recitation audio with different speaking speeds, and then play the text recitation audio with different speaking speeds in sequence, so as to obtain the speech recognition results corresponding to the text recitation audio at each speaking speed. The speech recognition result with the worst speech recognition accuracy among the speech recognition results corresponding to the text recitation audio at each speaking speed can be used as the target speech recognition result and sent to the computer device, or the average recognition rate of the speech recognition results corresponding to the text recitation audio at each speaking speed can be used as the target speech recognition result and sent to the computer device.
[0098] Step S404: receiving speech recognition text data sent by the target electronic device, where the speech recognition text data is text data obtained by the target electronic device performing speech recognition on preset audio.
[0099] Specifically, the computer device receives the speech recognition text data corresponding to the text recitation audios at different speech rates in the aforementioned steps respectively, and may also receive the speech recognition text data corresponding to a certain speech rate multiple times.
[0100] The speech recognition rate is obtained by comparing the speech recognition result with the standard recognition result corresponding to the preset audio, including:
[0101] Step S406, comparing the speech recognition text data with the preset text data to obtain the speech recognition accuracy.
[0102] Specifically, the computer device compares the voice recognition text data received in the aforementioned step with the preset text data to generate a voice recognition accuracy rate. It can also be that the computer device compares the multiple voice recognition text data received multiple times in the aforementioned step, calculates multiple voice recognition accuracy rates between the multiple voice recognition text data and the preset text data, and then takes the average of the multiple voice recognition accuracy rates to obtain the final target voice recognition accuracy rate, where the multiple times can be a preset number of times.
[0103] In this embodiment, the computer device determines the following process in real time: when the computer device successfully establishes a communication connection with the target electronic device, a preset audio is sent to the target electronic device, and then the voice recognition text data sent by the target electronic device is received, and the voice recognition text data is compared with the preset text data to obtain the voice recognition accuracy. After the data transmission of the target line to be tested, the voice recognition accuracy of the voice recognition text data compared with the preset text data is used to accurately determine the data transmission reliability of the data transmission of the target line to be tested, thereby improving the accuracy of the detection of the data transmission performance and quality of the target line to be tested.
[0104] In one embodiment, as Figure 5 shown, comparing the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate, including:
[0105] Step S502, determining the number of repeated words in the speech recognition text data and the preset text data.
[0106] Step S504, calculating the ratio of the number of repeated words to the total number of words in the preset text data to obtain the speech recognition accuracy rate.
[0107] In this embodiment, the speech recognition text data sent from the target electronic device is obtained through the foregoing steps, all the word data in the speech recognition text is extracted, the words in the speech recognition text data are compared with the preset text data, and the repeated word data in the two text data is determined, effectively improving the accuracy rate of the recognition result corresponding to the speech recognition text data and the preset text data.
[0108] In one embodiment, as Figure 6 shown, comparing the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate, including:
[0109] Step S602, determining the number of repeated words or idioms in the speech recognition text data and the preset text data.
[0110] Step S604, calculating the ratio of the number of repeated words or idioms to the total number of words or idioms in the preset text data to obtain the speech recognition accuracy rate.
[0111] In this embodiment, the speech recognition text data sent from the target electronic device is obtained through the foregoing steps, all the word or idiom data in the speech recognition text is extracted, the word or idiom data in the speech recognition text data is compared with the word or idiom data in the preset text data, the number of repeated words or idioms in the two text data is determined, and then the ratio of the number of repeated words or idioms to the total number of words in the preset text data is calculated to obtain the speech recognition accuracy rate, avoiding the situation where the words are the same but the idioms are different, resulting in different semantic meanings, and more effectively improving the accuracy of semantic detection.
[0112] In one implementation, as Figure 7 shown, comparing the speech recognition rate with a preset threshold to determine the voice communication quality of the target line to be measured, including:
[0113] Step S702, when the speech recognition accuracy rate is greater than or equal to the first preset threshold, determining that the voice communication quality of the target line to be measured is the first level.
[0114] Step S704: When the speech recognition accuracy rate is greater than or equal to the second preset threshold and less than the first preset threshold, determine that the voice communication quality of the target line to be tested is the second level, where the second preset threshold is less than the first preset threshold.
[0115] Step S706: When the speech recognition accuracy rate is less than the second preset threshold, determine that the voice communication quality of the target line to be tested is the third level.
[0116] In this embodiment, by setting the first preset threshold and the second preset threshold, and judging the size relationship between the speech recognition rate obtained in the foregoing steps and the first preset threshold and the second preset threshold, the voice communication quality of the target line to be tested is determined, so as to quickly judge the voice communication quality of the target line to be tested and improve the accuracy of detection.
[0117] In one embodiment, as Figure 8 shown, determining the detection result of the target line to be tested according to the request failure flag and the voice communication quality includes:
[0118] Step S802: Determine the corresponding unsmooth line according to the request failure flag, where the unsmooth line is a line that cannot successfully establish a communication connection with the target electronic device.
[0119] Step S804: Determine that the detection result of the unsmooth line is that the line detection is unqualified.
[0120] Step S806: Determine the corresponding target smooth line according to the request failure flag, where the target smooth line is a line that can successfully establish a communication connection with the target electronic device.
[0121] Step S808: When the voice communication quality of the target smooth line is the first level, determine that the detection result of the target smooth line is that the line detection is qualified.
[0122] In this embodiment, the detection result of the target line to be tested is judged in two levels. First, it is judged whether the target line to be tested is a line that can establish a communication connection through the request failure flag corresponding to the target line to be tested. When the target line to be tested is a line that can establish a communication connection, the voice communication quality is used to judge the communication quality level of the target line to be tested, and then the detection result of the target line to be tested is determined.
[0123] This application also provides an application scenario, which applies the above communication line detection method. This method is applied to the scenario of communication line detection. Specifically, the application of this communication line detection method in this application scenario is as follows:
[0124] 1. The line management system periodically initiates an outbound call from the customer leg to the line to be tested via FS (FreeSwitch) instructions. After reaching a specific inbound line, it is transferred to the AI robot side to complete the entire call process;
[0125] 2. When connected, a customized playback file is played on the outbound line side, and the inbound side uses the AI speech recognition function to identify the line test effect. After the call ends, the result is sent back to the line management system;
[0126] 3. The line quality is identified by grading:
[0127] a. The first level: If the line can be connected to the robot side, it means the line can be connected;
[0128] b. The second level: The AI robot on the inbound side uses automatic speech recognition technology to identify the speech stream, and diagnoses the line quality through the recognition rate. If the recognition rate exceeds 90%, the line quality is considered excellent;
[0129] c. Use the AI ability to identify and warn abnormal outbound display numbers, and remove the marked outbound display numbers from the number resource pool;
[0130] d. Use the AI voiceprint recognition ability to verify the outbound number. For numbers that are not in service or in a shutdown state, the call is directly terminated, and the number is prohibited from being called for a period of time to reduce call losses;
[0131] 4. The line management system grades and tags the lines by returning information through the robot side interface, and removes abnormal outbound display numbers. When a normal outbound call is initiated, routing judgment is performed according to the outbound rules to avoid making outbound calls on abnormal lines, ensuring the high availability of the system, reducing call losses, and thus improving the connection rate.
[0132] The above communication line detection method, device, computer equipment and storage medium determine the communication quality of the target line to be tested by analyzing data according to the connection situation with the virtual customer side and the speech recognition results sent by the virtual client after the line is connected, and comprehensively judge based on the line connection status and the line communication quality to match corresponding tags to each line, realizing the automatic detection of the line, thereby effectively improving the efficiency of communication line detection.
[0133] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this document, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of the steps or stages in other steps or other steps.
[0134] In one embodiment, as Figure 9 shown, a communication line detection device is provided. This device can be a software module, a hardware module, or a combination of both to form a part of a computer device. Specifically, the device includes: a line determination module 902, a communication module 904, a calculation module 906, and a judgment module 908, where:
[0135] The line determination module 902 is configured to obtain the identification information of the line to be measured; determine the target line to be measured according to the identification information of the line to be measured;
[0136] The communication module 904 is configured to send a communication connection request to the target electronic device corresponding to the target line to be measured; generate a request failure flag when the communication connection with the target electronic device fails; when the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the speech recognition result sent by the target electronic device. The speech recognition result is obtained by the target electronic device performing speech recognition on the preset audio;
[0137] The calculation module 906 is configured to compare the speech recognition result with the standard recognition result corresponding to the preset audio to obtain the speech recognition rate; compare the speech recognition rate with a preset threshold to determine the voice communication quality of the target line to be measured;
[0138] The judgment module 908 is configured to determine the detection result of the target line to be measured according to the request failure flag and the voice communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified.
[0139] The above communication line detection device determines the communication quality of the target line to be measured by performing data analysis through detecting the speech recognition result sent from the target electronic device end after the connection with the target electronic device and the line is connected, and comprehensively judges by combining the line connection state and the line communication quality to match corresponding labels to each line, realizing the automatic detection of the line, thereby effectively improving the efficiency of communication line detection.
[0140] In one embodiment, the communication module 904 is further configured to terminate a communication connection request with the target electronic device and generate a request failure identifier when the target electronic device is in a shutdown state or a non-existent number state.
[0141] In one embodiment, the calculation module 906 is further configured to send a preset audio to the target electronic device when a communication connection with the target electronic device is successfully established, where the preset audio is an audio corresponding to preset text data; receive speech recognition text data sent by the target electronic device, where the speech recognition text data is text data obtained by the target electronic device performing speech recognition on the preset audio; and compare the speech recognition text data with the preset text data to obtain a speech recognition accuracy rate.
[0142] In one embodiment, the calculation module 906 is further configured to determine the number of repeated characters in the speech recognition text data and the preset text data; and calculate a ratio of the number of repeated characters to the total number of characters in the preset text data to obtain the speech recognition accuracy rate.
[0143] In one embodiment, the calculation module 906 is further configured to determine the number of repeated words in the speech recognition text data and the preset text data; and calculate a ratio of the number of repeated words to the total number of words in the preset text data to obtain the speech recognition accuracy rate.
[0144] In one embodiment, the judgment module 908 is further configured to determine that the voice communication quality of the target line to be tested is at the first level when the speech recognition accuracy rate is greater than or equal to a first preset threshold; determine that the voice communication quality of the target line to be tested is at the second level when the speech recognition accuracy rate is greater than or equal to a second preset threshold and less than the first preset threshold, where the second preset threshold is less than the first preset threshold; and determine that the voice communication quality of the target line to be tested is at the third level when the speech recognition accuracy rate is less than the second preset threshold.
[0145] For the specific limitations of the communication line detection device, reference may be made to the limitations on the communication line detection method in the foregoing text, which will not be elaborated here. Each module in the foregoing communication line detection device may be implemented in whole or in part by software, hardware, and their combination. The foregoing modules may be embedded in the processor of the computer device in a hardware form or be independent of it, or may be stored in the memory of the computer device in a software form, so that the processor can call and execute the operations corresponding to the foregoing modules.
[0146] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 10As shown in the figure. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it realizes a communication line detection method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, a touchpad, or a mouse, etc.
[0147] Those skilled in the art can understand that Figure 10 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0148] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are realized.
[0149] In one embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by the processor, the steps in the above method embodiments are realized.
[0150] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the above method embodiments.
[0151] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0152] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0153] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A communication line detection method, characterized in that The method includes: Obtain the identification information of the line to be tested; Determine the target line to be tested according to the identification information of the line to be tested; Send a communication connection request to the target electronic device corresponding to the target line to be tested; When the establishment of a communication connection with the target electronic device fails, generate a request failure flag; When the establishment of a communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the speech recognition result sent by the target electronic device. The speech recognition result is obtained by the target electronic device performing speech recognition on the preset audio, including: adjusting the playback speed of the audio in the preset audio to generate text recitation audios with different speech rates, playing the text recitation audios with different speech rates in sequence, and then obtaining the speech recognition results corresponding to the text recitation audios at each speech rate. Take the speech recognition result with the worst speech recognition accuracy among the speech recognition results corresponding to the text recitation audios at each speech rate as the target speech recognition result; receive the target speech recognition result sent by the target electronic device; Compare the speech recognition result with the standard recognition result corresponding to the preset audio to obtain the speech recognition rate; Compare the speech recognition rate with a preset threshold to determine the voice communication quality of the target line to be tested; Determine the detection result of the target line to be tested according to the request failure flag and the voice communication quality. The detection result includes that the line detection is qualified and the line detection is unqualified.
2. The method according to claim 1, wherein The step of generating a request failure flag when the establishment of a communication connection with the target electronic device fails includes: When the target electronic device is in a shutdown state or a non-existent number state, terminate the communication connection request with the target electronic device and generate a request failure flag.
3. The method according to claim 1, wherein The step of sending a preset audio to the target electronic device and receiving the speech recognition result sent by the target electronic device when the establishment of a communication connection with the target electronic device is successful includes: When the establishment of a communication connection with the target electronic device is successful, send a preset audio to the target electronic device. The preset audio is the audio corresponding to the preset text data; Receive the speech recognition text data sent by the target electronic device. The speech recognition text data is the text data obtained by the target electronic device performing speech recognition on the preset audio; The step of comparing the speech recognition result with the standard recognition result corresponding to the preset audio to obtain the speech recognition rate includes: Compare the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate.
4. The method according to claim 3, characterized in that The step of comparing the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate includes: Determine the number of repeated characters in the speech recognition text data and the preset text data; Perform a ratio calculation on the number of repeated characters and the total number of characters in the preset text data to obtain the speech recognition accuracy rate.
5. The method according to claim 3, wherein The step of comparing the speech recognition text data with the preset text data to obtain the speech recognition accuracy rate includes: Determine the number of repeated words in the speech recognition text data and the preset text data; Calculate the speech recognition accuracy rate by calculating the ratio of the number of the repeated words to the total number of words in the preset text data.
6. The method according to claim 3, wherein The step of comparing the speech recognition rate with a preset threshold to determine the speech communication quality of the target line to be measured includes: When the speech recognition accuracy rate is greater than or equal to a first preset threshold, determine that the speech communication quality of the target line to be measured is at a first level; When the speech recognition accuracy rate is greater than or equal to a second preset threshold and less than the first preset threshold, determine that the speech communication quality of the target line to be measured is at a second level, where the second preset threshold is less than the first preset threshold; When the speech recognition accuracy rate is less than the second preset threshold, determine that the speech communication quality of the target line to be measured is at a third level.
7. The method according to claim 6, wherein The step of determining the detection result of the target line to be measured according to the request failure flag and the speech communication quality includes: Determine the corresponding unsmooth line according to the request failure flag, where the unsmooth line is a line that cannot successfully establish a communication connection with the target electronic device; Determine that the detection result of the unsmooth line is that the line detection is unqualified; Determine the corresponding target smooth line according to the request failure flag, where the target smooth line is a line that can successfully establish a communication connection with the target electronic device; When the speech communication quality of the target smooth line is at the first level, determine that the detection result of the target smooth line is that the line detection is qualified.
8. A communication line detection device, characterized in that, The device includes: A line determination module, configured to obtain the line identification information to be measured; determine the target line to be measured according to the line identification information to be measured; A communication module, configured to send a communication connection request to the target electronic device corresponding to the target line to be measured; generate a request failure flag when the communication connection with the target electronic device fails; when the communication connection with the target electronic device is successful, send a preset audio to the target electronic device and receive the speech recognition result sent by the target electronic device, where the speech recognition result is obtained by the target electronic device performing speech recognition on the preset audio; and is further configured to: adjust the playback speed of the audio in the preset audio to generate text recitation audios with different speech rates, sequentially play the text recitation audios with different speech rates, and thus obtain the speech recognition results corresponding to the text recitation audios at each speech rate, and use the speech recognition result with the worst speech recognition accuracy among the speech recognition results corresponding to the text recitation audios at each speech rate as the target speech recognition result; receive the target speech recognition result sent by the target electronic device; A calculation module, configured to obtain a speech recognition rate by comparing the speech recognition result with the standard recognition result corresponding to the preset audio; compare the speech recognition rate with a preset threshold to determine the speech communication quality of the target line to be measured; A judgment module, configured to determine the detection result of the target line to be measured according to the request failure flag and the speech communication quality, where the detection result includes that the line detection is qualified and the line detection is unqualified.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice merit evaluation method in transmission line and evaluation device
JP1997326773A