CN105760403A - Method and device for screening telephone number - Google Patents

Method and device for screening telephone number Download PDF

Info

Publication number
CN105760403A
CN105760403A CN201410804405.0A CN201410804405A CN105760403A CN 105760403 A CN105760403 A CN 105760403A CN 201410804405 A CN201410804405 A CN 201410804405A CN 105760403 A CN105760403 A CN 105760403A
Authority
CN
China
Prior art keywords
recording
sample
correlation coefficient
telephone number
sequence
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
CN201410804405.0A
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.)
Navinfo Co Ltd
Original Assignee
Navinfo 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 Navinfo Co Ltd filed Critical Navinfo Co Ltd
Priority to CN201410804405.0A priority Critical patent/CN105760403A/en
Publication of CN105760403A publication Critical patent/CN105760403A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and a device for screening a telephone number. The method comprises the following steps: obtaining and storing a first recording when a telephone number to be screened is called, wherein the duration of the first recording is a preset time period; obtaining and storing a second recording obtained after the first recording is preprocessed, wherein preprocessing comprises sampling, normalization and noise reduction; independently calculating a relevant coefficient of the second recording and each pre-stored sample recording, wherein the sample recordings comprise a recording generated when a vacant number is called and a recording generated when a downtime number is called; if the maximum value of a relevant coefficient obtained by calculation is higher than a preset threshold value, determining that the telephone number to be screened, which corresponds to the second recording, is the vacant number or the downtime number. The method can be used for quickly and effectively screening the vacant number and the downtime number.

Description

