[go: up one dir, main page]

CN115276827A - Information processing method, device, electronic device and storage medium - Google Patents

Information processing method, device, electronic device and storage medium Download PDF

Info

Publication number
CN115276827A
CN115276827A CN202210673640.3A CN202210673640A CN115276827A CN 115276827 A CN115276827 A CN 115276827A CN 202210673640 A CN202210673640 A CN 202210673640A CN 115276827 A CN115276827 A CN 115276827A
Authority
CN
China
Prior art keywords
sine wave
target
information
character string
audio signal
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
CN202210673640.3A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202210673640.3A priority Critical patent/CN115276827A/en
Publication of CN115276827A publication Critical patent/CN115276827A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

According to the information processing method, the information processing device, the electronic equipment and the storage medium, the base64 character string is obtained by encoding the information to be encrypted through the sending end; determining a frequency array corresponding to a base64 character string based on a character frequency mapping table, wherein the character frequency mapping table comprises a corresponding relation between characters and frequencies; calculating by adopting an energy formula based on the frequency array to obtain a positive-sine wave audio signal; playing the sine wave audio signal, and then acquiring the sine wave audio signal by a receiving end; determining a target frequency array based on the sine wave audio signal; determining a base64 character string corresponding to the target frequency array based on the character frequency mapping table; and decoding the base64 character string to obtain recognizable character string information, and realizing the transmission of information (such as sound waves).

Description

信息处理方法、装置、电子设备及存储介质Information processing method, device, electronic device and storage medium

技术领域technical field

本申请涉及信息处理技术领域,特别地涉及一种信息处理方法、装置、电子设备及存储介质。The present application relates to the technical field of information processing, and in particular to an information processing method, device, electronic equipment, and storage medium.

背景技术Background technique

随着科技的发展,现在社会上出现了越来越多的智能硬件,在这些产品的使用过程中都是需要配网的,由于成本的限制,这些智能硬件很多没有屏幕、键盘等信息输入口。现在有很多配网的传输技术,其中,声波配网传输就是其中一种。声波配网的原理就是通过声波来把WiFi的初始化连接信息传递给智能设备,让设备识别完成WiFi初始化流程建立网络连接,如何实现声波的传输是声波配网的技术难点。With the development of science and technology, there are more and more intelligent hardware in the society. In the process of using these products, network distribution is required. Due to cost constraints, many of these intelligent hardware do not have information input ports such as screens and keyboards. . Now there are many distribution network transmission technologies, among which, acoustic wave distribution network transmission is one of them. The principle of the sonic distribution network is to transmit the WiFi initialization connection information to the smart device through the sound wave, so that the device can identify and complete the WiFi initialization process to establish a network connection. How to realize the transmission of the sound wave is the technical difficulty of the sonic distribution network.

发明内容Contents of the invention

针对上述相关技术中的问题本申请提供一种信息处理方法、装置、电子设备及存储介质,能够实现信息(如声波)的传输。In view of the problems in the above-mentioned related technologies, the present application provides an information processing method, device, electronic equipment and storage medium, which can realize the transmission of information (such as sound waves).

本申请提供了一种信息处理方法,应用于发送端,所述方法包括:This application provides an information processing method, which is applied to the sending end, and the method includes:

对待加密信息进行编码得到base64字符串;Encode the information to be encrypted to obtain a base64 string;

基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;Determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies;

基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;Calculate based on the frequency array using an energy formula to obtain a sine wave audio signal;

播放所述正弦波音频信号。Play the sine wave audio signal.

在一些实施例中,所述待加密信息为配网的初始化连接信息,所述待加密信息为UTF-8字符串。In some embodiments, the information to be encrypted is initial connection information of the distribution network, and the information to be encrypted is a UTF-8 character string.

本申请实施例提供一种信息处理方法,应用于接收端,包括:An embodiment of the present application provides an information processing method applied to a receiving end, including:

获取正弦波音频信号;Obtain a sine wave audio signal;

基于所述正弦波音频信号确定目标频率数组;determining a target frequency array based on the sine wave audio signal;

基于字符频率映射表确定目标频率数组对应的base64字符串;Determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table;

对所述base64字符串进行解码,得到能够识别的字符串信息。The base64 character string is decoded to obtain recognizable character string information.

在一些实施例中,所述基于所述正弦波音频信号确定目标频率数组,包括:In some embodiments, the determining the target frequency array based on the sine wave audio signal includes:

确定正弦波音频信号中第一个单频率正弦波和最后一个单频率正弦波;Determine the first single-frequency sine wave and the last single-frequency sine wave in a sine wave audio signal;

将第一个单频率正弦波确定为开始音节,将最后一个单频率正弦波确定为结束音节;Determine the first single-frequency sine wave as the start syllable, and determine the last single-frequency sine wave as the end syllable;

基于所述开始音节和结束音节确定目标正弦波信号段;determining a target sine wave signal segment based on the start syllable and the end syllable;

基于所述目标正弦波信号段确定目标频率数组。A target frequency array is determined based on the target sine wave signal segment.

在一些实施例中,基于所述目标正弦波信号段确定目标频率数组,包括:In some embodiments, determining the target frequency array based on the target sine wave signal segment includes:

确定目标正弦波信号段中的对齐音节;Determining aligned syllables in the target sine wave signal segment;

基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,以得到目标频率数组。The target sine wave signal segment is analyzed based on the aligned syllables and the analysis window to obtain a target frequency array.

在一些实施例中,所述基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,包括:In some embodiments, the analyzing the target sine wave signal segment based on the aligned syllables and the analysis window includes:

基于所述对齐音节和解析窗口采用快速傅里叶变换对所述目标正弦波信号段进行解析,其中,所述解析窗口大于一个音节。The target sine wave signal segment is analyzed by fast Fourier transform based on the aligned syllables and the analysis window, wherein the analysis window is larger than one syllable.

在一些实施例中,所述确定目标正弦波信号段中的对齐音节,包括:In some embodiments, the determining the aligned syllables in the target sine wave signal segment includes:

确定所述目标正弦波信号段中各个音节的振幅;determining the amplitude of each syllable in the target sine wave signal segment;

