CN108632294A - A method for controlling terminal use - Google Patents
A method for controlling terminal use Download PDFInfo
- Publication number
- CN108632294A CN108632294A CN201810470504.8A CN201810470504A CN108632294A CN 108632294 A CN108632294 A CN 108632294A CN 201810470504 A CN201810470504 A CN 201810470504A CN 108632294 A CN108632294 A CN 108632294A
- Authority
- CN
- China
- Prior art keywords
- sound signal
- server
- mobile terminal
- voice signal
- voice
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000005236 sound signal Effects 0.000 claims abstract description 144
- 238000012795 verification Methods 0.000 claims abstract description 25
- 230000003321 amplification Effects 0.000 claims description 10
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 10
- 230000015572 biosynthetic process Effects 0.000 claims 2
- 230000000630 rising effect Effects 0.000 claims 2
- 238000003786 synthesis reaction Methods 0.000 claims 2
- 238000009432 framing Methods 0.000 claims 1
- 238000005070 sampling Methods 0.000 description 30
- 230000001276 controlling effect Effects 0.000 description 7
- 230000000875 corresponding effect Effects 0.000 description 6
- 230000000737 periodic effect Effects 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000005670 electromagnetic radiation Effects 0.000 description 1
- 230000004630 mental health Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0861—Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L13/00—Speech synthesis; Text to speech systems
- G10L13/02—Methods for producing synthetic speech; Speech synthesisers
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Acoustics & Sound (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明数据处理领域,尤其涉及一种控制终端使用的方法。The data processing field of the present invention, in particular, relates to a method for controlling the use of a terminal.
背景技术Background technique
目前,包括各种移动终端提供越来越丰富的娱乐功能,同时也越来越普遍的存在于人们的生活中,因此儿童解除到移动终端的机会就越来越多。一方面,移动终端能够为儿童提供教育和娱乐;另一方面,也会使儿童受到电磁辐射(比如,对于移动终端,在非飞行模式下,其无线信号对终端使用者的辐射较大),损伤儿童视力等,同时如果移动终端具有访问互联网的功能,则儿童也可能通过移动终端无意中解除网络色情和暴力等内容,不利于儿童的身心健康。At present, various mobile terminals provide more and more entertainment functions, and are more and more commonly used in people's lives, so children have more and more opportunities to access mobile terminals. On the one hand, mobile terminals can provide education and entertainment for children; on the other hand, they will also expose children to electromagnetic radiation (for example, for mobile terminals, in non-flight mode, the radiation of their wireless signals to terminal users is relatively large), At the same time, if the mobile terminal has the function of accessing the Internet, the child may inadvertently cancel the Internet pornography and violence through the mobile terminal, which is not conducive to the physical and mental health of the child.
现有的部分移动终端已实现了家长控制功能,可防止儿童通过移动终端接触网络色情和暴力等内容。例如:许多移动终端具有密码锁屏功能,该功能从一定程度上也可防止儿童使用移动终端,但是,目前移动终端实现家长控制功能的方式过于死板,不灵活,例如需要家长当面解锁设限的功能等。Some existing mobile terminals have implemented parental control functions, which can prevent children from accessing online pornography and violence through mobile terminals. For example: many mobile terminals have a password lock screen function, which can also prevent children from using the mobile terminal to a certain extent. function etc.
发明内容Contents of the invention
本发明提供了一种控制终端使用的方法,以解决目前移动终端实现家长控制功能的方式过于死板,不灵活的情况。The invention provides a method for controlling the use of a terminal to solve the situation that the current way of realizing the parental control function of the mobile terminal is too rigid and inflexible.
本发明提供一种控制终端使用的方法,所述方法包括:The present invention provides a method for controlling the use of a terminal, the method comprising:
服务器接收第一移动终端发送的第一语音,所述第一语音为第一用户在需要使用第一移动终端中设有权限的目标功能模块时输入的;The server receives the first voice sent by the first mobile terminal, and the first voice is input by the first user when he needs to use the target function module with authority in the first mobile terminal;
所述服务器向第二移动终端发送用于解除所述目标功能模块的权限的解除权限请求,所述第二移动终端为所述第一移动终端的预先绑定的移动终端;The server sends a permission release request for releasing the permission of the target function module to a second mobile terminal, where the second mobile terminal is a pre-bound mobile terminal of the first mobile terminal;
所述服务器接收所述第二移动终端发送的第二语音,所述第二语音为第二用户在所述第二移动终端接收到所述解除权限请求后输入的;The server receives a second voice sent by the second mobile terminal, and the second voice is input by the second user after the second mobile terminal receives the permission release request;
所述服务器将所述第一语音转换为第一声音信号,并将所述第二语音转换为第二声音信号;the server converts the first speech into a first sound signal, and converts the second speech into a second sound signal;
所述服务器对所述第一声音信号以及所述第二声音信号进行合成得到验证声音信号;The server synthesizes the first sound signal and the second sound signal to obtain a verification sound signal;
所述服务器判断验证声音信号与预存的默认声音信号是否匹配,若匹配,则确认验证成功,并将所述验证成功信息发送到所述第一移动终端,以使得所述第一移动终端解除所述目标功能模块的权限。The server judges whether the verification sound signal matches the pre-stored default sound signal, and if it matches, then confirms that the verification is successful, and sends the verification success information to the first mobile terminal, so that the first mobile terminal releases the The authority of the target function module.
进一步的,所述验证成功信息中包括允许所述第一移动终端解除所述目标功能模块的权限的时长信息。Further, the verification success information includes duration information that allows the first mobile terminal to release the authority of the target function module.
进一步的,所述方法还包括:Further, the method also includes:
所述服务器接收所述第二移动终端发送的用于控制所述第一移动终端恢复所述目标功能模块的权限的控制指令;The server receives a control instruction sent by the second mobile terminal for controlling the first mobile terminal to restore the authority of the target function module;
所述服务器向所述第一移动终端发送锁定指令,以使得所述第一移动终端复所述目标功能模块的权限,禁止所述第一用户使用所述目标功能模块。The server sends a locking instruction to the first mobile terminal, so that the first mobile terminal restores the authority of the target function module and prohibits the first user from using the target function module.
进一步的,所述服务器对所述第一声音信号以及所述第二声音信号进行合成得到验证声音信号,包括:Further, the server synthesizes the first sound signal and the second sound signal to obtain a verification sound signal, including:
所述服务器确定所述第一声音信号与所述第二声音信号之间的对齐点,所述对齐点是指所述第一声音信号和所述第二声音信号开始匹配的位置;The server determines an alignment point between the first sound signal and the second sound signal, the alignment point being a position where the first sound signal and the second sound signal begin to match;
所述服务器根据所述对齐点将所述第一声音信号与所述第二声音信号合成为验证声音信号。The server synthesizes the first sound signal and the second sound signal into a verification sound signal according to the alignment point.
进一步的,所述服务器确定所述第一声音信号与所述第二声音信号之间的对齐点,包括:Further, determining the alignment point between the first sound signal and the second sound signal by the server includes:
所述服务器计算所述第一声音信号的第一时长以及所述第二声音信号的第二时长,所述第一时长表示所述第一声音信号中声音持续的时间,所述第二时长表示所述第二声音信号中声音持续的时间;The server calculates the first duration of the first sound signal and the second duration of the second sound signal, the first duration represents the duration of the sound in the first sound signal, and the second duration represents the duration of the sound in the second sound signal;
所述服务器计算所述第一时长和所述第二时长之间的差值;the server calculates a difference between the first duration and the second duration;
如果该差值小于或等于预设数值,则对所述第一声音信号和所述第二声音信号中时长较短的声音信号进行周期上的缩放,以使得所述第一声音信号和所述第二声音信号最终的时长相同,再确定缩放后的第一声音信号和第二声音信号的首个音频帧作为对齐点。If the difference is less than or equal to the preset value, the shorter sound signal among the first sound signal and the second sound signal is periodically scaled, so that the first sound signal and the The final duration of the second sound signal is the same, and then the scaled first audio frame of the first sound signal and the first audio frame of the second sound signal are determined as alignment points.
进一步的,所述对所述第一声音信号和所述第二声音信号中时长较短的声音信号进行周期上的缩放,以使得所述第一声音信号和所述第二声音信号最终的时长相同,包括:Further, performing periodic scaling on the shorter sound signal among the first sound signal and the second sound signal, so that the final duration of the first sound signal and the second sound signal is same, including:
以所述第一声音信号和所述第二声音信号中时长较短的声音信号为目标目标声音信号,所述服务器确定所述差值占所述目标声音信号的时长的比例 X;Taking the shorter sound signal among the first sound signal and the second sound signal as the target sound signal, the server determines the ratio X of the difference to the duration of the target sound signal;
所述服务器计算所述目标声音信号的音频帧数Y;The server calculates the number Y of audio frames of the target sound signal;
所述服务器计算放大系数Z,Z=X*(Y/(Y-1));The server calculates the amplification factor Z, Z=X*(Y/(Y-1));
所述服务器按照所述放大系数,对所述目标声音信号中除了首个音频帧之外的其他音频帧进行等比例放大,使得放大后的目标声音信号长度与所述第一声音信号和所述第二声音信号中时长较长的声音信号长度相同。According to the amplification factor, the server amplifies the other audio frames in the target sound signal except the first audio frame in equal proportions, so that the length of the amplified target sound signal is the same as the length of the first sound signal and the first audio frame. Among the second sound signals, the longer sound signals have the same length.
进一步的,所述服务器确定所述第一声音信号与所述第二声音信号之间的对齐点,还包括:Further, the server determining the alignment point between the first sound signal and the second sound signal further includes:
如果该差值大于所述预设数值,则采用互相关算法来确定对齐点。If the difference is greater than the preset value, a cross-correlation algorithm is used to determine the alignment point.
进一步的,所述采用互相关算法来确定对齐点,包括:Further, the use of a cross-correlation algorithm to determine the alignment point includes:
使用相同的默认采样频率对所述第一声音信号以及所述第二声音信号分别进行采样得到第一采样组和第二采样组;Sampling the first sound signal and the second sound signal using the same default sampling frequency to obtain a first sampling group and a second sampling group;
根据该默认采样频率、第一采样组、第二采样组以及互相关权值生成互相关组,所述互相关权值与所述差值正相关,所述互相关组中包含有多个数值;Generate a cross-correlation group according to the default sampling frequency, the first sampling group, the second sampling group and the cross-correlation weight, the cross-correlation weight is positively correlated with the difference, and the cross-correlation group contains a plurality of values ;
将所述互相关组中的多个数值进行比较,找出最大的数值;comparing multiple values in the cross-correlation set to find the largest value;
使用该最大的数值对应的音频帧位置作为对齐点。Use the audio frame position corresponding to the largest value as the alignment point.
进一步的,所述根据该默认采样频率、第一采样组、第二采样组以及互相关权值生成互相关组,采用如下公式实现:Further, the generation of the cross-correlation group according to the default sampling frequency, the first sampling group, the second sampling group and the cross-correlation weight is realized by the following formula:
其中,Sn[t]表示互相关组,x[m]表示第一采样组中的第m个采样数据, y[m-t]表示第二采样组中的第(m-t)个采样数据,t表示时间的偏移量,t 为整数,取值为从0到m,Wt表示窗函数,其中n=l*f,l为互相关权值,f 为默认采样频率。Among them, Sn[t] represents the cross-correlation group, x[m] represents the m-th sampling data in the first sampling group, y[m-t] represents the (m-t)-th sampling data in the second sampling group, and t represents the time , t is an integer, the value is from 0 to m, Wt represents the window function, where n=l*f, l is the cross-correlation weight, and f is the default sampling frequency.
进一步的,所述使用该最大的数值对应的音频帧位置作为对齐点,包括:Further, the audio frame position corresponding to the maximum value is used as the alignment point, including:
在将所述互相关组中的多个数值进行比较,找到最大的数值后,根据上述的公式反推出m的值,确定采样数据,再确定该采样数据所在的音频帧的位置,并且使用该音频帧作为对齐点。After comparing multiple values in the cross-correlation group and finding the largest value, deduce the value of m according to the above formula, determine the sample data, and then determine the position of the audio frame where the sample data is located, and use the Audio frames serve as alignment points.
本发明实施例中在第一用户在需要使用设有权限的目标功能模块时,输入第一语音并发送到服务器,服务器发送解除权限请求到第二用户使用的第二移动终端,第二用户在第二移动终端输入第二语音并发送到服务器,以使得服务器可以根据第一语音和第二语音合成验证声音信号,在验证声音信号与预存的默认声音信号匹配时,将验证成功信息发送到第一移动终端,以使得第一移动终端解除所述目标功能模块的权限,第一用户可以正常使用。本发明实施例中在第一用户需要使用到设置了权限的功能模块时,需要第二用户的配合才能解锁该功能模块的权限,使得第二用户可以有效控制第一用户对移动终端的使用,限制方式灵活且解除权限困难,同时可以提升移动终端使用的安全性。In the embodiment of the present invention, when the first user needs to use the target function module with authority, he inputs the first voice and sends it to the server, and the server sends a permission release request to the second mobile terminal used by the second user. The second mobile terminal inputs the second voice and sends it to the server, so that the server can synthesize and verify the sound signal according to the first voice and the second voice, and when the verification sound signal matches the pre-stored default sound signal, the verification success information is sent to the second mobile terminal A mobile terminal, so that the first mobile terminal cancels the authority of the target function module, and the first user can use it normally. In the embodiment of the present invention, when the first user needs to use the functional module with the permission set, the cooperation of the second user is needed to unlock the permission of the functional module, so that the second user can effectively control the use of the mobile terminal by the first user, The restriction method is flexible and it is difficult to remove the authority, and at the same time, the security of the mobile terminal can be improved.
附图说明Description of drawings
图1为本发明实施例中控制终端使用的方法的一个实施例示意图。FIG. 1 is a schematic diagram of an embodiment of a method for controlling use of a terminal in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明提供的实施例为一种控制终端使用的方法,如图1所示,所述方法包括:The embodiment provided by the present invention is a method for controlling the use of a terminal. As shown in FIG. 1, the method includes:
S101、服务器接收第一移动终端发送的第一语音,所述第一语音为第一用户在需要使用第一移动终端中设有权限的目标功能模块时输入的;S101. The server receives the first voice sent by the first mobile terminal, and the first voice is input by the first user when the first user needs to use the target function module with authority in the first mobile terminal;
本发明实施例中,第一移动终端,第二移动终端可以是手机,平板电脑等智能移动终端,服务器可以是终端生产商,应用服务商等对应的服务器。In the embodiment of the present invention, the first mobile terminal and the second mobile terminal may be smart mobile terminals such as mobile phones and tablet computers, and the server may be a corresponding server of a terminal manufacturer or an application service provider.
进一步的,第二移动终端可以是家长移动终端,第一移动终端可以是孩子移动终端,第一移动终端中目标功能模块的使用需要第二移动终端的操作后才能实现,详见后文描述。Further, the second mobile terminal may be a parent's mobile terminal, the first mobile terminal may be a child's mobile terminal, and the use of the target function module in the first mobile terminal can only be realized after the operation of the second mobile terminal, see the description below for details.
第一移动终端中的目标功能模块在步骤S101之前,可以是第二用户预先对第一移动终端中的部分功能模块(例如视频应用、支付应用,游戏应用等) 进行权限设置,使得第一用户无法使用移动终端中这些功能模块。Before step S101, the target function module in the first mobile terminal may be that the second user preliminarily sets permissions on some function modules (such as video applications, payment applications, game applications, etc.) in the first mobile terminal, so that the first user These functional modules in the mobile terminal cannot be used.
S102、服务器向第二移动终端发送用于解除所述目标功能模块的权限的解除权限请求;S102. The server sends a permission release request for releasing the permission of the target function module to the second mobile terminal;
具体的,所述第二移动终端为所述第一移动终端的预先绑定的移动终端;即第一移动终端和第二移动终端在服务器上预先进行绑定。Specifically, the second mobile terminal is a pre-bound mobile terminal of the first mobile terminal; that is, the first mobile terminal and the second mobile terminal are pre-bound on the server.
S103、服务器接收所述第二移动终端发送的第二语音,所述第二语音为第二用户在第二移动终端接收到所述解除权限请求后输入的;S103. The server receives the second voice sent by the second mobile terminal, where the second voice is input by the second user after the second mobile terminal receives the authorization release request;
S104、服务器将所述第一语音转换为第一声音信号,并将所述第二语音转换为第二声音信号;S104. The server converts the first speech into a first sound signal, and converts the second speech into a second sound signal;
S105、服务器对所述第一声音信号以及所述第二声音信号进行合成得到验证声音信号;S105. The server synthesizes the first sound signal and the second sound signal to obtain a verification sound signal;
S106、服务器判断验证声音信号与预存的默认声音信号是否匹配,若匹配,则确认验证成功,并将验证成功信息发送到第一移动终端,以使得第一移动终端解除目标功能模块的权限。S106. The server judges whether the verification sound signal matches the pre-stored default sound signal. If it matches, it confirms that the verification is successful, and sends verification success information to the first mobile terminal, so that the first mobile terminal cancels the authority of the target function module.
进一步的,所述验证成功信息中包括允许所述第一移动终端解除所述目标功能模块的权限的时长信息,这样第一用户在接错目标功能模块的权限后,使用时长仅为该解除目标功能模块的权限的时长信息,达到该时长信息后,即重新恢复该目标功能模块的权限设置,第一用户使用该目标功能模块受限。Further, the verification success information includes the duration information that allows the first mobile terminal to release the authority of the target function module, so that after the first user connects the wrong authority of the target function module, the duration of use is only for the release target The duration information of the permission of the functional module, after reaching the duration information, the permission setting of the target functional module is restored, and the first user is restricted from using the target functional module.
进一步的,所述方法还包括:Further, the method also includes:
所述服务器接收所述第二移动终端发送的用于控制所述第一移动终端恢复所述目标功能模块的权限的控制指令;The server receives a control instruction sent by the second mobile terminal for controlling the first mobile terminal to restore the authority of the target function module;
所述服务器向所述第一移动终端发送锁定指令,以使得所述第一移动终端复所述目标功能模块的权限,禁止所述第一用户使用所述目标功能模块。The server sends a locking instruction to the first mobile terminal, so that the first mobile terminal restores the authority of the target function module and prohibits the first user from using the target function module.
进一步的,所述服务器对所述第一声音信号以及所述第二声音信号进行合成得到验证声音信号,包括:Further, the server synthesizes the first sound signal and the second sound signal to obtain a verification sound signal, including:
所述服务器确定所述第一声音信号与所述第二声音信号之间的对齐点,所述对齐点是指所述第一声音信号和所述第二声音信号开始匹配的位置,换句话说,两段声音信号要合成的话,一定要找到从哪个音频帧开始合成,这个音频帧就可以理解为对齐点;The server determines an alignment point between the first sound signal and the second sound signal, the alignment point being a position where the first sound signal and the second sound signal begin to match, in other words , if two audio signals are to be synthesized, it is necessary to find out which audio frame to start synthesizing from, and this audio frame can be understood as an alignment point;
所述服务器根据所述对齐点将所述第一声音信号与所述第二声音信号合成为验证声音信号。The server synthesizes the first sound signal and the second sound signal into a verification sound signal according to the alignment point.
进一步的,所述服务器确定所述第一声音信号与所述第二声音信号之间的对齐点,包括:Further, determining the alignment point between the first sound signal and the second sound signal by the server includes:
所述服务器计算所述第一声音信号的第一时长以及所述第二声音信号的第二时长,所述第一时长表示所述第一声音信号中声音持续的时间,所述第二时长表示所述第二声音信号中声音持续的时间;The server calculates the first duration of the first sound signal and the second duration of the second sound signal, the first duration represents the duration of the sound in the first sound signal, and the second duration represents the duration of the sound in the second sound signal;
所述服务器计算所述第一时长和所述第二时长之间的差值;the server calculates a difference between the first duration and the second duration;
如果该差值小于或等于预设数值,则对所述第一声音信号和所述第二声音信号中时长较短的声音信号进行周期上的缩放,以使得所述第一声音信号和所述第二声音信号最终的时长相同,再确定缩放后的第一声音信号和第二声音信号的首个音频帧作为对齐点。If the difference is less than or equal to the preset value, the shorter sound signal among the first sound signal and the second sound signal is periodically scaled, so that the first sound signal and the The final duration of the second sound signal is the same, and then the scaled first audio frame of the first sound signal and the first audio frame of the second sound signal are determined as alignment points.
具体的,如果该差值小于或等于预设数值,则说明两段声音信号在输入时的差距较小,此时可以对其中的一段声音信号进行周期上的缩放,例如对时长长的声音信号进行周期上的压缩(也就是俗称的快进),和/或对时长短的声音信号进行周期上的放大(也就是俗称的慢进),使得两段声音信号最终的时长相同,再以两段声音信号的首个音频帧作为对齐点进行对齐。Specifically, if the difference is less than or equal to the preset value, it means that the gap between the two sound signals is small when input. At this time, one of the sound signals can be periodically scaled, for example, for a long sound signal Periodic compression (also known as fast forward), and/or periodical amplification of short sound signals (also known as slow forward), so that the final duration of the two sound signals is the same, and then the two The first audio frame of the segment sound signal is used as the alignment point for alignment.
进一步的,该预设数值的取值范围可以为0至0.1秒。Further, the value range of the preset value may be 0 to 0.1 second.
进一步的,所述对所述第一声音信号和所述第二声音信号中时长较短的声音信号进行周期上的缩放,以使得所述第一声音信号和所述第二声音信号最终的时长相同,包括:Further, performing periodic scaling on the shorter sound signal among the first sound signal and the second sound signal, so that the final duration of the first sound signal and the second sound signal is same, including:
以所述第一声音信号和所述第二声音信号中时长较短的声音信号为目标目标声音信号,所述服务器确定所述差值占所述目标声音信号的时长的比例 X;Taking the shorter sound signal among the first sound signal and the second sound signal as the target sound signal, the server determines the ratio X of the difference to the duration of the target sound signal;
所述服务器计算所述目标声音信号的音频帧数Y;The server calculates the number Y of audio frames of the target sound signal;
所述服务器计算放大系数Z,Z=X*(Y/(Y-1));The server calculates the amplification factor Z, Z=X*(Y/(Y-1));
所述服务器按照所述放大系数,对所述目标声音信号中除了首个音频帧之外的其他音频帧进行等比例放大,使得放大后的目标声音信号长度与所述第一声音信号和所述第二声音信号中时长较长的声音信号长度相同。According to the amplification factor, the server amplifies the other audio frames in the target sound signal except the first audio frame in equal proportions, so that the length of the amplified target sound signal is the same as the length of the first sound signal and the first audio frame. Among the second sound signals, the longer sound signals have the same length.
具体举例:Specific examples:
第一时长为1秒,第二时长为1.1秒,则比例X为(1.1-1)/1=0.1,假设第一声音信号有100个音频帧,则Y为100,放大系数Z为0.1*(100/ (100-1))=0.101,则对除首个音频帧之外的其他99个音频帧按照0.101 的放大系数进行时间上的放大,放大后的100个音频帧即有1.1秒的时长了。The first duration is 1 second, the second duration is 1.1 seconds, then the ratio X is (1.1-1)/1=0.1, assuming that the first sound signal has 100 audio frames, then Y is 100, and the amplification factor Z is 0.1* (100/ (100-1)) = 0.101, then the other 99 audio frames except the first audio frame are amplified in time according to the amplification factor of 0.101, and the enlarged 100 audio frames have 1.1 seconds It's been a long time.
进一步的,如果该差值大于预设数值,则说明两段声音信号在输入时的差距较大,如果此时还是对其中的一段声音信号进行周期上的缩放,则缩放后会造成比较严重的失真,后续的校验会出现问题,所以就要采用互相关算法来确定对齐点。因此,所述服务器确定所述第一声音信号与所述第二声音信号之间的对齐点,还包括:Further, if the difference is greater than the preset value, it means that the gap between the two sound signals is relatively large when they are input. If one of the sound signals is still periodically scaled at this time, the scaling will cause serious problems. Distortion, the subsequent verification will have problems, so the cross-correlation algorithm must be used to determine the alignment point. Accordingly, the server determining an alignment point between the first sound signal and the second sound signal further includes:
如果该差值大于所述预设数值,则采用互相关算法来确定对齐点。If the difference is greater than the preset value, a cross-correlation algorithm is used to determine the alignment point.
进一步的,所述采用互相关算法来确定对齐点,包括:Further, the use of a cross-correlation algorithm to determine the alignment point includes:
使用相同的默认采样频率对所述第一声音信号以及所述第二声音信号分别进行采样得到第一采样组和第二采样组;Sampling the first sound signal and the second sound signal using the same default sampling frequency to obtain a first sampling group and a second sampling group;
根据该默认采样频率(例如8000Hz到10000Hz)、第一采样组、第二采样组以及互相关权值生成互相关组,该互相关权值与前述的差值正相关(例如该互相关权值可以为差值的1.5倍),所述互相关组中包含有多个数值;A cross-correlation group is generated according to the default sampling frequency (for example, 8000Hz to 10000Hz), the first sampling group, the second sampling group, and the cross-correlation weight, and the cross-correlation weight is positively correlated with the aforementioned difference (for example, the cross-correlation weight It can be 1.5 times of the difference), and the cross-correlation group contains multiple values;
将所述互相关组中的多个数值进行比较,找出最大的数值;comparing multiple values in the cross-correlation set to find the largest value;
使用该最大的数值对应的音频帧位置作为对齐点。Use the audio frame position corresponding to the largest value as the alignment point.
进一步的,所述根据该默认采样频率、第一采样组、第二采样组以及互相关权值生成互相关组,采用如下公式实现:Further, the generation of the cross-correlation group according to the default sampling frequency, the first sampling group, the second sampling group and the cross-correlation weight is realized by the following formula:
其中,Sn[t]表示互相关组,x[m]表示第一采样组中的第m个采样数据, y[m-t]表示第二采样组中的第(m-t)个采样数据,t表示时间的偏移量,t 为整数,取值为从0到m,Wt表示窗函数,其中n=l*f,l为互相关权值,f 为默认采样频率。Among them, Sn[t] represents the cross-correlation group, x[m] represents the m-th sampling data in the first sampling group, y[m-t] represents the (m-t)-th sampling data in the second sampling group, and t represents the time , t is an integer, the value is from 0 to m, Wt represents the window function, where n=l*f, l is the cross-correlation weight, and f is the default sampling frequency.
进一步的,所述使用该最大的数值对应的音频帧位置作为对齐点,包括:Further, the audio frame position corresponding to the maximum value is used as the alignment point, including:
在将所述互相关组中的多个数值进行比较,找到最大的数值后,根据上述的公式反推出m的值,确定采样数据,再确定该采样数据所在的音频帧的位置,并且使用该音频帧作为对齐点。After comparing multiple values in the cross-correlation group and finding the largest value, deduce the value of m according to the above formula, determine the sample data, and then determine the position of the audio frame where the sample data is located, and use the Audio frames serve as alignment points.
本发明实施例中在第一用户在需要使用设有权限的目标功能模块时,输入第一语音并发送到服务器,服务器发送解除权限请求到第二用户使用的第二移动终端,第二用户在第二移动终端输入第二语音并发送到服务器,以使得服务器可以根据第一语音和第二语音合成验证声音信号,在验证声音信号与预存的默认声音信号匹配时,将验证成功信息发送到第一移动终端,以使得第一移动终端解除所述目标功能模块的权限,第一用户可以正常使用。本发明实施例中在第一用户需要使用到设置了权限的功能模块时,需要第二用户的配合才能解锁该功能模块的权限,使得第二用户可以有效控制第一用户对移动终端的使用,限制方式灵活且解除权限困难,同时可以提升移动终端使用的安全性。In the embodiment of the present invention, when the first user needs to use the target function module with authority, he inputs the first voice and sends it to the server, and the server sends a permission release request to the second mobile terminal used by the second user. The second mobile terminal inputs the second voice and sends it to the server, so that the server can synthesize and verify the sound signal according to the first voice and the second voice, and when the verification sound signal matches the pre-stored default sound signal, the verification success information is sent to the second mobile terminal. A mobile terminal, so that the first mobile terminal cancels the authority of the target function module, and the first user can use it normally. In the embodiment of the present invention, when the first user needs to use the functional module with the permission set, the cooperation of the second user is needed to unlock the permission of the functional module, so that the second user can effectively control the use of the mobile terminal by the first user, The restriction method is flexible and it is difficult to remove the authority, and at the same time, the security of the mobile terminal can be improved.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810470504.8A CN108632294A (en) | 2018-05-17 | 2018-05-17 | A method for controlling terminal use |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810470504.8A CN108632294A (en) | 2018-05-17 | 2018-05-17 | A method for controlling terminal use |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108632294A true CN108632294A (en) | 2018-10-09 |
Family
ID=63693534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810470504.8A Pending CN108632294A (en) | 2018-05-17 | 2018-05-17 | A method for controlling terminal use |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108632294A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113177816A (en) * | 2020-01-08 | 2021-07-27 | 阿里巴巴集团控股有限公司 | Information processing method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015112175A1 (en) * | 2014-01-27 | 2015-07-30 | Empire Technology Development Llc. | User authentication using voice and image data |
CN105049963A (en) * | 2015-07-31 | 2015-11-11 | 小米科技有限责任公司 | Terminal control method and device, and terminal |
CN105204816A (en) * | 2015-09-29 | 2015-12-30 | 北京元心科技有限公司 | Method and device for controlling audios in multisystem |
CN105808669A (en) * | 2016-02-29 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Application screening and judgment method and apparatus |
CN106681769A (en) * | 2016-12-29 | 2017-05-17 | 宇龙计算机通信科技(深圳)有限公司 | Application control method and terminal |
CN106782493A (en) * | 2016-11-28 | 2017-05-31 | 湖北第二师范学院 | A kind of children private tutor's machine personalized speech control and VOD system |
CN106960149A (en) * | 2017-03-22 | 2017-07-18 | 广东小天才科技有限公司 | Application program permission setting method and device |
CN107481737A (en) * | 2017-08-28 | 2017-12-15 | 广东小天才科技有限公司 | Voice monitoring method and device and terminal equipment |
CN107591149A (en) * | 2017-09-18 | 2018-01-16 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio synthetic method, device and storage medium |
CN107832593A (en) * | 2017-10-30 | 2018-03-23 | 广东小天才科技有限公司 | Application program control method, application program control device and terminal |
-
2018
- 2018-05-17 CN CN201810470504.8A patent/CN108632294A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015112175A1 (en) * | 2014-01-27 | 2015-07-30 | Empire Technology Development Llc. | User authentication using voice and image data |
CN105049963A (en) * | 2015-07-31 | 2015-11-11 | 小米科技有限责任公司 | Terminal control method and device, and terminal |
CN105204816A (en) * | 2015-09-29 | 2015-12-30 | 北京元心科技有限公司 | Method and device for controlling audios in multisystem |
CN105808669A (en) * | 2016-02-29 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Application screening and judgment method and apparatus |
CN106782493A (en) * | 2016-11-28 | 2017-05-31 | 湖北第二师范学院 | A kind of children private tutor's machine personalized speech control and VOD system |
CN106681769A (en) * | 2016-12-29 | 2017-05-17 | 宇龙计算机通信科技(深圳)有限公司 | Application control method and terminal |
CN106960149A (en) * | 2017-03-22 | 2017-07-18 | 广东小天才科技有限公司 | Application program permission setting method and device |
CN107481737A (en) * | 2017-08-28 | 2017-12-15 | 广东小天才科技有限公司 | Voice monitoring method and device and terminal equipment |
CN107591149A (en) * | 2017-09-18 | 2018-01-16 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio synthetic method, device and storage medium |
CN107832593A (en) * | 2017-10-30 | 2018-03-23 | 广东小天才科技有限公司 | Application program control method, application program control device and terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113177816A (en) * | 2020-01-08 | 2021-07-27 | 阿里巴巴集团控股有限公司 | Information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Blue et al. | 2ma: Verifying voice commands via two microphone authentication | |
Han et al. | Pitchln: eavesdropping via intelligible speech reconstruction using non-acoustic sensor fusion | |
US9843583B2 (en) | System and method for authentication across devices | |
JP6159378B2 (en) | Device access using voice authentication | |
CN108702354B (en) | Liveness determination based on sensor signals | |
JP5805846B2 (en) | Continuous voice authentication for mobile devices | |
US8862888B2 (en) | Systems and methods for three-factor authentication | |
US20160148012A1 (en) | System, method and apparatus for voice biometric and interactive authentication | |
US20100251336A1 (en) | Frequency based age determination | |
CN106487514A (en) | Voice communication encryption method, decryption method and device thereof | |
US9461987B2 (en) | Audio authentication system | |
US20150056952A1 (en) | Method and apparatus for determining intent of an end-user in a communication session | |
Shrestha et al. | Sound-based two-factor authentication: Vulnerabilities and redesign | |
US9843683B2 (en) | Configuration method for sound collection system for meeting using terminals and server apparatus | |
Alattar et al. | Privacy‐preserving hands‐free voice authentication leveraging edge technology | |
CN108632294A (en) | A method for controlling terminal use | |
CN109754800A (en) | Method and apparatus based on sound wave identification user and equipment identities safety | |
CN119094159A (en) | A multi-factor mobile phone security authentication method based on integrated voice mobile network | |
US20090150150A1 (en) | System and method for controlling access to a handheld device by validating voice sounds | |
Phipps et al. | Enhancing cyber security using audio techniques: a public key infrastructure for sound | |
CN108897999A (en) | A terminal screen unlocking method based on sound verification | |
US20230368798A1 (en) | Secure communication system with speaker recognition by voice biometrics for user groups such as family groups | |
Huang et al. | A defense scheme of voice control system against DolphinAttack | |
Chen et al. | Manipulating Users' Trust on Amazon Echo: Compromising Smart Home from Outside. | |
Chang et al. | EveGuard: Defeating Vibration-based Side-Channel Eavesdropping with Audio Adversarial Perturbations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181009 |