A kind of method screening telephone number and device
Technical field
The present invention relates to communication technical field, particularly to a kind of method screening telephone number and device.
Background technology
Along with the development of communication technology, people inquire about in advance frequently by modes such as phones or the business of predetermined merchant (such as bar, cinema, bank etc.), but, the telephone number sometimes dialed is spacing or has shut down, so very inconvenient.It is therefore desirable to the spacing in oneself data base and the number shut down are screened by businessman in advance, and announce up-to-date number.And in currently available technology, judge the situation of telephone number typically via AT instruction analysis rs 232 serial interface signal, or by accessing the communications database of China, it is directly viewable telephone number state, but the former is unstable due to rs 232 serial interface signal, causes that return value is inaccurate;The latter is strict due to management and control, and common people can not have access rights to be restricted.
Summary of the invention
It is an object of the invention to provide a kind of method screening telephone number and device, spacing and the number shut down can have been filtered out fast and effectively.
In order to achieve the above object, The embodiment provides a kind of method screening telephone number, the method includes:
Obtain and store the first recording during telephone number called to be screened, and the duration of the first recording is a preset time period;
Obtaining and store and the first recording carries out pretreated second recording, pretreatment includes sampling, normalization and noise reduction;
The correlation coefficient of each sample recording calculating the second recording respectively and prestore, recording when sample recording includes spacing called and recording when shutting down number called;
If the maximum of calculated correlation coefficient is more than a pre-determined threshold, it is determined that the telephone number to be screened of this second recording correspondence is spacing or shuts down number.
Wherein, before calculating the step of the correlation coefficient that the second recording is recorded with each sample prestored respectively, method also includes:
Whether the energy value of detection the second recording is more than preset value;
If the energy value of the second recording is more than preset value, then perform to calculate the second recording respectively and the step of the correlation coefficient of each sample recording prestored;Otherwise process ends.
Wherein, obtain and the first recording carried out the pretreated second step recorded and includes by storage:
First recording is sampled;
The first recording after sampling is normalized;
The first recording after normalization is carried out noise reduction process, obtains the second recording.
Wherein, the sequence length that the sequence length of the second recording is recorded less than each sample, calculate the second recording respectively and the step of the correlation coefficient of each sample recording prestored includes:
Record for each sample, perform following process respectively:
Second recording is shifted according to pre-fixed step size, records second from the first flush position with this sample recording sequence, mobile to position flush position last with the recording of this sample;
After displacement every time, respectively by the sequence of the second recording after displacement, in recording with this sample, the corresponding sequence of equal length carries out correlation calculations, obtains a correlation;
The maximum in calculated correlation after selecting multi-shift, as the correlation coefficient of the second recording with the recording of this sample.
Wherein, if the maximum of calculated correlation coefficient is more than a pre-determined threshold, it is determined that before the step that telephone number to be screened is spacing or shutdown number that this second recording is corresponding, method also includes:
Relatively each correlation coefficient calculated, and therefrom select maximum correlation coefficient.
Embodiments of the invention additionally provide a kind of device screening telephone number, and this device includes:
First acquisition module, for obtaining and store the first recording during telephone number called to be screened, and the duration of the first recording is a preset time period;
Second acquisition module, carries out pretreated second recording for obtaining and storing to the first recording, and pretreatment includes sampling, normalization and noise reduction;
Computing module, the correlation coefficient of each sample recording for calculating the second recording respectively and prestore, recording when sample recording includes spacing called and recording when shutting down number called;
Determine module, if for the maximum of calculated correlation coefficient more than a pre-determined threshold time, it is determined that telephone number to be screened corresponding to this second recording is spacing or shuts down number.
Wherein, device also includes:
Whether detection module, be used for the energy value detecting the second recording more than preset value, and when the energy value of the second recording is more than preset value, triggers computing module and perform to calculate respectively the operation of the second correlation coefficient recorded with each sample recording prestored.
Wherein, the second acquisition module includes:
First module, for sampling to the first recording;
Second unit, for being normalized the first recording after sampling;
Unit the 3rd, for the first recording after normalization is carried out noise reduction process, obtains the second recording.
Wherein, the sequence length that the sequence length of the second recording is recorded less than each sample, computing module includes:
Unit the 4th, for recording for each sample, performs following process respectively:
Second recording is shifted according to pre-fixed step size, records second from the first flush position with this sample recording sequence, mobile to position flush position last with the recording of this sample;
After displacement every time, respectively by the sequence of the second recording after displacement, in recording with this sample, the corresponding sequence of equal length carries out correlation calculations, obtains a correlation;
The maximum in calculated correlation after selecting multi-shift, as the correlation coefficient of the second recording with the recording of this sample.
Wherein, device also includes:
Comparison module, for relatively each correlation coefficient calculated, and therefrom selects maximum correlation coefficient.
The such scheme of the present invention at least includes following beneficial effect:
In the method for the screening telephone number of embodiments of the invention; by obtaining the first recording during telephone number called to be screened; and the first recording is carried out pretreatment obtains the second recording; the correlation coefficient of each sample recording calculating the second recording again and be previously obtained; if the maximum of each correlation coefficient is more than a pre-determined threshold; then think that this telephone number to be screened is spacing or has shut down number, thus filtering out spacing and the number shut down fast and effectively.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the method screening telephone number in the embodiment of the present invention;
Fig. 2 is the concrete steps flow chart of step 12 in Fig. 1 in the embodiment of the present invention;
Fig. 3 is the oscillogram of the first voice in the embodiment of the present invention before noise reduction process;
Fig. 4 is the oscillogram of the second voice in the embodiment of the present invention after noise reduction process;
Fig. 5 is the structural representation of the device screening telephone number in the embodiment of the present invention.
Detailed description of the invention
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, it is described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The present invention is directed to existing middle screening spacing and shut down the problem that number is inconvenient, it is provided that a kind of method screening telephone number and device, spacing and the number shut down can be filtered out fast and effectively.
As it is shown in figure 1, embodiments provide a kind of method screening telephone number, the method includes:
Step 11, obtains and stores the first recording during telephone number called to be screened, and the duration of the first recording is a preset time period;
In a particular embodiment of the present invention, global system for mobile communications (the GSM supporting AT instruction can be used, GlobalSystemforMobileCommunications) modem is dialed telephone number to be screened and records, and calling record is saved in computer hard disc, recording format can be stored as wav, 44100HZ, two sound channels.Wherein, AT instruction is the command lanuage of modem, and GSM modem and the connected mode employing existing techniques in realizing of computer, do not repeat them here.
Step 12, obtains and the first recording is carried out pretreated second recording by storage, and pretreatment includes sampling, normalization and noise reduction;
Step 13, calculates the second recording and the correlation coefficient of each sample recording prestored respectively, recording when sample recording includes spacing called and recording when shutting down number called;
Step 14, if the maximum of calculated correlation coefficient is more than a pre-determined threshold, it is determined that the telephone number to be screened of this second recording correspondence is spacing or shuts down number.
Alternatively, in the above embodiment of the present invention, before performing step 14, said method also includes: relatively each correlation coefficient calculated, and therefrom selects maximum correlation coefficient.
In a particular embodiment of the present invention, when needs filter out point of interest (such as bar, cinema, bank etc.) data base in spacing and when shutting down number, can pass through to obtain the first recording during each telephone number called in data base to be screened, and the first recording is sequentially carried out sampling, normalization and noise reduction process, obtain the second recording, the correlation coefficient of each sample recording calculating the second recording again and prestore, wherein, recording when sample recording includes spacing called and recording when shutting down number called, when the maximum of each correlation coefficient is more than a pre-determined threshold, then think that the telephone number of this second recording correspondence is spacing or shuts down number.So just the spacing in data base to be screened and the number shut down can be filtered out fast and effectively.
Alternatively, in the above embodiment of the present invention, before step 13 performs, said method also includes: whether the energy value of detection the second recording is more than preset value;If the energy value of the second recording is more than preset value, then perform to calculate the second recording respectively and the step of the correlation coefficient of each sample recording prestored;Otherwise process ends.
In a particular embodiment of the present invention, when calling the telephone number in data base to be screened, the situation of empty voice likely occurs, therefore, needed the energy value of detection the second voice whether more than a preset value before calculating correlation coefficient, more than the second recording of this preset value, step 13 is continued executing with for energy value, and thinks that energy value is sky recording less than the second recording of this preset value, so can reduce the data volume of the second recording, accelerate breakneck acceleration.
In the above embodiment of the present invention, as in figure 2 it is shown, the concretely comprising the following steps of step 12 in Fig. 1:
Step 21, samples to the first recording;
In a particular embodiment of the present invention, firstly the need of by formula: time span=voice totalframes/voice frame per second calculates the time span of the first recording, the frame per second that first records can be set to 100 frames/second, but in order to prevent causing that internal memory overflows owing to frame number is too high, when the totalframes of the first recording is more than 5000 frame, then forced to be down to 5000 frames.Preferably, it is possible to directly the time span that first records is set to a preset time period.
Step 22, is normalized the first recording after sampling;
In a particular embodiment of the present invention, owing to the intensity of different dialing hardware or carrier network return voice has very big difference, it is thus desirable to the first recording after sampling is normalized, it is stretched to identical standard space by the voice of varying strength, reduces the impact brought due to scope of data difference.Wherein can pass through formula V normalize = 2 × ( V ory - min ( V org ) ) - max ( V org ) max ( V org ) - min ( V org ) Complete normalized, the V in formulaorgAnd VnormalizeThe respectively energy of the first voice after the energy of the first voice and normalization, and the V in embodiments of the inventionnormalize[-1,1] the i.e. above-mentioned standard space that ranges for be [-1,1].
Step 23, carries out noise reduction process to the first recording after normalization, obtains the second recording.
In a particular embodiment of the present invention, the first recording can be produced interference by current noise, mainly the first voice blank space can be produced substantial amounts of disturbance, and shown in the coil in Fig. 3, this disturbance can affect the differentiation to the first voice.Accordingly, it would be desirable to the first recording is carried out noise reduction process, thus overcoming the current noise impact on the first voice.In an embodiment of the present invention, it is believed that energy lower than the first voice ceiling capacity 5% frame be noise frame, the first voice shown in Fig. 3 is carried out noise reduction pretreatment, the first speech waveform obtained is as shown in Figure 4, wherein, noise reduction adopts existing techniques in realizing, does not repeat them here.
In the above embodiment of the present invention, the sequence length that the sequence length of the second recording is recorded less than each sample, concretely comprising the following steps of step 13 in Fig. 1: record for each sample, perform following process respectively: the second recording shifted according to pre-fixed step size, by the second recording from the first flush position with this sample recording sequence, mobile flush position, position, end of extremely recording with this sample;After displacement every time, respectively by the sequence of the second recording after displacement, in recording with this sample, the corresponding sequence of equal length carries out correlation calculations, obtains a correlation;The maximum in calculated correlation after selecting multi-shift, as the correlation coefficient of the second recording with the recording of this sample, thus obtaining the correlation coefficient of the second recording and the recording of each sample.
In a particular embodiment of the present invention, every time after displacement, formula is passed throughCalculate sequence and the correlation of equal length in the recording of each sample of the second recording, whereinThe respectively meansigma methods of the energy of the average energy of the second voice and sample recording, r is correlation, and n is total sampling number, and i is sampling number, V (i)1It is the energy of the ith sample point of the second voice, V (i)2Energy for the ith sample point of sample recording.
In order to better realize above-mentioned purpose, embodiments of the invention additionally provide a kind of device screening telephone number, and this device includes:
First acquisition module 51, for obtaining and store the first recording during telephone number called to be screened, and the duration of the first recording is a preset time period;
Second acquisition module 52, carries out pretreated second recording for obtaining and storing to the first recording, and pretreatment includes sampling, normalization and noise reduction;
Computing module 53, the correlation coefficient of each sample recording for calculating the second recording respectively and prestore, recording when sample recording includes spacing called and recording when shutting down number called;
Determine module 54, if for the maximum of calculated correlation coefficient more than a pre-determined threshold time, it is determined that telephone number to be screened corresponding to this second recording is spacing or shuts down number.
Wherein, device also includes:
Comparison module, for relatively each correlation coefficient calculated, and therefrom selects maximum correlation coefficient.
Wherein, device also includes:
Detection module, for detecting the energy value of the second recording whether more than preset value, and when the energy value of the second recording is more than preset value, triggers computing module 53 and performs to calculate the second recording respectively and the operation of the correlation coefficient of each sample recording prestored.
Wherein, the second acquisition module 52 includes:
First module, for sampling to the first recording;
Second unit, for being normalized the first recording after sampling;
Unit the 3rd, for the first recording after normalization is carried out noise reduction process, obtains the second recording.
Wherein, the sequence length that the sequence length of the second recording is recorded less than each sample, computing module 53 includes:
Unit the 4th, for recording for each sample, performs following process respectively:
Second recording is shifted according to pre-fixed step size, records second from the first flush position with this sample recording sequence, mobile to position flush position last with the recording of this sample;
After displacement every time, respectively by the sequence of the second recording after displacement, in recording with this sample, the corresponding sequence of equal length carries out correlation calculations, obtains a correlation;
The maximum in calculated correlation after selecting multi-shift, as the correlation coefficient of the second recording with the recording of this sample.
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from principle of the present invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the method screening telephone number, it is characterised in that including:
Obtain and store the first recording during telephone number called to be screened, and the duration of described first recording is a preset time period;
Obtaining and store and described first recording is carried out pretreated second recording, described pretreatment includes sampling, normalization and noise reduction;
The correlation coefficient of each sample recording calculating described second recording respectively and prestore, the recording when recording of described sample includes spacing called and recording when shutting down number called;
If the maximum of calculated correlation coefficient is more than a pre-determined threshold, it is determined that the telephone number described to be screened of this second recording correspondence is spacing or shuts down number.
2. the method for claim 1, it is characterised in that before the step of the correlation coefficient of the described each sample recording calculating described second recording respectively and prestore, described method also includes:
Whether detect the energy value of described second recording more than preset value;
If the energy value of described second recording is more than preset value, then perform to calculate described second recording respectively and the step of the correlation coefficient of each sample recording prestored;Otherwise process ends.
3. the method for claim 1, it is characterised in that the step that described first recording is carried out pretreated second recording by described acquisition storage includes:
Described first recording is sampled;
The first recording after sampling is normalized;
The first recording after normalization is carried out noise reduction process, obtains described second recording.
4. the method for claim 1, it is characterised in that the sequence length that the sequence length of described second recording is recorded less than each sample, the step of the correlation coefficient of the described each sample recording calculating described second recording respectively and prestore includes:
Record for each sample, perform following process respectively:
Second recording is shifted according to pre-fixed step size, records second from the first flush position with this sample recording sequence, mobile to position flush position last with the recording of this sample;
After displacement every time, respectively by the sequence of the second recording after displacement, in recording with this sample, the corresponding sequence of equal length carries out correlation calculations, obtains a correlation;
The maximum in calculated correlation after selecting multi-shift, as the correlation coefficient of described second recording with the recording of this sample.
5. method as claimed in claim 4; it is characterized in that; if the maximum of described calculated correlation coefficient is more than a pre-determined threshold, it is determined that before the step that telephone number described to be screened is spacing or shutdown number that this second recording is corresponding, described method also includes:
Relatively each correlation coefficient calculated, and therefrom select maximum correlation coefficient.
6. the device screening telephone number, it is characterised in that including:
First acquisition module, for obtaining and store the first recording during telephone number called to be screened, and the duration of described first recording is a preset time period;
Second acquisition module, carries out pretreated second recording for obtaining and storing to described first recording, and described pretreatment includes sampling, normalization and noise reduction;
Computing module, the correlation coefficient of each sample recording for calculating described second recording respectively and prestore, the recording when recording of described sample includes spacing called and recording when shutting down number called;
Determine module, if for the maximum of calculated correlation coefficient more than a pre-determined threshold time, it is determined that telephone number described to be screened corresponding to this second recording is spacing or shuts down number.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Detection module, for whether detecting the described second energy value recorded more than preset value, and when the energy value of described second recording is more than preset value, triggers described computing module and perform to calculate described second recording respectively and the operation of the correlation coefficient of each sample recording prestored.
8. device as claimed in claim 6, it is characterised in that described second acquisition module includes:
First module, for sampling to described first recording;
Second unit, for being normalized the first recording after sampling;
Unit the 3rd, for the first recording after normalization is carried out noise reduction process, obtains described second recording.
9. device as claimed in claim 6, it is characterised in that the sequence length that the sequence length of described second recording is recorded less than each sample, described computing module includes:
Unit the 4th, for recording for each sample, performs following process respectively:
Second recording is shifted according to pre-fixed step size, records second from the first flush position with this sample recording sequence, mobile to position flush position last with the recording of this sample;
After displacement every time, respectively by the sequence of the second recording after displacement, in recording with this sample, the corresponding sequence of equal length carries out correlation calculations, obtains a correlation;
The maximum in calculated correlation after selecting multi-shift, as the correlation coefficient of described second recording with the recording of this sample.
10. device as claimed in claim 9, it is characterised in that described device also includes:
Comparison module, for relatively each correlation coefficient calculated, and therefrom selects maximum correlation coefficient.
CN201410804405.0A 2014-12-19 2014-12-19 Method and device for screening telephone number Pending CN105760403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410804405.0A CN105760403A (en) 2014-12-19 2014-12-19 Method and device for screening telephone number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410804405.0A CN105760403A (en) 2014-12-19 2014-12-19 Method and device for screening telephone number

