CN108449492B - Voice call data processing method and device, storage medium and mobile terminal - Google Patents

Voice call data processing method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108449492B
CN108449492B CN201810200174.0A CN201810200174A CN108449492B CN 108449492 B CN108449492 B CN 108449492B CN 201810200174 A CN201810200174 A CN 201810200174A CN 108449492 B CN108449492 B CN 108449492B
Authority
CN
China
Prior art keywords
mobile terminal
voice call
howling
target
preset
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.)
Expired - Fee Related
Application number
CN201810200174.0A
Other languages
Chinese (zh)
Other versions
CN108449492A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810200174.0A priority Critical patent/CN108449492B/en
Publication of CN108449492A publication Critical patent/CN108449492A/en
Application granted granted Critical
Publication of CN108449492B publication Critical patent/CN108449492B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0272Voice signal separating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02087Noise filtering the noise being separate speech, e.g. cocktail party

Abstract

The embodiment of the application discloses a voice call data processing method, a voice call data processing device, a storage medium and a mobile terminal. The method comprises the following steps: detecting that a voice call group in a preset application program of the mobile terminal is successfully established; judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group; and if so, performing howling prevention processing on the voice call data in the mobile terminal. By adopting the technical scheme, after the voice call function in the application program of the mobile terminal is started, the howling prevention processing can be carried out at a proper time.

Description

Voice call data processing method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of voice call, in particular to a voice call data processing method, a voice call data processing device, a storage medium and a mobile terminal.
Background
At present, with the rapid popularization of mobile terminals, mobile terminals such as mobile phones and tablet computers have become one of the necessary communication tools for people. Communication modes between mobile terminal users are becoming more and more abundant, and are not limited to traditional telephone and short message services provided by mobile communication operators for a long time, and in many scenarios, users tend to use internet-based communication modes, such as voice chat and video chat functions in various social software.
In addition, the functions of Application programs (APP) in the mobile terminal are increasingly improved, and a voice call function is set in many APP programs, so that communication between users using the same APP program is facilitated. Taking a game application as an example, some games requiring interaction between players have a built-in voice communication function added, and a user can perform voice communication with other players in the process of playing the games by using a mobile terminal. However, in the voice call process, the voice data includes many kinds of voices, such as voices spoken by each player, voices of the application program itself (e.g., background sounds or special effects of a game), and other voices in the environment where the mobile terminal is located, and the voice is relatively complicated, so that a howling phenomenon is easily generated, which seriously affects the use of the user.
Disclosure of Invention
The embodiment of the application provides a voice call data processing method, a voice call data processing device, a storage medium and a mobile terminal, which can select a proper time to perform howling prevention processing after a voice call function in a mobile terminal application program is started.
In a first aspect, an embodiment of the present application provides a voice call data processing method, including:
detecting that a voice call group in a preset application program of the mobile terminal is successfully established;
judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group;
and if so, performing howling prevention processing on the voice call data in the mobile terminal.
In a second aspect, an embodiment of the present application provides a voice call data processing apparatus, including:
the voice call group detection module is used for detecting that the establishment of a voice call group in a preset application program of the mobile terminal is successful;
the target terminal judging module is used for judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group;
and the howling prevention processing module is used for carrying out howling prevention processing on the voice call data in the mobile terminal if the voice call data exists.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a voice call data processing method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the voice call data processing method according to the embodiment of the present application.
According to the voice call data processing scheme provided by the embodiment of the application, after the voice call group in the preset application program of the mobile terminal is successfully established, whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group is judged, and if the target mobile terminal exists, howling prevention processing is carried out on the voice call data in the mobile terminal. By adopting the technical scheme, after the voice call group of the preset application program in the mobile terminal is successfully established, when other mobile terminals which are closer to the current mobile terminal exist in the voice call group, the voice call data of the current mobile terminal can be subjected to howling prevention processing in time, and inconvenience brought to users by howling sound is reduced.
Drawings
Fig. 1 is a schematic flowchart of a voice call data processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an original howling speech spectrum analysis provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a notch filter according to an embodiment of the present application;
fig. 4 is a schematic diagram of a spectral analysis of howling speech processed by a notch filter according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another voice call data processing method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another voice call data processing method according to an embodiment of the present application;
fig. 7 is a block diagram of a voice call data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a voice call data processing method according to an embodiment of the present application, where the method may be executed by a voice call data processing apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, detecting that the voice call group in the preset application program of the mobile terminal is successfully established.
For example, the mobile terminal in the embodiment of the present application may include mobile devices such as a mobile phone and a tablet computer. The preset application may be an application with built-in voice group call function, such as a network game application, an online classroom application, a video conference application, or other applications that require multi-person collaboration, and so on.
For example, the voice call group may include 2 members, but in most cases, the voice call group generally includes 3 or more than 3 members, that is, voice calls between 3 or more than 3 mobile terminals can be realized. The voice talk group can be established by user initiation using a preset application program on the mobile terminal, and after the voice talk group is established successfully, all the mobile terminals included in the voice talk group can communicate with each other. Generally, when the mobile terminal is not in the mute mode or the earphone mode, it may be understood that the mobile terminal is in the play-out mode, and the sound of each user in the voice call group is collected by the microphone of the mobile terminal being used by the user, and is played through the speakers of the mobile terminals of other users after being transmitted and processed through the network. Taking game application as an example, if team formation is needed to cooperate, team formation voice function can be started, and if 5 players exist in a team, after a voice call group is successfully established, the 5 players can talk with each other, and any one player can simultaneously hear the words spoken by the other 4 players, so that the game can be conveniently played while communicating as if the other 4 players speak at the same time.
And 102, judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal smaller than a first preset distance value exists in the voice call group.
Generally, when the mobile terminal is in the play-out mode, the sound collected by the microphone of the mobile terminal not only includes the voice of the user speaking, but also may include the sound emitted by the preset application program played by the speaker, such as background music, etc., and may include ambient sounds, and may also include sounds played by speakers that are spoken by others in the voice talkgroup, and, as such, when a plurality of mobile terminals send data including various sounds collected by the respective mobile terminals to the same mobile terminal through a network (for example, 5 mobile terminals are included in a voice call group, 4 of the mobile terminals send the sound collected by the respective mobile terminals to a server, and the server sends the sound data of the 4 mobile terminals to a 5 th mobile terminal), these sounds may be mixed and played in the mobile terminal, thereby generating a howling phenomenon.
In the embodiment of the application, in order to perform howling prevention processing at a proper time and avoid extra power consumption caused by performing useless howling prevention processing in an improper time, whether other mobile terminals which are close to the current mobile terminal exist in a voice call group or not can be detected. In the application scenario of multi-person voice, the inventor finds that howling is very easy to occur when the distance between two mobile terminals is relatively close. Supposing that the mobile terminal A and the mobile terminal B in the voice call group are close to each other, the loudspeaker of the mobile terminal A amplifies and plays the received sound collected by the microphone of the mobile terminal B, and because the two mobile terminals are close to each other, the sound is collected again by the microphone of the mobile terminal B and is sent to the mobile terminal A, the sound is amplified and played continuously, positive feedback amplification of the sound is easily formed, and howling sound is generated. Therefore, in the embodiment of the present application, it may be determined whether there is a short distance between one other mobile terminal and the current mobile terminal in the voice call, and if there is the short distance, the voice call data in the mobile terminal needs to be performed the howling prevention processing.
In the embodiment of the present application, there may be many specific ways for determining whether there is a target mobile terminal in the voice call group whose distance to the mobile terminal is smaller than the first preset distance value, and the specific ways are not limited, and several ways are given as schematic illustrations below.
1. Playing a preset sound segment in a preset mode, and receiving feedback information of other mobile terminals in the voice call group, wherein the feedback information comprises a result of the other mobile terminals trying to acquire sound signals corresponding to the preset sound segment; and judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group or not according to the feedback information.
The method has the advantages that whether the target mobile terminal exists or not can be judged quickly and accurately, and whether the howling detection event needs to be triggered or not can be determined quickly. Illustratively, a prerecorded or prerequished sound clip may be played through a speaker at a preset volume; or playing the ultrasonic wave segments with preset frequency and preset intensity by the ultrasonic wave transmitter. The preset volume, or the preset frequency and the preset intensity can be set according to the first preset distance value. The result included in the feedback information may indicate whether the other mobile terminal can collect the sound signal. When other mobile terminals can acquire the sound signals corresponding to the preset sound segments, the distance between the two mobile terminals is smaller than a first preset distance value. The feedback information can be forwarded by a server corresponding to a preset application program. In addition, the feedback information may further include attribute information of the collected sound signal, such as sound intensity, and since the intensity of the sound played by the mobile terminal is known, the sound may be attenuated along with the propagation of the sound, the farther the propagation distance is, the higher the attenuation degree is, the distance between the other mobile terminal and the current mobile terminal may be determined according to the intensity information of the sound signal in the feedback information, and whether the distance is smaller than the first preset distance value is determined.
2. Acquiring first positioning information of the mobile terminal and second positioning information of other mobile terminals in the voice call group; and judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than the first preset distance value exists in the voice call group or not according to the first positioning information and the second positioning information.
The method has the advantages that the mobile terminal generally has a positioning function, and can quickly and accurately judge whether the target mobile terminal exists by utilizing the positioning information, so as to quickly determine whether the howling detection event needs to be triggered. For example, the mobile terminal may obtain the Positioning information through a Global Positioning System (GPS) or a Beidou satellite System, or may obtain the Positioning information through a base station Positioning or a network Positioning. The positioning information may include latitude and longitude coordinates, etc. And the second positioning information of other mobile terminals in the voice call group can be forwarded to the current mobile terminal through a server corresponding to the preset application program. The current mobile terminal compares the first positioning information of the current mobile terminal with at least one second positioning information forwarded by the server one by one, and judges whether the distance between the second positioning information and the first positioning information is smaller than a first preset distance value.
3. Acquiring first WiFi information connected with the mobile terminal and second WiFi information connected with other mobile terminals in the voice call group; and judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than the first preset distance value exists in the voice call group or not according to the first WiFi information and the second WiFi information.
The method has the advantages that in order to save traffic cost, a user generally adopts a mode of connecting the WiFi hotspot to carry out voice call, and can quickly and accurately judge whether the target mobile terminal exists or not by utilizing the characteristic, so as to quickly determine whether a howling detection event needs to be triggered or not. For example, the WiFi information may include attribute information of the WiFi hotspot, and the attribute information may be, for example, a name of the WiFi hotspot, a Media Access Control (MAC) address of the WiFi hotspot, and the like, and may further include WiFi signal strength, and the like. Generally, the effective signal range of the WiFi hotspot is limited, generally about 50 meters, if the first preset distance value is greater than the effective signal range of the WiFi hotspot, it may be determined whether a target mobile terminal whose distance from the mobile terminal is smaller than the first preset distance value exists in the voice call group according to whether WiFi hotspot attribute information of one second WiFi information is the same as the WiFi hotspot attribute information of the first WiFi information exists, and if any WiFi hotspot attribute information of one second WiFi information is the same as the WiFi hotspot attribute information of the first WiFi information exists, it is determined that a target mobile terminal exists in the voice call group, that is, when one other mobile terminal in the voice call group is connected with the current mobile terminal at the same WiFi hotspot, the other mobile terminal may be considered as the target mobile terminal. In addition, if the first preset distance value is smaller than the effective signal range of the WiFi hotspot, for example, 10 meters, the distances between the mobile terminals connected to the same WiFi hotspot and the WiFi hotspot can be further estimated according to the WiFi signal strength, so as to determine the distance between the two mobile terminals, and determine whether the distance is smaller than the first preset distance value.
4. Acquiring first sound data acquired by a microphone and acquiring downlink voice call data in a mobile terminal; the first sound data does not contain sound played by a loudspeaker of the mobile terminal; and judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than the first preset distance value exists in the voice call group or not according to whether the first voice data and the downlink voice call data contain the voice of the same person or not.
The advantage of this arrangement is that it can quickly and accurately determine whether there is a target mobile terminal without using other information (such as the positioning information or WiFi information mentioned above), and thus quickly determine whether a howling detection event needs to be triggered. Illustratively, the first sound data does not include the sound played by the speaker of the mobile terminal, and the first sound data can be implemented by: the method comprises the steps that a loudspeaker of the mobile terminal is in a closed state in the process of acquiring first sound data and downlink voice call data; or the loudspeaker of the mobile terminal is in an open state in the process of acquiring the first sound data and the downlink voice call data, wherein the first sound data is sound data obtained by filtering sound data played by the loudspeaker from all sound data acquired by the microphone. When two users hold the mobile terminal and the distance is close, it is assumed that the first user uses the first mobile terminal, the second user uses the second mobile terminal, the voice of the first user is collected by a microphone of the first mobile terminal and sent to the second mobile terminal, the downlink voice call data of the second mobile terminal comprises the voice of the first user, and the voice of the first user is collected by the microphone of the second mobile terminal due to the close distance between the first user and the second user, so that for the second mobile terminal, the first voice data collected by the microphone and the acquired downlink voice call data comprise the voice of the same person (the first user), and therefore the fact that the distance between the first mobile terminal and the second mobile terminal in a voice call group is smaller than a first preset distance value is determined, namely for the second mobile terminal, the first mobile terminal is a target mobile terminal.
It can be understood that any one or a combination of multiple manners described above may be selected according to actual situations to determine whether the target mobile terminal exists, and the embodiment of the present application is not limited. In addition, the step of determining whether the target mobile terminal exists may be performed by a server corresponding to the preset application program, and the server sends the determination result to the mobile terminal. The specific determination process of the server may refer to the above-mentioned several determination methods, which are not described in detail in this embodiment of the present application.
And 103, if the voice call data exists, performing howling prevention processing on the voice call data in the mobile terminal.
In the embodiment of the present application, when it is determined that there are other mobile terminals in the voice call group whose distance from the current mobile terminal is smaller than the first preset distance value, howling is considered to be easily generated at this time, so that howling prevention processing needs to be performed on voice call data. The voice call data may include uplink voice call data and/or downlink voice call data, and the application is not particularly limited. The uplink voice call data can include sound data collected by a microphone of the mobile terminal; the downlink voice call data may be data sent to the mobile terminal by a server corresponding to a preset application program after receiving the sound data of other mobile terminals in the voice call group through processing such as sound mixing, or data directly forwarded to the mobile terminal. The embodiment of the present application is also not limited to the specific implementation of the howling prevention processing, and a specific implementation will be given as an illustrative description below.
Optionally, when the determination result in step 102 is that the voice call data does not exist, normal voice call may be performed, and howling prevention processing is not performed on the voice call data.
In the embodiment of the application, when it is determined that there is no other mobile terminal in the voice call group whose distance from the current mobile terminal is smaller than the first preset distance value, howling is not considered to be likely to occur at this time, so that howling prevention processing on voice call data is not required.
According to the voice call data processing method provided in the embodiment of the application, after a voice call group in a preset application program of a mobile terminal is successfully established, whether a target mobile terminal with a distance to the mobile terminal smaller than a first preset distance value exists in the voice call group or not is judged, and if the target mobile terminal exists, voice call data in the mobile terminal are subjected to howling prevention processing. By adopting the technical scheme, after the voice call group of the preset application program in the mobile terminal is successfully established, when other mobile terminals which are closer to the current mobile terminal exist in the voice call group, the voice call data of the current mobile terminal can be subjected to howling prevention processing in time, and inconvenience brought to users by howling sound is reduced.
In some embodiments, before determining whether there is a target mobile terminal in the voice call group whose distance to the mobile terminal is smaller than a first preset distance value, the method further includes: acquiring the relative distance between the mobile terminal and each other mobile terminal in the voice call group; the judging whether a target mobile terminal with a distance to the mobile terminal smaller than a first preset distance value exists in the voice call group comprises the following steps: and judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group or not according to the relative distance. The method has the advantages that whether the target mobile terminal which is closer to the current mobile terminal exists or not can be judged, and the relative distance between the current mobile terminal and each other mobile terminal in the voice call group can be accurately determined.
Illustratively, a preset sound segment is played in a preset mode, feedback information of other mobile terminals in the voice call group is received, the feedback information includes a result that the other mobile terminals attempt to collect sound signals corresponding to the preset sound segment and attribute information of the collected sound signals, and a relative distance between the mobile terminal and each other mobile terminal in the voice call group is determined according to the feedback information. The attribute information of the sound signal may be information such as sound intensity, and since the intensity of the sound played by the mobile terminal is known, the sound is attenuated along with the propagation of the sound, and the longer the propagation distance is, the higher the attenuation degree is, and the relative distance between the current mobile terminal and each other mobile terminal in the voice call group may be determined according to the intensity information of the sound signal in the feedback information. Optionally, after the first positioning information of the mobile terminal and the second positioning information of each other mobile terminal in the voice call group are obtained, the map data stored in advance is called, the first positioning information and each piece of second positioning information are respectively searched in the map data, and the relative distance between the first positioning information and each piece of second positioning information, that is, the relative distance between the mobile terminal and each other mobile terminal in the voice call group, is determined in sequence.
It should be noted that, in the embodiment of the present application, there may be many ways to determine the relative distance between the mobile terminal and each other mobile terminal in the voice call group, and the method is not limited to this.
Further, determining whether a target mobile terminal exists in the voice call group, where a distance between the target mobile terminal and the mobile terminal is smaller than a first preset distance value, according to the relative distance, includes: judging whether a target distance smaller than a first preset distance value exists or not for each relative distance; and if so, determining that the target mobile terminal exists in the voice call group, wherein the target distance is the relative distance between the mobile terminal and the target mobile terminal. The advantage of setting up like this is, can judge accurately whether have with the nearer target mobile terminal of present mobile terminal distance. It can be understood that, after the relative distances between the current mobile terminal and each of the other mobile terminals in the voice call group are obtained, each of the relative distances is sequentially compared with the first preset distance value, whether a relative distance smaller than the first preset distance value exists is determined, and the relative distance smaller than the first preset distance value is determined as the target distance. And meanwhile, a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group, wherein the target distance is the relative distance between the mobile terminal and the target mobile terminal.
In some embodiments, the howling prevention processing is performed on the voice call data in the mobile terminal, and includes: determining the target intensity of the howling prevention treatment according to the target distance; the smaller the target distance is, the greater the corresponding target intensity is; and performing corresponding howling prevention processing on the voice call data in the mobile terminal according to the target intensity. The inventor finds that the closer the distance between two mobile terminals is, the more serious the howling usually occurs, so in the embodiment of the application, the corresponding howling prevention processing strength (i.e. target strength) can be selected according to the actual distance (i.e. target distance) between the current mobile terminal and the target mobile terminal, more targeted howling prevention processing can be achieved, and the howling prevention effect can be improved.
In some embodiments, the determining the target strength of the howling prevention processing according to the target distance includes: and determining to perform howling prevention processing on the uplink voice call data and/or the downlink voice call data in the mobile terminal according to the target distance. When the target distance is larger than a second preset distance value, determining to perform howling prevention processing on uplink voice call data in the mobile terminal; when the target distance is greater than a third preset distance value and less than or equal to the second preset distance value, determining to perform howling prevention processing on downlink voice call data in the mobile terminal; and when the target distance is smaller than or equal to the third preset distance value, determining to perform anti-howling processing on the uplink voice call data and the downlink voice call data in the mobile terminal. In the embodiment of the present application, when the target distance is smaller than the first preset distance value but larger than the second preset distance value, it is described that the howling degree is not serious if the howling occurs, and the howling prevention processing may be performed only on the uplink voice call data. When the target distance is less than or equal to the second preset distance value but greater than the third distance value, it is described that the howling degree is relatively serious if howling occurs, and howling prevention processing can be performed on downlink voice call data to obtain a better howling prevention effect. When the target distance is small and is smaller than or equal to a third preset distance value, it is indicated that the howling degree is very serious if the howling occurs, and the howling prevention processing can be simultaneously performed on the downlink voice call data and the downlink voice call data, so as to obtain the optimal howling prevention effect. The numerical values of the first preset distance, the second preset distance and the third preset distance are sequentially reduced, but specific numerical values are not limited, illustratively, the first preset distance is 10 meters, the second preset distance is 5 meters, and the third preset distance is 2 meters.
Illustratively, when the howling prevention processing is performed on the downlink voice call data, howling detection may be performed on the downlink voice call data, and when it is determined that a howling sound exists, attenuation processing may be performed on a howling point, so as to achieve a howling prevention effect.
In some embodiments, whether a howling sound exists in the downlink voice call data may be determined as follows:
firstly, the downlink voice call data is processed in a blocking mode; for each data block, determining suspected howling points existing in the current data block by adopting a preset analysis mode; when a plurality of suspected howling point groups presenting periodic characteristics exist and energy values corresponding to the suspected howling points are in an ascending trend according to the sequence of the data blocks, determining that howling sound exists in the downlink voice call data; the suspected howling point group is a suspected howling point of which the frequency difference in the continuous adjacent data blocks is within a preset range, and the number of the continuous adjacent data blocks reaches a preset continuous threshold value.
Secondly, the downlink voice call data is processed in a blocking mode to obtain M data blocks; whether suspected squeaking points exist in the current data blocks is sequentially analyzed in a preset analysis mode, and the data blocks with the suspected squeaking points appearing for the first time are determined as initial data blocks; sequentially taking N data blocks as data segments to be analyzed from the initial data block, analyzing suspected howling points contained in the current data segment by adopting the preset analysis mode, and determining that howling sound exists in the downlink voice call data when the frequency difference between the suspected howling points contained in the N data segments is within a preset range; wherein N is 2, 3, …, N; n is less than or equal to M and greater than or equal to 2; the starting point of each data segment is the same as the starting point of the starting data block, and the starting data block is the first data segment.
Of course, in the embodiment of the present application, other manners may also be used to determine whether there is a howling sound in the downlink voice call data, and the present application is not limited thereto. The following will explain the above two modes in detail by way of example.
As for the first mode, the blocking process for the downlink voice call data may be a blocking process according to a preset unit length, and the preset unit length may be, for example, 40 milliseconds. Assuming that the preset time length is 1.2 seconds and the preset unit length is 40 milliseconds, the data block can be divided into 30 data blocks.
The preset analysis method is not particularly limited in the embodiment of the present application. For example, the preset analysis manner may include: acquiring a frequency point to be judged, of which the energy value is higher than a preset energy threshold value, in a high-frequency region on a frequency domain, calculating energy difference values of a preset number of frequency points around the frequency point to be judged, and determining the frequency point to be judged as a suspected howling point when the energy difference values are larger than the preset difference threshold value; the high-frequency region is a frequency range with frequency higher than a preset frequency threshold.
Specifically, for the current data block, it may be first transformed from the time domain to the frequency domain, which facilitates the spectral analysis. Transform mode the embodiment of the present application is not limited, and a fourier transform mode, such as Fast Fourier Transform (FFT), may be adopted. Taking 40ms as an example, the size of 40ms audio data (16bit,16K sampling rate) is 40 × 16 × 16/2-1280 bytes, which is suitable for performing spectrum analysis by using 1024 as FFT transformation, and the frequency range in the frequency analysis after FFT processing is 0-16K/2, the step size is (16K/2)/1024, and the step size is about 8 Hz.
In the embodiment of the present application, a frequency threshold may be preset as a boundary value to divide the high-frequency region and the other regions. The preset frequency threshold can be set according to actual conditions, for example, the preset frequency threshold can be set according to the frequency of human voice and the frequency characteristics of easy occurrence of howling, and can be 1KHz, 1.5KHz, 2KHz or the like. For example, the preset frequency threshold is 2KHz, that is, the part greater than 2KHz is a high frequency region. Generally, the frequency of the howling sound appears in a high-frequency area, and the sound is relatively large (i.e. the energy value is relatively high), and the suspected howling point in one data block can be quickly determined according to the distribution characteristics of the energy value.
For example, an energy value corresponding to each frequency point (frequency point for short) in a data block is obtained, then a frequency point to be determined, of which the energy value is higher than a preset energy threshold value, is found from a high-frequency region, and energy difference values of a preset number of frequency points around the frequency point to be determined are calculated. The preset energy threshold and the preset number can be set according to actual requirements, for example, the preset energy threshold can be-10 dB, and the preset number can be 8 (4 in front of and 4 behind the frequency point to be determined). Taking the step size of about 8Hz as an example, assuming that the frequency value of the frequency point to be determined is 3362Hz, the frequency values of the frequency points around the frequency point to be determined are about 3330Hz, 3338Hz, 3346Hz, 3354Hz, 3370Hz, 3378Hz, 3386Hz, and 3394 Hz. The energy difference value is used for measuring the degree of difference between the frequency point to be determined and the frequency points with the preset number around, specifically, the difference value may be a maximum energy value and a minimum energy value, and may also be an energy variance value or an energy mean variance value, and the like, and the application is not limited. The preset difference threshold corresponds to the energy difference value, for example, when the energy difference value is an energy variance value, the preset difference threshold is a preset variance threshold. When the energy difference value is larger than the preset difference threshold value, it is indicated that the frequency point to be determined is more prominent and is very likely to be a howling point, and therefore, the frequency point to be determined is determined to be a suspected howling point. The suspected howling point can be quickly and accurately identified by the aid of the method, and a foundation is laid for improving howling detection efficiency.
For example, a plurality of frequency points to be determined may exist in one data block, and the suspected howling point may be determined from the frequency point to be determined with the highest corresponding energy.
In addition, the preset analysis mode may further include: the method comprises the steps of obtaining a first frequency point with the largest energy value in a high-frequency area and a second frequency point with the largest energy value in a low-frequency area on a frequency domain, and when the first frequency point meets a preset suspected howling condition, determining that the first frequency point is a suspected howling point in a current data block, wherein the preset suspected howling condition comprises that the energy value of the first frequency point is larger than a preset energy threshold value, and the energy difference value between the first frequency point and the second frequency point is larger than a preset difference threshold value.
Specifically, for the current data block, it may be first transformed from the time domain to the frequency domain, which facilitates the spectral analysis. It is also possible to preset the division frequency as a boundary value to divide the high frequency region and the low frequency region. The preset division frequency can be set according to actual conditions, for example, the preset division frequency can be set according to the frequency of human voice and the frequency characteristics of easy occurrence of howling, and can be 1KHz, 1.5KHz, 2KHz and the like. For example, the preset division frequency is 2KHz, that is, the part greater than 2KHz is a high frequency region, and the part less than or equal to 2KHz is a low frequency region.
Illustratively, an energy value corresponding to each frequency point in the data block is obtained, then a first frequency point with the largest energy value is found from the high-frequency region, a second frequency point with the largest energy value is found from the low-frequency region, and if the energy value of the first frequency point is greater than a preset energy threshold (e.g., -30dB), and the difference between the energy value of the first frequency point and the energy value of the second frequency point is greater than a preset difference threshold (e.g., 60), the first frequency point can be considered as a suspected howling point in the current data block. The suspected howling point can be quickly and accurately identified by the aid of the method, and a foundation is laid for improving howling detection efficiency.
Illustratively, for each data block, the above preset analysis manner is respectively adopted to determine whether a suspected howling point exists, if so, the suspected howling point is recorded, and whether the current downlink voice call data contains howling sound is further determined.
It can be understood that if a suspected howling sound exists in a certain data block, the whole downlink voice call audio cannot be considered to contain the howling sound, and it may also be that some special sounds are mistakenly recognized as the howling sound, for example, harsh sounds generated when an object rubs are generally high in frequency and large in sound, and are likely to be recognized as the suspected howling sound, but such sounds are generally short and short in duration, and do not belong to the howling sound, and therefore, further determination needs to be added.
In the embodiment of the application, the distribution characteristics of suspected howling sounds existing in each data block are analyzed. When there are suspected howling points with small frequency difference in a plurality of consecutive adjacent data blocks, the suspected howling points can be set as a group of suspected howling points. Namely, the suspected howling point group is a suspected howling point in which the frequency difference between the consecutive adjacent data blocks is within a preset range, and the number of the consecutive adjacent data blocks reaches a preset consecutive threshold. The preset continuous threshold value can be determined according to actual conditions, for example, 3; the preset range corresponding to the frequency difference can also be determined according to actual conditions, such as 40 Hz. The inventors found that howling generally exhibits a persistent characteristic in a short time and occurs periodically, and further, the sound gradually becomes louder. Therefore, in the embodiment of the present application, whether there is a howling sound in the current downlink voice call data is identified by using a determination condition that a plurality of (which may be understood as 2 or more) groups of suspected howling points exhibit a periodic characteristic and an energy value corresponding to the suspected howling points increases according to the order of the belonging data blocks, and if the above condition is satisfied, it is determined that there is a howling sound, so that the howling sound can be identified quickly and accurately.
For example, it is assumed that the downlink voice call data is divided into 30 data blocks. For example, if suspected howling points with a frequency within an (a-40, a +40) interval are detected in all 15 data blocks 1, 2, 3, 7, 8, 9, 13, 14, 15, 19, 20, 21, 25, 26, and 27, the suspected howling points corresponding to 3 data blocks become one suspected howling point group, 5 suspected howling point groups have a periodic characteristic, and energy values corresponding to the suspected howling points sequentially increase, and thus it is determined that the howling sound is included in the downlink voice call data. For another example, if a suspected howling point with a frequency in the (B-40, B +40) interval is detected in only 3 data blocks of 1 st, 2 nd, and 3 rd, the suspected howling points corresponding to the 3 data blocks become a suspected howling point group, but only one suspected howling point group exists and a periodic feature is not present, and thus it is determined that the howling sound is not included in the downlink voice call data.
For the second manner, the related content in the first manner may be referred to as the block processing manner and the preset analysis manner, and the embodiment of the present application is not described again.
Specifically, whether a suspected howling point exists in the first data block is analyzed in the preset analysis mode, if yes, the suspected howling point appears for the first time, and the first data block is determined as a starting data block; and if the suspected howling point does not exist, taking the next data block of the current data block as a new current data block, and analyzing whether the suspected howling point exists in the new current data block by adopting the preset analysis mode. And repeating the steps until the data block with the suspected howling point is determined as the initial data block, and if no suspected howling point exists in the M data blocks, determining that the current downlink voice call data does not contain the howling sound.
Taking the above blocking manner as an example, M is 30, and N is 2 ≦ 30. When the spectrum analysis is carried out, the length of the data to be analyzed influences the analysis result, and the accuracy may not be too accurate when the data points are few, so that the data with larger length is used for carrying out the analysis again, which is equivalent to a correction process, and whether the howling is carried out or not can be determined more accurately. The specific value of N is not limited in the present application, and assuming that N is 4 and the length of one data block is 40ms, the time range of the start data block may be recorded as 0 to 40ms, since the start data block has been analyzed and is used as the first data segment, the time range of the second data segment may be recorded as 0 to 80ms, and so on, the time range of the third data segment may be recorded as 0 to 120ms, and the time range of the third data segment may be recorded as 0 to 160ms, starting from N is 2.
Illustratively, the preset range may be set according to actual conditions, and may be, for example, 40Hz (as exemplified above, it may be considered to be equivalent to 5 steps). Assuming that the frequencies of suspected howling points analyzed by the 4 data segments are A, B, C and D, respectively, and the difference between A, B, C and D is within 40Hz, it is determined that howling sound exists in the downstream voice call data.
Optionally, if the frequency difference between the suspected howling point contained in the current data segment and the suspected howling point contained in the previous data segment is not within the preset range, the downlink voice call data of the preset time length is obtained from the next data block of the current data segment, and the related operation of performing blocking processing on the downlink voice call data is repeatedly performed. The method has the advantages that when the frequency difference of suspected howling points contained in any two data sections is large, the suspected howling points in the front are possibly not real howling points and need to be detected continuously, and suspected howling point detection on the rear data section is not needed, so that power consumption is saved, and howling sound detection efficiency and accuracy are improved. For example, when the difference between C and a or B exceeds 40Hz, the downlink voice call data of the preset time length in the mobile terminal is obtained again from 120ms, the downlink voice call data is subjected to blocking processing to obtain M data blocks, a new initial data block is determined, and whether howling sound exists in the downlink voice call data is determined by continuously adopting the above manner.
After determining that there is a howling tone in the downlink voice call data, the method further includes: determining the suspected howling point as a howling point; and carrying out howling suppression processing on the downlink voice call data according to the howling point. After determining that there is a howling sound in the downlink voice call data, it is described that the suspected howling point that satisfies the howling sound determination condition and is identified before is actually a howling point, then it is necessary to perform howling suppression processing on the downlink voice according to the howling point, so as to prevent the howling sound from being played out from a speaker or a receiver, which affects the use of the user. Further, after the howling suppression processing is performed, the downlink voice call data subjected to the howling suppression processing is played through a loudspeaker or an earphone.
In some embodiments, the performing howling suppression processing on the downlink voice call data according to the howling point includes: and selecting frequencies corresponding to the howling points with higher energy values in preset quantity as target frequencies, and performing attenuation processing on audio signals corresponding to the target frequencies in the downlink voice call data. The preset number can be freely set, such as 1, 3, or even more, and can be dynamically determined according to the number of howling points. The howling points can be sorted according to the sequence of the illumination energy values from high to low, the howling points arranged in the front in a preset number are selected, and the frequency of the selected howling points is determined as the target frequency. The higher the energy value is, the louder the howling sound is, the higher the influence degree on the user is, so the advantage of the arrangement is that the howling suppression can be more pertinently carried out on the frequency with higher energy value, the howling suppression efficiency is improved, and the timeliness of the voice call is ensured.
In some embodiments, the performing howling suppression processing on the downlink voice call data according to the howling point may also include: and carrying out attenuation processing on audio signals corresponding to the frequencies of all howling points in the downlink voice call data. The advantage of this arrangement is that howling suppression can be performed on all howling points comprehensively, and the howling sound is prevented from being played.
For example, a notch filter may be used to attenuate an audio signal corresponding to a frequency of a howling point (i.e., a target frequency) that needs to be suppressed. The notch filter can quickly attenuate an input signal at a certain frequency point so as to achieve a filtering effect of preventing the frequency signal from passing through. The type of notch filter and the specific parameter values are not limited in this application. Generally, the target frequency is used as the center frequency of the notch filter, and parameters such as processing bandwidth and gain of the notch filter can be set according to actual requirements.
Exemplarily, when the uplink voice call data is subjected to howling prevention processing, the sound data collected by the mobile terminal can be obtained; separating the voice data from the background voice; weakening the separated background sound; and after the background sound after the weakening processing and the separated voice are subjected to sound mixing processing, the processed uplink voice call data is sent to a server corresponding to the preset application program. This has the advantage that howling due to background sounds can be effectively attenuated. For example, when a microphone array (the number of microphones is greater than or equal to 2) exists in the mobile terminal, the position of a sound source can be judged, and sound which is far away from the mobile terminal (for example, greater than 1 meter) is screened out as background sound according to the position of the sound source; or, the voiceprint information of the mobile terminal user can be acquired in advance, the voice of the user speaking is extracted from the voice data according to the voiceprint information to be used as the human voice, and the rest voice is used as the background voice. For example, the attenuating process for the separated background sound may be to reduce the sound of the background sound by adjusting the gain, or to filter the background sound. After the background sound is weakened, the volume is reduced, the condition that the sound is larger and larger is destroyed, and then howling caused by the background sound is effectively weakened.
In addition, the howling prevention processing for the uplink voice call data may be performed according to a howling detection result of the downlink voice call data. If there is a howling sound in the downlink voice call data, when the downlink voice call data is played through a speaker or an earphone of the mobile terminal, the howling sound is played, and a user can hear the howling sound. In the embodiment of the application, the uplink voice call data is subjected to howling prevention processing, and howling sounds are prevented from being transmitted to the network again and received by other mobile terminals, so that the conditions that the howling sounds are larger and larger can be damaged, and the aim of preventing howling is fulfilled. Specifically, a preset notch filter may be used to perform howling prevention processing on the uplink voice call data in the mobile terminal, where a center frequency of the preset notch filter is a frequency corresponding to a howling point in the downlink voice call data.
Optionally, the howling prevention processing for the uplink voice call data may also be: the method comprises the steps of obtaining first uplink data to be uploaded currently and second uplink data uploaded at the last moment in a cache, judging whether the similarity between the first uplink data and the second uplink data is higher than a preset similarity threshold value, and weakening the first uplink data if the similarity is higher than the preset similarity threshold value. The method has the advantages that whether attenuation processing is needed or not can be judged quickly, and howling prevention processing efficiency is improved. The performing the de-emphasis processing on the first uplink data may include: and attenuating or filtering the audio data with the same characteristics as the second uplink data in the first uplink data. The attenuation here may include reducing the sound energy. Further, the first uplink data and the second uplink data may be subjected to analog superposition, whether the superposed data includes a howling feature is determined, and if the superposed data includes the howling feature, the first uplink data is subjected to weakening processing. The howling characteristics may include energy concentration, periodicity, and frequency above a preset frequency threshold, etc. Whether the superimposed data includes the howling feature may also be determined according to the above-mentioned method of performing howling detection on the downlink voice call data, which is not limited in the embodiment of the present application.
In some embodiments, the performing, according to the target strength, a howling prevention process on voice call data in the mobile terminal correspondingly includes: acquiring downlink voice call data with a preset time length in a mobile terminal; determining a howling point in the downlink voice call data; a preset notch filter is adopted to carry out howling suppression processing on voice call data in the mobile terminal; the center frequency of the preset wave trap is the frequency corresponding to the howling point, the processing width and the gain value are determined by the target intensity, and the higher the target intensity is, the wider the corresponding processing width is or the smaller the corresponding gain value is. The voice call data is subjected to howling suppression processing by using a preset notch filter, where the voice call data may include uplink voice call data and/or downlink voice call data, and the embodiment of the application is not limited. The advantage of such setting is that the processing width or gain value of the notch filter can be set in a targeted manner according to different target distances, thereby realizing different degrees of howling suppression processing.
Fig. 2 is a schematic diagram of spectrum analysis of an original howling voice provided by an embodiment of the present application, where a howling segment is cut from an audio containing a howling sound, an energy value corresponding to 3362Hz in the audio is the largest and is-6.64 dB, and if the audio is played, the sound is very loud and needs to be subjected to howling suppression processing. Fig. 3 is a schematic diagram of a notch filter according to an embodiment of the present application. When the howling suppression processing is performed on the downlink voice call data, the center frequency of the notch filter is preset to be a frequency corresponding to the howling point, for example, 3362Hz in fig. 2, and the corresponding processing width can be determined according to the target intensity. The processing width is the range to be processed around the center frequency, and if the processing width corresponding to-6.64 dB is 50Hz, the range to be processed is 3312Hz to 3412Hz, that is, the audio signals in the range are processed. The advantage of determining the processing width according to the target intensity is that the higher the energy value of the howling point is, the more likely a frequency point with large energy appears nearby, and the processing range needs to be expanded to obtain a better suppression effect. As shown in fig. 2, the notch filter has a gain value, which is denoted by g, and gmin in the figure represents the minimum value of the gain value, and the range of values is generally 0 to 1, and the larger the g value, the smaller the attenuation degree. Therefore, in the present application, the gain value may be determined according to the target intensity, and the higher the target intensity is, the smaller the gain value is, so that the higher the degree of energy attenuation in the processing range is, the higher the degree of suppression of howling is. Fig. 4 is a schematic diagram of a spectral analysis of howling voice processed by a notch filter according to an embodiment of the present application, and as shown in fig. 4, energy in a range from 3312Hz to 3412Hz is significantly attenuated after being processed by the notch filter, so that howling is suppressed.
Fig. 5 is a schematic flow chart of another voice call data processing method according to an embodiment of the present application, where a preset application is an internet game application, and the method includes the following steps:
step 501, detecting that the voice call group in the preset game application program is successfully established.
For example, in the case of a team fighting game, such as royal, where each team has 5 players, the two teams of red and blue fight, and 5 players of each team need to communicate with each other to exchange a strategy of fighting the amount of business, many players may choose to open the in-team voice call function, for example, after one player applies for opening the in-team voice call function, the voice call group is successfully established. Thereafter, any one of the 5 players of the same team may hear the voice of the remaining 4 players speaking. Generally, a player sets the mobile terminal to a play-out mode, which facilitates a game.
Step 502, obtaining the relative distance between the mobile terminal and each other mobile terminal in the voice call group.
Step 503, for each relative distance, judging whether a target distance D smaller than a first preset distance value exists, if yes, executing step 504; otherwise, step 509 is performed.
If the mobile terminals of two players are close to each other among 5 players, for example, two good friends play together at home, and the mobile terminals are set to the play-out mode, howling is very easily caused. Therefore, in the embodiment of the present application, it is determined whether the relative distance is smaller than the target distance D having the first preset distance value, that is, it is determined whether other mobile terminals closer to the current mobile terminal exist in the voice call group, and if so, howling prevention processing needs to be performed.
And step 504, determining that the target mobile terminal exists in the voice call group.
Step 505, judging the size relationship between D and Y and Z; when D > Y, go to step 506; when Z is less than or equal to Y, executing step 507; and when D is less than or equal to Z, executing the step 508.
Wherein X, Y and Z decrease in number.
Step 506, starting voice call, and performing howling prevention processing on the uplink voice call data in the mobile terminal.
And step 507, starting voice communication, and performing howling prevention processing on downlink voice communication data in the mobile terminal.
And step 508, starting voice communication, and performing howling prevention processing on the uplink voice communication data and the downlink voice communication data in the mobile terminal.
Step 509, determining that the target mobile terminal exists in the voice call group.
And step 510, starting voice communication without performing howling prevention processing.
According to the voice call group establishing method and device, after the voice call group in the game application is successfully established, the voice call cannot be immediately started, whether a target distance smaller than a first preset distance value exists or not is judged through the relative distance between the mobile terminal and other mobile terminals in the voice call group, namely whether other mobile terminals which are close to the current mobile terminal exist in the voice call group or not is determined, if the target distance value exists, the uplink and/or downlink voice call data are selected to be subjected to howling prevention processing according to the target distance value, after the voice call is started, the corresponding voice call data are subjected to howling prevention processing, interference of the howling sound on the game process of a user is weakened, pain spots of game players are reduced, and the functions of the mobile terminals are more complete.
Fig. 6 is a schematic flowchart of another voice call data processing method provided in the embodiment of the present application, and still taking an internet game application as an example, the method includes:
step 601, detecting that the voice call group in the preset game application program is successfully established.
Step 602, obtaining the relative distance between the mobile terminal and each other mobile terminal in the voice call group.
603, judging whether a target distance F smaller than a first preset distance value exists for each relative distance, and if so, executing a step 604; otherwise, step 606 is performed.
And step 604, determining the processing width and the gain value of the preset wave trap according to the F.
Wherein, the smaller the F value, the larger the corresponding processing width, and the smaller the gain value.
Step 605, starting voice call, and performing howling suppression processing on voice call data in the mobile terminal by using a preset notch filter.
Illustratively, howling detection is performed on downlink voice call data, a howling point is determined, and the center frequency of the trap is preset as a frequency corresponding to the howling point.
And step 606, starting voice communication without performing howling prevention processing.
According to the embodiment of the application, after a voice call group in game application is successfully established, the voice call cannot be immediately started, whether a target distance smaller than a first preset distance value exists or not is judged through the relative distance between a mobile terminal and other mobile terminals in the voice call group, namely whether other mobile terminals which are closer to the current mobile terminal exist in the voice call group or not is determined, if the target distance value exists, the parameters of a preset notch filter to be used for anti-howling processing are set according to the target distance value, after the voice call is started, the preset notch filter with the set parameters is adopted to perform anti-howling processing on corresponding voice call data, interference of howling sounds on a game process of a user is weakened, pain spots of game players are reduced, and the functions of the mobile terminals are more complete.
Fig. 7 is a block diagram of a voice call data processing apparatus according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may perform howling prevention processing on voice call data by executing a voice call data processing method. As shown in fig. 7, the apparatus includes:
the voice call group detection module 701 is used for detecting that the establishment of a voice call group in a preset application program of the mobile terminal is successful;
a target terminal determining module 702, configured to determine whether a target mobile terminal whose distance from the mobile terminal is smaller than a first preset distance value exists in the voice call group;
and a howling prevention processing module 703, configured to perform howling prevention processing on the voice call data in the mobile terminal if the voice call data exists.
The voice call data processing device provided in the embodiment of the application can timely perform howling prevention processing on the voice call data of the current mobile terminal when detecting that other mobile terminals which are close to the current mobile terminal exist in the voice call group after the voice call group of the preset application program in the mobile terminal is successfully established, so that inconvenience brought to users by howling sound is reduced.
Optionally, the apparatus further comprises:
a relative distance obtaining module, configured to obtain a relative distance between the mobile terminal and each of other mobile terminals in the voice call group before determining whether a target mobile terminal whose distance from the mobile terminal is smaller than a first preset distance value exists in the voice call group;
the target terminal judging module comprises:
and the target terminal judging unit is used for judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group or not according to the relative distance.
Optionally, the target terminal determining unit is configured to:
judging whether a target distance smaller than a first preset distance value exists or not for each relative distance;
and if so, determining that the target mobile terminal exists in the voice call group, wherein the target distance is the relative distance between the mobile terminal and the target mobile terminal.
Optionally, the howling prevention processing module is configured to:
determining the target intensity of the howling prevention treatment according to the target distance; the smaller the target distance is, the greater the corresponding target intensity is;
and performing corresponding howling prevention processing on the voice call data in the mobile terminal according to the target intensity.
Optionally, the determining the target strength of the howling prevention processing according to the target distance includes:
determining to perform howling prevention processing on uplink voice call data and/or downlink voice call data in the mobile terminal according to the target distance;
when the target distance is larger than a second preset distance value, determining to perform howling prevention processing on uplink voice call data in the mobile terminal;
when the target distance is greater than a third preset distance value and less than or equal to the second preset distance value, determining to perform howling prevention processing on downlink voice call data in the mobile terminal;
and when the target distance is smaller than or equal to the third preset distance value, determining to perform anti-howling processing on the uplink voice call data and the downlink voice call data in the mobile terminal.
Optionally, the performing, according to the target strength, a howling prevention process on the voice call data in the mobile terminal correspondingly includes:
acquiring downlink voice call data with a preset time length in a mobile terminal;
determining a howling point in the downlink voice call data;
a preset notch filter is adopted to carry out howling suppression processing on voice call data in the mobile terminal; the center frequency of the preset wave trap is the frequency corresponding to the howling point, the processing width and the gain value are determined by the target intensity, and the higher the target intensity is, the wider the corresponding processing width is or the smaller the corresponding gain value is.
Optionally, the preset application program is an online game application program.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a voice call data processing method, the method including:
detecting that a voice call group in a preset application program of the mobile terminal is successfully established;
judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group;
and if so, performing howling prevention processing on the voice call data in the mobile terminal.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the voice call data processing operation described above, and may also perform related operations in the voice call data processing method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and the voice call data processing device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 800 may include: the device comprises a memory 801, a processor 802 and a computer program stored on the memory 801 and capable of being run by the processor 802, wherein the processor 802 executes the computer program to realize the voice call data processing method according to the embodiment of the application.
The mobile terminal provided by the embodiment of the application can perform howling prevention processing on voice call data of the current mobile terminal in time when other mobile terminals which are close to the current mobile terminal exist in the voice call group after the voice call group of the preset application program in the mobile terminal is successfully established, so that inconvenience brought to users by howling sound is reduced.
Fig. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application, where the mobile terminal may include: a casing (not shown), a memory 901, a Central Processing Unit (CPU) 902 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU902 and the memory 901 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 901 is used for storing executable program codes; the CPU902 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901, so as to implement the following steps:
detecting that a voice call group in a preset application program of the mobile terminal is successfully established;
judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group;
and if so, performing howling prevention processing on the voice call data in the mobile terminal.
The mobile terminal further includes: peripheral interface 903, RF (Radio Frequency) circuitry 905, audio circuitry 906, speakers 911, power management chip 908, input/output (I/O) subsystems 909, other input/control devices 910, touch screen 912, other input/control devices 910, and external port 904, which communicate through one or more communication buses or signal lines 907.
It should be understood that the illustrated mobile terminal 900 is merely one example of a mobile terminal and that the mobile terminal 900 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the mobile terminal for processing voice call data provided in this embodiment in detail, and the mobile terminal is taken as a mobile phone as an example.
Memory 901, the memory 901 being accessible by the CPU902, the peripheral interface 903, etc., the memory 901 may comprise high speed random access memory, and may also comprise non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 903, the peripheral interface 903 may connect input and output peripherals of the device to the CPU902 and the memory 901.
An I/O subsystem 909, which I/O subsystem 909 may connect input and output peripherals on the device, such as a touch screen 912 and other input/control devices 910, to the peripheral interface 903. The I/O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910. Where one or more input controllers 9092 receive electrical signals from or send electrical signals to other input/control devices 910, the other input/control devices 910 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 9092 may be connected with any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 912, which is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 9091 in the I/O subsystem 909 receives electrical signals from the touch screen 912 or transmits electrical signals to the touch screen 912. The touch screen 912 detects a contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 912, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 912 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 905 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 905 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 905 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. The RF circuitry 905 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electric signal, and transmit the electric signal to the speaker 911.
The speaker 911 is used to convert the voice signal received by the mobile phone from the wireless network through the RF circuit 905 into sound and play the sound to the user.
And the power management chip 908 is used for supplying power and managing power to the hardware connected with the CPU902, the I/O subsystem and the peripheral interfaces.
The voice call data processing device, the storage medium and the mobile terminal provided in the above embodiments can execute the voice call data processing method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For details of the voice call data processing method provided in any of the embodiments of the present application, reference may be made to the technical details not described in detail in the above embodiments.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (6)

1. A voice call data processing method is characterized by comprising the following steps:
detecting that a voice call group in a preset application program of the mobile terminal is successfully established;
acquiring the relative distance between the mobile terminal and each other mobile terminal in the voice call group;
judging whether a target distance smaller than a first preset distance value exists or not for each relative distance;
if yes, determining that a target mobile terminal exists in the voice call group, and determining the target strength of the howling prevention processing according to the target distance; the target distance is the relative distance between the mobile terminal and the target mobile terminal; the smaller the target distance is, the greater the corresponding target intensity is;
acquiring downlink voice call data with a preset time length in a mobile terminal;
carrying out block processing on the downlink voice call data; for each data block, determining suspected howling points existing in the current data block by adopting a preset analysis mode; when a plurality of suspected howling point groups presenting periodic characteristics exist and the energy values corresponding to the suspected howling points are in an ascending trend according to the sequence of the data blocks, determining that the howling points exist in the downlink voice call data; the suspected howling point group is suspected howling points with frequency difference in continuous adjacent data blocks within a preset range, and the number of the continuous adjacent data blocks reaches a preset continuous threshold;
a preset notch filter is adopted to carry out howling suppression processing on voice call data in the mobile terminal; the center frequency of the preset wave trap is the frequency corresponding to the howling point, the processing width and the gain value are determined by the target intensity, and the higher the target intensity is, the wider the corresponding processing width is or the smaller the corresponding gain value is.
2. The method of claim 1, wherein determining the target strength of the anti-howling process according to the target distance comprises:
determining to perform howling prevention processing on uplink voice call data and/or downlink voice call data in the mobile terminal according to the target distance;
when the target distance is larger than a second preset distance value, determining to perform howling prevention processing on uplink voice call data in the mobile terminal;
when the target distance is greater than a third preset distance value and less than or equal to the second preset distance value, determining to perform howling prevention processing on downlink voice call data in the mobile terminal;
and when the target distance is smaller than or equal to the third preset distance value, determining to perform anti-howling processing on the uplink voice call data and the downlink voice call data in the mobile terminal.
3. The method of claim 1, wherein the predetermined application is an online gaming application.
4. A voice call data processing apparatus, comprising:
the voice call group detection module is used for detecting that the establishment of a voice call group in a preset application program of the mobile terminal is successful;
a relative distance obtaining module, configured to obtain a relative distance between the mobile terminal and each of other mobile terminals in the voice call group;
the target terminal judging module is used for judging whether a target mobile terminal with the distance between the target mobile terminal and the mobile terminal being smaller than a first preset distance value exists in the voice call group;
the target terminal judging module specifically includes:
the target terminal judging unit is used for judging whether a target distance smaller than a first preset distance value exists or not for each relative distance; if the target mobile terminal exists in the voice call group, determining that the target mobile terminal exists in the voice call group, wherein the target distance is a relative distance between the mobile terminal and the target mobile terminal;
the anti-howling processing module is used for determining the target intensity of anti-howling processing according to the target distance; the smaller the target distance is, the greater the corresponding target intensity is; acquiring downlink voice call data with a preset time length in a mobile terminal; carrying out block processing on the downlink voice call data; for each data block, determining suspected howling points existing in the current data block by adopting a preset analysis mode; when a plurality of suspected howling point groups presenting periodic characteristics exist and the energy values corresponding to the suspected howling points are in an ascending trend according to the sequence of the data blocks, determining that the howling points exist in the downlink voice call data; the suspected howling point group is suspected howling points with frequency difference in continuous adjacent data blocks within a preset range, and the number of the continuous adjacent data blocks reaches a preset continuous threshold; a preset notch filter is adopted to carry out howling suppression processing on voice call data in the mobile terminal; the center frequency of the preset wave trap is the frequency corresponding to the howling point, the processing width and the gain value are determined by the target intensity, and the higher the target intensity is, the wider the corresponding processing width is or the smaller the corresponding gain value is.
5. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the voice call data processing method according to any one of claims 1 to 3.
6. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the voice call data processing method according to any one of claims 1 to 3 when executing the computer program.
CN201810200174.0A 2018-03-12 2018-03-12 Voice call data processing method and device, storage medium and mobile terminal Expired - Fee Related CN108449492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810200174.0A CN108449492B (en) 2018-03-12 2018-03-12 Voice call data processing method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810200174.0A CN108449492B (en) 2018-03-12 2018-03-12 Voice call data processing method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108449492A CN108449492A (en) 2018-08-24
CN108449492B true CN108449492B (en) 2020-05-12

Family

ID=63194006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810200174.0A Expired - Fee Related CN108449492B (en) 2018-03-12 2018-03-12 Voice call data processing method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108449492B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658945B (en) * 2018-12-19 2020-12-11 Oppo广东移动通信有限公司 Howling prevention method, howling prevention device, electronic equipment and storage medium
CN109951593A (en) * 2019-03-28 2019-06-28 维沃移动通信有限公司 A kind of processing method that voice is uttered long and high-pitched sounds and mobile terminal
CN113596662B (en) * 2021-07-30 2024-04-02 北京小米移动软件有限公司 Method for suppressing howling, device for suppressing howling, earphone, and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453762A (en) * 2016-11-02 2017-02-22 上海数果科技有限公司 A method and system for processing voice whistlers in an audio system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878533B (en) * 2015-12-10 2021-03-19 北京奇虎科技有限公司 Communication method and device of mobile terminal
CN106100676A (en) * 2016-06-07 2016-11-09 海能达通信股份有限公司 Control method, user terminal and the interphone terminal of audio frequency output
CN106373587B (en) * 2016-08-31 2019-11-12 北京容联易通信息技术有限公司 Automatic acoustic feedback detection and removing method in a kind of real-time communication system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453762A (en) * 2016-11-02 2017-02-22 上海数果科技有限公司 A method and system for processing voice whistlers in an audio system

Also Published As

Publication number Publication date
CN108449492A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108449493B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108172237B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449507B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449503B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449496B (en) Voice call data detection method and device, storage medium and mobile terminal
CN108449506B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449502B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108418968B (en) Voice call data processing method and device, storage medium and mobile terminal
CN104954555B (en) A kind of volume adjusting method and system
CN108449499B (en) Voice call data processing method and device, storage medium and mobile terminal
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
CN108449497B (en) Voice call data processing method and device, storage medium and mobile terminal
WO2019174492A1 (en) Voice call data detection method, device, storage medium and mobile terminal
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
CN108449492B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108418982B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449495A (en) Voice communication data processing method, device, storage medium and mobile terminal
CN108429858B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449505B (en) voice call data detection method and device, storage medium and mobile terminal
CN108449504B (en) Voice communication data detection method, device, storage medium and mobile terminal
CN108449498B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449501B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449500B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449508A (en) Voice communication processing method, device, storage medium and mobile terminal
CN110754097B (en) Call control method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200512

CF01 Termination of patent right due to non-payment of annual fee