CN117896462A - Link quality monitoring method, system, electronic equipment and storage medium - Google Patents

Link quality monitoring method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN117896462A
CN117896462A CN202311613366.1A CN202311613366A CN117896462A CN 117896462 A CN117896462 A CN 117896462A CN 202311613366 A CN202311613366 A CN 202311613366A CN 117896462 A CN117896462 A CN 117896462A
Authority
CN
China
Prior art keywords
signal
voice
dtmf
test
quality
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
CN202311613366.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.)
Beijing Tianyuan Innovation Technology Co ltd
Original Assignee
Beijing Tianyuan Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tianyuan Innovation Technology Co ltd filed Critical Beijing Tianyuan Innovation Technology Co ltd
Priority to CN202311613366.1A priority Critical patent/CN117896462A/en
Publication of CN117896462A publication Critical patent/CN117896462A/en
Pending legal-status Critical Current

Links

Landscapes

  • Monitoring And Testing Of Exchanges (AREA)

Abstract

The invention provides a link quality monitoring method, a system, electronic equipment and a storage medium, which are applied to an initiating terminal and comprise the following steps: transmitting a first Dual Tone Multi Frequency (DTMF) signal to a receiving end when a call is initiated to the receiving end; receiving a reference voice played by a receiving end, recording the reference voice, and storing the reference voice to obtain a test voice; receiving a second DTMF signal sent by the receiving end after the reference voice is played, recording the second DTMF signal, and storing the second DTMF signal to obtain signal data; detecting a problem in signal transmission according to the signal data; and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice. The invention can comprehensively consider two aspects of signal transmission and voice quality by detecting the problems such as packet loss, noise and the like in signal transmission by using DTMF and evaluating the voice quality by using a PESQ algorithm, thereby providing more comprehensive voice quality evaluation.

Description