确定最大振幅不变的多个音节;determine the number of syllables whose maximum amplitude is constant;

将多个音节中的中间音节确定为对齐音节。The middle syllable among the plurality of syllables is determined as the aligned syllable.

在一些实施例中,所述字符串信息为配网的初始化连接信息,所述方法还包括:In some embodiments, the character string information is initial connection information of the distribution network, and the method further includes:

基于所述配网的初始化连接信息对WIFI模块进行初始化;Initialize the WIFI module based on the initialization connection information of the distribution network;

建立接收端与发送端之间的WIFI连接。Establish a WIFI connection between the receiving end and the sending end.

本申请实施例提供一种信息处理装置,包括:An embodiment of the present application provides an information processing device, including:

编码模块,用于对待加密信息进行编码得到base64字符串;The encoding module is used to encode the information to be encrypted to obtain a base64 string;

第一确定模块,用于基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;The first determination module is used to determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies;

第二确定模块,用于基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;The second determination module is used to calculate based on the frequency array using an energy formula to obtain a sine wave audio signal;

播放模块播放所述正弦波音频信号。The playing module plays the sine wave audio signal.

本申请实施例提供一种信息处理装置,包括:An embodiment of the present application provides an information processing device, including:

获取模块,用于获取正弦波音频信号;An acquisition module, configured to acquire a sine wave audio signal;

第三确定模块,用于基于所述正弦波音频信号确定目标频率数组;A third determination module, configured to determine a target frequency array based on the sine wave audio signal;

第四确定模块,用于基于字符频率映射表确定目标频率数组对应的base64字符串;The fourth determination module is used to determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table;

解码模块,对所述base64字符串进行解码,得到能够识别的字符串信息。The decoding module decodes the base64 character string to obtain recognizable character string information.

本申请实施例提供一种电子设备,包括存储器和处理器,所述存储器上存储有计算机程序,该计算机程序被所述处理器执行时,执行上述任意一项所述信息处理方法。An embodiment of the present application provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the information processing methods described above is executed.

本申请实施例提供一种存储介质,该存储介质存储的计算机程序,能够被一个或多个处理器执行,能够用来实现上述任一项所述信息处理方法。An embodiment of the present application provides a storage medium, the computer program stored in the storage medium can be executed by one or more processors, and can be used to implement the information processing method described in any one of the above.

本申请提供的一种信息处理方法、装置、电子设备及存储介质,通过发送端对待加密信息进行编码得到base64字符串;基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;播放所述正弦波音频信号,然后接收端获取正弦波音频信号;基于所述正弦波音频信号确定目标频率数组;基于字符频率映射表确定目标频率数组对应的base64字符串;对所述base64字符串进行解码,得到能够识别的字符串信息,实现信息(如声波)的传输。An information processing method, device, electronic device, and storage medium provided by the present application obtain a base64 character string by encoding the information to be encrypted at the sending end; determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping The table includes the corresponding relationship between characters and frequencies; based on the frequency array, the energy formula is used to calculate, and the sine wave audio signal is obtained; the sine wave audio signal is played, and then the receiving end obtains the sine wave audio signal; based on the sine wave The wave audio signal determines the target frequency array; determines the base64 character string corresponding to the target frequency array based on the character frequency mapping table; the base64 character string is decoded to obtain recognizable character string information to realize the transmission of information (such as sound waves).

附图说明Description of drawings

在下文中将基于实施例并参考附图来对本申请进行更详细的描述。Hereinafter, the present application will be described in more detail based on the embodiments with reference to the accompanying drawings.

图1为本申请实施例提供的一种信息处理方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flow of an information processing method provided in an embodiment of the present application;

图2为本申请实施例提供的另一种信息处理方法的实现流程示意图;FIG. 2 is a schematic diagram of an implementation flow of another information processing method provided in the embodiment of the present application;

图3为本申请实施例提供的一种信息处理装置的结构示意图;FIG. 3 is a schematic structural diagram of an information processing device provided in an embodiment of the present application;

图4为本申请实施例提供的电子设备的组成结构示意图。FIG. 4 is a schematic diagram of the composition and structure of an electronic device provided by an embodiment of the present application.

在附图中,相同的部件使用相同的附图标记,附图并未按照实际的比例绘制。In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale.

具体实施方式Detailed ways

为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. All other embodiments obtained under the premise of creative labor belong to the scope of protection of this application.

在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.

如果申请文件中出现“第一\第二\第三”的类似描述则增加以下的说明,在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。If there is a similar description of "first\second\third" in the application documents, add the following explanation. In the following description, the term "first\second\third" is only to distinguish similar Objects do not represent a specific order for objects. It is understandable that "first\second\third" can be exchanged for a specific order or sequence if allowed, so that the embodiments of the application described here can be Sequences other than those illustrated or described herein are performed.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

基于相关技术中存在的问题,本申请实施例提供一种信息处理方法,所述方法应用于发送端,所述发送端可以是电子设备,所述电子设备可以移动终端、计算机、家居设备等。本申请实施例提供的信息处理方法所实现的功能可以通过电子设备的处理器调用程序代码来实现,其中,程序代码可以保存在计算机存储介质中。Based on the problems existing in the related technologies, an embodiment of the present application provides an information processing method. The method is applied to a sending end. The sending end may be an electronic device, and the electronic device may be a mobile terminal, a computer, or a home appliance. The functions implemented by the information processing method provided in the embodiments of the present application may be implemented by calling program codes by a processor of an electronic device, where the program codes may be stored in a computer storage medium.

本申请实施例提供一种信息处理方法,图1为本申请实施例提供的一种信息处理方法的实现流程示意图,如图1所示,包括:The embodiment of the present application provides an information processing method. FIG. 1 is a schematic diagram of the implementation flow of the information processing method provided in the embodiment of the present application. As shown in FIG. 1 , it includes:

步骤S1,对待加密信息进行编码得到base64字符串。Step S1, encoding the information to be encrypted to obtain a base64 character string.