Publications (1)

Publication Number Publication Date
CN105760403A true CN105760403A (en) 2016-07-13

Family

ID=56341375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410804405.0A Pending CN105760403A (en) 2014-12-19 2014-12-19 Method and device for screening telephone number

Country Status (1)

Country Link
CN (1) CN105760403A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166637A (en) * 2018-02-12 2019-08-23 深圳市六度人和科技有限公司 A kind of spacing recognition methods and device
CN110312046A (en) * 2019-05-23 2019-10-08 中国平安人寿保险股份有限公司 Outgoing call data optimization methods, device, computer equipment and storage medium
CN112929503A (en) * 2021-01-25 2021-06-08 浙江百应科技有限公司 Outbound interception method and device based on multiple communication states and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897109A (en) * 2006-06-01 2007-01-17 电子科技大学 Single audio-frequency signal discrimination based on MFCC
CN101431731A (en) * 2008-10-28 2009-05-13 中国移动通信集团福建有限公司 Automatic catching device for illegal voice telephone and short message number based on user mobile phone
CN201919067U (en) * 2010-12-01 2011-08-03 广东石油化工学院 Vacant number detection device for telephone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897109A (en) * 2006-06-01 2007-01-17 电子科技大学 Single audio-frequency signal discrimination based on MFCC
CN101431731A (en) * 2008-10-28 2009-05-13 中国移动通信集团福建有限公司 Automatic catching device for illegal voice telephone and short message number based on user mobile phone
CN201919067U (en) * 2010-12-01 2011-08-03 广东石油化工学院 Vacant number detection device for telephone

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166637A (en) * 2018-02-12 2019-08-23 深圳市六度人和科技有限公司 A kind of spacing recognition methods and device
CN110312046A (en) * 2019-05-23 2019-10-08 中国平安人寿保险股份有限公司 Outgoing call data optimization methods, device, computer equipment and storage medium
CN110312046B (en) * 2019-05-23 2022-10-21 中国平安人寿保险股份有限公司 Outbound data optimization method and device, computer equipment and storage medium
CN112929503A (en) * 2021-01-25 2021-06-08 浙江百应科技有限公司 Outbound interception method and device based on multiple communication states and electronic equipment

Similar Documents

Publication Publication Date Title
CN103886871B (en) Detection method of speech endpoint and device thereof
WO2013066409A8 (en) System, method and program for customized voice communication
CN104143341B (en) Sonic boom detection method and device
CN108986822A (en) Audio recognition method, device, electronic equipment and non-transient computer storage medium
CA2546087A1 (en) Apparatus and method for speech recognition data retrieval
US9997168B2 (en) Method and apparatus for signal extraction of audio signal
CN101315772A (en) Speech reverberation eliminating method based on Wiener filtering
CN109545242A (en) A kind of audio data processing method, system, device and readable storage medium storing program for executing
US9424743B2 (en) Real-time traffic detection
CN105760403A (en) Method and device for screening telephone number
CN106210371A (en) A kind of determination method of echo delay time, device and intelligent meeting equipment
CN105700897B (en) A kind of method, apparatus and terminal device starting application program
CN105118522A (en) Noise detection method and device
WO2022105693A1 (en) Sample generation method and apparatus
CN102956238A (en) Method and equipment used for detecting repeating modes in audio frame sequence
CN103474074A (en) Voice pitch period estimation method and device
CN105848052A (en) Microphone switching method and terminal
CN108021635A (en) The definite method, apparatus and storage medium of a kind of audio similarity
CN104486470B (en) The self checking method and system of acoustical device in terminal device
CN103632681A (en) Spectral envelope silence detection method
CN104780555A (en) Position information prompting method and device based on signal intensity
CN112782762A (en) Earthquake magnitude determination method based on deep learning
CN105188008B (en) A kind of method and device of testing audio output unit
CN107086039A (en) A kind of acoustic signal processing method and device
CN103957531A (en) Method and device for signal testing by adoption of intelligent communication terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713