Link quality monitoring method, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of quality monitoring technologies of telephone networks, and in particular, to a method, a system, an electronic device, and a storage medium for monitoring link quality.
Background
The link quality monitoring of the program controlled switching network is a key link for ensuring the normal operation of the communication network. In modern communication systems, the program-controlled switching network carries a large amount of communication traffic, connecting various terminal devices and service providers. Therefore, ensuring the stability and reliability of the link quality is important for ensuring the communication quality and providing efficient communication services.
First, the necessity of link quality monitoring in a programmable switching network is manifested in troubleshooting and problem diagnosis. The network link may be affected by various factors, such as physical medium faults, equipment faults, congestion, etc., by monitoring the link quality, potential fault points and problems can be found in time, and corresponding measures are taken to repair, which helps to reduce the time of communication interruption and improve the availability and reliability of the network.
Secondly, the link quality monitoring is also of great significance in guaranteeing the stability and safety of key services. Many key applications, such as voice communication, have extremely high requirements on stability and reliability of the network, and potential security vulnerabilities and malicious attacks can be found in time by monitoring the link quality, and corresponding security measures are adopted for protection and coping.
The monitoring of link quality in a programmable switching network is critical to ensure proper operation of the communication network and to provide high quality communication services. The method can help to find and solve network faults and problems, evaluate network performance, conduct capacity planning and optimization, and guarantee stability and safety of key services. By effective link quality monitoring, a stable, efficient and reliable communication network can be established, and the ever-increasing communication demands of people are met.
Therefore, how to implement link quality monitoring for an end-to-end program controlled switching network is a current problem to be solved.
Disclosure of Invention
The invention provides a link quality monitoring method, a system, electronic equipment and a storage medium, which are used for solving the defect of how to realize the link quality monitoring of an end-to-end program-controlled switching network in the prior art, comprehensively considering two aspects of signal transmission and voice quality, and providing more comprehensive voice quality evaluation.
The invention provides a link quality monitoring method, which is applied to an initiating terminal and comprises the following steps:
transmitting a first Dual Tone Multi Frequency (DTMF) signal to a receiving end when a call is initiated to the receiving end;
receiving a reference voice played by a receiving end, recording the reference voice, and storing the reference voice to obtain a test voice;
receiving a second DTMF signal sent by the receiving end after the reference voice is played, recording the second DTMF signal, and storing the second DTMF signal to obtain signal data;
detecting a problem in signal transmission according to the signal data;
and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
According to the method for monitoring link quality provided by the invention, the problem in signal transmission is detected according to the signal data, and the method comprises the following steps:
decoding the signal data to obtain an audio waveform;
if two distinct frequency peaks are not detected in the audio waveform, it is determined that the signal is problematic in the transmission process.
According to the method for monitoring link quality provided by the invention, the problem in signal transmission is detected according to the signal data, and the method further comprises the following steps:
if two obvious frequency peaks are detected in the audio waveform, the low-frequency peak position and the high-frequency peak position are analyzed, and the quality, interference and attenuation conditions of the signal in the transmission process are determined.
According to the link quality monitoring method provided by the invention, the objective voice quality evaluation algorithm is adopted to evaluate the voice quality based on the reference voice and the test voice, and the link quality monitoring method comprises the following steps:
preprocessing a reference signal and a test signal; the reference signal is a prerecorded reference voice, and the test signal is a test voice obtained through transmission;
calculating the proximity between the preprocessed reference signal and the test signal;
based on the proximity between the reference signal and the test signal, speech quality is evaluated.
According to the link quality monitoring method provided by the invention, the method for calculating the proximity between the preprocessed reference signal and the test signal comprises the following steps:
dividing the reference signal and the test signal into frames with preset frame lengths;
extracting characteristics of a reference signal and a test signal of each frame;
based on the feature extraction result, a proximity between the reference signal and the test signal is calculated.
According to the link quality monitoring method provided by the invention, the method for evaluating the voice quality based on the proximity between the reference signal and the test signal comprises the following steps:
perceptually weighting the proximity between the reference signal and the test signal;
aligning the reference signal and the test signal when performed;
obtaining a voice quality score according to the proximity calculation result after the perception weighting;
and evaluating the voice quality according to the voice quality score.
The invention also provides a link quality monitoring method, which is applied to the receiving end and comprises the following steps:
when a call initiated by an initiating terminal is received, analyzing a first Dual Tone Multi Frequency (DTMF) signal sent by the initiating terminal, and playing a prerecorded reference voice;
after the reference voice is played, a second DTMF signal is initiated to an initiating terminal and hung up, so that the initiating terminal records the second DTMF signal, signal data are obtained through storage, problems in signal transmission are detected according to the signal data, an objective voice quality assessment algorithm is adopted, and voice quality is assessed based on the reference voice and the test voice.
The invention also provides a link quality monitoring system, which comprises: a transmitting end and a receiving end;
the sending end is used for transmitting a first dual tone multi-frequency DTMF signal to the receiving end when a call is initiated to the receiving end;
the receiving end is used for analyzing the first DTMF signal and playing a prerecorded reference voice;
the sending end is also used for receiving the reference voice played by the receiving end, recording the reference voice and storing the reference voice to obtain test voice;
the receiving end is further used for initiating a second DTMF signal to the initiating end and hanging up after the reference voice is played;
the transmitting end is further configured to receive the second DTMF signal, record the second DTMF signal, and store the second DTMF signal to obtain signal data; detecting a problem in signal transmission according to the signal data; and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the link quality monitoring method as claimed in any one of the preceding claims when the program is executed.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the link quality monitoring method as described in any of the preceding claims.
According to the link quality monitoring method, the system, the electronic equipment and the storage medium, the problems such as packet loss and noise in signal transmission are detected by using DTMF, meanwhile, the voice quality is estimated by using the PESQ algorithm, and two aspects of signal transmission and voice quality can be comprehensively considered, so that more comprehensive voice quality estimation is provided; in addition, the DTMF and the PESQ can monitor and evaluate the link quality in a real-time environment, and the real-time monitoring is beneficial to timely finding and solving the voice quality problem; in addition, the implementation of DTMF and PESQ is simpler, and can be implemented using standard digital signal processing techniques, which is easy to integrate into different devices and systems and has lower implementation cost compared with complex subjective evaluation methods or measurement methods requiring expensive devices.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a link quality monitoring method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a pulse waveform of a DTMF signal that cannot be detected according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a pulse waveform that may detect a DTMF signal according to an embodiment of the present invention;
FIG. 4 is one of the peSQ algorithm flowcharts provided by the embodiments of the present invention;
FIG. 5 is a second flowchart of the peSQ algorithm provided by the embodiment of the invention;
fig. 6 is a second flowchart of a link quality monitoring method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a link quality monitoring system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic flow chart of a link quality monitoring method according to an embodiment of the present invention. Referring to fig. 1, an embodiment of the present invention provides a link quality monitoring method, applied to an initiator, where the method specifically includes the following steps:
step 101, when a call is initiated to a receiving end, a first dual tone multi frequency DTMF signal is transmitted to the receiving end.
It should be noted that, the link quality monitoring method provided by the embodiment of the invention can be particularly applied to the link quality monitoring of the end-to-end program-controlled switching network. In practical application, the link quality monitoring method provided by the embodiment of the invention can be particularly applied to monitoring the quality of other end-to-end network links, and the invention is not limited herein.
Two voice devices may be pre-deployed at both ends of the voice channel to be tested, respectively, before a call is initiated. In the embodiment of the invention, the initiating terminal may refer to a call initiating terminal of a voice channel to be tested, and the receiving terminal may refer to a call receiving terminal of the voice channel to be tested. Illustratively, when device a initiates a call to device B, device a is the initiating end and device B is the receiving end; when the device B initiates a call to the device a, the device B is an initiating terminal, and the device a is a receiving terminal.
DTMF (Dual Tone Multi Frequency ) is a type of user signaling between a telephone set and an exchange in a telephone system, and is generally used for transmitting a called number, and has the following advantages: (1) reliability: DTMF is a dual audio coding technology based on audio signals, is widely used in telephone systems, has been widely verified and has achieved good reliability in practical applications. (2) compatibility: DTMF signals can be transmitted over existing telephone networks and thus can be easily integrated into existing communication systems without requiring additional equipment or infrastructure changes. (3) simplicity: the generation and decoding of DTMF signals is relatively simple and can be implemented using standard digital signal processing techniques, which makes DTMF suitable for a wide range of applications and easy to integrate into different devices and systems.
In the embodiment of the invention, when the initiating terminal initiates a call to the receiving terminal, the first DTMF signal can be transmitted to the receiving terminal. Specifically, the initiating terminal may automatically dial the phone number of the receiving terminal according to the preset timing time, and transmit the specific digital code by sending the first DTMF signal. After the receiving end hears the call, the received first DTMF signal can be analyzed to obtain the digital code therein, and the corresponding prerecorded reference voice is selected and played according to the preset rule according to the received digital code.
The reference voice refers to a pre-recorded standard voice with time characteristics.
Step 102, receiving the reference voice played by the receiving end, recording the reference voice, and storing the reference voice to obtain the test voice.
Specifically, the receiving end can select and play the reference voice according to a preset rule, and the initiating end can save the received voice data through the recording function after receiving the reference voice played by the receiving end, so as to obtain the test voice.
Step 103, receiving a second DTMF signal sent by the receiving end after the playing of the reference voice is completed, recording the second DTMF signal, and storing the signal data.
Specifically, after the receiving end finishes playing the reference voice, the receiving end can send the second DTMF signal as an end signal and automatically hang up. The initiating terminal can receive the second DTMF signal sent by the receiving terminal, record the second DTMF signal, and store the recorded second DTMF signal data.
Step 104, detecting a problem in signal transmission according to the signal data.
The originating terminal can analyze and process the received test voice data and the second DTMF signal data, thereby realizing link quality monitoring for the end-to-end program controlled switching network.
DTMF is a signal that is a combination of two frequencies and can be used for key entry in a telephone system. In the voice communication process, when the receiving end finishes playing the reference voice, a corresponding second DTMF signal can be sent to the initiating end, and the signals may be affected by some problems in the transmission process, such as packet loss, noise, time delay change and the like.
The embodiment of the invention can detect the problems of the second DTMF signal in the transmission process in real time according to the second DTMF signal data transmitted from the receiving end to the initiating end, and is beneficial to timely finding and solving the problems in the signal transmission process.
Step 105, using an objective speech quality assessment algorithm to assess speech quality based on the reference speech and the test speech.
Objective speech quality assessment (Perceptual Evaluation of Speech Quality, PESQ) is an objective speech quality assessment method that can be applied to the assessment of speech quality based on the principles of operation of the human auditory system. The PESQ algorithm has the following advantages: (1) subjectivity: by simulating the human auditory system to evaluate the perception of sound quality, relatively accurate and reliable speech quality assessment results may be provided. (2) comprehensiveness: PESQ can more fully evaluate speech quality, including speech intelligibility, noise level, distortion level, etc., by taking into account not only signal distortion and noise in transmission, but also human perception and subjective perception. (3) wide application: PESQ has been widely used in the field of communication systems and voice services for evaluating voice communication quality, audio codec performance, voice conversion and enhancement algorithms, etc., and can provide a standardized method to compare the performance of different systems and algorithms.
Specifically, by adopting PESQ algorithm, an evaluation value of MOS (Mean Opinion Score ) can be calculated based on reference voice and test voice, so that the quality of the line signal can be deduced through the change of voice signal, and the comprehensive, objective, real-time and simple evaluation of the quality of the line signal can be realized.
The embodiment of the invention can immediately evaluate the voice quality after the voice signal is received by the initiating terminal in real time, thereby being beneficial to timely finding and solving the problems existing in the signal transmission process.
In the embodiment of the invention, the voice quality is estimated by adopting the PESQ algorithm, so that the estimation can be performed from the viewpoint of simulating the human auditory system, the influence of subjective factors can be reduced by objective estimation, and more accurate and reliable voice quality estimation results can be provided.
The embodiment of the invention detects the problems such as packet loss, noise and the like in signal transmission by using DTMF, and simultaneously evaluates the voice quality by using a PESQ algorithm, so that two aspects of signal transmission and voice quality can be comprehensively considered, and more comprehensive voice quality evaluation is provided; in addition, the DTMF and the PESQ can monitor and evaluate the link quality in a real-time environment, and the real-time monitoring is beneficial to timely finding and solving the voice quality problem; in addition, the implementation of DTMF and PESQ is simpler, and can be implemented using standard digital signal processing techniques, which is easy to integrate into different devices and systems and has lower implementation cost compared with complex subjective evaluation methods or measurement methods requiring expensive devices.
In an alternative embodiment, the detecting a problem in signal transmission based on the signal data includes: decoding the signal data to obtain an audio waveform; if two distinct frequency peaks are not detected in the audio waveform, it is determined that the signal is problematic in the transmission process.
The DTMF signal is composed of audio pulse waveforms of two fundamental frequencies, and in the DTMF signal, each key corresponds to an audio waveform of two frequencies, as shown in table 1. Referring to table 1, the high and low frequencies of each key defined for the specification.
1209Hz 1336Hz 1477Hz 1633Hz
697Hz 1 2 3 A
770Hz 4 5 6 B
852Hz 7 8 9 C
941Hz * 0 # D
TABLE 1
The pulse waveform of the DTMF signal has obvious frequency characteristic and may be reliably transmitted and identified in telephone system. In the embodiment of the invention, after the playing of the reference voice is completed, the receiving end can send the second DTMF signal to the initiating end, and the initiating end can receive the section of voice signal and record the section of voice signal so as to save the obtained signal data.
After the signal data is decoded by the initiating terminal, an audio waveform can be obtained. If two distinct peaks are not detected in the audio waveform, it is indicated that the second DTMF signal sent by the receiving end may have problems such as packet loss and noise during the transmission process.
In practical application, the signal decoding flow may be as follows:
DFT (Discrete Fourier Transform discrete Fourier transform)
yn (k) =w (-k) [ x (n) +yn-1 (k) ], x input, y output, w=w (t) =exp (-j 2 pi/Nt)
Z domain
H(z)=[W(-k)–z-1]/[1–2cos(2pi/Nk)z-1+z-2)]=(W–z-1)/(1–cz-1+z-2),W=exp(j 2pi/N k),c=2cos(2pi/N k)
A common algorithm for DTMF decoding is Goertzel, the algorithm pseudo-code is as follows:
function[I,Q]=goertzel(x,k,N)
w=2*pi*k/N;
cw=cos(w);
c=2*cw;
sw=sin(w);
z1=0;z2=0;
for n=1:N
z0=x(n)+c*z1-z2;
z2=z1;
z1=z0;
end;
It=cw*z1-z2;
Qt=sw*z1;
w2=2*pi*k;
cw2=cos(w2);
sw2=sin(w2);
I=It*cw2+Q*sw2;
q= -It x sw2+q x cw2; (find the frequency-corresponding key through I, Q)
function end
Fig. 2 is a schematic diagram of a pulse waveform of a DTMF signal that cannot be detected according to an embodiment of the present invention. Referring to fig. 2, two distinct frequency peaks cannot be detected in the decoded audio waveform, and the second DTMF signal may have problems such as packet loss, noise, etc. during transmission.
In an alternative embodiment, the detecting a problem in signal transmission according to the signal data further comprises: if two obvious frequency peaks are detected in the audio waveform, the low-frequency peak position and the high-frequency peak position are analyzed, and the quality, interference and attenuation conditions of the signal in the transmission process are determined.
If the section of voice signal received by the initiating terminal contains DTMF key signals, two very obvious frequency peaks can be detected in the audio waveform obtained by decoding the stored signal data by the initiating terminal, which means that the second DTMF signal sent by the receiving terminal has no problems such as packet loss and noise in the transmission process.
Fig. 3 is a schematic diagram of a pulse waveform that may detect a DTMF signal according to an embodiment of the present invention. Referring to fig. 3, there are two distinct frequency peaks in the pulse waveform, on one hand, the dialed key value can be determined by analyzing the frequency values of high and low frequencies, that is, the low frequency value is about 770Hz, the high frequency value is about 1336Hz, and the dialed key value can be determined to be 5 based on table 1; on the other hand, the frequency offset, and the signal-to-noise dB value can be determined by analyzing the peak positions of the low frequency (left) and the high frequency (right), so that the signal quality, interference, and attenuation of the voice channel can be detected.
In an alternative embodiment, said employing an objective speech quality assessment algorithm to assess speech quality based on said reference speech and said test speech comprises: preprocessing a reference signal and a test signal; the reference signal is a prerecorded reference voice, and the test signal is a test voice obtained after transmission or processing; calculating the proximity between the preprocessed reference signal and the test signal; based on the proximity between the reference signal and the test signal, speech quality is evaluated.
The reference signal may refer to a pre-recorded reference voice, and the test signal may refer to a test voice obtained by transmitting from the receiving end to the originating end.
Fig. 4 is a first PESQ algorithm flowchart provided by an embodiment of the present invention, and fig. 5 is a second PESQ algorithm flowchart provided by an embodiment of the present invention.
Referring to fig. 4 and 5, the originating terminal may pre-process the reference signal and the test signal. The preprocessing operations may include, among other things, filtering, equalizing, normalizing, etc., the signal to ensure that the signal is in the proper range and frequency response.
The proximity between the reference signal and the test signal may be calculated based on the preprocessed reference signal and test signal, thereby evaluating the speech quality based on the proximity between the reference signal and the test signal.
In an alternative embodiment, the calculating the proximity between the preprocessed reference signal and the test signal includes: dividing the reference signal and the test signal into frames with preset frame lengths; extracting characteristics of a reference signal and a test signal of each frame; based on the feature extraction result, a proximity between the reference signal and the test signal is calculated.
After the reference signal and the test signal are preprocessed, the preprocessed reference signal and the preprocessed test signal may be respectively divided into frames with preset frame lengths of a small section to a small section, wherein the frames with the preset frame lengths may be frames with the length of 20 milliseconds. The human auditory system perceives and processes the sound in a short time, and the embodiment of the invention can simulate the perception mode of the human auditory system on the voice signal by framing the signal.
After framing, features may be extracted for the reference signal and the test signal for each frame, wherein the extracted features may include linear predictive coding (Linear Predictive Coding, LPC) coefficients, cepstral coefficients, short-time energy, etc., from which spectral characteristics and energy distribution of the speech signal may be captured.
After extracting the features, the result of the feature extraction may be used to calculate the proximity between the reference signal and the test signal. Common approaches to proximity computation may include Mean-Square Error (MSE) or euclidean distance, which may be used to quantify the degree of difference between the reference signal and the test signal.
In an embodiment of the present invention, the estimating the speech quality based on the proximity between the reference signal and the test signal includes: perceptually weighting the proximity between the reference signal and the test signal; aligning the reference signal and the test signal when performed; obtaining a voice quality score according to the proximity calculation result after the perception weighting; and evaluating the voice quality according to the voice quality score.
After calculating the proximity between the reference signal and the test signal, the proximity may be perceptually weighted, i.e. adjusted according to the characteristics of the human auditory system. The embodiment of the invention can consider the perception sensitivity of human beings to different frequency ranges and voice characteristics by carrying out perception weighting on the proximity, thereby better simulating the subjective perception of the human beings.
After perceptually weighting the proximity, the reference signal and the test signal may be aligned so as to eliminate time offsets due to network delays or other factors.
After alignment of the reference signal and the test signal, an objective speech quality score may be obtained based on the perceptually weighted proximity calculation.
The speech quality score is typically a value between 0 and 4.5, which can be used to indicate how good the speech quality is. The higher the speech quality score, the better the speech quality; the lower the speech quality score, the worse the speech quality.
The embodiment of the invention detects the problems such as packet loss, noise and the like in signal transmission by using DTMF, and simultaneously evaluates the voice quality by using a PESQ algorithm, so that two aspects of signal transmission and voice quality can be comprehensively considered, and more comprehensive voice quality evaluation is provided; in addition, the DTMF and the PESQ can monitor and evaluate the link quality in a real-time environment, and the real-time monitoring is beneficial to timely finding and solving the voice quality problem; in addition, the implementation of DTMF and PESQ is simpler, and can be implemented using standard digital signal processing techniques, which is easy to integrate into different devices and systems and has lower implementation cost compared with complex subjective evaluation methods or measurement methods requiring expensive devices.
Fig. 6 is a second flowchart of a link quality monitoring method according to an embodiment of the present invention. Referring to fig. 6, an embodiment of the present invention provides a link quality monitoring method, which is applied to a receiving end, and the method specifically includes the following steps:
step 601, when a call initiated by an initiating terminal is received, analyzing a first dual tone multi frequency DTMF signal sent by the initiating terminal, and playing a prerecorded reference voice.
In the embodiment of the invention, when the initiating terminal initiates a call to the receiving terminal, the first DTMF signal can be transmitted to the receiving terminal. Specifically, the initiating terminal may automatically dial the phone number of the receiving terminal according to the preset timing time, and transmit the specific digital code by sending the first DTMF signal. After the receiving end hears the call, the received first DTMF signal can be analyzed to obtain the digital code therein, and the corresponding prerecorded reference voice is selected and played according to the preset rule according to the received digital code.
The reference voice refers to a pre-recorded standard voice with time characteristics.
Step 602, after the reference voice is played, initiating a second DTMF signal to an initiating terminal and hanging up, so that the initiating terminal records the second DTMF signal, stores the second DTMF signal to obtain signal data, detects a problem in signal transmission according to the signal data, and adopts an objective voice quality evaluation algorithm to evaluate voice quality based on the reference voice and the test voice.
Specifically, the receiving end can select and play the reference voice according to a preset rule, and the initiating end can save the received voice data through the recording function after receiving the reference voice played by the receiving end, so as to obtain the test voice.
After the receiving end finishes playing the reference voice, the receiving end can send a second DTMF signal as an ending signal and automatically hang up. The initiating terminal can receive the second DTMF signal sent by the receiving terminal, record the second DTMF signal, and store the recorded second DTMF signal data.
The initiating terminal can analyze and process the received test voice data and the second DTMF signal data, calculate an MOS evaluation value by using algorithms such as PESQ and the like, and then calculate the quality of the line signal through the change of the voice signal, thereby realizing the evaluation of the quality of the line signal.
The embodiment of the invention detects the problems such as packet loss, noise and the like in signal transmission by using DTMF, and simultaneously evaluates the voice quality by using a PESQ algorithm, so that two aspects of signal transmission and voice quality can be comprehensively considered, and more comprehensive voice quality evaluation is provided; in addition, the DTMF and the PESQ can monitor and evaluate the link quality in a real-time environment, and the real-time monitoring is beneficial to timely finding and solving the voice quality problem; in addition, the implementation of DTMF and PESQ is simpler, and can be implemented using standard digital signal processing techniques, which is easy to integrate into different devices and systems and has lower implementation cost compared with complex subjective evaluation methods or measurement methods requiring expensive devices.
Fig. 7 is a schematic structural diagram of a link quality monitoring system according to an embodiment of the present invention. Referring to fig. 7, an embodiment of the present invention provides a link quality monitoring system, including: a transmitting end 701 and a receiving end 702;
the transmitting end 701 is configured to transmit a first DTMF signal to a receiving end when a call is initiated to the receiving end;
the receiving end 702 is configured to parse the first DTMF signal and play a pre-recorded reference voice;
the transmitting end 701 is further configured to receive a reference voice played by the receiving end, record the reference voice, and store the reference voice to obtain a test voice;
the receiving end 702 is further configured to initiate a second DTMF signal to the originating end and hang up after the reference voice is played;
the transmitting end 701 is further configured to receive the second DTMF signal, record the second DTMF signal, and store the second DTMF signal to obtain signal data; detecting a problem in signal transmission according to the signal data; and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
The embodiment of the invention detects the problems such as packet loss, noise and the like in signal transmission by using DTMF, and simultaneously evaluates the voice quality by using a PESQ algorithm, so that two aspects of signal transmission and voice quality can be comprehensively considered, and more comprehensive voice quality evaluation is provided; in addition, the DTMF and the PESQ can monitor and evaluate the link quality in a real-time environment, and the real-time monitoring is beneficial to timely finding and solving the voice quality problem; in addition, the implementation of DTMF and PESQ is simpler, and can be implemented using standard digital signal processing techniques, which is easy to integrate into different devices and systems and has lower implementation cost compared with complex subjective evaluation methods or measurement methods requiring expensive devices.
Fig. 8 illustrates a physical structure diagram of an electronic device, as shown in fig. 8, which may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. Processor 810 may invoke logic instructions in memory 830 to perform a link quality monitoring method comprising:
transmitting a first Dual Tone Multi Frequency (DTMF) signal to a receiving end when a call is initiated to the receiving end;
receiving a reference voice played by a receiving end, recording the reference voice, and storing the reference voice to obtain a test voice;
receiving a second DTMF signal sent by the receiving end after the reference voice is played, recording the second DTMF signal, and storing the second DTMF signal to obtain signal data;
detecting a problem in signal transmission according to the signal data;
and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of link quality monitoring provided by the above methods, the method comprising:
transmitting a first Dual Tone Multi Frequency (DTMF) signal to a receiving end when a call is initiated to the receiving end;
receiving a reference voice played by a receiving end, recording the reference voice, and storing the reference voice to obtain a test voice;
receiving a second DTMF signal sent by the receiving end after the reference voice is played, recording the second DTMF signal, and storing the second DTMF signal to obtain signal data;
detecting a problem in signal transmission according to the signal data;
and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for monitoring link quality, applied to an originating terminal, comprising:
transmitting a first Dual Tone Multi Frequency (DTMF) signal to a receiving end when a call is initiated to the receiving end;
receiving a reference voice played by a receiving end, recording the reference voice, and storing the reference voice to obtain a test voice;
receiving a second DTMF signal sent by the receiving end after the reference voice is played, recording the second DTMF signal, and storing the second DTMF signal to obtain signal data;
detecting a problem in signal transmission according to the signal data;
and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
2. The method of claim 1, wherein detecting a problem in signal transmission based on the signal data comprises:
decoding the signal data to obtain an audio waveform;
if two distinct frequency peaks are not detected in the audio waveform, it is determined that the signal is problematic in the transmission process.
3. The method of claim 2, wherein detecting a problem in signal transmission based on the signal data, further comprises:
if two obvious frequency peaks are detected in the audio waveform, the low-frequency peak position and the high-frequency peak position are analyzed, and the quality, interference and attenuation conditions of the signal in the transmission process are determined.
4. The method of claim 3, wherein said employing an objective speech quality assessment algorithm to assess speech quality based on said reference speech and said test speech comprises:
preprocessing a reference signal and a test signal; the reference signal is a prerecorded reference voice, and the test signal is a test voice obtained through transmission;
calculating the proximity between the preprocessed reference signal and the test signal;
based on the proximity between the reference signal and the test signal, speech quality is evaluated.
5. The method of claim 4, wherein said calculating the proximity between the preprocessed reference signal and the test signal comprises:
dividing the reference signal and the test signal into frames with preset frame lengths;
extracting characteristics of a reference signal and a test signal of each frame;
based on the feature extraction result, a proximity between the reference signal and the test signal is calculated.
6. The method of claim 5, wherein the evaluating speech quality based on the proximity between the reference signal and the test signal comprises:
perceptually weighting the proximity between the reference signal and the test signal;
aligning the reference signal and the test signal when performed;
obtaining a voice quality score according to the proximity calculation result after the perception weighting;
and evaluating the voice quality according to the voice quality score.
7. The link quality monitoring method is characterized by being applied to a receiving end and comprising the following steps:
when a call initiated by an initiating terminal is received, analyzing a first Dual Tone Multi Frequency (DTMF) signal sent by the initiating terminal, and playing a prerecorded reference voice;
after the reference voice is played, a second DTMF signal is initiated to an initiating terminal and hung up, so that the initiating terminal records the second DTMF signal, signal data are obtained through storage, problems in signal transmission are detected according to the signal data, an objective voice quality assessment algorithm is adopted, and voice quality is assessed based on the reference voice and the test voice.
8. A link quality monitoring system, the system comprising: a transmitting end and a receiving end;
the sending end is used for transmitting a first dual tone multi-frequency DTMF signal to the receiving end when a call is initiated to the receiving end;
the receiving end is used for analyzing the first DTMF signal and playing a prerecorded reference voice;
the sending end is also used for receiving the reference voice played by the receiving end, recording the reference voice and storing the reference voice to obtain test voice;
the receiving end is further used for initiating a second DTMF signal to the initiating end and hanging up after the reference voice is played;
the transmitting end is further configured to receive the second DTMF signal, record the second DTMF signal, and store the second DTMF signal to obtain signal data; detecting a problem in signal transmission according to the signal data; and adopting an objective voice quality assessment algorithm to assess voice quality based on the reference voice and the test voice.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the link quality monitoring method of any of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the link quality monitoring method according to any of claims 1 to 7.
CN202311613366.1A 2023-11-29 2023-11-29 Link quality monitoring method, system, electronic equipment and storage medium Pending CN117896462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311613366.1A CN117896462A (en) 2023-11-29 2023-11-29 Link quality monitoring method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311613366.1A CN117896462A (en) 2023-11-29 2023-11-29 Link quality monitoring method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117896462A true CN117896462A (en) 2024-04-16

