[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106297827B - Method and device for detecting voice encryption errors - Google Patents

Method and device for detecting voice encryption errors Download PDF

Info

Publication number
CN106297827B
CN106297827B CN201510295661.6A CN201510295661A CN106297827B CN 106297827 B CN106297827 B CN 106297827B CN 201510295661 A CN201510295661 A CN 201510295661A CN 106297827 B CN106297827 B CN 106297827B
Authority
CN
China
Prior art keywords
frame
voice
mute
value
field
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.)
Active
Application number
CN201510295661.6A
Other languages
Chinese (zh)
Other versions
CN106297827A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510295661.6A priority Critical patent/CN106297827B/en
Priority to PCT/CN2015/088521 priority patent/WO2016192218A1/en
Publication of CN106297827A publication Critical patent/CN106297827A/en
Application granted granted Critical
Publication of CN106297827B publication Critical patent/CN106297827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/012Comfort noise or silence coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for detecting errors in voice encryption, which comprises the following steps: judging whether the value of the measured parameter of the mute frame is legal or not according to the value of the measured parameter of the mute frame in the acquired voice data stream and the coding rate of the previous voice frame adjacent to the mute frame; a threshold is set in a detection window to judge whether the illegal accumulated quantity of the measured parameters of the mute frame exceeds the set threshold, and when the illegal accumulated quantity exceeds the set threshold, the voice encryption is determined to be in error. The invention also provides a device for detecting the voice encryption error. The invention realizes the detection of the flowing water sound caused by the error of the voice encryption by determining the error of the voice encryption, makes up the defect that the detection method depending on certain parameters of the voice frame can not detect the flowing water sound under the condition that most of voice data is mute frames, perfects the method system of the flowing water sound detection and further expands the application range of the flowing water sound detection.

Description

