WO2019144726A1 - 一种数据传输方法、音频设备、智能终端 - Google Patents

一种数据传输方法、音频设备、智能终端 Download PDF

Info

Publication number
WO2019144726A1
WO2019144726A1 PCT/CN2018/121090 CN2018121090W WO2019144726A1 WO 2019144726 A1 WO2019144726 A1 WO 2019144726A1 CN 2018121090 W CN2018121090 W CN 2018121090W WO 2019144726 A1 WO2019144726 A1 WO 2019144726A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio signal
audio
rule
feature parameter
decoding
Prior art date
Application number
PCT/CN2018/121090
Other languages
English (en)
French (fr)
Inventor
尹左水
荆东华
Original Assignee
歌尔股份有限公司
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 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Publication of WO2019144726A1 publication Critical patent/WO2019144726A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/22Mode decision, i.e. based on audio signal content versus external parameters
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/167Audio streaming, i.e. formatting and decoding of an encoded audio signal representation into a data stream for transmission or storage purposes

Definitions

  • the invention relates to a data transmission method, an audio device and an intelligent terminal.
  • An aspect of the present invention provides a data transmission method, which is applied to data transmission between an audio device and an intelligent terminal, the method comprising: acquiring, by the audio device, a first audio signal sent by the intelligent terminal, and acquiring the first audio signal a characteristic parameter; receiving a second audio signal sent by the smart terminal, determining a decoding rule of the second audio signal according to a characteristic parameter of the first audio signal; and decoding the second audio signal according to a decoding rule of the second audio signal, To obtain data information encoded in the second audio signal.
  • an audio device comprising: one or more storage units storing executable instructions; one or more processing units executing executable instructions for implementing the above-described application to audio A method of data transmission between a device and a smart terminal.
  • Another aspect of the present invention provides a readable storage medium storing executable instructions that are executed by a processor to implement the above-described data transmission method applied between an audio device and an intelligent terminal.
  • Another aspect of the present invention provides a data transmission method, which is applied to data transmission between an intelligent terminal and an audio device, the method comprising: the intelligent terminal generating a first audio signal, and transmitting the first audio signal to the audio device; Acquiring an encoding rule of the second audio signal according to the characteristic parameter of the first audio signal; encoding the data information to be transmitted into the second audio signal according to an encoding rule, to generate the second audio signal, and encoding the encoded The second audio signal is sent to the audio device.
  • an intelligent terminal comprising: one or more storage units storing executable instructions; one or more processing units executing executable instructions for implementing the above-described application to intelligence A method of data transmission between a terminal and an audio device.
  • Another aspect of the present invention provides a readable storage medium storing executable instructions that are executed by a processor to implement the above-described data transmission method applied between a smart terminal and an audio device.
  • the intelligent terminal of the present invention transmits a first audio signal having a specific feature parameter to the audio device, and encodes the second audio signal by using the feature parameter, and transmits the encoded second audio signal to the audio device; the audio device receives the first When an audio signal is obtained, a decoding rule is obtained according to a characteristic parameter of the first audio signal, and the second audio signal is decoded to obtain data information transmitted by the intelligent terminal.
  • the invention realizes data transmission between the audio device and the intelligent terminal through the audio signal.
  • the data transmission method of the invention is different from the existing wireless transmission modes such as wifi and bluetooth, and the audio device and the intelligent terminal only need to pre-appoint a communication protocol,
  • the audio signal can be processed to realize data transmission without the need of built-in wifi, Bluetooth and other wireless transmission modules, and the pre-agreed communication protocol is not easy to be discovered or intercepted by others, compared with wifi, Bluetooth, etc., using a fixed communication protocol. High security.
  • the data transmission method of the present invention is simple, novel, interesting, and highly secure, enriches the data transmission mode, and provides different user experiences.
  • FIG. 1 is a flowchart of a data transmission method applied between an audio device and an intelligent terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an electrical signal after a first audio signal is converted into an electrical signal according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a data transmission method between an application intelligent terminal and an audio device according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a microphone located at the top of the sound according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a data transmission process of an audio device and a mobile phone according to an embodiment of the present invention.
  • the techniques of this disclosure may be implemented in the form of hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer readable medium storing instructions for use by or in connection with an instruction execution system.
  • a computer readable medium can be any medium that can contain, store, communicate, propagate or transport the instructions.
  • a computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
  • the computer readable medium include: a magnetic storage device such as a magnetic tape or a hard disk (HDD); an optical storage device such as a compact disk (CD-ROM); a memory such as a random access memory (RAM) or a flash memory; and/or a wired /Wireless communication link.
  • a magnetic storage device such as a magnetic tape or a hard disk (HDD)
  • an optical storage device such as a compact disk (CD-ROM)
  • a memory such as a random access memory (RAM) or a flash memory
  • RAM random access memory
  • One aspect of the present invention provides a data transmission method for data transmission between an audio device and an intelligent terminal.
  • FIG. 1 is a flowchart of a data transmission method applied to an audio device and an intelligent terminal according to an embodiment of the present invention. As shown in FIG. 1 , the data transmission method in this embodiment includes:
  • the audio device receives the first audio signal sent by the smart terminal, and acquires a feature parameter of the first audio signal.
  • the audio device of this embodiment is provided with an audio signal receiver for receiving an audio signal within a set range.
  • the audio device of this embodiment includes, but is not limited to, an audio device, and the audio signal receiver includes, but is not limited to, a microphone.
  • the audio device of the embodiment analyzes the first audio signal, and obtains characteristic parameters such as frequency and amplitude of the first audio signal.
  • the audio device receives the second audio signal sent by the smart terminal, and determines a decoding rule of the second audio signal according to the feature parameter of the first audio signal.
  • the characteristic parameters in this embodiment include, but are not limited to, parameters such as frequency, amplitude, and the like of the first audio signal.
  • the audio device of the embodiment When receiving the first audio signal sent by the smart terminal, the audio device of the embodiment obtains a decoding rule according to the feature parameter of the first audio signal, decodes the second audio signal sent by the smart terminal, and obtains the data information sent by the smart terminal.
  • the data transmission between the audio device and the intelligent terminal is realized by the audio signal.
  • the data transmission method of this embodiment is different from the existing wireless transmission modes such as wifi and Bluetooth.
  • the audio device and the intelligent terminal only need to pre-determine the communication protocol, and the audio signal can be processed to realize data transmission without the built-in wifi.
  • Wireless transmission module such as Bluetooth, and the pre-agreed communication protocol is not easy to be discovered or intercepted by others, compared with wifi, Bluetooth, etc., and has high security.
  • the data transmission mode of the embodiment is simple, novel, interesting, and highly secure, and enriches the data transmission mode and provides different use experiences.
  • the first audio signal includes multiple audio signals, each audio signal is an acoustic wave signal, and the acoustic wave signal includes basic characteristic parameters such as frequency and amplitude, wherein the multiple audio signals are multiple acoustic signals,
  • This embodiment determines the decoding rule of the second audio signal by the following method:
  • a characteristic parameter of the first audio signal of the first audio signal as a standard feature parameter, the feature parameter including a frequency, an amplitude, and the like of the first audio signal; that is, using the frequency, amplitude, and the like of the received first acoustic wave signal as standard features parameter;
  • the transmitting end of the first audio signal may be determined, that is, the smart terminal is a legal device that matches the audio device, and the receiving device continues to receive at this time.
  • the first audio signal further includes an audio signal that is continuously at least twice, that is, the acoustic signal transmitted by the intelligent terminal is at least three times, and the characteristic parameters (including frequency and amplitude) of each subsequent acoustic signal are compared with the standard characteristic parameters of the first acoustic signal. By comparing twice, it is confirmed whether to continue receiving the second audio signal sent by the smart terminal.
  • the characteristic parameter of the second audio signal is consistent with the standard characteristic parameter, the interference of the external noise can be eliminated, and the received second audio signal is determined to be a valid signal.
  • the decoding rule of the second audio signal can be obtained according to the standard feature parameter.
  • the number of times of multiple audio signals included in the first audio signal is agreed by a preset communication protocol.
  • the following describes the process of determining the decoding rule of the second audio signal by taking the first audio signal including the three audio signals as an example in a preset communication protocol.
  • FIG. 2 is a schematic diagram of an electrical signal after a first audio signal is converted into an electrical signal according to an embodiment of the present invention.
  • the first audio signal is an acoustic wave signal
  • the acoustic wave signal includes basic characteristic parameters such as frequency and amplitude, and the acoustic wave signal can be converted into an electrical signal, wherein when the acoustic signal is present, the corresponding electrical signal is at a high level. When the acoustic signal does not appear, the corresponding electrical signal is low.
  • the first audio signal includes three audio signals, and correspondingly, that is, the audio device receives three acoustic signals, and the electrical signals converted by the three acoustic signals are as shown in FIG. 2.
  • the first audio signal includes three audio signals, and the characteristic parameters such as the frequency and amplitude of the first audio signal are used as standard feature parameters, and the second audio signal and the third time.
  • the characteristic parameters of the audio signal are consistent with the standard feature parameter, the duration relationship between the electrical signals converted by each audio signal is further detected, and when the duration between the electrical signals converted by each audio signal satisfies the preset duration relationship,
  • the high level duration of the electrical signals of the first audio signal is the second and third times.
  • the second audio signal sent by the intelligent terminal is received, and the decoding rule of the second audio signal is obtained according to the standard feature parameter.
  • the characteristic parameters of the second audio signal and the third audio signal are inconsistent with the standard feature parameter, or when the duration between the electrical signals converted by each audio signal does not satisfy the preset duration relationship, the reception is not received or deleted. The second audio signal to.
  • the decoding rule of the second audio signal is obtained according to the standard feature parameters.
  • the decoding rule in this embodiment includes a rule for decoding data information encoded in the second audio signal according to a correspondence between a preset decoding constant and a binary code. Since the level corresponds to binary code 1 or 0, for example, the high level corresponds to binary code 1 and the low level corresponds to binary code 0.
  • the embodiment determines the decoding constant of the second audio signal according to the feature parameter of the first audio signal and the preset communication protocol; wherein the preset communication protocol includes the feature parameter of the preset audio signal and Decode the protocol relationship between constants.
  • the preset communication protocol is used to obtain a decoding constant according to a protocol relationship between the preset feature parameter and the decoding constant, and a standard feature parameter of the acquired first audio signal.
  • the received second audio signal is converted into a high-low level signal, which corresponds to a binary code; since the second audio signal is a sound signal, wherein when a sound wave signal occurs, The electrical signal should be at a high level. When the acoustic signal does not appear, the corresponding electrical signal is low.
  • the second audio signal may also be converted into a high-low level signal according to the decibel level. For example, if the decibel threshold is set, the portion of the second audio signal higher than the decibel threshold is converted into a high-level signal, and the second audio is The portion of the signal below the decibel threshold is converted to a low level signal.
  • the decoding constant can be understood as: the duration of the acoustic wave occupied by one bit of binary code 1 or 0; for example, assuming that the level signal of the second audio signal conversion is 101, wherein the first high level signal The duration is 30 milliseconds, the duration of the low level signal is 20 milliseconds, and the duration of the second high level signal is 10 milliseconds.
  • the first high level signal includes 3 decoding highs.
  • the level, the low level signal includes two decoding low levels, and the second high level signal includes one decoding high level, and the binary code corresponding to the data information to be transmitted is 111001.
  • the audio device obtains the first distance of the intelligent terminal from the audio device during the data transmission, and the method for obtaining the distance is not limited in the present invention.
  • the existing method of measuring the distance by using the audio may be adopted.
  • the smart terminal adds a time stamp of the sending moment to the audio signal, and after receiving the audio signal sent by the smart terminal, the audio device parses the time stamp of the sending moment, and then receives the time stamp according to the receiving time.
  • the time stamp of the moment and the transmission rate of the sound signal are used to know the distance of the smart terminal from the audio device.
  • the audio device determines, according to the relationship between the first distance and the preset distance, whether to acquire the first audio signal sent by the smart terminal, for example, when the first distance is less than the preset distance, acquiring the first audio signal sent by the smart terminal, when the first When a distance is greater than the preset distance, the first audio signal sent by the smart terminal is not acquired.
  • the data information transmitted in this embodiment may include data file information, text information, instruction information, and the like.
  • the transmitted data information can be set according to an application scenario.
  • the data information includes a control instruction issued by the intelligent terminal to enable the wireless network function, and an account name and an account password corresponding to the wireless network, wherein the account name and the account password may be text information.
  • the audio device After decoding the second audio signal, the audio device can obtain the control command, the account name of the wireless network, and the account password.
  • the audio device controls the wireless network function according to the control command of the received audio device to enable the wireless network function, and matches the account name and the account password of the wireless network with the preset account name and the preset account password, so that the audio device is enabled. Connect to a wireless network.
  • Another aspect of the present invention provides a data transmission method for data transmission between an audio device and an intelligent terminal.
  • FIG. 3 is a flowchart of a data transmission method between an application intelligent terminal and an audio device according to an embodiment of the present invention. As shown in FIG. 3, the data transmission method in this embodiment includes:
  • the smart terminal generates a first audio signal, and sends the first audio signal to the audio device.
  • the smart terminal of this embodiment needs to be within the effective receiving range of the audio device, so that the audio device can receive the audio signal sent by the smart terminal.
  • the smart terminal of this embodiment includes but is not limited to a smart phone and a PAD.
  • the first audio signal sent by the smart terminal of the embodiment has a specific frequency, amplitude and other characteristic parameters, so that the audio device acquires a decoding rule for decrypting the second audio signal sent by the smart terminal according to the first audio signal.
  • the characteristic parameters of this embodiment include, but are not limited to, parameters such as frequency, amplitude, and the like of the first audio signal.
  • the intelligent terminal of the embodiment sends a first audio signal with a specific feature parameter to the audio device, and encodes the second audio signal by using the feature parameter, and sends the encoded second audio signal to the audio device, so that the audio device is configured according to the audio device.
  • the characteristic parameter of the first audio signal obtains a decoding rule, and decodes the second audio signal sent by the smart terminal to obtain data information sent by the smart terminal.
  • the data transmission between the audio device and the intelligent terminal is implemented by using the audio signal, and the data transmission method is different from the existing wireless transmission modes such as wifi and Bluetooth.
  • the audio device and the intelligent terminal only need to pre-arrange the communication protocol to perform the audio signal. Processing, data transmission can be realized without the need of built-in wifi, Bluetooth and other wireless transmission modules, and the pre-agreed communication protocol is not easy to be discovered or intercepted by others, compared with wifi, Bluetooth, etc., using a fixed communication protocol, security Higher.
  • the data transmission mode of the embodiment is simple, novel, interesting, and highly secure, and enriches the data transmission mode and provides different use experiences.
  • the first audio signal includes a plurality of audio signals, wherein the characteristic parameter of the first audio signal is a standard feature parameter, and the first audio signal further includes the characteristic parameter of the audio signal being consistent with the standard feature parameter. At least two consecutive audio signals.
  • the number of times of multiple audio signals included in the first audio signal is agreed by a preset communication protocol.
  • the following is a process in which the first audio signal includes three audio signals in a preset communication protocol, and the smart terminal transmits the first audio signal to the audio device.
  • the intelligent terminal generates a first audio signal of the first audio signal, generates a second audio signal and a third audio signal according to parameters such as amplitude, frequency, and the like of the first audio signal; and sends the generated first audio signal to the audio device .
  • the electrical signal includes three sets of high and low level signals, and the high level duration in each group of high and low level signals indicates each sound signal. The duration of the sound wave.
  • the encoding rule in this embodiment includes a rule for encoding the data to be transmitted according to the correspondence between the encoding constant of the preset audio signal and the binary encoding.
  • the embodiment obtains the coding constant according to the feature parameter and the preset communication protocol; wherein the preset communication protocol includes a protocol relationship between the feature parameter of the preset audio signal and the coding constant.
  • the data information to be transmitted is encoded into the second audio signal by the following method:
  • the data information to be transmitted is encoded into the second audio signal according to the correspondence between the encoding constant and the binary encoding.
  • the encoding constant of this embodiment can be understood as: the duration of the acoustic wave corresponding to one bit of binary code 1 or 0; the high and low level signal of the data information to be transmitted is assumed to be 111001, and the encoding constant is 10 milliseconds, then the data information to be transmitted is The code is encoded into the second audio signal, corresponding to a high-decibel audio signal for 30 consecutive milliseconds, a low-decibel audio signal for 20 consecutive milliseconds, and a high-decibel audio signal for 10 milliseconds.
  • the data information to be transmitted since the data information to be transmitted needs to be converted into a binary code when the data information to be transmitted is encoded into the second audio signal, in order to enable the audio terminal to accurately identify the transmission information, it may be in a preset communication protocol.
  • the data transmission protocol is agreed upon, such as setting the data identification bit, using the data identifier to identify the transmitted data information, such as setting the data length identifier and the data body, using the data length identifier to indicate the length information of the transmission data, and using the data body to carry the data information.
  • the data identifier bit can be set to carry a high level of the set length. For example, the set data identifier bit carries a high level of 3 bits.
  • the present invention to ensure the security and reliability of data transmission, when performing data transmission, detecting ambient noise of the first audio signal sent to the audio device, and transmitting the first audio to the audio device according to ambient noise. And obtaining a characteristic parameter of the first audio signal, wherein the acquired characteristic parameter of the first audio signal can be understood as a basic characteristic parameter such as amplitude, frequency, etc., and acquiring the second audio signal according to the acquired characteristic parameter of the first audio signal Characteristic Parameters.
  • the smart terminal detects the environmental noise by using a device such as a microphone, and the smart terminal generates a first audio signal that is different from the ambient noise.
  • the smart terminal distinguishes the first audio signal by using basic characteristic parameters such as frequency and amplitude.
  • Ambient noise such that the audio device can receive and identify the first audio signal in the ambient noise
  • the intelligent terminal transmits the generated first audio signal to the audio device, and generates the first characteristic parameter according to the frequency, amplitude, and the like of the first audio signal.
  • a second audio signal that enables the audio device to receive and identify the second audio signal in the ambient noise.
  • the data information transmitted in this embodiment may include data file information, text information, instruction information, and the like.
  • the transmitted data information can be set according to an application scenario. For example, when the intelligent terminal controls the audio device to connect to the network, the control command for turning on the wireless network function is sent to the audio device, and the account name and the account password of the corresponding wireless network are used as the data information to be transmitted, and the data signal to be transmitted is encoded by using the above coding rule. In the second audio signal.
  • the audio device is an audio device
  • the smart terminal is a mobile phone as an example.
  • the sound is provided with a plurality of microphones for picking up sound signals in a set range around the sound; at least three microphones are evenly arranged around the top of the sound, and FIG. 4 exemplarily shows that four microphones are evenly arranged around the top of the sound.
  • the mobile phone is equipped with a microphone and a speaker, uses the microphone of the mobile phone to detect the environmental noise, and uses the speaker of the mobile phone to send an audio signal.
  • FIG. 5 is a schematic diagram of a data transmission process of an audio device and a mobile phone according to an embodiment of the present invention. As shown in FIG. 5, the specific transmission process is as follows:
  • S510 The mobile phone sends the first audio signal to the sound.
  • the microphone of the mobile phone is used to detect the ambient noise, and the first audio signal different from the ambient noise is generated and transmitted to the sound by using the speaker of the mobile phone.
  • the first audio signal sent by the mobile phone includes multiple audio signals, for example, including three audio signals.
  • the audio receives the first audio signal.
  • the audio When receiving the first audio signal, the audio processes the first audio signal to obtain a characteristic parameter of the first audio signal, and the characteristic parameter includes a frequency and an amplitude of the first audio signal.
  • each audio signal is represented as a sound signal, and after receiving the first audio signal, determining the frequency and amplitude of each audio signal in the first audio signal. Whether they are the same or not, according to the judgment result, it is determined whether to receive the second audio signal sent by the mobile phone.
  • the sound when receiving the first audio signal, the sound can obtain the frequency and amplitude of the first audio signal according to the sound wave (or waveform) of the first audio signal, when converting the first audio signal into an electrical signal, The duration of the high level in the electrical signal can be obtained.
  • the method for converting the first audio signal into an electrical signal may be: since the first audio signal is a sound signal, when an acoustic signal is present, the corresponding electrical signal is at a high level, and when the acoustic signal does not appear, the corresponding audio is The signal is low.
  • the electrical signal that the audio converts the first audio signal is as shown in FIG. 2, and the electrical signal of the first audio signal includes three sets of high and low level signals. In the case that the frequency and the amplitude of each audio signal of the first audio signal are the same, in order to improve the processing efficiency of the audio signal, the sound starts to start the judgment mechanism when acquiring the first high and low level, and acquires the received signal.
  • the duration of the second high level and the second low level, and the duration of the third high level and the third low level Determining whether the second high level, the third high level, and the second low level, and the duration of the third low level are the same as the first high level and the first low level, if both Similarly, the second audio signal sent by the mobile phone is ready to be received, otherwise, the second audio signal sent by the mobile phone is not received.
  • the mobile phone sends a second audio signal.
  • the mobile phone converts the data information to be transmitted into a high-low level signal, and the high-low level signal corresponds to a binary code, and obtains a characteristic parameter corresponding to the first audio signal according to a protocol relationship between the characteristic parameter of the first audio signal and the encoding constant
  • the coding constant encodes the data information to be transmitted into the second audio signal according to the correspondence between the coding constant and the binary code and transmits it to the sound by using the mobile phone speaker.
  • the audio When receiving the second audio signal, the audio processes the second audio signal to obtain a characteristic parameter of the second audio signal, and the characteristic parameters of the second audio signal also include frequency and amplitude.
  • the characteristic parameter of the second audio signal is consistent with the characteristic parameter of the first audio signal, that is, the frequency and amplitude of the second audio signal are respectively consistent with the frequency and amplitude of the first audio signal
  • the characteristic parameter of the preset audio signal Decoding a protocol relationship between the constants, obtaining a decoding constant corresponding to the feature parameter of the first audio signal, and decoding the data information encoded in the second audio signal according to a correspondence between the decoding constant and the binary code to obtain a second audio
  • the data information encoded in the signal is processed according to the received data information.
  • Another aspect of the present invention provides an audio device for use in data transmission between an audio device and an intelligent terminal.
  • the audio device includes: one or more storage units storing executable instructions; and one or more processing units executing executable instructions for implementing the foregoing application to the audio device and the smart terminal The method of data transmission between.
  • Another aspect of the invention provides a readable storage medium.
  • the readable storage medium stores executable instructions that are executed by the processor to implement the data transmission method applied between the audio device and the intelligent terminal as described above.
  • Another aspect of the present invention provides an intelligent terminal for data transmission between a smart terminal and an audio device.
  • the smart terminal includes: one or more storage units storing executable instructions; and one or more processing units executing executable instructions for implementing the foregoing application to the smart terminal and the audio device The method of data transmission between.
  • Another aspect of the invention provides a readable storage medium.
  • the readable storage medium stores executable instructions that are executed by the processor to implement the data transmission method applied between the smart terminal and the audio device as described above.
  • the readable storage medium of the embodiments of the present invention may be, for example, any medium capable of containing, storing, transmitting, transmitting, or transmitting instructions.
  • a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
  • Specific examples of the readable storage medium include: a magnetic storage device such as a magnetic tape or a hard disk (HDD); an optical storage device such as a compact disk (CD-ROM); a memory such as a random access memory (RAM) or a flash memory; and/or a wired /Wireless communication link.
  • the readable storage medium can include a computer program, which can include code or computer executable instructions that, when executed by a processor, cause the processor to perform, for example, the method flow described above and any variations thereof.
  • the computer program can be configured to have, for example, computer program code comprising a computer program module.
  • the code in a computer program can include one or more program modules. It should be noted that the division manner and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations. When these program module combinations are executed by the processor, the processor may execute, for example, The method flow described above and any variations thereof.
  • the intelligent terminal of the embodiment of the present invention sends a first audio signal with a specific feature parameter to the audio device, and encodes the second audio signal by using the feature parameter, and sends the encoded second audio signal to the audio device; the audio device receives When the first audio signal is obtained, the decoding rule is obtained according to the feature parameter of the first audio signal and the second audio signal is decoded, and the data information sent by the smart terminal is obtained.
  • the embodiment of the invention realizes data transmission between the audio device and the intelligent terminal through the audio signal, and the data transmission method is different from the existing wireless transmission modes such as wifi and Bluetooth, and the audio device and the intelligent terminal only need to predetermine the communication protocol in advance,
  • the audio signal can be processed to realize data transmission without the need of built-in wifi, Bluetooth and other wireless transmission modules, and the pre-agreed communication protocol is not easy to be discovered or intercepted by others, compared with wifi, Bluetooth, etc., using a fixed communication protocol. High security.
  • the data transmission mode of the embodiment of the present invention is simple, novel, interesting, and highly secure, and enriches the data transmission mode and provides different usage experiences.
  • the words “first” and “second” are used to distinguish the same items or similar items whose functions and functions are substantially the same. Personnel can understand that the words “first” and “second” do not limit the quantity and order of execution.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Telephone Function (AREA)

