A closed-loop OTP verification system based on voice verification code

Through the closed-loop OTP verification system, the streaming processing and downsampling technology of the voice verification code is used to directly input the verification code on the user interface, which solves the problems of verification code leakage and resource waste in the existing technology, and achieves safe and efficient voice verification. Code verification reduces costs.

CN118016049BActive Publication Date: 2024-10-29SHENZHEN WISE E-COMMERCE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211407926.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2024-10-29
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

Existing voice verification code technology has problems such as verification code leakage, resource waste, and poor user experience. It is also difficult to find a balance between cost and real-time performance, resulting in increased security and cost.

Method used

A closed-loop OTP verification system based on voice verification code is adopted. Through the verification code speech synthesis module, audio template matching module and processing matching result return module, the verification code is directly input into the user interface, and streaming processing and downsampling technology are used to determine the call type. Terminate calls and reduce user operations and calculations.

Benefits of technology

It achieves the security and efficiency of the verification code, reduces user operations, improves the verification success rate, prevents the verification code from being leaked, and saves call costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118016049B_ABST
    Figure CN118016049B_ABST
Patent Text Reader

Abstract

The present invention discloses a closed-loop OTP verification system based on voice verification code, belongs to the field of voice verification technology, and includes a front end, a verification code voice synthesis module, an audio template matching module, a processing matching result return module and a user terminal. The present invention uses the prompt tone of the telephone operator collected in advance as a template, and then streams, downsamples the frame data, converts the frame data to a unit vector, and randomly extracts a specific number of frame data and template frame data to calculate the similarity between the two, so that the call can be terminated as soon as possible, and the calculation is reduced and the cost is saved. The verification code is directly input in the user interface, and the background obtains the user's key input from the call data stream, so as to judge whether the verification is passed, greatly reducing the user's mobile phone operation, and improving the success rate of verification and user experience; at the same time, the user only needs to complete the verification code input in the call interface, and the OTP verification is completed in a closed loop in one call, which is safe and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of voice verification, and in particular to a closed-loop OTP verification system based on voice verification code. Background Art

[0002] With the development of social informatization, people are constantly innovating identity verification technology, and constantly moving towards a safer and more convenient direction. Now OTP verification technology has basically become a common choice for service providers and users. Common OTP technologies include SMS verification codes, voice verification codes, etc. As problems with other OTP technologies are exposed, voice verification codes are gradually becoming popular.

[0003] The current mainstream voice verification codes expose the following problems:

[0004] 1. Criminals use various means to set the user's mobile phone to call forwarding, so that criminals can successfully obtain the verification code and carry out illegal activities;

[0005] 2. Some users have set up voicemail, but the system still plays the voice verification code as if the call was normal, which wastes call resources and increases unnecessary costs.

[0006] 3. At the same time, voice verification codes cannot be viewed repeatedly like text messages. Users need to remember the verification code and then switch to the corresponding page to enter it. Extra operations will increase the probability of user forgetfulness and mistakes, ultimately leading to verification failure and poor user experience.

[0007] In order to solve the above problems, a common way is to obtain the prompt tone content before the call is connected, determine the connection type through voice recognition technology, and then make necessary operations. However, this method is difficult to promote on a large scale, mainly because the contradiction between cost and real-time performance is difficult to resolve; if real-time performance is pursued, the machine cost will increase significantly, which will greatly increase the cost of a verification; if you want to reduce costs, the real-time performance will be very poor. After the real-time performance decreases, it will cause security problems (call forwarding is not processed in time, and it is too late for criminals to obtain the verification code) and the problem of increased call costs (the call cannot be intercepted as soon as possible). Summary of the invention

[0008] The purpose of the present invention is to solve the problems existing in the prior art and to propose a closed-loop OTP verification system based on voice verification code.

[0009] In order to achieve the above object, the present invention adopts the following technical solutions:

[0010] A closed-loop OTP verification system based on voice verification code, including front-end, verification code voice synthesis module, audio template matching module, matching result return processing module and user terminal;

[0011] The verification code voice synthesis module: after receiving the voice verification code request and necessary user information from the front end, the backend randomly generates an n-digit random number; then synthesizes the audio containing the voice verification code content (TTS related technology), and initiates a call request to the telephone operator / agent, and then the telephone operator / agent initiates the call and synchronously shares the call data with the backend;

[0012] The audio template matching module: the background receives data once every n milliseconds, and every time the data is accumulated to m milliseconds, the current frame data is downsampled, and then converted into a unit vector, merged into the total data, and the template is traversed. According to different template lengths, the same number of frame data as the template is taken from the tail of the total data, and then the position of q frame data is randomly selected. The cosine distance is calculated for the q frame data at the same position of the tail data of the template and the total data, and finally the distance is compared with the threshold. If it is greater than the threshold, the matching result is output, otherwise the template is continued to be traversed. If the template traversal is completed, the new incoming data is continued to be processed;