Method and device for detecting voice encryption errors
Technical Field
The present invention relates to the field of voice communications, and in particular, to a method and an apparatus for detecting errors in voice encryption.
Background
The speech service coding of Universal Mobile Telecommunications System (UMTS) adopts Adaptive Multi-rate (AMR) technology compatible with Global System for Mobile communications (GSM). The security mechanism of the UMTS system inherits the security mechanism of GSM and is mainly embodied in encryption. In UMTS, an encryption function is activated by a core Network, an encryption parameter is sent to a Radio Network Controller (RNC) and a User Equipment (UE), and the RNC and the UE jointly complete an encryption process therebetween.
If the parameters used in decryption are wrong, the restored voice data is the running water after being decoded by the vocoder. The reason for the occurrence of the water noise in the UMTS system is mainly that the encryption parameters used by the RNC and the UE are inconsistent for some reasons, and therefore, the water noise generated due to the error of the voice encryption needs to be detected. In the prior art, detection of the stream sound mainly depends on some parameters of the voice frame, and when most of the voice data is the mute frame, the detection method also loses the function.
Disclosure of Invention
The invention mainly aims to provide a method and a device for detecting errors in voice encryption, and aims to solve the problem of determining whether voice encryption is wrong or not by detecting a mute frame so as to detect the flow underwater sound.
In order to achieve the above object, the present invention provides a method for detecting errors in voice encryption, wherein the method comprises:
acquiring a measured parameter of a mute frame in a voice data stream and a coding rate of a previous voice frame of the mute frame;
judging whether the value of the measured parameter of the mute frame is legal or not according to the coding rate of the voice frame;
in a detection window, accumulating the number of the tested parameters of the mute frame, which are illegal in value, and judging whether the number exceeds a set threshold or not;
if yes, determining that the voice encryption is in error.
Preferably, the determining whether the value of the measured parameter of the silence frame is legal according to the coding rate of the speech frame includes:
comparing whether the number corresponding to the coding rate of the voice frame is the same as the value of the MI field of the mute frame, wherein the measured parameters of the mute frame at least comprise the MI field;
if yes, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
Preferably, before the acquiring the measured parameter of the silence frame in the voice data stream and the coding rate of the previous voice frame of the silence frame, the method further includes:
and recording the coding rate of each voice frame before the mute frame appears.
Preferably, the determining that the voice encryption is in error comprises:
and outputting the detection result.
In order to achieve the above object, the present invention further provides a device for detecting an error in voice encryption, wherein the device comprises:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the measured parameters of a mute frame in a voice data stream and the coding rate of a previous voice frame of the mute frame;
a legal judging module, which is used for judging whether the value of the measured parameter of the mute frame is legal or not according to the coding rate of the voice frame;
the accumulation module is used for accumulating the illegal number of the measured parameters of the mute frame in the detection window;
the threshold judgment module is used for judging whether the illegal value-taking accumulated quantity of the measured parameters of the mute frame exceeds a set threshold or not in a detection window;
and the determining module is used for determining the detection result.
Preferably, the legality determining module is further configured to:
comparing whether the number corresponding to the coding rate of the voice frame is the same as the value of the MI field of the mute frame, wherein the measured parameters of the mute frame at least comprise the MI field;
if yes, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
Preferably, the detection device further comprises:
and the recording module is used for recording the coding rate of each voice frame before the mute frame appears.
Preferably, the detection device further comprises:
and the output module is used for outputting the detection result.
Judging whether the value of the measured parameter of the mute frame is legal or not according to the value of the measured parameter of the mute frame in the acquired voice data stream and the coding rate of the previous voice frame adjacent to the mute frame; meanwhile, a threshold is set in the detection window to judge whether the number of the measured parameters of the mute frame which are not legal exceeds the set threshold, if the number exceeds the set threshold, a voice encryption error is determined, and the voice encryption error can cause the generation of the flowing water sound, thereby further realizing the detection of the flowing water sound. The invention makes up the defect that the detection method depending on certain parameters of the voice frame can not detect the flowing water sound under the condition that most of voice data are mute frames, perfects the method system of the flowing water sound detection, and further expands the application range of the flowing water sound detection.
Drawings
FIG. 1 is a flowchart illustrating a method for detecting errors in voice encryption according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of a first embodiment of the apparatus for detecting errors in voice encryption according to the present invention;
FIG. 3 is a functional block diagram of a device for detecting errors in voice encryption according to a second embodiment of the present invention;
FIG. 4 is a functional block diagram of a device for detecting errors in voice encryption according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical scheme of the invention can be applied to various communication systems, such as a GSM code division multiple access system, a WCDMA wideband code division multiple access system, a GPRS general packet radio service system, an L TE long term evolution system and the like.
The problem of the flowing water sound after the voice decoding is the inherent problem of the UMTS network, and the principle analysis generated by the problem is mainly that the voice encryption is wrong due to the inconsistency of encryption parameters used in the voice communication process of the radio network controller RNC of the UMTS network element and the UE side of the user equipment, so that the flowing water sound is generated finally. At present, the detection of the flowing water sound generally adopts massive drive tests and dial tests to reproduce the flowing water sound, and then analysis is carried out according to data obtained by the tests to find reasons, but the mode has low efficiency and needs to consume a large amount of resources. In addition, some parameters of the speech frame are detected, but such a method cannot detect when most of the speech data is a silence frame.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for detecting a voice encryption error according to an embodiment of the present invention. In this embodiment, the detection method includes:
step S1, obtaining the tested parameter of the mute frame in the voice data stream and the coding rate of the previous voice frame of the mute frame;
step S2, judging whether the value of the measured parameter of the mute frame is legal or not according to the coding rate of the voice frame;
step S3, in the detection window, accumulating the number of the tested parameters of the mute frame, which are not legal in value, and judging whether the number exceeds the set threshold;
and step S4, if yes, determining that the voice encryption is wrong.
It should be noted that, in the step S3, the legal number of the measured parameters of the mute frame may also be accumulated, and whether the number exceeds the set threshold is determined, which may be specifically set according to actual needs.
The following describes specific implementation of the above steps with reference to specific embodiments.
In each embodiment of the present invention, the speech coding mode of the speech data stream includes an AMR-NB (Adaptive Multi Rate Narrow Band, Adaptive Multi Rate narrowband coding) or an AMR-WB (Adaptive Multi Rate WideBand coding), where eight coding rates of the AMR-NB exist, that is, eight different coding Rate numbers (respectively corresponding numbers are 0 to 7); the AMR-WB has nine coding rates, that is, nine different coding rate numbers (corresponding to numbers 0 to 8 respectively) are provided, and the AMR-NB is specifically exemplified below.
The first embodiment is as follows:
for a specific implementation of step S1:
the speech frame data received by the RNC can determine the coding rate of the speech frame by its corresponding transport Format Combination identifier tfci (transport Format Combination indicator) and the initial parameter of speech service establishment, and further can correspondingly determine the coding rate number of the speech frame.
The value of the measured parameter of the mute frame can be obtained by acquiring the coded data of the mute frame from the voice data stream. The encoded data of the mute frame includes a plurality of fields, such as an mi (mode indication) field, an mr (mode request) field, an ft (frame type) field, and the like. Each field corresponds to a 3-bit or 4-bit code, and the fields corresponding to different bit codes have different values. Therefore, the field can be used as the measured parameter of the mute frame, and the MI field is specifically used as the measured parameter of the mute frame in the following.
Optionally, before a silence frame occurs, the coding rate of each speech frame needs to be recorded, so as to obtain the coding rate of the previous speech frame of the silence frame, for example, the eighth of the eight rates of AMR-NB, and the corresponding coding rate is numbered 7, and also obtain the measured parameter of the silence frame.
For a specific implementation of step S2:
optionally, whether the value of the MI field of the silence frame is legal is determined by comparing whether the number corresponding to the coding rate of the speech frame is the same as the value of the MI field of the silence frame;
if the two are the same, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
According to the 3GPP protocol, the value of the field of the mute frame is related to the coding rate of the voice frame before the mute frame, namely the value of the field of the mute frame is the same as the coding rate number of the voice frame before the mute frame.
Therefore, preferably, the value of the MI field of the silence frame is used as the measured parameter, and therefore, the value range of the MI field (3 bits) of the silence frame is 0 to 7 (the coding mode is AMR-NB) or 0 to 8(4 bits, the coding mode is AMR-WB). For example, the value of the measured parameter MI field of the obtained mute frame is 7 (the encoding mode is AMR-NB).
Since the coding rate number of the speech frame obtained in step S1 is 7, which is the same as the value 7 of the measured parameter MI field of the obtained mute frame, the value of the measured parameter MI field of the mute frame is "legal".
For a specific implementation of step S3:
for example, the detection window is 100, the threshold is set to be 80, 100 times of illegal evaluation are performed in an accumulation manner, that is, the steps S1 and S2 are repeated 100 times, and the illegal evaluation of the evaluation result is performed to obtain an accumulation result, for example, the illegal evaluation number of the measured parameter MI field of the accumulated mute frame is 13 times and is smaller than the set threshold 80, that is, the illegal evaluation number of the measured parameter MI field of the mute frame does not exceed the set threshold.
For a specific implementation of step S4:
if the number of the illegal values of the MI field of the measured parameter of the accumulated mute frame does not exceed the set threshold, determining that the voice encryption has no error, and if the voice encryption has no error, generating no running water sound, thereby further realizing the detection of the running water sound by detecting the error of the voice encryption.
Optionally, if the accumulated number does not exceed the set threshold, outputting the detection result as that no flowing water sound exists. In this embodiment, the value of the illegal accumulated number 13 of the measured parameter MI field of the silence frame does not exceed the set threshold 80, that is, the voice encryption has no error and does not generate the flowing sound, so that the detection result is output as that no flowing sound exists.
Example two:
for a specific implementation of step S1:
the speech frame data received by the RNC can determine the coding rate of the speech frame by its corresponding transport Format Combination identifier tfci (transport Format Combination indicator) and the initial parameter of speech service establishment, and further can correspondingly determine the coding rate number of the speech frame.
The value of the measured parameter of the mute frame can be obtained by acquiring the coded data of the mute frame from the voice data stream. The encoded data of the mute frame includes a plurality of fields, such as an mi (mode indication) field, an mr (mode request) field, an ft (frame type) field, and the like. Each field corresponds to a 3-bit or 4-bit code, and the fields corresponding to different bit codes have different values. Therefore, the field can be used as the measured parameter of the mute frame, and the MI field is specifically used as the measured parameter of the mute frame in the following.
Optionally, before a silence frame occurs, the coding rate of each speech frame needs to be recorded, so as to obtain the coding rate of the previous speech frame of the silence frame, for example, the second of eight rates of AMR-NB, and the corresponding coding rate number is 1, and also obtain the measured parameter of the silence frame.
For a specific implementation of step S2:
optionally, whether the value of the MI field of the silence frame is legal is determined by comparing whether the number corresponding to the coding rate of the speech frame is the same as the value of the MI field of the silence frame;
if the two are the same, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
According to the 3GPP protocol, the value of the field of the mute frame is related to the coding rate of the voice frame before the mute frame, namely the value of the field of the mute frame is the same as the coding rate number of the voice frame before the mute frame.
Therefore, preferably, the value of the MI field of the silence frame is used as the measured parameter, and therefore, the value range of the MI field (3 bits) of the silence frame is 0 to 7 (the coding mode is AMR-NB) or 0 to 8(4 bits, the coding mode is AMR-WB). For example, the value of the measured parameter MI field of the obtained mute frame is 5 (the encoding mode is AMR-NB).
Since the coding rate number of the speech frame obtained in step S1 is 1, which is different from the value 5 of the measured parameter MI field of the obtained mute frame, the value of the measured parameter MI field of the mute frame is "illegal".
For a specific implementation of step S3:
for example, the detection window is 100, the threshold is set to be 80, 100 times of illegal evaluation are performed in an accumulation manner, that is, the steps S1 and S2 are repeated 100 times, and the illegal evaluation of the evaluation result is performed, so as to obtain an accumulation result, for example, the illegal evaluation number of the measured parameter MI field of the accumulated mute frame is 83 times and is greater than the set threshold 80, that is, the illegal evaluation accumulation number of the measured parameter MI field of the mute frame exceeds the set threshold.
For a specific implementation of step S4:
if the number of the illegal values of the MI field of the measured parameter of the accumulated mute frame exceeds the set threshold, determining that the voice encryption is in error, and if the voice encryption is in error, generating the flowing water sound, thereby further realizing the detection of the flowing water sound through the detection of the voice encryption error.
Optionally, if the accumulated number exceeds a set threshold, outputting a detection result that there is a water flow sound. In this embodiment, the number 83 of the illegal values of the MI field of the measured parameter of the silence frame exceeds the set threshold 80, that is, the speech encryption is in error, and the speech sound is generated, so that the detection result is output as the presence of the speech sound.
According to the characteristic that the value of the measured parameter of the obtained mute frame is the same as the number corresponding to the coding rate of the previous voice frame, the legality of the value of the measured parameter of the obtained mute frame can be judged, and meanwhile, whether the water flow sound exists or not can be further determined through multiple times of statistical analysis. The method is suitable for the detection of the flowing water sound when most of the voice data is the mute frame, thereby making up the defect that the detection method depending on certain parameters of the voice frame cannot detect the flowing water sound under the condition that most of the voice data is the mute frame, perfecting the method system of the flowing water sound detection and further expanding the application range of the flowing water sound detection.
The embodiment of the invention also provides a device for detecting the voice encryption error, and the device can realize the method for detecting the voice encryption error. In addition, in the embodiment of the present invention, the detection apparatus for detecting the error in the voice encryption may be integrated in the RNC as a processing module, or the detection device may also be implemented as a separate network detection device.
Referring to fig. 2, fig. 2 is a functional module diagram of a first embodiment of the apparatus for detecting errors in voice encryption according to the present invention. In this embodiment, the apparatus for detecting errors in voice encryption includes:
an obtaining module 10, configured to obtain a measured parameter of a silence frame in a voice data stream and a coding rate of a previous voice frame of the silence frame;
a legal judging module 20, configured to judge whether a value of a measured parameter of the silence frame is legal according to the coding rate of the speech frame;
the accumulation module 30 is configured to accumulate the illegal number of the measured parameter of the silence frame within the detection window;
a threshold judging module 40, configured to judge whether an illegal accumulated number of values of the measured parameter of the silence frame exceeds a set threshold in a detection window;
a determination module 50 for determining the result of the detection.
Further, referring to fig. 3, fig. 3 is a schematic functional module diagram of a second embodiment of the apparatus for detecting a voice encryption error according to the present invention, and the apparatus for detecting a voice encryption error according to the present invention may further include:
a recording module 60, configured to record the rate information of each voice frame before the occurrence of the silence frame.
Further, referring to fig. 4, fig. 4 is a functional module schematic diagram of a third embodiment of the apparatus for detecting a voice encryption error according to the present invention, and the apparatus for detecting a voice encryption error according to the present invention may further include:
and an output module 70 for outputting the detection result.
The above-described illustrations of the technical features of the method part according to an embodiment of the invention may also be suitably applied to the apparatus for detecting a voice encryption error of an embodiment of the invention, and vice versa. The following describes specific implementation of each functional module of the apparatus for detecting a voice encryption error, with reference to specific embodiments.
In each embodiment of the present invention, the speech coding mode of the speech data stream includes an AMR-NB (Adaptive Multi Rate Narrow Band, Adaptive Multi Rate narrowband coding) or an AMR-WB (Adaptive Multi Rate WideBand coding), where eight coding rates of the AMR-NB exist, that is, eight different coding Rate numbers (respectively corresponding numbers are 0 to 7); the AMR-WB has nine coding rates, that is, nine different coding rate numbers (corresponding to numbers 0 to 8 respectively) are provided, and the AMR-NB is specifically exemplified below.
The first embodiment is as follows:
for a specific implementation of the acquisition module 10:
the speech frame data received by the obtaining module 10 can determine the coding rate of the speech frame through the corresponding transport Format Combination identifier tfci (transport Format Combination indicator) and the initial parameter of the speech service establishment, and further can correspondingly determine the coding rate number of the speech frame.
The obtaining module 10 obtains the value of the measured parameter of the silence frame by obtaining the encoded data of the silence frame from the voice data stream. The encoded data of the mute frame includes a plurality of fields, such as an mi (mode indication) field, an mr (moderequest) field, an ft (frame type) field, and the like. Each field corresponds to a 3-bit or 4-bit code, and the fields corresponding to different bit codes have different values. Therefore, the field can be used as the measured parameter of the mute frame, and the MI field is specifically used as the measured parameter of the mute frame in the following.
Optionally, before the occurrence of the silence frame, the recording module 60 needs to record the coding rate of each speech frame, so that the obtaining module 10 can obtain the coding rate of the previous speech frame of the silence frame, for example, the eighth of the eight AMR-NB rates, the corresponding coding rate number is 7, and meanwhile, the obtaining module 10 also obtains the value of the measured parameter of the silence frame.
For the specific implementation of the legality determining module 20:
optionally, whether the value of the MI field of the silence frame is legal is determined by comparing whether the number corresponding to the coding rate of the speech frame is the same as the value of the MI field of the silence frame;
if the two are the same, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
According to the 3GPP protocol, the value of the field of the mute frame is related to the coding rate of the voice frame before the mute frame, namely the value of the field of the mute frame is the same as the coding rate number of the voice frame before the mute frame.
Therefore, preferably, the value of the MI field of the silence frame is used as the measured parameter, and therefore, the value range of the MI field (3 bits) of the silence frame is 0 to 7 (the coding mode is AMR-NB) or 0 to 8(4 bits, the coding mode is AMR-WB). For example, the value of the measured parameter MI field of the obtained mute frame is 7 (the encoding mode is AMR-NB).
Since the coding rate number of the speech frame obtained in the obtaining module 10 is 7, which is the same as the value 7 of the measured parameter MI field of the obtained mute frame, the value of the measured parameter MI field of the mute frame is "legal".
For the specific implementation of the accumulation module 30 and the threshold determination module 40:
for example, the detection window is 100, the threshold is set to be 80, and the accumulation module 30 performs 100 times to accumulate the illegal number of values of the measured parameter of the silence frame, so as to obtain an accumulation result. For example, the number of the illegal values of the measured parameter MI field of the accumulated mute frame is 13 times, which is smaller than the set threshold 80, that is, the illegal value of the accumulated number of the measured parameter MI field of the mute frame does not exceed the set threshold. The threshold determination module 40 determines that the value is smaller than the set threshold 80, that is, the illegal accumulated number of the measured parameter of the mute frame does not exceed the set threshold.
For a specific implementation of the determination module 50:
if the number of the illegal values of the MI field of the measured parameter of the accumulated mute frame does not exceed the set threshold, determining that the voice encryption has no error, and if the voice encryption has no error, generating no running water sound, thereby further realizing the detection of the running water sound by detecting the error of the voice encryption.
For a specific implementation of the output module 70:
if the accumulated quantity does not exceed the set threshold, the output module 70 outputs the detection result as that no water flow sound exists. In this embodiment, the value of the illegal accumulated number 13 of the measured parameter MI field of the silence frame does not exceed the set threshold 80, that is, the voice encryption has no error and does not generate the flowing sound, so the output module 70 outputs the detection result that the flowing sound does not exist.
Example two:
for a specific implementation of the acquisition module 10:
the speech frame data received by the obtaining module 10 can determine the coding rate of the speech frame through the corresponding transport Format Combination identifier tfci (transport Format Combination indicator) and the initial parameter of the speech service establishment, and further can correspondingly determine the coding rate number of the speech frame.
The obtaining module 10 obtains the value of the measured parameter of the silence frame by obtaining the encoded data of the silence frame from the voice data stream. The encoded data of the mute frame includes a plurality of fields, such as an mi (mode indication) field, an mr (moderequest) field, an ft (frame type) field, and the like. Each field corresponds to a 3-bit or 4-bit code, and the fields corresponding to different bit codes have different values. Therefore, the field can be used as the measured parameter of the mute frame, and the MI field is specifically used as the measured parameter of the mute frame in the following.
Optionally, before the occurrence of the silence frame, the recording module 60 needs to record the coding rate of each speech frame, so that the obtaining module 10 can obtain the coding rate of the previous speech frame of the silence frame, for example, the second one of the eight AMR-NB rates, and the corresponding coding rate number is 1, and meanwhile, the obtaining module 10 also obtains the value of the measured parameter of the silence frame.
For the specific implementation of the legality determining module 20:
optionally, whether the value of the MI field of the silence frame is legal is determined by comparing whether the number corresponding to the coding rate of the speech frame is the same as the value of the MI field of the silence frame;
if the two are the same, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
According to the 3GPP protocol, the value of the field of the mute frame is related to the coding rate of the voice frame before the mute frame, namely the value of the field of the mute frame is the same as the coding rate number of the voice frame before the mute frame.
Therefore, preferably, the value of the MI field of the silence frame is used as the measured parameter, and therefore, the value range of the MI field (3 bits) of the silence frame is 0 to 7 (the coding mode is AMR-NB) or 0 to 8(4 bits, the coding mode is AMR-WB). For example, the value of the measured parameter MI field of the obtained mute frame is 5 (the encoding mode is AMR-NB).
Since the coding rate number of the speech frame obtained in the obtaining module 10 is 1, which is different from the value 5 of the measured parameter MI field of the obtained mute frame, the value of the measured parameter MI field of the mute frame is "illegal".
For the specific implementation of the accumulation module 30 and the threshold determination module 40:
for example, the detection window is 100, the threshold is set to be 80, and the accumulation module 30 performs 100 times to accumulate the illegal number of values of the measured parameter of the silence frame, so as to obtain an accumulation result. For example, the number of the illegal values of the measured parameter MI field of the accumulated mute frame is 83 times, which is greater than the set threshold 80, that is, the illegal accumulated number of the measured parameter MI field of the mute frame exceeds the set threshold. The threshold determination module 40 determines that the value is greater than the set threshold 80, that is, the illegal accumulated number of values of the measured parameter of the mute frame exceeds the set threshold.
For a specific implementation of the determination module 50:
if the number of the illegal values of the MI field of the measured parameter of the accumulated mute frame exceeds the set threshold, determining that the voice encryption is in error, and if the voice encryption is in error, generating the flowing water sound, thereby further realizing the detection of the flowing water sound by detecting the voice encryption error
For a specific implementation of the output module 70:
if the accumulated quantity exceeds the set threshold, the output module 70 outputs the detection result as the existence of the water flow sound. In this embodiment, the number 83 of the illegal values of the MI field of the measured parameter of the silence frame exceeds the set threshold 80, that is, the speech encryption is in error, and thus, the output module 70 outputs the detection result as the existence of the speech sound.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for detecting errors in voice encryption, the method comprising:
acquiring a measured parameter of a mute frame in a voice data stream and a coding rate of a previous voice frame of the mute frame;
judging whether the value of the measured parameter of the mute frame is legal or not according to the coding rate of the voice frame;
in a detection window, accumulating the number of the tested parameters of the mute frame, which are illegal in value, and judging whether the number exceeds a set threshold or not;
if yes, determining that the voice encryption is in error.
2. The detecting method of claim 1, wherein the determining whether the value of the measured parameter of the silence frame is legal according to the coding rate of the speech frame comprises:
comparing whether the number corresponding to the coding rate of the voice frame is the same as the value of the MI field of the mute frame, wherein the measured parameters of the mute frame at least comprise the MI field;
if yes, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
3. The detection method according to claim 1 or 2, wherein said obtaining the measured parameter of a silence frame in the speech data stream and the coding rate of a previous speech frame of the silence frame further comprises:
and recording the coding rate of each voice frame before the mute frame appears.
4. The detection method of claim 3, wherein said determining that the voice encryption is in error comprises:
and outputting the detection result.
5. A device for detecting errors in voice encryption, the device comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the measured parameters of a mute frame in a voice data stream and the coding rate of a previous voice frame of the mute frame;
a legal judging module, which is used for judging whether the value of the measured parameter of the mute frame is legal or not according to the coding rate of the voice frame;
the accumulation module is used for accumulating the illegal number of the measured parameters of the mute frame in the detection window;
the threshold judgment module is used for judging whether the illegal value-taking accumulated quantity of the measured parameters of the mute frame exceeds a set threshold or not in a detection window;
and the determining module is used for determining the detection result.
6. The detection apparatus according to claim 5, wherein the legality determining module is further specifically configured to:
comparing whether the number corresponding to the coding rate of the voice frame is the same as the value of the MI field of the mute frame, wherein the measured parameters of the mute frame at least comprise the MI field;
if yes, determining that the value of the MI field of the mute frame is legal;
and if not, determining that the value of the MI field of the mute frame is illegal.
7. The detection apparatus according to claim 5 or 6, wherein the detection apparatus further comprises:
and the recording module is used for recording the coding rate of each voice frame before the mute frame appears.
8. The sensing device of claim 7, further comprising:
and the output module is used for outputting the detection result.
CN201510295661.6A 2015-06-02 2015-06-02 Method and device for detecting voice encryption errors Active CN106297827B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510295661.6A CN106297827B (en) 2015-06-02 2015-06-02 Method and device for detecting voice encryption errors
PCT/CN2015/088521 WO2016192218A1 (en) 2015-06-02 2015-08-31 Voice encryption error detection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510295661.6A CN106297827B (en) 2015-06-02 2015-06-02 Method and device for detecting voice encryption errors