Abstract

一种数据传输方法及智能终端,该方法包括:智能终端生成第一音频信号,向音频设备发送第一音频信号,根据第一音频信号的特征参数获取第二音频信号的编码规则,根据编码规则将待传输的数据信息编码到第二音频信号中,以生成第二音频信号,并将编码后的第二音频信号发送给音频设备。音频设备接收智能终端发送的第一音频信号,获取第一音频信号的特征参数(S110);接收智能终端发送的第二音频信号,根据第一音频信号的特征参数确定第二音频信号的解码规则(S120);根据第二音频信号的解码规则对第二音频信号进行解码,获取第二音频信号中编码的数据信息(S130)。

Description

一种数据传输方法、音频设备、智能终端 技术领域
本发明涉及一种数据传输方法、音频设备、智能终端。
背景技术
随着经济的发展,人们的物质生活越来越丰富,各种各样的音频设备例如用于欣赏音乐的音箱、耳机等越来越多的出现在生活、工作中。随着技术的进步,音频设备和终端设备之间以无线或有线的方式相互连接以增强用户的体验,但是有线方式对用户而言适用范围窄,一些场景不方便,而传统无线方式容易被他人发现甚至截取,用户体验不友好。总之,目前音频设备和终端设备之间的数据传输方式,功能体验过于单调固化,无法满足网络发展带来的便利化和人们日益多样化的需求。
发明内容
本发明的一个方面提供了一种数据传输方法,应用于音频设备与智能终端之间的数据传输,该方法包括:音频设备获取智能终端发送的第一音频信号,获取所述第一音频信号的特征参数;接收所述智能终端发送的第二音频信号,根据第一音频信号的特征参数确定所述第二音频信号的解码规则;根据第二音频信号的解码规则对第二音频信号进行解码,以获取通过第二音频信号中编码的数据信息。
本发明的另一个方面提供了一种音频设备,该音频设备包括:一个或多个存储单元,存储有可执行指令;一个或多个处理单元,执行可执行指令,用于实现上述应用于音频设备与智能终端之间的数据传输方法。
本发明的另一个方面提供了一种可读存储介质,存储有可执行令,可执行指令被处理器执行时以实现上述应用于音频设备与智能终端之间的数据传输方法。
本发明的另一个方面提供了一种数据传输方法,应用于智能终端与音频设备之间的数据传输,该方法包括:智能终端生成第一音频信号,向音频设备发送所述第一音频信号;根据所述第一音频信号的特征参数获取第二音频信号的编码规则;根据编码规则将待传输的数据信息编码到第二音频信号中,以生成所述第二音频信号,并将编码后的第 二音频信号发送给音频设备。
本发明的另一个方面提供了一种智能终端,该智能终端包括:一个或多个存储单元,存储有可执行指令;一个或多个处理单元,执行可执行指令,用于实现上述应用于智能终端与音频设备之间的数据传输方法。
本发明的另一个方面提供了一种可读存储介质,存储有可执行令,可执行指令被处理器执行时以实现上述应用于智能终端与音频设备之间的数据传输方法。
本发明的智能终端向音频设备发送具有特定特征参数的第一音频信号,并利用特征参数对第二音频信号进行编码,将编码后的第二音频信号发送给音频设备;音频设备在接收到第一音频信号时,根据第一音频信号的特征参数获得解码规则并对第二音频信号进行解码,获得智能终端发送的数据信息。
本发明通过音频信号实现音频设备与智能终端之间的数据传输,本发明的数据传输方法不同于现有的wifi、蓝牙等无线传输方式,音频设备和智能终端只需预先约定好通信协议,对音频信号进行处理即可实现数据传输,而无需内置wifi、蓝牙等无线传输模块,且该预先约定好的通信协议相比于wifi、蓝牙等采用固定通信协议的方式,不易被他人发现或截取,安全性较高。总之,本发明的数据传输方式操作简便、新颖、趣味性强,且安全性高,丰富了数据传输方式,提供不同的使用体验。
附图说明
图1为本发明实施例提供的应用于音频设备与智能终端之间的数据传输方法流程图;
图2为本发明实施例提供的第一音频信号转换为电信号后电信号示意图;
图3为本发明实施例提供的应用智能终端与音频设备之间的数据传输方法流程图;
图4为本发明实施例提供的位于音响顶部的麦克风示意图;
图5为本发明实施例提供的音响与手机的数据传输过程示意图。
具体实施方式
以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。这里使用的词语“一”、“一个(种)”和“该”等也应包括“多个”、“多种”的意思,除非上下文另外明确指出。此外,在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。
附图中示出了一些方框图和/或流程图。应理解,方框图和/或流程图中的一些方框或其组合可以由计算机程序指令来实现。这些计算机程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,从而这些指令在由该处理器执行时可以创建用于实现这些方框图和/或流程图中所说明的功能/操作的装置。
因此,本公开的技术可以硬件和/或软件(包括固件、微代码等)的形式来实现。另外,本公开的技术可以采取存储有指令的计算机可读介质上的计算机程序产品的形式,该计算机程序产品可供指令执行系统使用或者结合指令执行系统使用。在本公开的上下文中,计算机可读介质可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,计算机可读介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。计算机可读介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。
本发明的一个方面提供了一种数据传输方法,应用于音频设备与智能终端之间的数据传输。
图1为本发明实施例提供的应用于音频设备与智能终端之间的数据传输方法流程图,如图1所示,本实施例的数据传输方法包括:
S110,音频设备接收智能终端发送的第一音频信号,获取该第一音频信号的特征参数。
本实施例的音频设备设置有音频信号接收器,用于接收设定范围内的音频信号。本实施例的音频设备包括但不限于音响设备,音频信号接收器包括但不限于麦克风。
本实施例的音频设备在接收到的第一音频信号后,对第一音频信号进行分析处理, 可以得到第一音频信号的频率、振幅等特征参数。
S120,音频设备接收智能终端发送的第二音频信号,根据第一音频信号的特征参数确定该第二音频信号的解码规则。
本实施例中特征参数包括但不限于第一音频信号的频率、振幅等参数。
S130,根据第二音频信号的解码规则对第二音频信号进行解码,获取第二音频信号中编码的数据信息。
本实施例的音频设备在接收到智能终端发送的第一音频信号时,根据第一音频信号的特征参数获得解码规则,对智能终端发送的第二音频信号进行解码,获得智能终端发送的数据信息,通过音频信号实现音频设备与智能终端之间的数据传输。
本实施例的数据传输方法不同于现有的wifi、蓝牙等无线传输方式,音频设备和智能终端只需预先约好定通信协议,对音频信号进行处理即可实现数据传输,而无需内置wifi、蓝牙等无线传输模块,且该预先约定好的通信协议相比于wifi、蓝牙等采用固定通信协议的方式,不易被他人发现或截取,安全性较高。总之,本实施例的数据传输方式操作简便、新颖、趣味性强,安全性高,丰富了数据传输方式,提供了不同的使用体验。
在本发明的一些实施例中,第一音频信号包括多次音频信号,每次音频信号均为声波信号,声波信号包括频率、振幅等基本特征参数,其中,多次音频信号即多次声波信号,本实施例是通过下述方法确定第二音频信号的解码规则:
确定第一音频信号的第一次音频信号的特征参数为标准特征参数,该特征参数包括第一次音频信号的频率、振幅等;即以接收的第一次声波信号的频率、振幅等作为标准特征参数;
当第一音频信号的连续至少两次的音频信号的特征参数与标准特征参数一致时,可以确定第一音频信号的发送端,即智能终端为与音频设备匹配的合法设备,此时将继续接收智能终端发送的第二音频信号。第一音频信号还包括连续至少两次的音频信号,即智能终端发送的声波信号至少是三次,后续每次声波信号的特征参数(包括频率和振幅)均与第一次声波信号的标准特征参数作对比,通过两次对比,从而确认是否继续接收智能终端发送的第二音频信号。
当第二音频信号的特征参数与标准特征参数一致时,可以排除外界噪音的干扰,确 定接收到的第二音频信号为有效信号,此时可以根据标准特征参数获取第二音频信号的解码规则。
需要说明的是,本实施例通过预设通讯协议约定第一音频信号包括的多次音频信号的次数。下面以预设通讯协议约定第一音频信号包括三次音频信号为例说明确定第二音频信号的解码规则的过程。
图2为本发明实施例提供的第一音频信号转换为电信号后电信号示意图。根据本发明的实施例,第一音频信号为声波信号,声波信号包括频率、振幅等基本特征参数,声波信号可以转换为电信号,其中当有声波信号出现时,对应该电信号为高电平,当声波信号不出现,对应该电信号为低电平。假设,第一音频信号包括三次音频信号,相应的,即音频设备接收到三次声波信号,三次声波信号转换的电信号如图2所示。
以图2所示的第一音频信号为例,第一音频信号包括三次音频信号,将第一次音频信号的频率、振幅等特征参数作为标准特征参数,当第二次音频信号和第三次音频信号的特征参数均与该标准特征参数一致时,进一步检测各次音频信号转换的电信号之间的时长关系,在各次音频信号转换的电信号之间的时长满足预设时长关系时,根据本发明的实施例,在各次音频信号转换的电信号之间的时长一致时,如图2所示,第一次音频信号的电信号的高电平持续时长与第二次、第三次音频信号的电信号的高电平持续时长一致时,接收智能终端发送的第二音频信号,并根据标准特征参数获取第二音频信号的解码规则。当第二次音频信号和第三次音频信号的特征参数与该标准特征参数不一致时,或者,各次音频信号转换的电信号之间的时长不满足预设时长关系时,不接收或删除接收到的第二音频信号。
需要说明的是,为避免外界噪音对第二音频信号的干扰,在接收到的第二音频信号的特征参数(包括频率和振幅)与标准特征参数一致时,确定接收到的第二音频信号为有效信号,此时再根据标准特征参数获取第二音频信号的解码规则。
本实施例中的解码规则包括按照预设的解码常量与二进制编码之间的对应关系对第二音频信号中编码的数据信息进行解码的规则。由于电平高低与二进制编码1或0相对应,例如,高电平对应二进制编码1,低电平对应二进制编码0。相应的,本实施例在确定解码规则时,是根据第一音频信号的特征参数和预设通讯协议确定第二音频信号的解码常量;其中,预设通讯协议包括预设音频信号的特征参数与解码常量之间的协议 关系。根据本发明的实施例,预设通讯协议用于根据预设特征参数与解码常量之间的协议关系,以及所获取的第一音频信号的标准特征参数,来得到解码常量。
本实施例通过下述方法对第二音频信号进行解码:
根据本发明的实施例,将接收到的第二音频信号转换为高低电平信号,该高低电平信号对应为二进制编码;由于第二音频信号为声音信号,其中当有声波信号出现时,对应该电信号为高电平,当声波信号不出现,对应该电信号为低电平。可选地,亦可以根据分贝高低将第二音频信号转换为高低电平信号,如设置以分贝阈值,将第二音频信号中高于该分贝阈值的部分转换为高电平信号,将第二音频信号中低于该分贝阈值的部分转换为低电平信号。
根据预设音频信号的特征参数与解码常量之间的协议关系,获取第一音频信号的特征参数对应的解码常量;根据解码常量与二进制编码之间的对应关系,对第二音频信号中编码的数据信息进行解码,得到第二音频信号中编码的数据信息。其中,根据本发明的实施例,解码常量可以理解为:一位二进制编码1或0占用的声波时长;例如,假设第二音频信号转换的电平信号为101,其中第一个高电平信号的时长为30毫秒,低电平信号的时长为20毫秒,第二个高电平信号的时长为10毫秒,若解码常量为10毫秒,可知该第一个高电平信号包括3个解码高电平,低电平信号包括2个解码低电平,第二个高电平信号包括1个解码高电平,则该待传输数据信息对应的二进制编码为111001。
在本发明的一些实施例中,为保证数据传输的安全性和可靠性,在进行数据传输时,音频设备获取智能终端相对音频设备的第一距离,获取距离的手段本发明不做限定。可以采用音频测距离的现有手段,例如:智能终端在音频信号中加入发送时刻的时间戳,音频设备接收到智能终端发送的该音频信号后,解析出该发送时刻的时间戳,然后根据接收时刻的时间戳和声音信号的传输速率,获知智能终端相对音频设备的距离。
接着,音频设备根据第一距离以及预设距离的关系,确定是否获取智能终端发送的第一音频信号,如当第一距离小于预设距离时,获取智能终端发送的第一音频信号,当第一距离大于预设距离时,不获取智能终端发送的第一音频信号。
本实施例所传输的数据信息可以包括数据文件信息、文本信息、指令信息等。在实际应用中,可以根据应用场景设置所传输的数据信息。例如,在智能终端控制音频设备联网时,数据信息包括智能终端发出的音频设备开启无线网络功能的控制指令,以及对 应无线网络的账户名称和账户密码,其中账户名称和账户密码可以是文本信息。音频设备在对第二音频信号进行解码后,可以获取控制指令、无线网络的账户名称与账户密码。此时,音频设备根据接收的音频设备开启无线网络功能的控制指令,控制开启无线网络功能,将无线网络的账户名称和账户密码与预设账户名称和预设账户密码进行匹配,以使得音频设备连接无线网络。
本发明的另一个方面提供了一种数据传输方法,应用于音频设备与智能终端之间的数据传输。
图3为本发明实施例提供的应用智能终端与音频设备之间的数据传输方法流程图,如图3所示,本实施例的数据传输方法包括:
S310,智能终端生成第一音频信号,向音频设备发送该第一音频信号。
本实施例的智能终端需处于音频设备的有效接收范围内,以使音频设备可以接收到智能终端发送的音频信号。本实施例的智能终端包括但不限于智能手机、PAD。
本实施例的智能终端所发送的第一音频信号具有特定的频率、振幅等特征参数,以使音频设备根据第一音频信号获取对智能终端发送的第二音频信号进行解密的解码规则。
S320,根据第一音频信号的特征参数获取第二音频信号的编码规则。
本实施例特征参数包括但不限于第一音频信号的频率、振幅等参数。
S330,根据编码规则将待传输的数据信息编码到第二音频信号中,以生成第二音频信号,并将编码后的第二音频信号发送给音频设备。
本实施例的智能终端向音频设备发送具有特定特征参数的第一音频信号,并利用特征参数对第二音频信号进行编码,将编码后的第二音频信号发送给音频设备,以使音频设备根据第一音频信号的特征参数获得解码规则,对智能终端发送的第二音频信号进行解码,获得智能终端发送的数据信息。
本实施例通过音频信号实现音频设备与智能终端之间的数据传输,数据传输方法不同于现有的wifi、蓝牙等无线传输方式,音频设备和智能终端只需预先约定好通信协议对音频信号进行处理,即可实现数据传输,而无需内置wifi、蓝牙等无线传输模块,且该预先约定好的通信协议相比于wifi、蓝牙等采用固定通信协议的方式,不易被他人发现或截取,安全性较高。总之,本实施例的数据传输方式操作简便、新颖、趣味性强, 安全性高,丰富了数据传输方式,提供了不同的使用体验。
在本发明的一些实施例中,第一音频信号包括多次音频信号,其中,第一次音频信号的特征参数为标准特征参数,第一音频信号还包括音频信号的特征参数与标准特征参数一致的至少两次的连续音频信号。
需要说明的是,本实施例通过预设通讯协议约定第一音频信号包括的多次音频信号的次数。下面以预设通讯协议约定第一音频信号包括三次音频信号为例说明智能终端向音频设备发送第一音频信号的过程。
智能终端生成第一音频信号的第一次音频信号,按照第一次音频信号的振幅、频率等参数生成第二次音频信号和第三次音频信号;将生成的第一音频信号发送给音频设备。如图2所示,智能终端将生成的第一音频信号转换为电信号后,该电信号包括三组高低电平信号,每组高低电平信号中的高电平持续时长表示每次声音信号的声波时长。
本实施例中的编码规则包括按照预设的音频信号的编码常量与二进制编码之间的对应关系对待传输数据信息进行编码的规则。相应的,本实施例在确定编码规则时,是根据特征参数和预设通讯协议获取编码常量;其中,预设通讯协议包括预设音频信号的特征参数与编码常量之间的协议关系。
本实施例通过下述方法将待传输数据信息编码到第二音频信号中:
将待传输数据信息转换为高低电平信号,该高低电平信号对应为二进制编码;
根据预设音频信号的特征参数与编码常量之间的协议关系,获取第一音频信号的特征参数对应的编码常量;
根据编码常量与二进制编码之间的对应关系,将待传输数据信息编码到第二音频信号中。其中,本实施例的编码常量可以理解为:一位二进制编码1或0对应的声波时长;假设待传输数据信息转换的高低电平信号为111001,编码常量为10毫秒,则该待传输数据信息编码到第二音频信号中,对应为连续30毫秒的高分贝音频信号、连续20毫秒的低分贝音频信号和10毫秒的高分贝音频信号。
需要说明的是,由于在将待传输数据信息编码到第二音频信号中时,需要将待传输数据信息转换为二进制编码,为了使音频终端能够准确识别传输信息,可以在预设的通讯协议中约定数据传输协议,如设置数据标识位,利用数据标识位标识传输的数据信息,如设置数据长度标识和数据体,利用数据长度标识指示传输数据的长度信息,利用数据 体携带数据信息。实际应用中可以设置数据标识位携带设定长度的高电平,如设置数据标识位携带3比特位的高电平,当音频设备解码第二音频信号后,利用数据标识位获取传输数据。
在本发明的一些实施例中,为保证数据传输的安全性和可靠性,在进行数据传输时,检测向音频设备发送的第一音频信号的环境噪声,根据环境噪声向音频设备发送第一音频信号,并获取第一音频信号的特征参数,此时获取的第一音频信号的特征参数可以理解为振幅、频率等基本特征参数,根据获取的第一音频信号的特征参数获取第二音频信号的特征参数。
在本发明的一些实施例中,智能终端利用麦克风等设备检测环境噪声,智能终端生成区别于环境噪声的第一音频信号,如智能终端利用频率、振幅等基本特征参数使第一音频信号区别于环境噪声,使得音频设备可以在该环境噪声中接收并识别第一音频信号;智能终端将生成的第一音频信号发送给音频设备,并根据第一音频信号的频率、振幅等基本特征参数生成第二音频信号,使音频设备可以在该环境噪声中接收并识别第二音频信号。
本实施例所传输的数据信息可以包括数据文件信息、文本信息、指令信息等。在实际应用中,可以根据应用场景设置所传输的数据信息。例如,在智能终端控制音频设备联网时,向音频设备发送开启无线网络功能的控制指令,以及对应无线网络的账户名称和账户密码作为待传输数据信息,利用上述编码规则将待传输数据信号编码到第二音频信号中。
为详细说明本实施例中的音频设备与智能终端之间的数据传输过程,本发明通过下述实施例具体说明。
为便于描述,本实施例以音频设备为音响,智能终端为手机为例。其中音响设置有多个麦克风,用于拾取音响周围设定范围内的声音信号;在音响顶部的四周均匀布置至少三个麦克风,图4示例性示出在音响顶部的四周均匀布置四个麦克风的示意图;手机设置有麦克风和扬声器,利用手机的麦克风检测环境噪声,利用手机的扬声器发送音频信号。
图5为本发明实施例提供的音响与手机的数据传输过程示意图,如图5所示,具体的传输过程如下:
S510,手机向音响发送第一音频信号。
本实施例利用手机的麦克风检测环境噪声,生成区别于环境噪声的第一音频信号并利用手机扬声器发送给音响。其中,手机发送的第一音频信号包括多次音频信号,例如包括三次音频信号。
S520,音响接收第一音频信号。
音响在接收到第一音频信号时,对第一音频信号进行处理,得到第一音频信号的特征参数,特征参数包括第一音频信号的频率、振幅。
由于本实施例的第一音频信号为多次音频信号,每次音频信号表现为一段声音信号,当接收到的第一音频信号后,判断第一音频信号中的各次音频信号的频率和振幅是否相同,根据判断结果决定是否接收手机发送的第二音频信号。
根据本发明的实施例,音响在接收第一音频信号时,根据第一音频信号的声波(或波形)可以得到第一音频信号的频率和振幅,在将第一音频信号转换为电信号时,可以得到该电信号中高电平的持续时长。
其中,将第一音频信号转换为电信号的方法可以为:由于第一音频信号为声音信号,当有声波信号出现时,对应该电信号为高电平,当声波信号不出现,对应该电信号为低电平。例如音响将第一音频信号转换的电信号如图2所示,第一音频信号的电信号包括三组高低电平信号。在第一音频信号的各次音频信号的频率和振幅都一致的情况下,为提高音响对音频信号的处理效率,音响在获取到第一个高低电平时,开始启动判断机制,获取接收到的第二个高电平与第二个低电平的持续时长,以及第三个高电平和第三个低电平的持续时长。判断第二个高电平、第三个高电平和第二个低电平、第三个低电平对应的持续时长是否与第一个高电平、第一个低电平相同,如果都相同,准备接收手机发送的第二音频信号,否则,不接收手机发送的第二音频信号。
S530,手机发送第二音频信号。
手机将待传输数据信息转换为高低电平信号,该高低电平信号对应为二进制编码,根据第一音频信号的特征参数与编码常量之间的协议关系,获取第一音频信号的特征参数对应的编码常量,根据编码常量与二进制编码之间的对应关系,将待传输的数据信息编码到第二音频信号中并利用手机扬声器发送给音响。
S540,音响接收第二音频信号。
音响在接收第二音频信号时,对第二音频信号进行处理,得到第二音频信号的特征参数,第二音频信号的特征参数也包括频率和振幅。
当第二音频信号的特征参数与第一音频信号的特征参数一致时,即第二音频信号的频率和振幅分别与第一音频信号的频率和振幅一致时,根据预设音频信号的特征参数与解码常量之间的协议关系,获取第一音频信号的特征参数对应的解码常量,根据解码常量与二进制编码之间的对应关系,对第二音频信号中编码的数据信息进行解码,得到第二音频信号中编码的数据信息,音响根据接收到的数据信息进行相应的处理。
本发明的另一个方面提供了一种音频设备,应用于音频设备与智能终端之间的数据传输。
根据本发明实施例,该音频设备包括:一个或多个存储单元,存储有可执行指令;一个或多个处理单元,执行可执行指令,用于实现前文描述的应用于音频设备与智能终端之间的数据传输方法。
本发明的另一个方面提供了一种可读存储介质。
根据本发明实施例,该可读存储介质,存储有可执行指令,可执行指令被处理器执行时以实现前文描述的应用于音频设备与智能终端之间的数据传输方法。
本发明的另一个方面提供了一种智能终端,应用于智能终端与音频设备之间的数据传输。
根据本发明实施例,该智能终端包括:一个或多个存储单元,存储有可执行指令;一个或多个处理单元,执行可执行指令,用于实现前文描述的应用于智能终端与音频设备之间的数据传输方法。
本发明的另一个方面提供了一种可读存储介质。
根据本发明实施例,该可读存储介质,存储有可执行指令,可执行指令被处理器执行时以实现前文描述的应用于智能终端与音频设备之间的数据传输方法。
需要说明的是,本发明实施例的可读存储介质,例如可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,可读存储介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。可读存储介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。
可读存储介质可以包括计算机程序,该计算机程序可以包括代码或者计算机可执行指令,其在由处理器执行时使得处理器执行例如前文所描述的方法流程及其任何变形。
计算机程序可被配置为具有例如包括计算机程序模块的计算机程序代码。例如,在示例实施例中,计算机程序中的代码可以包括一个或多个程序模块。应当注意,模块的划分方式和个数并不是固定的,本领域技术人员可以根据实际情况使用合适的程序模块或程序模块组合,当这些程序模块组合被处理器执行时,使得处理器可以执行例如上文所描述的方法流程及其任何变形。
本发明实施例的智能终端向音频设备发送具有特定特征参数的第一音频信号,并利用特征参数对第二音频信号进行编码,将编码后的第二音频信号发送给音频设备;音频设备在接收到第一音频信号时,根据第一音频信号的特征参数获得解码规则并对第二音频信号进行解码,获得智能终端发送的数据信息。
本发明实施例通过音频信号实现音频设备与智能终端之间的数据传输,数据传输方法不同于现有的wifi、蓝牙等无线传输方式,音频设备和智能终端只需预先约好定通信协议,对音频信号进行处理即可实现数据传输,而无需内置wifi、蓝牙等无线传输模块,且该预先约定好的通信协议相比于wifi、蓝牙等采用固定通信协议的方式,不易被他人发现或截取,安全性较高。总之,本发明实施例的数据传输方式操作简便、新颖、趣味性强,安全性高,丰富了数据传输方式,提供了不同的使用体验。
为了便于清楚描述本发明实施例的技术方案,在发明的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。
以上所述,仅为本发明的具体实施方式,在本发明的上述教导下,本领域技术人员可以在上述实施例的基础上进行其他的改进或变形。本领域技术人员应该明白,上述的具体描述只是更好的解释本发明的目的,本发明的保护范围应以权利要求的保护范围为准。