[0013] The following steps are involved:

[0014] S1. Initiate verification code information request: After receiving the voice verification code request and necessary user information from the front end, the backend randomly generates an n-digit random number;

[0015] S2. Backstage TTS processes audio: uses TTS-related technologies to synthesize audio containing the voice verification code content, and initiates a call request to the telephone operator / agent;

[0016] S3. Operator / agent call: The telephone operator / agent initiates a call to the user and plays the verification code audio to the user in a loop;

[0017] S4, streaming analysis of call data backend: the telephone operator / agent synchronously transmits the call data content to the backend via streaming sharing;

[0018] S5, audio template matching module: the background stream, sampling processing before the call is connected, the audio content uses the audio template matching method to determine the call type, and feedback to the telephone operator / agent to terminate the call and call;

[0019] S6, processing matching result return module: after the call is completed, the backend determines the user's keyboard input and finally returns the verification result to the frontend, which obtains the verification result from the backend.

[0020] Preferably, the streaming processing: the background takes D seconds from the tail for matching every frame duration, so that the problem can be identified as early as possible and corresponding processing can be performed.

[0021] Preferably, the downsampling: at H milliseconds, a total of 8*H length integer vectors are received, and the sampling rate is reduced by p times.

[0022] Preferably, the frame data is converted into a unit vector, and the data is uniformly converted into a unit vector before being recorded and stored, so as to avoid repeated calculation of the vector modulus when calculating the cosine distance.

[0023] Preferably, the secondary downsampling process is as follows: the background takes D seconds of data from the tail every frame, the D seconds of data contains Q frames of data, and then randomly selects q frames from the Q frame data for matching (Q>q), thereby achieving secondary downsampling and reducing the sampling rate by Q / q times.

[0024] Preferably, the processing matching result return module has the following situations: first, when the call ends, it determines whether the verification code entered by the user is correct; second, when the audio template matching module matches a certain template, it determines whether the current situation requires the call to be terminated. If termination is required, the front-end verification fails and the telephone operator / agent is informed to terminate the call.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] 1. The present invention adopts a method of directly inputting the verification code in the user interface, and the background obtains the user's key input from the call data stream to determine whether the verification is passed; this method can greatly reduce the user's mobile phone operations, improve the success rate of verification and user experience; the judgment of the call type effectively prevents the verification code from being leaked, and the user only needs to complete the verification code input in the call interface, achieving a closed loop of completing OTP verification in one call, which is safe and efficient.

[0027] 2. The present invention uses the prompt tone of the telephone operator collected in advance as a template, and then streams, downsamples the frame data, converts the frame data to a unit vector, randomly extracts a specific number of frame data and template frame data to calculate the similarity between the two, so as to terminate the call as soon as possible, thereby reducing calculations and saving costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is an overall flow chart of a closed-loop OTP verification system based on voice verification code proposed by the present invention;

[0029] Figure 2 A 40-second waveform diagram of a closed-loop OTP verification system based on voice verification code proposed by the present invention;

[0030] Figure 3 A detailed flow chart of the audio template matching module in a closed-loop OTP verification system based on voice verification code proposed by the present invention;

[0031] Figure 4 This is a flow processing effect diagram of a closed-loop OTP verification system based on voice verification code proposed by the present invention. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0033] Reference Figure 1-4 , a closed-loop OTP verification system based on voice verification code, including front-end, verification code voice synthesis module, audio template matching module, matching result return processing module and user terminal;

[0034] When conducting user identity authentication, the front-end (app, webpage, mini-program, etc.) initiates a voice verification code request to the back-end to inform the user information. After receiving the request and user information, the back-end randomly generates an n-digit verification code and the corresponding voice, and transmits the voice and call number to the telephone operator / agent. The telephone operator / agent starts the call and shares the signal with the back-end. The back-end streams and samples the audio content before the call is connected, and uses the audio template matching method to determine the call type, thereby informing the telephone operator / agent to terminate the call or call; if the call is completed, the back-end determines the user's keyboard input, and finally returns the verification result to the front-end; the front-end proceeds to the next step according to the back-end verification result;

[0035] refer to Figure 1 :

[0036] Verification code voice synthesis: After the background receives the voice verification code request and necessary user information from the front end, it randomly generates an n-digit random number; then it synthesizes the audio containing the voice verification code content (TTS related technology), and initiates a call request to the telephone operator / agent. The telephone operator / agent then initiates the call and simultaneously shares the call data with the background.