Family

ID=90638365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311613366.1A Pending CN117896462A (en) 2023-11-29 2023-11-29 Link quality monitoring method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117896462A (en)

Similar Documents

Publication Publication Date Title
US7729275B2 (en) Method and apparatus for non-intrusive single-ended voice quality assessment in VoIP
CN108389592B (en) Voice quality evaluation method and device
US8305913B2 (en) Method and apparatus for non-intrusive single-ended voice quality assessment in VoIP
US9396738B2 (en) Methods and apparatus for signal quality analysis
US9571633B2 (en) Determining the effects of new types of impairments on perceived quality of a voice service
US7085230B2 (en) Method and system for evaluating the quality of packet-switched voice signals
US6937723B2 (en) Echo detection and monitoring
EP2153439B1 (en) Double talk detector
Rix Perceptual speech quality assessment-a review
US20060245364A1 (en) Bi-directional continuous voice and video quality testing system with TTMF tones
CN103632680A (en) Speech quality assessment method, network element and system
EP1297646B1 (en) In-service measurement of perceived speech quality by measuring objective error parameters
JP4759230B2 (en) Quality evaluation device
CN105933181A (en) Conversation time delay evaluation method and apparatus
CN111081269B (en) Noise detection method and system in call process
CN101998426A (en) Handshaking signal processing method of voice assessment algorithm in voice test system
CN117896462A (en) Link quality monitoring method, system, electronic equipment and storage medium
US6956819B1 (en) Method, apparatus and system for evaluating quality-of-service in packet switching network
Ding et al. Nonintrusive measurement of echo-path parameters in VoIP environments
Manjunath Limitations of perceptual evaluation of speech quality on VoIP systems
US7379864B2 (en) Method and apparatus for the detection of previous packet loss in non-packetized speech
US20050228655A1 (en) Real-time objective voice analyzer
Paglierani et al. Uncertainty evaluation of speech quality measurement in VoIP systems
Takahashi QoE Assessment and Management of VoIP Services
Tiemounou et al. Assessment of speech quality degradation indicators for “continuity” dimension in super wideband telephony context

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