Claims (12)

  1. 一种数据传输方法,其特征在于,应用于音频设备与智能终端之间的数据传输,所述方法包括:
    所述音频设备接收所述智能终端发送的第一音频信号,获取所述第一音频信号的特征参数;
    接收所述智能终端发送的第二音频信号,根据所述第一音频信号的特征参数确定所述第二音频信号的解码规则;
    根据所述第二音频信号的所述解码规则对所述第二音频信号进行解码,获取所述第二音频信号中编码的数据信息。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一音频信号的特征参数确定所述第二音频信号的解码规则,包括:
    根据所述第一音频信号的特征参数和预设通讯协议确定所述第二音频信号的解码常量;其中,所述预设通讯协议包括预设音频信号的特征参数与解码常量之间的协议关系,所述解码规则包括按照解码常量与二进制编码之间的对应关系对第二音频信号中编码的数据信息进行解码的规则。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第二音频信号的所述解码规则对所述第二音频信号进行解码,获取所述第二音频信号中编码的数据信息包括:
    将所述第二音频信号转换为高低电平信号,该高低电平信号对应为二进制编码;
    根据预设音频信号的特征参数与解码常量之间的协议关系,获取所述第一音频信号的特征参数对应的解码常量;
    根据所述第一音频信号的特征参数对应的解码常量与二进制编码之间的对应关系,对第二音频信号中编码的数据信息进行解码,得到第二音频信号中编码的数据信息。
  4. [根据细则91更正 14.02.2019]
    根据权利要求1所述的方法,其特征在于,所述第一音频信号包括多次音频信号,所述接收所述智能终端发送的第二音频信号,根据所述第一音频信号的特征参数获取所述第二音频信号的解码规则,包括:
    所述音频设备确定所述第一音频信号的第一次音频信号的特征参数为标准特征参数,所述特征参数包括音频信号的频率、振幅;
    当所述第一音频信号的连续至少两次的音频信号的特征参数与所述标准特征参数一致时,所述音频设备接收所述智能终端发送的第二音频信号;
    当所述第二音频信号的特征参数与所述标准特征参数一致时,所述音频设备根据所述标准特征参数获取所述第二音频信号的解码规则。
  5. [根据细则91更正 14.02.2019]
    根据权利要求1所述的方法,其特征在于,所述数据传输方法还包括:
    所述音频设备获取所述智能终端相对所述音频设备的第一距离;
    根据所述第一距离以及预设距离的关系,确定是否获取所述智能终端发送的第一音频信号,当所述第一距离小于所述预设距离时,获取所述智能终端发送的第一音频信号,当所述第一距离大于所述预设距离时,不获取所述智能终端发送的第一音频信号。
  6. [根据细则91更正 14.02.2019]
    一种音频设备,所述音频设备包括:
    一个或多个存储单元,存储有可执行指令;
    一个或多个处理单元,执行所述可执行指令,用于实现如权利要求1-5任一项所述的方法。
  7. [根据细则91更正 14.02.2019]
    一种数据传输方法,其特征在于,应用于智能终端与音频设备之间的数据传输,所述方法包括:
    所述智能终端生成第一音频信号,向所述音频设备发送所述第一音频信号;
    根据所述第一音频信号的特征参数获取第二音频信号的编码规则;
    根据所述编码规则将待传输的数据信息编码到所述第二音频信号中,以生成所述第二音频信号,并将编码后的第二音频信号发送给所述音频设备。
  8. [根据细则91更正 14.02.2019]
    根据权利要求7所述的方法,其特征在于,所述根据所述第一音频信号的特征参数获取第二音频信号的编码规则,包括:
    根据所述第一音频信号的特征参数和预设通讯协议获取编码常量;其中,所述预设通讯协议包括预设音频信号的特征参数与编码常量之间的协议关系,所述编码规则包括按照音频信号的编码常量与二进制编码之间的对应关系对待传输 数据信息进行编码的规则。
  9. [根据细则91更正 14.02.2019]
    根据权利要求8所述的方法,其特征在于,所述根据所述编码规则将待传输的数据信息编码到所述第二音频信号中包括:
    将待传输数据信息转换为高低电平信号,该高低电平信号对应为二进制编码;
    根据预设音频信号的特征参数与编码常量之间的协议关系,获取所述第一音频信号的特征参数对应的编码常量;
    根据所述第一音频信号的特征参数对应的编码常量与二进制编码之间的对应关系,将待传输数据信息编码到所述第二音频信号中。
  10. [根据细则91更正 14.02.2019]
    根据权利要求7所述的方法,其特征在于,所述第一音频信号包括多次音频信号,其中,所述第一音频信号的第一次音频信号的特征参数为标准特征参数,所述第一音频信号还包括音频信号的特征参数与所述标准特征参数一致的至少两次的连续音频信号,所述特征参数包括音频信号的频率、振幅。
  11. [根据细则91更正 14.02.2019]
    根据权利要求7所述的方法,其特征在于,所述智能终端生成第一音频信号,向所述音频设备发送所述第一音频信号包括:
    所述智能终端检测所述音频设备的环境噪声,根据所述环境噪声生成区别于环境噪声的第一音频信号;
    向所述音频设备发送所述第一音频信号,并获取所述第一音频信号的特征参数;
    根据获取的所述第一音频信号的特征参数获取所述第二音频信号的特征参数。
  12. [根据细则91更正 14.02.2019]
    一种智能终端,所述智能终端包括:
    一个或多个存储单元,存储有可执行指令;
    一个或多个处理单元,执行所述可执行指令,用于实现如权利要求7-11一项所述的方法。
PCT/CN2018/121090 2018-01-29 2018-12-14 一种数据传输方法、音频设备、智能终端 WO2019144726A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810084986.3 2018-01-29
CN201810084986.3A CN108492831B (zh) 2018-01-29 2018-01-29 一种数据传输方法、音频设备、智能终端

Publications (1)

Publication Number Publication Date
WO2019144726A1 true WO2019144726A1 (zh) 2019-08-01

Family

ID=63343809

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121090 WO2019144726A1 (zh) 2018-01-29 2018-12-14 一种数据传输方法、音频设备、智能终端

Country Status (2)

Country Link
CN (1) CN108492831B (zh)
WO (1) WO2019144726A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108492831B (zh) * 2018-01-29 2020-10-27 歌尔科技有限公司 一种数据传输方法、音频设备、智能终端
CN114884584B (zh) * 2022-04-28 2023-11-03 上海小度技术有限公司 数据传输方法、相关装置及计算机程序产品

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5848027A (en) * 1995-11-22 1998-12-08 Biometrics, Inc. Method for processing personal data
CN104079358A (zh) * 2014-06-25 2014-10-01 福建联迪商用设备有限公司 一种声波通信同步方法、系统以及接收端
CN104717601A (zh) * 2014-08-22 2015-06-17 深圳市智美达科技有限公司 无线监控设备登录无线网络的方法和系统
CN104954078A (zh) * 2015-05-28 2015-09-30 广东欧珀移动通信有限公司 基于声波通信的控制及响应方法和装置
CN106209314A (zh) * 2016-07-06 2016-12-07 歌尔股份有限公司 数据传输方法、设备及音频设备
CN106209313A (zh) * 2016-07-06 2016-12-07 歌尔股份有限公司 数据传输方法及系统
CN106550145A (zh) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 信息交互方法及装置
CN108492831A (zh) * 2018-01-29 2018-09-04 歌尔科技有限公司 一种数据传输方法、音频设备、智能终端

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5848027A (en) * 1995-11-22 1998-12-08 Biometrics, Inc. Method for processing personal data
CN104079358A (zh) * 2014-06-25 2014-10-01 福建联迪商用设备有限公司 一种声波通信同步方法、系统以及接收端
CN104717601A (zh) * 2014-08-22 2015-06-17 深圳市智美达科技有限公司 无线监控设备登录无线网络的方法和系统
CN104954078A (zh) * 2015-05-28 2015-09-30 广东欧珀移动通信有限公司 基于声波通信的控制及响应方法和装置
CN106209314A (zh) * 2016-07-06 2016-12-07 歌尔股份有限公司 数据传输方法、设备及音频设备
CN106209313A (zh) * 2016-07-06 2016-12-07 歌尔股份有限公司 数据传输方法及系统
CN106550145A (zh) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 信息交互方法及装置
CN108492831A (zh) * 2018-01-29 2018-09-04 歌尔科技有限公司 一种数据传输方法、音频设备、智能终端