[0037] The telephone operator / agent synchronizes a data block at an interval of n milliseconds, converts the binary to an integer (PCM encoding), and then concatenates the data blocks (can be saved in WAV format, usually mono, 8K sampling rate, 16-bit sampling accuracy), and the following waveform can be drawn (the horizontal axis is time, the vertical axis is the sampling value);

[0038] refer to Figure 2 Complete waveform example:

[0039] At the default 8K sampling rate, 40 seconds of audio has 40*8,000=320,000 sampling points. If data is transmitted every n milliseconds, then 8,000*n / 1,000=8*n sampling points are transmitted each time; after conversion to integer, it is equivalent to an integer vector of length 8*n.

[0040] Audio template matching: Framing parameters: frame length m milliseconds, frame shift m milliseconds (m can be set to a multiple of n).

[0041] The background receives data every n milliseconds. Every time m milliseconds of data are accumulated (one frame of audio data), the current frame data is downsampled and then converted into a unit vector (the vector modulus is 1). It is merged into the total data (summarizing all the data of the call), and the template is traversed. According to different template lengths, the same number of frame data as the template is taken from the tail of the total data. Then, the position of q frames of data is randomly selected. The cosine distance is calculated for the q frames of data at the same position of the tail data of the template and the total data. Finally, the distance is compared with the threshold. If it is greater than the threshold, the matching result is output. Otherwise, the template is continued to be traversed. If the template traversal is completed, the new data is continued to be processed.

[0042] The detailed flow chart is as follows:

[0043] refer to Figure 3 Detailed process of audio template matching;

[0044] Stream processing: The background receives an integer vector of length 8*n every n milliseconds, and processes all the accumulated data at the current moment every m milliseconds (starting from 0 seconds).

[0045] by Figure 2 For example, the actual call forwarding prompt occurs in 1-5 seconds. Streaming processing can detect the call forwarding in about 5 seconds and terminate the call in advance, avoiding the subsequent leakage of confidential information and saving the subsequent information transmission and processing costs.

[0046] refer to Figure 4 Stream processing effect diagram:

[0047] Downsampling: At H milliseconds, a total of 8*H integer vectors are received. The sampling rate is reduced by p times (the sampling rate of the sampled audio is 8,000 / p), so the length of the vector becomes 8*H / p, which is equivalent to reducing the amount of calculation by p times.

[0048] Frame data converted to unit vector: vector cosine distance = vector inner product / vector modulus product. If the vector modulus is converted to 1 (converted to unit vector), then unit vector cosine distance = unit vector inner product (converting the vector to unit vector, the cosine distance remains unchanged). In the process of streaming data, D seconds of data will be taken forward for each new frame, so the cosine distance of the frame data will inevitably be calculated repeatedly. Therefore, the frame data is converted to a unit vector once to avoid subsequent repeated calculation of the vector modulus, thereby speeding up the calculation of the cosine distance.

[0049] Randomly extract q frames of data: Assuming a template is D seconds, it can be divided into D*1,000 / m frames of data. Only q frames need to be extracted from D seconds of data, and the amount of calculation is reduced by D*1,000 / m / q times (usually, D is about 4 seconds, m is 50 milliseconds, q is 10, and this set of parameters is about 8 times).

[0050] After many experiments, audio data is used directly:

[0051] Feasibility explanation: The prompt tone broadcast by the telephone operator also comes from a pre-recorded prompt tone library. The telephone operator reads the corresponding prompt tone according to the required scenario and transmits it in the call channel. This process basically does not affect the content of the audio (the audio data received by the recipient is basically the same as the data of the telephone operator).

[0052] High performance: While making full use of the characteristics of call prompt tone transmission, avoid extracting audio features (commonly used: Spectrogram, MFCC, Fbank, LPC, PLP, etc.). Common features are inseparable from pre-emphasis, framing, windowing, FFT and other operations. The calculation amount of these operations is basically N times the calculation amount of this invention; therefore, avoiding audio feature extraction greatly improves system performance.

[0053] Process the matching results and return: If the call ends, determine whether the verification code entered by the user is correct. If the audio template matching module matches a certain template, determine whether the call needs to be terminated in the current situation. If termination is required, inform the front-end that the verification failed and inform the telephone operator / agent to terminate the call.