Publications (2)

Publication Number Publication Date
CN106297827A CN106297827A (en) 2017-01-04
CN106297827B true CN106297827B (en) 2020-07-10

Family

ID=57440047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510295661.6A Active CN106297827B (en) 2015-06-02 2015-06-02 Method and device for detecting voice encryption errors

Country Status (2)

Country Link
CN (1) CN106297827B (en)
WO (1) WO2016192218A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681663B (en) * 2020-07-24 2023-03-31 北京百瑞互联技术有限公司 Method, system, storage medium and device for reducing audio coding computation amount

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362721A (en) * 2003-06-09 2004-12-24 Sony Corp Method and device for creating data, method and device for reproducing data, and program
WO2008150224A1 (en) * 2007-06-04 2008-12-11 Telefonaktiebolaget L M Ericsson (Publ) Efficient, secure digital wireless voice telephony via selective encryption
CN100450243C (en) * 2007-04-06 2009-01-07 东南大学 Anti vocoder compressed end-to-end voice encryption device and method
CN100499441C (en) * 2005-10-31 2009-06-10 连展科技(天津)有限公司 Method of implementing source control rate of AMR speech sound coding
CN1991977B (en) * 2005-12-29 2011-06-08 Ut斯达康通讯有限公司 Voice coding rate confirming method for radio communication
CN102572929A (en) * 2011-12-21 2012-07-11 华为技术有限公司 Voice detection method and equipment
CN104301911A (en) * 2013-07-18 2015-01-21 马维尔国际贸易有限公司 Correcting deciphering mis-synchronization in mobile communication terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558286B2 (en) * 2004-10-22 2009-07-07 Sonim Technologies, Inc. Method of scheduling data and signaling packets for push-to-talk over cellular networks
CN101106824B (en) * 2007-08-08 2010-12-08 华为技术有限公司 Method and wireless network controller for enabling encryption in call establishment process

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362721A (en) * 2003-06-09 2004-12-24 Sony Corp Method and device for creating data, method and device for reproducing data, and program
CN100499441C (en) * 2005-10-31 2009-06-10 连展科技(天津)有限公司 Method of implementing source control rate of AMR speech sound coding
CN1991977B (en) * 2005-12-29 2011-06-08 Ut斯达康通讯有限公司 Voice coding rate confirming method for radio communication
CN100450243C (en) * 2007-04-06 2009-01-07 东南大学 Anti vocoder compressed end-to-end voice encryption device and method
WO2008150224A1 (en) * 2007-06-04 2008-12-11 Telefonaktiebolaget L M Ericsson (Publ) Efficient, secure digital wireless voice telephony via selective encryption
CN102572929A (en) * 2011-12-21 2012-07-11 华为技术有限公司 Voice detection method and equipment
CN104301911A (en) * 2013-07-18 2015-01-21 马维尔国际贸易有限公司 Correcting deciphering mis-synchronization in mobile communication terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPP中语音编码的自适应技术与源控速率(SCR)操作;王洪等;《信息工程大学学报》;20031231;第98-102页 *