本申请实施例中,待加密信息可以为配网的初始化连接信息,所述待加密信息为UTF-8字符串。UTF-8字符串能够被电子设备进行识别。所述待加密信息可以根据业务需求进行添加。网络可以是WIFI网络。In the embodiment of the present application, the information to be encrypted may be initialization connection information of the distribution network, and the information to be encrypted is a UTF-8 character string. UTF-8 strings can be recognized by electronic devices. The information to be encrypted can be added according to business requirements. The network may be a WIFI network.

本申请实施例中,base64字符串由“0-9,a-z,A-Z,+,-”字符等组成。In the embodiment of this application, the base64 string is composed of "0-9, a-z, A-Z, +, -" characters and so on.

步骤S2,基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系。Step S2, determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies.

本申请实施例中,可以在发送端中预先建立字符频率映射表,其中,字符频率映射表包括字符与频率之间的对应关系,在发送端获取到base64字符串后,可以基于字符频率映射表来确定对应的频率数组。In the embodiment of the present application, a character frequency mapping table can be pre-established in the sending end, wherein the character frequency mapping table includes the correspondence between characters and frequencies. After the sending end obtains the base64 character string, it can be based on the character frequency mapping table to determine the corresponding frequency array.

步骤S3,基于所述频率数组采用energy公式进行计算,得到正玄波音频信号。Step S3, calculate based on the frequency array using an energy formula to obtain a sine wave audio signal.

所述energy公式可以是梅尔能量公式。The energy formula may be a Mel energy formula.

步骤S4,播放所述正弦波音频信号。Step S4, playing the sine wave audio signal.

本申请实施例中,在发送端播放所述正弦波音频信号后,即可以完成发送端将待加密信息传输给接收端。In the embodiment of the present application, after the sending end plays the sine wave audio signal, the sending end can complete the transmission of the information to be encrypted to the receiving end.

本申请实施例中,在接收端设备接收到正弦波音频信号后,可以基于基于所述正弦波音频信号确定目标频率数组;基于字符频率映射表确定目标频率数组对应的base64字符串;对所述base64字符串进行解码,得到能够识别的字符串信息。In the embodiment of the present application, after receiving the sine wave audio signal, the receiver device can determine the target frequency array based on the sine wave audio signal; determine the base64 string corresponding to the target frequency array based on the character frequency mapping table; The base64 string is decoded to obtain the recognizable string information.

承接上面的示例,当待加密信息为配网的初始化连接信息时,接收端在接收到正弦波音频信号后,即可以进行解码得到字符串信息,从而得到配置的初始化连接信息,进而实现配网的初始化,以完成与发送端的网络连接。Following the above example, when the information to be encrypted is the initialization connection information of the distribution network, after receiving the sine wave audio signal, the receiving end can decode the string information to obtain the configuration initialization connection information, and then realize the distribution network initialization to complete the network connection with the sender.

本申请提供的一种信息处理方法,通过发送端对待加密信息进行编码得到base64字符串;基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;播放所述正弦波音频信号,然后接收端获取正弦波音频信号;基于所述正弦波音频信号确定目标频率数组;基于字符频率映射表确定目标频率数组对应的base64字符串;对所述base64字符串进行解码,得到能够识别的字符串信息,实现信息(如声波)的传输。An information processing method provided by the present application comprises encoding the information to be encrypted at the sending end to obtain a base64 character string; determining the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes characters and frequencies Correspondence; Calculate based on the energy formula of the frequency array to obtain a sine wave audio signal; play the sine wave audio signal, and then the receiving end obtains the sine wave audio signal; determine the target frequency array based on the sine wave audio signal; Determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table; decode the base64 character string to obtain recognizable character string information, and realize the transmission of information (such as sound waves).

基于前述的各个实施例,本申请实施例再提供一种信息处理方法,所述方法应用于接收端,所述接收端可以是电子设备,所述电子设备可以移动终端、计算机、家居设备等。本申请实施例提供的信息处理方法所实现的功能可以通过电子设备的处理器调用程序代码来实现,其中,程序代码可以保存在计算机存储介质中。Based on the foregoing embodiments, an embodiment of the present application further provides an information processing method, the method is applied to a receiving end, and the receiving end may be an electronic device, and the electronic device may be a mobile terminal, a computer, or a household device. The functions implemented by the information processing method provided in the embodiments of the present application may be implemented by calling program codes by a processor of an electronic device, where the program codes may be stored in a computer storage medium.

本申请实施例提供一种信息处理方法,图2为本申请实施例提供的一种信息处理方法的实现流程示意图,如图2所示,包括:The embodiment of the present application provides an information processing method. FIG. 2 is a schematic diagram of the implementation flow of the information processing method provided in the embodiment of the present application. As shown in FIG. 2 , it includes:

步骤S21,获取正弦波音频信号。Step S21, acquiring a sine wave audio signal.

本申请实施例中,接收端有音频接收装置,实时采集音频信号。所述正弦波音频信号是发送端对待加密信息进行编码得到base64字符串;基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;播放所述正弦波音频信号。In the embodiment of the present application, the receiving end has an audio receiving device to collect audio signals in real time. The sine wave audio signal is that the sending end encodes the information to be encrypted to obtain a base64 character string; determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies; The frequency array is calculated using an energy formula to obtain a sine wave audio signal; and the sine wave audio signal is played.

步骤S22,基于所述正弦波音频信号确定目标频率数组。Step S22, determining a target frequency array based on the sine wave audio signal.

本申请实施例中,由于接收端获取正弦波音频信号的时候,还是会获取到噪音,因此,这里需要从正弦波音频信号中获取目标频率数组。In the embodiment of the present application, when the receiving end obtains the sine wave audio signal, it still obtains noise, therefore, it is necessary to obtain the target frequency array from the sine wave audio signal.

本申请实施例中,可以确定正弦波音频信号中第一个单频率正弦波和最后一个单频率正弦波;将第一个单频率正弦波确定为开始音节,将最后一个单频率正弦波确定为结束音节;基于所述开始音节和结束音节确定目标正弦波信号段;基于所述目标正弦波信号段确定目标频率数组。In the embodiment of the present application, the first single-frequency sine wave and the last single-frequency sine wave in the sine wave audio signal can be determined; the first single-frequency sine wave is determined as the beginning syllable, and the last single-frequency sine wave is determined as The end syllable; determine the target sine wave signal segment based on the start syllable and the end syllable; determine the target frequency array based on the target sine wave signal segment.

本申请实施例中,一段携带一个字符信息的单频率的正弦波为一个音节,二开始音节告诉接收端,在该音节结束之后,后面的音频信号就是携带有有效信息的声波。而结束音节用于表征携带有有效信息的声波结束。因此,本申请实施例中,可以通过开始音节和结束音节来确定目标弦波信号段,该目标弦波信号段即为发送端发送的有效信息。In the embodiment of the present application, a single-frequency sine wave carrying one character information is a syllable, and the second syllable tells the receiving end that after the end of the syllable, the subsequent audio signal is a sound wave carrying valid information. And the ending syllable is used to represent the end of the sound wave carrying valid information. Therefore, in the embodiment of the present application, the target sinusoidal signal segment can be determined through the start syllable and the end syllable, and the target sinusoidal signal segment is the effective information sent by the sending end.

本申请实施例中,可以基于确定目标正弦波信号段中的对齐音节;基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,以得到目标频率数组。所述基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,可以基于所述对齐音节和解析窗口采用快速傅里叶变换对所述目标正弦波信号段进行解析,其中,所述解析窗口大于一个音节。In the embodiment of the present application, it may be based on determining aligned syllables in the target sine wave signal segment; and analyzing the target sine wave signal segment based on the aligned syllables and the analysis window to obtain a target frequency array. In the analysis of the target sine wave signal segment based on the aligned syllables and the analysis window, the target sine wave signal segment may be analyzed based on the aligned syllables and the analysis window by using Fast Fourier Transform, wherein the The above parsing window is larger than one syllable.

本申请实施例中,快速傅里叶变换为经典库Mark Borgerding的kiss_fft。In the embodiment of this application, the fast Fourier transform is the kiss_fft of the classic library Mark Borgerding.

本申请实施例中,在确定目标正弦波信号段中的对齐音节可以通过以下步骤实现:确定所述目标正弦波信号段中各个音节的振幅;确定最大振幅不变的多个音节;将多个音节中的中间音节确定为对齐音节。In the embodiment of the present application, determining the aligned syllables in the target sine wave signal segment can be achieved through the following steps: determining the amplitude of each syllable in the target sine wave signal segment; determining a plurality of syllables whose maximum amplitude remains unchanged; The middle syllable in the syllable is determined as the aligned syllable.

可以通过解析窗口从开始音节划过目标正弦波信号段以确定各个音节的振幅。The amplitude of each syllable can be determined by passing the analytical window across the target sine wave signal segment from the initial syllable.

步骤S23,基于字符频率映射表确定目标频率数组对应的base64字符串。Step S23, determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table.

本申请实施例中,接收端中预先建立有字符频率映射表,字符频率映射表包括字符与频率之间的对应关系。所述base64为“0-9,a-z,A-Z,+,-”字符等组成。In the embodiment of the present application, a character-frequency mapping table is pre-established in the receiving end, and the character-frequency mapping table includes correspondences between characters and frequencies. The base64 is composed of "0-9, a-z, A-Z, +, -" characters and so on.

步骤S24,对所述base64字符串进行解码,得到能够识别的字符串信息。Step S24, decoding the base64 character string to obtain recognizable character string information.

本申请实施例中,可以通过解码软件来对base64字符串进行解码,所述字符串信息为UTF-8字符串。In the embodiment of the present application, the base64 character string can be decoded by decoding software, and the character string information is a UTF-8 character string.

本申请实施例中,所述字符串信息为配网的初始化连接信息,所述方法还包括:基于所述配网的初始化连接信息对WIFI模块进行初始化;建立接收端与发送端之间的WIFI连接。In the embodiment of the present application, the character string information is the initialization connection information of the distribution network, and the method further includes: initializing the WIFI module based on the initialization connection information of the distribution network; establishing a WIFI connection between the receiving end and the sending end connect.

本申请提供的一种信息处理方法,通过发送端对待加密信息进行编码得到base64字符串;基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;播放所述正弦波音频信号,然后接收端获取正弦波音频信号;基于所述正弦波音频信号确定目标频率数组;基于字符频率映射表确定目标频率数组对应的base64字符串;对所述base64字符串进行解码,得到能够识别的字符串信息,实现信息(如声波)的传输。An information processing method provided by the present application comprises encoding the information to be encrypted at the sending end to obtain a base64 character string; determining the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes characters and frequencies Correspondence; Calculate based on the energy formula of the frequency array to obtain a sine wave audio signal; play the sine wave audio signal, and then the receiving end obtains the sine wave audio signal; determine the target frequency array based on the sine wave audio signal; Determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table; decode the base64 character string to obtain recognizable character string information, and realize the transmission of information (such as sound waves).

基于前述的各个实施例,本申请实施例提供一种信息处理系统,所述信息处理系统包括:发送端和接收端,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application provides an information processing system, the information processing system includes: a sending end and a receiving end, and the method includes:

步骤S31,发送端对待加密信息进行编码得到base64字符串;Step S31, the sending end encodes the information to be encrypted to obtain a base64 string;

步骤S32,发送端基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;Step S32, the sending end determines the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies;

步骤S33,发送端基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;Step S33, the sending end calculates based on the frequency array using an energy formula to obtain a sine wave audio signal;

步骤S34,发送端播放所述正弦波音频信号。Step S34, the sending end plays the sine wave audio signal.

步骤S35,获取正弦波音频信号;Step S35, acquiring a sine wave audio signal;

步骤S36,基于所述正弦波音频信号确定目标频率数组;Step S36, determining a target frequency array based on the sine wave audio signal;

步骤S37,基于字符频率映射表确定目标频率数组对应的base64字符串;Step S37, determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table;

步骤S38,对所述base64字符串进行解码,得到能够识别的字符串信息。Step S38, decoding the base64 character string to obtain recognizable character string information.

本申请提供的一种信息处理方法,通过发送端对待加密信息进行编码得到base64字符串;基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;播放所述正弦波音频信号,然后接收端获取正弦波音频信号;基于所述正弦波音频信号确定目标频率数组;基于字符频率映射表确定目标频率数组对应的base64字符串;对所述base64字符串进行解码,得到能够识别的字符串信息,实现信息(如声波)的传输。An information processing method provided by the present application comprises encoding the information to be encrypted at the sending end to obtain a base64 character string; determining the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes characters and frequencies Correspondence; Calculate based on the energy formula of the frequency array to obtain a sine wave audio signal; play the sine wave audio signal, and then the receiving end obtains the sine wave audio signal; determine the target frequency array based on the sine wave audio signal; Determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table; decode the base64 character string to obtain recognizable character string information, and realize the transmission of information (such as sound waves).

基于前述的各个实施例,本申请实施例提供完成声波传输的一种加解密具体方法,Based on the foregoing embodiments, this embodiment of the present application provides a specific encryption and decryption method for completing acoustic wave transmission,

其中,发送端加密方案:Among them, the sending end encryption scheme:

通过对待加密信息(UTF-8字符串)进行base64编码得到base64字符串(0-9,a-z,A-Z,+,-),构建字符与频率的对应表,通过映射获取频率数组,通过energy公式计算可以得到正弦波音频信号,转换为音频进行播放。其中,energy公式可在网上查询得到,字符频率映射表需要自己构建,其中字符需包含base64编码后的字符,也即:(0-9,a-z,A-Z,+,-),音频需要根据自己业务需要进行添加,比如:我需要播放鸟叫的声音等,可以动态配置化,可供使用者选择。Base64 encoding is performed on the encrypted information (UTF-8 string) to obtain a base64 string (0-9, a-z, A-Z, +, -), build a correspondence table between characters and frequencies, obtain the frequency array through mapping, and calculate through the energy formula The sine wave audio signal can be obtained and converted into audio for playback. Among them, the energy formula can be found on the Internet, and the character frequency mapping table needs to be constructed by itself, where the characters need to contain base64 encoded characters, that is: (0-9, a-z, A-Z, +, -), audio needs to be based on your own business It needs to be added, for example: I need to play the sound of birds, etc., which can be dynamically configured and available for users to choose.

接收端解密方案:Receiver decryption scheme:

解密方案主要步骤还是加密的逆向进行:The main steps of the decryption scheme are the reverse of the encryption:

1、从正弦波音频信号到对应的频率数组;1. From the sine wave audio signal to the corresponding frequency array;

2、根据频率数组反映射到base64字符串;2. Anti-map to base64 string according to the frequency array;

3、通过base64解码,将其转为我们可识别的字符串信息。3. Through base64 decoding, convert it into string information that we can recognize.

其中主要也是最复杂的是第1步,这里将分为以下6个点进行处理:The main and most complicated step is the first step, which will be divided into the following six points for processing:

1、音频信号的采集;1. Acquisition of audio signals;

音频采集,不用过多赘述;Audio collection, no need to go into details;

2、开始音节;2. Start syllable;

我们把一段携带一个字符信息的单频率的正弦波叫做一个音节;开始音节就是告诉解码端,从这个音节结束之后,后面的音频信号就是携带有效信息的声波;We call a single-frequency sine wave carrying a character information a syllable; the beginning syllable is to tell the decoder that after the end of this syllable, the following audio signal is a sound wave carrying effective information;

3、快速傅里叶变换;3. Fast Fourier transform;

推荐使用经典库Mark Borgerding的kiss_fft。It is recommended to use the kiss_fft of the classic library Mark Borgerding.

4、解析窗口大小的选取;4. Selection of analysis window size;

一般情况下,解析窗口大小大于音节窗口;In general, the parsing window size is larger than the syllable window;

5、对齐音节;5. Align syllables;

解析窗口从左到右划过目标音节时,快速傅里叶变换的目标音节的振幅是先变大后变小的,在保持最大振幅不变的几个位置的中间位置是最靠近完全对齐音节的位置。When the analysis window crosses the target syllable from left to right, the amplitude of the target syllable of the Fast Fourier Transform first increases and then decreases, and the middle position of several positions that keep the maximum amplitude unchanged is the closest to the fully aligned syllable s position.

6、顺序解析;6. Sequential analysis;

找到对齐音节之后,就依次按照顺序进行解析。After the aligned syllables are found, they are parsed sequentially.

7、结束音节;7. End syllable;

当顺序解析到设定的结束音节时,说明本次信息传输结束,可以结束解析啦。When the sequence is parsed to the set end syllable, it means that this information transmission is over, and the parsing can be ended.

基于前述的实施例,本申请实施例提供一种信息处理装置,该装置包括的各模块、以及各模块包括的各单元,可以通过计算机设备中的处理器来实现;当然也可通过具体的逻辑电路实现;在实施的过程中,处理器可以为中央处理器(CPU,Central ProcessingUnit)、微处理器(MPU,Microprocessor Unit)、数字信息处理器(DSP,Digital SignalProcessing)或现场可编程门阵列(FPGA,Field Programmable Gate Array)等。Based on the aforementioned embodiments, this embodiment of the present application provides an information processing device. The modules included in the device and the units included in each module can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic Circuit implementation; in the process of implementation, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital information processor (DSP, Digital Signal Processing) or a field programmable gate array ( FPGA, Field Programmable Gate Array), etc.

本申请实施例提供一种信息处理装置,图3为本申请实施例提供的一种信息处理装置的结构示意图,如图3所示,信息处理装置300包括:An embodiment of the present application provides an information processing device. FIG. 3 is a schematic structural diagram of an information processing device provided in an embodiment of the present application. As shown in FIG. 3 , the information processing device 300 includes:

编码模块301,用于对待加密信息进行编码得到base64字符串;An encoding module 301, configured to encode the information to be encrypted to obtain a base64 character string;

第一确定模块302,用于基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;The first determination module 302 is used to determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies;

第二确定模块303,用于基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;The second determination module 303 is used to calculate based on the frequency array using an energy formula to obtain a sine wave audio signal;

播放模块304,用于播放所述正弦波音频信号。The playing module 304 is configured to play the sine wave audio signal.