[0054] The present invention proposes a method for matching prompt sound templates, in which the prompt sound of the telephone operator collected in advance is used as a template, and then streaming, frame data downsampling, frame data conversion to unit vector, and random extraction of a specific number of frame data and template frame data to calculate the similarity between the two. Streaming processing enables the system to make a judgment on the call type as early as possible, so that the call can be terminated as early as possible, thereby reducing calculations and saving costs; frame data conversion to unit vector can avoid repeated calculation of the modulus of the frame vector, and the cosine distance calculation will become the inner product of the unit vector, reducing the amount of calculation; downsampling can be understood as a vector dimensionality reduction operation, reducing the amount of calculation; sampling comparison further reduces the amount of calculation; directly using the original audio data, no need to extract features, reducing the amount of calculation; realizing five-fold acceleration, judging the matched template content according to the similarity score, and thus inferring the call type.

[0055] The present invention adopts a method of directly inputting the verification code in the user interface, and the background obtains the user's key input from the call data stream to determine whether the verification is passed; this method can greatly reduce the user's mobile phone operations, improve the success rate of verification and user experience; the judgment of the call type effectively prevents the verification code from being leaked, and the user only needs to complete the verification code input in the call interface, achieving a closed loop of completing OTP verification in one call, which is safe and efficient.

[0056] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A closed-loop OTP verification system based on voice verification code, characterized by: It includes a front end, a verification code speech synthesis module, an audio template matching module, a matching result return processing module and a user terminal; The verification code voice synthesis module: after receiving the voice verification code request and necessary user information from the front end, the backend randomly generates an n-digit random number; then synthesizes the audio containing the voice verification code content, and initiates a call request to the telephone operator / agent, and then the telephone operator / agent initiates the call and synchronously shares the call data with the backend; The audio template matching module: the background receives data once every n milliseconds, and every time the data is accumulated to m milliseconds, the current frame data is downsampled, and then converted into a unit vector, merged into the total data, and the template is traversed. According to different template lengths, the same number of frame data as the template is taken from the tail of the total data, and then the position of q frame data is randomly selected. The cosine distance is calculated for the q frame data at the same position of the tail data of the template and the total data, and finally the distance is compared with the threshold. If it is greater than the threshold, the matching result is output, otherwise the template is continued to be traversed. If the template traversal is completed, the new incoming data is continued to be processed; The following steps are involved: S1. Initiate verification code information request: After receiving the voice verification code request and necessary user information from the front end, the backend randomly generates an n-digit random number; S2. Backstage TTS processes audio: uses TTS-related technologies to synthesize audio containing the voice verification code content, and initiates a call request to the telephone operator / agent; S3. Operator / agent call: The telephone operator / agent initiates a call to the user and plays the verification code audio to the user in a loop; S4, streaming analysis of call data backend: the telephone operator / agent synchronously transmits the call data content to the backend via streaming sharing; S5, audio template matching module: the background stream, sampling processing before the call is connected, the audio content uses the audio template matching method to determine the call type, and feedback to the telephone operator / agent to terminate the call and call; S6, processing matching result return module: after the call is completed, the backend determines the user's keyboard input and finally returns the verification result to the frontend, which obtains the verification result from the backend.

2. According to claim 1, a closed-loop OTP verification system based on voice verification code is characterized in that: The streaming processing: the background takes D seconds from the tail for matching every frame interval, so that the problem can be identified as early as possible and corresponding processing can be made.

3. According to claim 1, a closed-loop OTP verification system based on voice verification code is characterized in that: The downsampling: at H milliseconds, a total of 8*H length integer vectors are received, and the sampling rate is reduced by p times.

4. According to claim 1, a closed-loop OTP verification system based on voice verification code is characterized in that: The frame data is converted into a unit vector, and the data is uniformly converted into a unit vector before being recorded and stored, so as to avoid repeated calculation of the vector modulus when calculating the cosine distance.

5. According to claim 2, a closed-loop OTP verification system based on voice verification code is characterized in that: It includes a secondary downsampling process: the background takes D seconds of data from the tail every frame, and the D seconds of data contains Q frames of data. Then q frames are randomly selected from the Q frame data for matching, thereby achieving secondary downsampling and reducing the sampling rate by Q / q times.

6. According to claim 1, a closed-loop OTP verification system based on voice verification code is characterized in that: The processing matching result return module has the following situations: First, when the call ends, it is determined whether the verification code entered by the user is correct; Secondly, after the audio template matching module matches a certain template, it determines whether the current situation requires the call to be terminated; if termination is required, the front-end verification fails and the telephone operator / agent is informed to terminate the call.

Citation Information

Patent Citations

  • Voice identifying code system and implementation method of the same

    CN106504745A

  • System and Method for Automatically Validating Classified Data Objects

    US20150227591A1

  • Front-end processing of speech signals

    WO2007041789A1

  • Method and device for extracting animal voiceprint features and computer readable storage medium

    WO2020006935A1

  • Method and apparatus for reporting and processing user message status of message pushing, and storage medium

    WO2020177384A1