Also Published As

Publication number Publication date
CN108492831A (zh) 2018-09-04
CN108492831B (zh) 2020-10-27

Similar Documents

Publication Publication Date Title
JP7137635B2 (ja) ヘッドホーン無線通信方法、メインヘッドホーン、スレーブヘッドホーンおよびヘッドホーンシステム
RU2398356C2 (ru) Способ установления беспроводной линии связи и система для установления беспроводной связи
CN103117836B (zh) 用于设备关联的方法和设备
CN203289452U (zh) 一种基于声波通信配对的无线音频系统
EP2423806B1 (en) Method and device for transmitting universal serial bus audio data through a wireless data terminal
KR102031598B1 (ko) 신호 송신 방법 및 장치
CN103987033A (zh) 设备连接Wi-Fi网络的方法、设备及系统
CN103560836A (zh) 声波无线通信方法和装置
WO2019153477A1 (zh) 语音遥控方法和装置
WO2016161752A1 (zh) 一种数据传输方法和装置
WO2013078996A1 (zh) 一种近距离通信实现方法和系统
WO2019144726A1 (zh) 一种数据传输方法、音频设备、智能终端
CN108243481A (zh) 文件传输方法及装置
JP2016024817A (ja) 音声送受信装置
CN105790854A (zh) 一种基于声波的短距离数据传输方法及装置
CN104780091A (zh) 一种具有语音音频处理功能的即时通信方法和系统
CN103957220A (zh) 一种基于变频声波的数据传输方法及系统
CN105722183A (zh) Wi-Fi链接信息分享方法及装置
KR20200101012A (ko) 오디오 데이터 처리 방법 및 이를 위한 전자 장치
CN104702373A (zh) 一种采用声音编码为设备进行网络配置的装置和方法
WO2015120759A1 (zh) 音频信号的传输方法、移动终端和智能密钥设备
CN104954078A (zh) 基于声波通信的控制及响应方法和装置
CN203027256U (zh) 一种通信设备及通信系统
CN111885412B (zh) Hdmi信号传屏方法及无线传屏器
WO2018072346A1 (zh) 数据转发设备,数据转发方法、装置和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18902493

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18902493

Country of ref document: EP

Kind code of ref document: A1