Also Published As

Publication number Publication date
CN106297827A (en) 2017-01-04
WO2016192218A1 (en) 2016-12-08

Similar Documents

Publication Publication Date Title
EP2673772B1 (en) Method, computer-program and apparatus for detecting a watermarked signal and decoding a speech or audio signal
CA2657424A1 (en) Systems and methods for including an identifier with a packet associated with a speech signal
Ren et al. An AMR adaptive steganography algorithm based on minimizing distortion
JP2006031012A5 (en)
HUE027046T2 (en) Devices, methods and computer-program product for adaptively encoding and decoding a watermarked signal
RU2003119971A (en) METHOD FOR IMPROVED DETECTION OF SPEED ERRORS IN VARIABLE SPEED RECEIVERS AND DEVICE FOR ITS IMPLEMENTATION
US6732302B1 (en) Blind rate detection in a multiplexed transmission system
ATE465567T1 (en) DECODER AND METHOD FOR DEFINING A DECODING RELIABILITY INDICATOR
US7924950B2 (en) Method and apparatus of decoding encoded data frame having dummy bit sequences included therein
CN101083513A (en) Communication signal decoding
CN106297827B (en) Method and device for detecting voice encryption errors
JP4989723B2 (en) Method and apparatus for blind transport format detection using discontinuous transmission (DTX) detection
JP3741686B2 (en) Turbo decoder transmission rate detection apparatus and method
KR101021526B1 (en) Method and apparatus for control of iterative decodingin a mobile communication system
KR102097365B1 (en) Method for access address detection of a bluetooth signal to which channel coding is applied and bluetooth apparatus thereof
CN103827964B (en) Coding/decoding system, decoding apparatus, code device and decoding method
CN105790882A (en) Method and device for reducing false detection rate
JP2008203315A (en) Audio encoding/decoding device and method, and software
KR20000048760A (en) Systems and methods for communicating desired audio information over a communications medium
JP2000209105A (en) Autocorrelation system and method for detecting data rate of data communication channel
US7047000B1 (en) Frame error identification
CN102523329B (en) Recording method based on voice communication, recording system and communication terminals
DE50011764D1 (en) METHOD FOR ESTIMATING THE BIT ERROR RATE IN A RADIO RECEIVER AND CORRESPONDING RADIO RECEIVER
JP2008054235A (en) Modulation method decision unit, receiver, modulation method decision method, and modulation method decision program
CN109286533B (en) Error checking method and device for voice data packet, storage medium and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant