CN114882910A - Method and device for determining near field communication and computer readable storage medium - Google Patents

Method and device for determining near field communication and computer readable storage medium Download PDF

Info

Publication number
CN114882910A
CN114882910A CN202210467357.5A CN202210467357A CN114882910A CN 114882910 A CN114882910 A CN 114882910A CN 202210467357 A CN202210467357 A CN 202210467357A CN 114882910 A CN114882910 A CN 114882910A
Authority
CN
China
Prior art keywords
terminal
signal
communication
determining
correlation value
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
CN202210467357.5A
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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN202210467357.5A priority Critical patent/CN114882910A/en
Publication of CN114882910A publication Critical patent/CN114882910A/en
Pending legal-status Critical Current

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
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M9/00Arrangements for interconnection not involving centralised switching
    • H04M9/08Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for determining near field communication and a computer readable storage medium. Wherein, the method comprises the following steps: determining a correlation value of a first signal and a second signal, wherein the first signal is an environmental audio signal collected by a first terminal through a preset voice device before a preset network delay, the second signal is an audio signal output by a second terminal and received by the first terminal in a communication process, and the correlation value is used for representing the similarity between the first signal and the second signal; it is determined whether the first terminal and the second terminal are in a state of near field communication based on the correlation value. The invention solves the technical problem that whether the terminal devices are in the near field communication scheme or not can not be determined in the related technology.

Description

Method and device for determining near field communication and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for determining near field communication, and a computer-readable storage medium.
Background
In the prior art, a close-range call usually has a howling problem, and the phenomenon of howling is more serious the closer the distance is. If the call terminal cannot be judged to be close, the sound effect debugging must give consideration to the far and near call effect, the loudness is usually sacrificed to prevent the close call howling, and the loudness during the long call does not reach the maximum. Whistling is very easy at close distances if the loudness is made as large as possible for long distance communication. Therefore, it is important to detect whether the terminal device is in a close range during communication in order to prevent howling.
At present, no scheme has been found that can determine whether or not terminal apparatuses are in close range communication.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining near field communication and a computer readable storage medium, which are used for at least solving the technical problem that whether terminal equipment is in a near field communication scheme cannot be determined in the related art.
According to an aspect of an embodiment of the present invention, there is provided a method for determining near field communication, including: determining a correlation value of a first signal and a second signal, wherein the first signal is an environmental audio signal collected by a first terminal through a preset voice device before a preset network delay, the second signal is an audio signal output by a second terminal and received by the first terminal in a communication process, and the correlation value is used for representing the similarity between the first signal and the second signal; determining whether the first terminal and the second terminal are in a close range communication state based on the correlation value.
Optionally, before determining the correlation value of the first signal and the second signal, the method further comprises: triggering a signal receiving component of the first terminal to be opened to receive the first signal when the communication type is a first communication type, wherein the signal receiving component is a component used for receiving signals in the first terminal, and the first communication type is a communication type in which the second terminal only opens an uplink path and the first terminal only opens a downlink path; and receiving the first signal and the second signal under the condition that the communication type is a second communication type, wherein the second communication type is the communication type that the first terminal and the second terminal open the uplink path and the downlink path at the same time.
Optionally, determining a correlation value of the first signal and the second signal comprises: acquiring a correlation window length, wherein the correlation window length is a preset time domain range; respectively intercepting the first signal and the second signal based on the length of the correlation window to obtain a first target signal and a second target signal; and acquiring a correlation value of the first target signal and the second target signal.
Optionally, obtaining a correlation value of the first target signal and the second target signal at least includes: acquiring waveform data information of the first target signal and the second target signal; performing translation processing on the waveform data information based on the length of the relevant window; sequentially carrying out displacement processing on the waveform data information after the displacement, and obtaining an array; determining a correlation value of the first target signal and the second target signal based on the array.
Optionally, determining whether the first terminal and the second terminal are in a close-range communication state based on the correlation value includes: under the condition that the correlation value is larger than the preset correlation threshold value, determining that the first terminal and the second terminal are in a close-range communication state; and under the condition that the correlation value is not larger than the preset correlation threshold value, determining that the first terminal and the second terminal are not in a short-distance communication state.
Optionally, after determining that the first terminal and the second terminal are in close range communication, the method further includes: when the communication type between the first terminal and the second terminal is the first communication type, adjusting the signal power of the first terminal and the second terminal to ensure the signal output intensity of the second terminal; and if the communication type between the first terminal and the second terminal is the second communication type, adjusting the signal power of the first terminal to ensure the signal output strength of the second terminal.
Optionally, after determining whether the first terminal and the second terminal are in a close-range communication state based on the correlation value, the method further includes: and storing and updating the preset network delay, wherein the preset network delay is the communication time required between the first terminal and the second terminal.
According to another aspect of the embodiments of the present invention, there is also provided a near field communication determining apparatus, including: the device comprises a first determining module, a second determining module and a processing module, wherein the first determining module is used for determining a correlation value of a first signal and a second signal, the first signal is an environmental audio signal collected by a first terminal through a preset voice device before a preset network delay, the second signal is an audio signal output by a second terminal and received by the first terminal in a communication process, and the correlation value is used for representing the similarity between the first signal and the second signal; a second determination module, configured to determine whether the first terminal and the second terminal are in a close-range communication state based on the correlation value.
Optionally, the apparatus further comprises: the triggering module is used for triggering a signal receiving component of the first terminal to be opened to receive the first signal under the condition that the communication type is the first communication type before determining the correlation value of the first signal and the second signal, wherein the signal receiving component is a component used for receiving the signal in the first terminal, and the first communication type is a communication type that the second terminal only opens an uplink path and the first terminal only opens a downlink path; a receiving module, configured to receive the first signal and the second signal when the communication type is a second communication type, where the second communication type is a communication type in which the first terminal and the second terminal simultaneously open the uplink path and the downlink path.
Optionally, the first determining module includes: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the length of a correlation window, and the length of the correlation window is a preset time domain range; a first obtaining unit, configured to respectively intercept the first signal and the second signal based on the length of the correlation window to obtain a first target signal and a second target signal; a second obtaining unit, configured to obtain a correlation value between the first target signal and the second target signal.
Optionally, the second obtaining unit at least includes: an acquisition subunit, configured to acquire waveform data information of the first target signal and the second target signal; the translation processing subunit is used for performing translation processing on the waveform data information based on the length of the relevant window; the displacement processing subunit is used for sequentially performing displacement processing on the waveform data information after the translation to obtain an array; a determining subunit for determining a correlation value of the first target signal and the second target signal based on the array.
Optionally, the second determining module includes: a first determination unit, configured to determine that the first terminal and the second terminal are in a short-distance communication state when the correlation value is greater than the preset correlation threshold; and the second determining unit is used for determining that the first terminal and the second terminal are not in a short-distance communication state under the condition that the correlation value is not larger than the preset correlation threshold value.
Optionally, the apparatus further comprises: a first adjusting module, configured to, after determining that the first terminal and the second terminal are in short-range communication, adjust signal powers of the first terminal and the second terminal to ensure a signal output strength of the second terminal if a communication type between the first terminal and the second terminal is the first communication type; a second adjusting module, configured to adjust the signal power of the first terminal to ensure the signal output strength of the second terminal if the communication type between the first terminal and the second terminal is the second communication type.
Optionally, the apparatus further comprises: and the storage module is used for storing and updating the preset network delay after determining whether the first terminal and the second terminal are in a near field communication state based on the correlation value, wherein the preset network delay is the communication time required between the first terminal and the second terminal.
According to another aspect of the embodiments of the present invention, there is also provided a terminal including a memory and a processor, the memory having a computer program stored thereon, the computer program being executable by the processor, and the processor implementing any one of the methods for determining near field communication when executing the computer program.
According to another aspect of the embodiments of the present invention, there is also provided a communication system including a first terminal and a second terminal, the first terminal being configured to execute the method for determining near field communication described in any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for determining near field communication.
In the embodiment of the invention, a correlation value of a first signal and a second signal is determined, wherein the first signal is an environmental audio signal collected by a first terminal through a preset voice device before a preset network delay, the second signal is an audio signal output by a second terminal and received by the first terminal in a communication process, and the correlation value is used for representing the similarity between the first signal and the second signal; it is determined whether the first terminal and the second terminal are in a state of near field communication based on the correlation value. In the scheme, the correlation value of the first signal and the second signal is compared with the preset threshold, and whether the terminal devices are in close range communication can be determined according to the comparison result, so that the technical problem that whether the terminal devices are in close range communication cannot be determined in the related technology is solved. Moreover, the scheme is applied to the terminal howling prevention processing, so that the communication experience of the user can be better improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a method of determining close range communication according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a receiving end signal in the close range hands-free call according to an embodiment of the present invention;
FIG. 3 is a flowchart of a preferred method of close range communication determination according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a determination method of near field communication according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method of determining near field communication, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a method for determining near field communication according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, determining a correlation value of a first signal and a second signal, wherein the first signal is an environmental audio signal collected by a first terminal through a preset voice device before a preset network delay, the second signal is an audio signal output by a second terminal and received by the first terminal in a communication process, and the correlation value is used for representing the similarity between the first signal and the second signal;
optionally, in the above step, the correlation value represents a similarity between signals, and may be obtained by comparing signal waveforms, where the similarity represents a correlation between signals, and a larger similarity represents a stronger signal correlation.
It should be noted that the above-mentioned environmental audio refers to an audio signal collected before the network delay, and is not limited to the background sound.
In the above steps, the obtained correlation value is compared with a preset correlation threshold, if the correlation value is greater than the preset correlation threshold, the similarity between the signals is greater, and near field communication exists; if the correlation value is smaller than the preset correlation threshold, the similarity between the signals is small, and short-distance communication does not exist.
And step S104, determining whether the first terminal and the second terminal are in a short-distance communication state or not based on the correlation value.
As can be seen from the above, in the embodiment of the present invention, a correlation value between a first signal and a second signal may be first determined, where the first signal is an ambient audio signal collected by a predetermined voice device before a predetermined network delay by a first terminal, the second signal is an audio signal output by a second terminal and received by the first terminal during a communication process, and the correlation value is used to represent a similarity between the first signal and the second signal; finally, whether the first terminal and the second terminal are in the close range communication state can be determined based on the correlation value. In the scheme, the correlation value of the first signal and the second signal is compared with the preset threshold, and whether the terminal devices are in close range communication can be determined according to the comparison result, so that the technical problem that whether the terminal devices are in close range communication cannot be determined in the related technology is solved. Moreover, the scheme is applied to the terminal howling prevention processing, so that the communication experience of the user can be better improved.
As an alternative embodiment, before determining the correlation value of the first signal and the second signal, the method further comprises: under the condition that the communication type is a first communication type, triggering a signal receiving part of a first terminal to be opened so as to receive a first signal, wherein the signal receiving part is a part used for receiving the signal in the first terminal, and the first communication type is a communication type that a second terminal only opens an uplink path and the first terminal only opens a downlink path; and receiving the first signal and the second signal under the condition that the communication type is a second communication type, wherein the second communication type is the communication type that the first terminal and the second terminal simultaneously open an uplink path and a downlink path.
In the above alternative embodiment, before determining the correlation value between the signals, it is necessary to first establish a communication connection between the first terminal and the second terminal, and acquire the communication type of the first terminal and the second terminal, and if the communication type is simplex communication, such as communication between a television station and a radio, the uplink MIC (i.e., the receiving component) is turned on, but the data of the uplink MIC is only used for distance judgment, and the signals are not sent to the network side (e.g., a base station, etc.).
As an alternative embodiment, determining a correlation value of the first signal and the second signal comprises: acquiring the length of a correlation window, wherein the length of the correlation window is a preset time domain range; respectively intercepting a first signal and a second signal based on the length of a relevant window to obtain a first target signal and a second target signal; a correlation value of the first target signal and the second target signal is obtained.
In the above optional embodiment, the length of the correlation window is a communication time domain range value defined by a user before an experiment, and the first signal and the second signal can be intercepted in a section of infinite-length communication transmission through the length of the correlation window, so that subsequent processing for solving the correlation value between the signals is facilitated.
As an alternative embodiment, obtaining the correlation value of the first target signal and the second target signal at least includes: acquiring waveform data information of a first target signal and a second target signal; performing translation processing on the waveform data information based on the length of a relevant window; sequentially carrying out displacement processing on the waveform data information after the translation to obtain an array; a correlation value of the first target signal and the second target signal is determined based on the array.
In the above alternative embodiment, determining the correlation value between the signals, that is, calculating the similarity between the signals, may first perform continuous translation on the two signals based on the length of the correlation window, start corresponding multiplication when the two signals are in contact alignment, add all the corresponding values, perform continuous calculation along with the continuous translation, obtain an array of correlation values when the signals are translated to be out of contact, and find the maximum value in the array to obtain the correlation value between the two signals to represent the similarity between the two signals.
Further, after the target signal is obtained through the correlation window length, the correlation value can be obtained by calculating the correlation coefficient of the first target signal and the second target signal. It should be noted that the method for determining the correlation value of the first signal and the second signal includes, but is not limited to, the above two methods.
As an alternative embodiment, determining whether the first terminal and the second terminal are in the close-range communication state based on the correlation value includes: under the condition that the correlation value is larger than a preset correlation threshold value, determining that the first terminal and the second terminal are in a close-range communication state; and under the condition that the correlation value is not greater than a preset correlation threshold value, determining that the first terminal and the second terminal are not in the short-distance communication state.
As an optional embodiment, determining whether the first terminal and the second terminal are in short-range communication based on the comparison result includes: under the condition that the correlation value is larger than a preset correlation threshold value in the comparison result, determining that the first terminal and the second terminal are in short-distance communication; and under the condition that the correlation value is not greater than the preset correlation threshold value as a comparison result, determining that the first terminal and the second terminal are not in near field communication.
Further, after the maximum value in the array is obtained, the maximum value is regarded as a correlation value between signals, the correlation value is compared with a preset correlation threshold value, and if the correlation value is greater than the preset correlation threshold value, the fact that the similarity between the signals is large is indicated, and near field communication exists; if the correlation value is not greater than the preset correlation threshold, it indicates that the similarity between the signals is small, and no near field communication exists.
As an optional embodiment, after determining that the first terminal and the second terminal are in close range communication, the method further comprises: under the condition that the communication type between the first terminal and the second terminal is a first communication type, adjusting the signal power of the first terminal and the second terminal to ensure the signal output intensity of the second terminal; and in the case that the communication type between the first terminal and the second terminal is the second communication type, adjusting the signal power of the first terminal to ensure the signal output intensity of the second terminal.
In the above optional embodiment, after the proximity communication is determined to exist between the terminals, the howling phenomenon may be prevented by reducing the downlink gain of the receiving terminal. In addition, signals between terminals can be artificially improved according to different communication types, so that negative effects possibly brought by a howling phenomenon can be relieved. For example, when the communication type is simplex communication (i.e. the first communication type), the transceiving signal power between the first terminal and the second terminal may be adjusted to improve the call quality and improve the user communication experience. In addition, two terminals directly communicating with each other in the private network can achieve the technical effect of reducing power consumption by reducing the power of the transmitted and received signals.
As an alternative embodiment, after determining whether the first terminal and the second terminal are in the close range communication state based on the correlation value, the method further includes: and storing and updating the preset network delay, wherein the preset network delay is the communication time required between the first terminal and the second terminal.
It should be noted that, after the determination result indicates that the near field communication exists, the current communication network delay between the terminals may be saved and used as a reference for comparing the subsequent correlation values.
Fig. 2 is a schematic diagram of a signal at a receiving end during short-distance communication according to an embodiment of the present invention, as shown in fig. 2, an uppermost row in fig. 2 represents a noise reduction module signal for noise reduction processing, a lowermost row in fig. 2 represents a near-end signal (i.e., a first signal) received by a first terminal, a first waveform from the left is a near-end signal, i.e., an initial signal received by the first terminal, and when the short-distance communication is performed, the near-end signal is earlier than a far-end signal, it should be noted that the initial signal received by the first terminal is an environmental sound collected by a MIC, because two terminals are in a short distance, a voice transmitted by the second terminal can be collected by the first terminal directly through the MIC, the second terminal has a delay and is therefore later than a signal directly collected by the MIC, and a middle row in fig. 2 represents a far-end signal (i.e., a second signal) received by the first terminal, i.e., an initial signal is transmitted to the second terminal, the second terminal plays the received signal and the signal is re-received by the first terminal, further, the middle row is the signal the second terminal sends to the first terminal. (is the signal the first terminal receives through the network side). As shown in fig. 2, the first segment of signal in the uppermost row exists, that is, the noise reduction module does not process the initial input signal (that is, the signal that is input at the beginning) of the first terminal, and the subsequent noise reduction module signal corresponding to the second segment of signal in the left of the lowermost row in fig. 2 is removed, that is, the part of signal is the far-end signal that is received by the first terminal, played by the speaker of the first terminal and then collected by the microphone of the first terminal, that is, the echo signal, and this signal may affect the call quality and interfere with the fluency of the experiment, so the noise reduction module removes this signal.
It should be noted that, in the embodiment of the present invention, the ECNS selected by the cancellation module performs an operation of canceling an echo signal for the signal, and an ECNS (echo cancellation noise suppression) uplink output represents an uplink output signal processed by the ECNS module in an uplink DSP (digital signal processing) algorithm link.
Fig. 3 is a flowchart of a preferred method for determining near field communication according to an embodiment of the present invention, as shown in fig. 3, first, a call is established, and whether simplex communication is performed is determined, if simplex communication is performed, a receiving end thereof is turned on with a mic, but only used for transceiver distance detection, and not transmitted to a network side, then an initial network delay is preset (for example, 480ms), a received far-end signal is correlated with a near-end mic (i.e., a microphone, an uplink signal) before the network delay is set, a correlation window length is defined (for example, 300ms), if a correlation value is large, near field communication exists, and a calibrated network delay value is stored and used for subsequent correlation comparison. Then, specific execution is carried out according to the communication type, wherein if the short-distance duplex communication is carried out, the downlink gain of a receiving end is subjected to gain reduction processing, and the strength of the group calling uplink signal is ensured; if the short-distance simplex communication is adopted, the downlink gain of the receiving end is reduced, and the power of the transmitted and received signals is adjusted to prevent the howling phenomenon.
As can be seen from the above, in the embodiment of the present invention, under the remote communication condition, signals acquired by the transceiver terminal mic are different and have no correlation; however, under the condition of short-distance communication, because the environments of the receiving and sending terminals are the same, the mic of the receiving and sending terminals can acquire the same signal, and the embodiment provided by the invention utilizes the point, provides a method for detecting the short-distance receiving and sending of communication, is used for judging whether the short-distance communication is performed or not, can be used for howling prevention processing, improves the communication experience of users, and improves the communication quality.
Example 2
According to another aspect of the embodiment of the present invention, there is further provided a device for determining near field communication, and fig. 4 is a schematic diagram of a method for determining near field communication according to the embodiment of the present invention, as shown in fig. 4, including: a first determination module 41 and a second determination module 43. The following describes the determination device for short-range communication.
A first determining module 41, configured to determine a correlation value between a first signal and a second signal, where the first signal is an environmental audio signal collected by the first terminal through a predetermined voice device before a predetermined network delay, the second signal is an audio signal output by the second terminal and received by the first terminal in a communication process, and the correlation value is used to represent a similarity between the first signal and the second signal;
and a second determining module 43, configured to determine whether the first terminal and the second terminal are in a short-range communication state based on the correlation value.
It should be noted that the first determining module 41 and the second determining module 43 correspond to steps S102 to S104 in embodiment 1, and the modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of embodiment 1. It should be noted that the modules described above as part of an apparatus may be implemented in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the embodiment of the present invention, first, a correlation value between a first signal and a second signal may be determined by means of the first determining module 41, where the first signal is an ambient audio signal collected by the first terminal through a predetermined voice device before a predetermined network delay, the second signal is an audio signal output by the second terminal and received by the first terminal during a communication process, and the correlation value is used to represent a similarity between the first signal and the second signal; finally, it can be determined by means of the second determination module 43 whether the first terminal and the second terminal are in a close-range communication state based on the correlation value. In the scheme, the correlation value of the first signal and the second signal is compared with the preset threshold, and whether the terminal devices are in close range communication can be determined according to the comparison result, so that the technical problem that whether the terminal devices are in close range communication cannot be determined in the related technology is solved. Moreover, the scheme is applied to the terminal howling prevention processing, so that the communication experience of the user can be better improved.
Optionally, the apparatus further comprises: the triggering module is used for triggering a signal receiving component of the first terminal to be started to receive the first signal under the condition that the communication type is the first communication type before determining the correlation value of the first signal and the second signal, wherein the signal receiving component is a component used for receiving the signal in the first terminal, and the first communication type is a communication type that the second terminal only starts an uplink path and the first terminal only starts a downlink path; the receiving module is configured to receive a first signal and a second signal when a communication type is a second communication type, where the second communication type is a communication type in which the first terminal and the second terminal simultaneously open an uplink path and a downlink path.
Optionally, the first determining module includes: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the length of a correlation window, and the length of the correlation window is a preset time domain range; the first acquisition unit is used for respectively intercepting a first signal and a second signal based on the length of a relevant window to obtain a first target signal and a second target signal; and a second acquisition unit for acquiring a correlation value of the first target signal and the second target signal.
Optionally, the second obtaining unit at least includes: an acquisition subunit, configured to acquire waveform data information of the first target signal and the second target signal; the translation processing subunit is used for performing translation processing on the waveform data information based on the length of the relevant window; the displacement processing subunit is used for sequentially carrying out displacement processing on the waveform data information after the translation to obtain an array; a determination subunit for determining a correlation value of the first target signal and the second target signal based on the array.
Optionally, the second determining module includes: the first determining unit is used for determining that the first terminal and the second terminal are in a short-distance communication state under the condition that the correlation value is larger than a preset correlation threshold value; and the second determination unit is used for determining that the first terminal and the second terminal are not in the short-distance communication state under the condition that the correlation value is not larger than the preset correlation threshold value.
Optionally, the apparatus further comprises: the first adjusting module is used for adjusting the signal power of the first terminal and the second terminal to ensure the signal output intensity of the second terminal under the condition that the communication type between the first terminal and the second terminal is the first communication type after the first terminal and the second terminal are determined to be in short-distance communication; and the second adjusting module is used for adjusting the signal power of the first terminal to ensure the signal output strength of the second terminal under the condition that the communication type between the first terminal and the second terminal is the second communication type.
Optionally, the apparatus further comprises: and the storage module is used for storing and updating the preset network delay after determining whether the first terminal and the second terminal are in the near field communication state based on the correlation value, wherein the preset network delay is the communication time required between the first terminal and the second terminal.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a terminal including a memory and a processor, the memory storing thereon a computer program executable by the processor, the processor implementing any one of the determination methods of near field communication when executing the computer program.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a communication system including a first terminal and a second terminal, the first terminal being configured to perform the method for determining near field communication of any one of the above.
Example 5
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the apparatus where the computer-readable storage medium is located is controlled to execute the method for determining near field communication of any one of the above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for determining near field communication, comprising:
determining a correlation value of a first signal and a second signal, wherein the first signal is an environmental audio signal collected by a first terminal through a preset voice device before a preset network delay, the second signal is an audio signal output by a second terminal and received by the first terminal in a communication process, and the correlation value is used for representing the similarity between the first signal and the second signal;
determining whether the first terminal and the second terminal are in a close range communication state based on the correlation value.
2. The method of claim 1, wherein prior to determining the correlation value of the first signal with the second signal, the method further comprises:
triggering a signal receiving component of the first terminal to be opened to receive the first signal when the communication type is a first communication type, wherein the signal receiving component is a component used for receiving signals in the first terminal, and the first communication type is a communication type in which the second terminal only opens an uplink path and the first terminal only opens a downlink path;
and receiving the first signal and the second signal under the condition that the communication type is a second communication type, wherein the second communication type is the communication type that the first terminal and the second terminal open the uplink path and the downlink path simultaneously.
3. The method of claim 1, wherein determining a correlation value of the first signal and the second signal comprises:
acquiring a correlation window length, wherein the correlation window length is a preset time domain range;
respectively intercepting the first signal and the second signal based on the length of the correlation window to obtain a first target signal and a second target signal;
and acquiring a correlation value of the first target signal and the second target signal.
4. The method of claim 3, wherein obtaining a correlation value of the first target signal and the second target signal comprises at least:
acquiring waveform data information of the first target signal and the second target signal;
performing translation processing on the waveform data information based on the length of the relevant window;
sequentially carrying out displacement processing on the waveform data information after the displacement, and obtaining an array;
determining a correlation value of the first target signal and the second target signal based on the array.
5. The method of claim 1, wherein determining whether the first terminal and the second terminal are in close range communication based on the correlation value comprises:
under the condition that the correlation value is larger than a preset correlation threshold value, determining that the first terminal and the second terminal are in a close-range communication state;
and under the condition that the correlation value is not larger than the preset correlation threshold value, determining that the first terminal and the second terminal are not in a short-distance communication state.
6. The method of claim 2, wherein after determining that the first terminal and the second terminal are in close range communication, the method further comprises:
when the communication type between the first terminal and the second terminal is the first communication type, adjusting the signal power of the first terminal and the second terminal to ensure the signal output intensity of the second terminal;
and if the communication type between the first terminal and the second terminal is the second communication type, adjusting the signal power of the first terminal to ensure the signal output strength of the second terminal.
7. The method according to any one of claims 1 to 6, wherein after determining whether the first terminal and the second terminal are in a close range communication state based on the correlation value, the method further comprises:
and storing and updating the preset network delay, wherein the preset network delay is the communication time required between the first terminal and the second terminal.
8. A terminal characterized by comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, the processor implementing the method of determining near field communication according to any one of claims 1 to 7 when executing the computer program.
9. A communication system comprising a first terminal and a second terminal, characterized in that the first terminal is configured to execute the method for determining near field communication according to any one of claims 1 to 7.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed by a processor, controls an apparatus in which the computer-readable storage medium is located to perform the method for determining near field communication according to any one of claims 1 to 8.
CN202210467357.5A 2022-04-29 2022-04-29 Method and device for determining near field communication and computer readable storage medium Pending CN114882910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210467357.5A CN114882910A (en) 2022-04-29 2022-04-29 Method and device for determining near field communication and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210467357.5A CN114882910A (en) 2022-04-29 2022-04-29 Method and device for determining near field communication and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114882910A true CN114882910A (en) 2022-08-09

Family

ID=82674118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210467357.5A Pending CN114882910A (en) 2022-04-29 2022-04-29 Method and device for determining near field communication and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114882910A (en)

Similar Documents

Publication Publication Date Title
US10269369B2 (en) System and method of noise reduction for a mobile device
EP2348645B1 (en) Method and apparatus for detecting double talk
CN105308942A (en) Echo cancellation
US20070036342A1 (en) Method and system for operation of a voice activity detector
CN111742541B (en) Acoustic echo cancellation method, acoustic echo cancellation device and storage medium
US8798290B1 (en) Systems and methods for adaptive signal equalization
US10115411B1 (en) Methods for suppressing residual echo
US9491545B2 (en) Methods and devices for reverberation suppression
DK2858338T3 (en) Echo Elimination Device and Method for a Hands-Free Small Dimension Voice Communication System
CN110992923B (en) Echo cancellation method, electronic device, and storage device
CN103534942A (en) Processing audio signals
US9191519B2 (en) Echo suppressor using past echo path characteristics for updating
JP2007037116A (en) Signal processing depending on network
CN111383647B (en) Voice signal processing method and device and readable storage medium
CN110956975A (en) Echo cancellation method and device
US10403301B2 (en) Audio signal processing apparatus for processing an input earpiece audio signal upon the basis of a microphone audio signal
CN112583970A (en) Vehicle-mounted Bluetooth echo cancellation method and device, vehicle-mounted terminal and storage medium
CN103370741A (en) Processing audio signals
US9392365B1 (en) Psychoacoustic hearing and masking thresholds-based noise compensator system
CN114882910A (en) Method and device for determining near field communication and computer readable storage medium
CN111355855A (en) Echo processing method, device, equipment and storage medium
US11804237B2 (en) Conference terminal and echo cancellation method for conference
KR102172608B1 (en) Apparatus and method for removing acoustic echo based on deep learning standing up to double talks
WO2023206506A1 (en) Determination method and apparatus for near-field communication, and computer-readable storage medium
CN113241084A (en) Echo cancellation method, device and equipment

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