在一些实施例中,所述待加密信息为配网的初始化连接信息,所述待加密信息为UTF-8字符串。In some embodiments, the information to be encrypted is initial connection information of the distribution network, and the information to be encrypted is a UTF-8 character string.

本申请实施例提供一种信息处理装置,包括:An embodiment of the present application provides an information processing device, including:

获取模块,用于获取正弦波音频信号;An acquisition module, configured to acquire a sine wave audio signal;

第三确定模块,用于基于所述正弦波音频信号确定目标频率数组;A third determining module, configured to determine a target frequency array based on the sine wave audio signal;

第四确定模块,用于基于字符频率映射表确定目标频率数组对应的base64字符串;The fourth determination module is used to determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table;

解码模块,对所述base64字符串进行解码,得到能够识别的字符串信息。The decoding module decodes the base64 character string to obtain recognizable character string information.

在一些实施例中,所述第三确定模块具体用于:In some embodiments, the third determining module is specifically used for:

确定正弦波音频信号中第一个单频率正弦波和最后一个单频率正弦波;Determine the first single-frequency sine wave and the last single-frequency sine wave in a sine wave audio signal;

将第一个单频率正弦波确定为开始音节,将最后一个单频率正弦波确定为结束音节;Determine the first single-frequency sine wave as the start syllable, and determine the last single-frequency sine wave as the end syllable;

基于所述开始音节和结束音节确定目标正弦波信号段;determining a target sine wave signal segment based on the start syllable and the end syllable;

基于所述目标正弦波信号段确定目标频率数组。A target frequency array is determined based on the target sine wave signal segment.

在一些实施例中,基于所述目标正弦波信号段确定目标频率数组,包括:In some embodiments, determining the target frequency array based on the target sine wave signal segment includes:

确定目标正弦波信号段中的对齐音节;Determining aligned syllables in the target sine wave signal segment;

基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,以得到目标频率数组。The target sine wave signal segment is analyzed based on the aligned syllables and the analysis window to obtain a target frequency array.

在一些实施例中,所述基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,包括:In some embodiments, the analyzing the target sine wave signal segment based on the aligned syllables and the analysis window includes:

基于所述对齐音节和解析窗口采用快速傅里叶变换对所述目标正弦波信号段进行解析,其中,所述解析窗口大于一个音节。The target sine wave signal segment is analyzed by fast Fourier transform based on the aligned syllables and the analysis window, wherein the analysis window is larger than one syllable.

在一些实施例中,所述确定目标正弦波信号段中的对齐音节,包括:In some embodiments, the determining the aligned syllables in the target sine wave signal segment includes:

确定所述目标正弦波信号段中各个音节的振幅;determining the amplitude of each syllable in the target sine wave signal segment;

确定最大振幅不变的多个音节;Determine multiple syllables with constant maximum amplitude;

将多个音节中的中间音节确定为对齐音节。The middle syllable among the plurality of syllables is determined as the aligned syllable.

在一些实施例中,所述字符串信息为配网的初始化连接信息,所述信息处理装置还用于:基于所述配网的初始化连接信息对WIFI模块进行初始化;建立接收端与发送端之间的WIFI连接。In some embodiments, the character string information is the initial connection information of the distribution network, and the information processing device is also used to: initialize the WIFI module based on the initial connection information of the distribution network; establish a connection between the receiving end and the sending end WIFI connection between.

需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的信息处理方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,ReadOnly Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present application, if the above-mentioned information processing method is realized in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for Make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media capable of storing program codes such as a U disk, a mobile hard disk, a read-only memory (ROM, ReadOnly Memory), a magnetic disk or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.

相应地,本申请实施例提供一种存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现上述实施例中提供的信息处理方法中的步骤。Correspondingly, an embodiment of the present application provides a storage medium on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps in the information processing method provided in the foregoing embodiments are implemented.

本申请实施例提供一种电子设备;图4为本申请实施例提供的电子设备的组成结构示意图,如图4所示,所述电子设备400包括:一个处理器401、至少一个通信总线402、用户接口403、至少一个外部通信接口404、存储器405。其中,通信总线402配置为实现这些组件之间的连接通信。其中,用户接口403可以包括显示屏,外部通信接口404可以包括标准的有线接口和无线接口。所述处理器401配置为执行存储器中存储的信息处理方法的程序,以实现以上述实施例提供的信息处理方法中的步骤。The embodiment of the present application provides an electronic device; FIG. 4 is a schematic diagram of the composition and structure of the electronic device provided in the embodiment of the present application. As shown in FIG. 4 , the electronic device 400 includes: a processor 401, at least one communication bus 402, User interface 403 , at least one external communication interface 404 , memory 405 . Wherein, the communication bus 402 is configured to realize connection and communication between these components. Wherein, the user interface 403 may include a display screen, and the external communication interface 404 may include a standard wired interface and a wireless interface. The processor 401 is configured to execute the program of the information processing method stored in the memory, so as to realize the steps in the information processing method provided in the above-mentioned embodiments.

这里需要指出的是:以上存储介质和电子设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that: the descriptions of the above storage medium and electronic device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to those of the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation. The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、对象或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、对象或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、对象或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, object or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, object, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional same elements in the process, method, object or apparatus comprising the element.

在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.

上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in computer-readable storage media. When the program is executed, the execution includes The steps of the foregoing method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes such as removable storage devices, read only memory (ROM, Read Only Memory), magnetic disks or optical disks.

或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台控制器执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for A controller is made to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks.

以上所述,仅为本申请的实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only the embodiment of the present application, but the scope of protection of the present application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, and should covered within the scope of protection of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (12)

1.一种信息处理方法,其特征在于,应用于发送端,包括:1. An information processing method, characterized in that it is applied to the sending end, comprising: 对待加密信息进行编码得到base64字符串;Encode the information to be encrypted to obtain a base64 string; 基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;Determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies; 基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;Calculate based on the frequency array using an energy formula to obtain a sine wave audio signal; 播放所述正弦波音频信号。Play the sine wave audio signal. 2.根据权利要求1所述的方法,其特征在于,所述待加密信息为配网的初始化连接信息,所述待加密信息为UTF-8字符串。2. The method according to claim 1, wherein the information to be encrypted is initialization connection information of the distribution network, and the information to be encrypted is a UTF-8 character string. 3.一种信息处理方法,其特征在于,应用于接收端,包括:3. An information processing method, characterized in that it is applied to the receiving end, comprising: 获取正弦波音频信号;Obtain a sine wave audio signal; 基于所述正弦波音频信号确定目标频率数组;determining a target frequency array based on the sine wave audio signal; 基于字符频率映射表确定目标频率数组对应的base64字符串;Determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table; 对所述base64字符串进行解码,得到能够识别的字符串信息。The base64 character string is decoded to obtain recognizable character string information. 4.根据权利要求3所述的方法,其特征在于,所述基于所述正弦波音频信号确定目标频率数组,包括:4. The method according to claim 3, wherein the determining the target frequency array based on the sine wave audio signal comprises: 确定正弦波音频信号中第一个单频率正弦波和最后一个单频率正弦波;Determine the first single-frequency sine wave and the last single-frequency sine wave in a sine wave audio signal; 将第一个单频率正弦波确定为开始音节,将最后一个单频率正弦波确定为结束音节;Determine the first single-frequency sine wave as the start syllable, and determine the last single-frequency sine wave as the end syllable; 基于所述开始音节和结束音节确定目标正弦波信号段;determining a target sine wave signal segment based on the start syllable and the end syllable; 基于所述目标正弦波信号段确定目标频率数组。A target frequency array is determined based on the target sine wave signal segment. 5.根据权利要求4所述的方法,其特征在于,基于所述目标正弦波信号段确定目标频率数组,包括:5. The method according to claim 4, wherein determining the target frequency array based on the target sine wave signal segment comprises: 确定目标正弦波信号段中的对齐音节;Determining aligned syllables in the target sine wave signal segment; 基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,以得到目标频率数组。The target sine wave signal segment is analyzed based on the aligned syllables and the analysis window to obtain a target frequency array. 6.根据权利要求5所述的方法,其特征在于,所述基于所述对齐音节和解析窗口对所述目标正弦波信号段进行解析,包括:6. method according to claim 5, is characterized in that, described target sine wave signal segment is analyzed based on described alignment syllable and analysis window, comprising: 基于所述对齐音节和解析窗口采用快速傅里叶变换对所述目标正弦波信号段进行解析,其中,所述解析窗口大于一个音节。The target sine wave signal segment is analyzed by fast Fourier transform based on the aligned syllables and the analysis window, wherein the analysis window is larger than one syllable. 7.根据权利要求5所述的方法,其特征在于,所述确定目标正弦波信号段中的对齐音节,包括:7. method according to claim 5, is characterized in that, the alignment syllable in the described determination target sine wave signal segment, comprises: 确定所述目标正弦波信号段中各个音节的振幅;determining the amplitude of each syllable in the target sine wave signal segment; 确定最大振幅不变的多个音节;Determine multiple syllables with constant maximum amplitude; 将多个音节中的中间音节确定为对齐音节。The middle syllable among the plurality of syllables is determined as the aligned syllable. 8.根据权利要求5所述的方法,其特征在于,所述字符串信息为配网的初始化连接信息,所述方法还包括:8. The method according to claim 5, wherein the character string information is initialization connection information of the distribution network, and the method further comprises: 基于所述配网的初始化连接信息对WIFI模块进行初始化;Initialize the WIFI module based on the initialization connection information of the distribution network; 建立接收端与发送端之间的WIFI连接。Establish a WIFI connection between the receiving end and the sending end. 9.一种信息处理装置,其特征在于,包括:9. An information processing device, comprising: 编码模块,用于对待加密信息进行编码得到base64字符串;The encoding module is used to encode the information to be encrypted to obtain a base64 string; 第一确定模块,用于基于字符频率映射表确定base64字符串对应的频率数组,其中,字符频率映射表包括字符与频率之间的对应关系;The first determination module is used to determine the frequency array corresponding to the base64 character string based on the character frequency mapping table, wherein the character frequency mapping table includes the correspondence between characters and frequencies; 第二确定模块,用于基于所述频率数组采用energy公式进行计算,得到正玄波音频信号;The second determination module is used to calculate based on the frequency array using an energy formula to obtain a sine wave audio signal; 播放模块,用于播放所述正弦波音频信号。The playing module is used to play the sine wave audio signal. 10.一种信息处理装置,其特征在于,包括:10. An information processing device, characterized in that it comprises: 获取模块,用于获取正弦波音频信号;An acquisition module, configured to acquire a sine wave audio signal; 第三确定模块,用于基于所述正弦波音频信号确定目标频率数组;A third determining module, configured to determine a target frequency array based on the sine wave audio signal; 第四确定模块,用于基于字符频率映射表确定目标频率数组对应的base64字符串;The fourth determination module is used to determine the base64 character string corresponding to the target frequency array based on the character frequency mapping table; 解码模块,对所述base64字符串进行解码,得到能够识别的字符串信息。The decoding module decodes the base64 character string to obtain recognizable character string information. 11.一种电子设备,其特征在于,包括:11. An electronic device, characterized in that it comprises: 存储器和处理器,所述存储器上存储有计算机程序,该计算机程序被所述处理器执行时,执行如权利要求1至2或3至8任意一项所述信息处理方法。A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the information processing method according to any one of claims 1 to 2 or 3 to 8 is executed. 12.一种存储介质,其特征在于,该存储介质存储的计算机程序,能够被一个或多个处理器执行,能够用来实现如权利要求1至2或3至8任意一项所述信息处理方法。12. A storage medium, characterized in that the computer program stored in the storage medium can be executed by one or more processors, and can be used to realize the information processing according to any one of claims 1 to 2 or 3 to 8 method.
CN202210673640.3A 2022-06-14 2022-06-14 Information processing method, device, electronic device and storage medium Pending CN115276827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210673640.3A CN115276827A (en) 2022-06-14 2022-06-14 Information processing method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210673640.3A CN115276827A (en) 2022-06-14 2022-06-14 Information processing method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115276827A true CN115276827A (en) 2022-11-01

Family

ID=83762255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210673640.3A Pending CN115276827A (en) 2022-06-14 2022-06-14 Information processing method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115276827A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116229697A (en) * 2023-02-28 2023-06-06 深圳市当智科技有限公司 Method for searching remote controller, display system and storage medium
CN116248664A (en) * 2022-12-31 2023-06-09 海尔优家智能科技(北京)有限公司 Text data transmission method and device, storage medium and electronic device
CN116260811A (en) * 2022-12-31 2023-06-13 海尔优家智能科技(北京)有限公司 Text data transmission method and device, storage medium and electronic device
CN119854788A (en) * 2025-03-19 2025-04-18 深圳市沃莱特电子有限公司 Wireless connection method and system for sound wave encryption pairing of conference networking
WO2025241090A1 (en) * 2024-05-21 2025-11-27 晶晨半导体(深圳)有限公司 Sound wave information processing method and apparatus, device, storage medium, and computer program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553597A (en) * 2003-05-26 2004-12-08 华为技术有限公司 A method for audio synchronization alignment testing
CN105846911A (en) * 2016-05-23 2016-08-10 罗迎晓 Data transmission method, device and system based on sound wave
CN106452607A (en) * 2016-11-03 2017-02-22 武汉斗鱼网络科技有限公司 Method and device for transmitting and resolving information
KR101939001B1 (en) * 2017-12-06 2019-01-15 한국과학기술원 Method and System for Audio and Score Alignment of Music Using Neural Network-Based Automatic Music Transcription
CN109981185A (en) * 2018-11-29 2019-07-05 招商银行股份有限公司 Data transmission and reception method, apparatus and computer readable storage medium
CN110581791A (en) * 2018-06-11 2019-12-17 佛山市顺德区美的电热电器制造有限公司 Household appliance networking method, household appliance equipment, mobile terminal and computer storage medium
CN112153680A (en) * 2020-09-10 2020-12-29 上海深聪半导体有限责任公司 Sound wave network distribution method, device, equipment and storage medium
CN113010858A (en) * 2021-03-01 2021-06-22 上海掌门科技有限公司 Method and equipment for logging in application in user equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553597A (en) * 2003-05-26 2004-12-08 华为技术有限公司 A method for audio synchronization alignment testing
CN105846911A (en) * 2016-05-23 2016-08-10 罗迎晓 Data transmission method, device and system based on sound wave
CN106452607A (en) * 2016-11-03 2017-02-22 武汉斗鱼网络科技有限公司 Method and device for transmitting and resolving information
KR101939001B1 (en) * 2017-12-06 2019-01-15 한국과학기술원 Method and System for Audio and Score Alignment of Music Using Neural Network-Based Automatic Music Transcription
CN110581791A (en) * 2018-06-11 2019-12-17 佛山市顺德区美的电热电器制造有限公司 Household appliance networking method, household appliance equipment, mobile terminal and computer storage medium
CN109981185A (en) * 2018-11-29 2019-07-05 招商银行股份有限公司 Data transmission and reception method, apparatus and computer readable storage medium
CN112153680A (en) * 2020-09-10 2020-12-29 上海深聪半导体有限责任公司 Sound wave network distribution method, device, equipment and storage medium
CN113010858A (en) * 2021-03-01 2021-06-22 上海掌门科技有限公司 Method and equipment for logging in application in user equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248664A (en) * 2022-12-31 2023-06-09 海尔优家智能科技(北京)有限公司 Text data transmission method and device, storage medium and electronic device
CN116260811A (en) * 2022-12-31 2023-06-13 海尔优家智能科技(北京)有限公司 Text data transmission method and device, storage medium and electronic device
CN116260811B (en) * 2022-12-31 2025-11-04 海尔优家智能科技(北京)有限公司 Methods and apparatus for transmitting text data, storage media and electronic devices
CN116229697A (en) * 2023-02-28 2023-06-06 深圳市当智科技有限公司 Method for searching remote controller, display system and storage medium
WO2025241090A1 (en) * 2024-05-21 2025-11-27 晶晨半导体(深圳)有限公司 Sound wave information processing method and apparatus, device, storage medium, and computer program
CN119854788A (en) * 2025-03-19 2025-04-18 深圳市沃莱特电子有限公司 Wireless connection method and system for sound wave encryption pairing of conference networking

Similar Documents

Publication Publication Date Title
CN115276827A (en) Information processing method, device, electronic device and storage medium
Collins Introduction to computer music
US9560465B2 (en) Digital audio filters for variable sample rates
CN110677260B (en) An authentication method, device, electronic equipment and storage medium
WO2015188575A1 (en) Video data providing method, video playback method, device, and system
CN106409282A (en) Audio frequency synthesis system and method, electronic device therefor and cloud server therefor
US8639369B1 (en) Audio testing of media player
JP2019529979A (en) Quantizer with index coding and bit scheduling
WO2024139162A1 (en) Audio processing method and apparatus
CN112533185B (en) Sound network distribution method and device, computer equipment and storage medium
CN117831531B (en) Method for controlling mobile phone through sound
CN105138625A (en) A method for collaboratively creating music and a cloud system for music creation
CN110503979B (en) Audio output effect monitoring methods, devices, media and electronic equipment
CN110581791A (en) Household appliance networking method, household appliance equipment, mobile terminal and computer storage medium
CN111970063B (en) Communication method, device, equipment and storage medium
CN108885878B (en) Improved methods, apparatus and systems for embedding data in data streams
CN106933810B (en) Digital translation method, device and system for music numbered musical notation and translator
JP2013232057A (en) Electronic device and program
CN107657958B (en) A music recognition system, device, and music management server and method
CN113192517A (en) Audio coding and decoding method and audio coding and decoding equipment
CN104822094A (en) Polyrhythm special-effect system and polyrhythm special-effect processing method
CN113781988A (en) Subtitle display method, subtitle display device, electronic equipment and computer-readable storage medium
KR100563912B1 (en) Portable Internet Video Half Cycle
CN207909501U (en) A kind of sound processing system and terminal
CN110309662A (en) Acoustic signal processing method, electronic equipment, server and storage medium

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