CN112153534A - Call quality adjusting method and device, computer equipment and storage medium - Google Patents

Call quality adjusting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112153534A
CN112153534A CN202010951685.3A CN202010951685A CN112153534A CN 112153534 A CN112153534 A CN 112153534A CN 202010951685 A CN202010951685 A CN 202010951685A CN 112153534 A CN112153534 A CN 112153534A
Authority
CN
China
Prior art keywords
earphone
audio signal
current
type
compensation coefficient
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.)
Granted
Application number
CN202010951685.3A
Other languages
Chinese (zh)
Other versions
CN112153534B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010951685.3A priority Critical patent/CN112153534B/en
Publication of CN112153534A publication Critical patent/CN112153534A/en
Application granted granted Critical
Publication of CN112153534B publication Critical patent/CN112153534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a call quality adjusting method, a call quality adjusting device, a computer device and a storage medium. The method comprises the following steps: if the audio signal acquired by the current earphone is abnormal, determining the type of the current earphone; determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient; and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to the terminal. By adopting the method, the abnormal audio signals can be correspondingly compensated, so that the audio signals sent to the terminal by the adjusted audio signals are compensated audio signals, and the quality of the audio signals sent to the terminal is ensured.

Description

Call quality adjusting method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of wearable device technologies, and in particular, to a method and an apparatus for adjusting call quality, a computer device, and a storage medium.
Background
A True Wireless Stereo (TWS) headset is a device in which two left and right earplugs are connected without cables and can independently work by Wireless separation of left and right sound channels, and the TWS headset is widely used due to convenience.
At present, when a TWS earphone is used, the earphone which is taken out of a charging box firstly is used as a main earphone, the other earphone is used as a slave earphone, a mic of the main earphone is used for communication during communication, the main earphone and the slave earphone collect communication mic signals, and the main earphone transmits the collected mic signals to a terminal.
However, the traditional method has the problem that the quality of the acquired call mic signals cannot be guaranteed.
Disclosure of Invention
Therefore, it is necessary to provide a call quality adjusting method, a device, a computer device, and a storage medium capable of ensuring the quality of the acquired call mic signal in order to solve the above technical problems.
A call quality adjustment method, the method comprising:
if the audio signal collected by the current earphone is abnormal, determining the type of the current earphone;
determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient;
and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to a terminal.
In one embodiment, the target compensation coefficient is a compensation coefficient determined according to the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
In one embodiment, the method further comprises:
acquiring the quality of an audio signal collected by a left earphone and the quality of an audio signal collected by a right earphone;
determining a compensation coefficient of the left earphone and a compensation coefficient of the right earphone according to the magnitude relation between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone;
and establishing a corresponding relation between the type of the earphone and the compensation coefficient according to the compensation coefficient of the left earphone and the compensation coefficient of the right earphone.
In one embodiment, the determining the compensation coefficient of the left earphone and the compensation coefficient of the right earphone according to a magnitude relation between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone includes:
if the quality of the audio signal collected by the left earphone is smaller than that of the audio signal collected by the right earphone, determining the ratio of the quality of the audio signal collected by the right earphone to that of the audio signal collected by the left earphone as a compensation coefficient of the left earphone;
and if the quality of the audio signal collected by the right earphone is smaller than that of the audio signal collected by the left earphone, determining the ratio of the quality of the audio signal collected by the left earphone to that of the audio signal collected by the right earphone as the compensation coefficient of the right earphone.
In one embodiment, the determining the type of the current headset includes:
judging the operation mode of the current earphone according to the operation state of the current earphone; the operation mode is a double-earphone operation mode or a single-earphone operation mode;
and determining the type of the current earphone according to the operation mode of the current earphone and the attribute of the current earphone.
In one embodiment, the determining the type of the current headset according to the operation mode of the current headset and the attribute of the current headset includes:
if the operation mode is a double-earphone operation mode, determining whether the current earphone is a main earphone;
if the current earphone is a main earphone, determining the type of the current earphone according to the attribute of the current earphone; the type of the current earphone is a left ear type or a right ear type.
In one embodiment, the determining the type of the current headset according to the operation mode of the current headset and the attribute of the current headset includes:
if the operation mode is a single-earphone operation mode, determining the type of the current earphone according to the attribute of the current earphone; the type of the current earphone is a left ear type or a right ear type.
In one embodiment, the determining a target compensation coefficient corresponding to the current type of the headset according to a corresponding relationship between the compensation coefficients of the types of the headsets includes:
if the type of the current earphone is the left ear type, determining the compensation coefficient of the left earphone as a target compensation coefficient corresponding to the type of the current earphone;
and if the type of the current earphone is the right ear type, determining the compensation coefficient of the right earphone as a target compensation coefficient corresponding to the type of the current earphone.
In one embodiment, the adjusting the audio signal by using the target compensation coefficient includes:
and determining the product value of the target compensation coefficient and the signal intensity of the audio signal as the adjusted audio signal.
A call quality adjustment apparatus, the apparatus comprising:
the first determining module is used for determining the type of the current earphone if the audio signal acquired by the current earphone is abnormal;
the second determining module is used for determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the compensation coefficients of the types of the earphones;
and the adjusting module is used for adjusting the audio signal by adopting the target compensation coefficient and sending the adjusted audio signal to the terminal.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
if the audio signal collected by the current earphone is abnormal, determining the type of the current earphone;
determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient;
and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to a terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
if the audio signal collected by the current earphone is abnormal, determining the type of the current earphone;
determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient;
and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to a terminal.
According to the call quality adjusting method, the call quality adjusting device, the computer equipment and the storage medium, if the audio signal acquired by the current earphone is abnormal, the type of the current earphone is determined, so that the target compensation coefficient corresponding to the type of the current earphone can be determined according to the corresponding relation between the type of the earphone and the compensation coefficient, the audio signal acquired by the current earphone can be adjusted by adopting the determined target compensation coefficient, the abnormal audio signal is correspondingly compensated, the audio signal transmitted to the terminal by the adjusted audio signal is the compensated audio signal, and the quality of the audio signal transmitted to the terminal is ensured.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of a call quality adjustment method;
FIG. 1a is a schematic diagram of a true wireless stereo headset in one embodiment;
FIG. 1b is a schematic diagram of a true wireless stereo headset in one embodiment;
FIG. 2 is a flow chart illustrating a method for adjusting call quality in one embodiment;
FIG. 3 is a flowchart illustrating a method for adjusting call quality in another embodiment;
FIG. 3a is a schematic diagram of an embodiment of an audio signal currently captured by a headset;
FIG. 3b is a schematic diagram of an embodiment of an audio signal currently captured by the headset;
FIG. 4 is a flowchart illustrating a method for adjusting call quality in another embodiment;
FIG. 5 is a flowchart illustrating a method for adjusting call quality in another embodiment;
fig. 6 is a block diagram showing the structure of a call quality adjusting apparatus according to an embodiment;
fig. 7 is a block diagram showing the structure of a call quality adjusting apparatus according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The call quality adjusting method provided by the present application can be applied to the application environment shown in fig. 1, where the earphone 110 is configured to collect a mic signal in a call, transmit the collected mic signal to the terminal 120, and the terminal 120 returns a signal received from another device to the earphone 110. In a TWS headset with two metal PINs at the bottom, called POPO PIN, for charging and communication use of the headset, two PINs or three PINs are common, some PINs at the bottom of the TWS headset stem as shown in fig. 1a, and some PINs below the TWS headset ear plug as shown in fig. 1 b. The charging box of the TWS headset is used for accommodating the headset, and the battery inside has a function of charging the headset.
At present, when a TWS earphone is used, the earphone which is taken out of a charging box firstly is used as a main earphone, the other earphone is used as a slave earphone, a mic of the main earphone is used for communication during communication, the main earphone and the slave earphone collect communication mic signals, and the main earphone transmits the collected mic signals to a terminal. In some scenes, switching between a master earphone and a slave earphone can be carried out according to the strength of the collected conversation mic signals so as to avoid the blockage during the Bluetooth conversation, and sometimes, in order to carry out noise reduction processing on the collected mic signals, the FB mic is synchronously used for collecting the signals, the collected signals are subjected to algorithm processing through a Bluetooth chip in the earphone, background noise is filtered, and then the signals from which the background noise is filtered are transmitted to a terminal. Because the call signal is collected by the mic of the main earphone, if the mic of the main earphone is blocked or the performance is poor, the call will be affected, and the call quality is poor. Therefore, it is necessary to provide a call quality adjusting method, device, computer device and storage medium capable of ensuring the quality of the acquired call mic signal.
In one embodiment, as shown in fig. 2, a call quality adjusting method is provided, which is described by taking the method as an example applied to the TWS headset in fig. 1, and includes the following steps:
s201, if the audio signal collected by the current earphone is abnormal, determining the type of the current earphone.
The abnormal audio signal means that the intensity of the audio signal received by the current earphone is poor. In this embodiment, if the TWS headset detects that the currently acquired audio signal is abnormal, the TWS headset determines the type of the current headset. Optionally, the TWS headset may determine whether the audio signal collected by the current headset is abnormal according to the signal strength of the collected audio signal and a preset signal strength threshold, determine that the audio signal collected by the current headset is abnormal if the signal strength of the collected audio signal is smaller than the preset signal strength threshold, and determine that the audio signal collected by the current headset is a normal audio signal if the signal strength of the collected audio signal is greater than or equal to the preset signal strength threshold. Optionally, the TWS headset may determine the type of the current headset according to the identifier of the audio signal collected by the current headset. Optionally, the type of the current earphone may be a master earphone, a slave earphone, a left-ear earphone, or a right-ear earphone.
S202, determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient.
In this embodiment, the TWS headset determines the target compensation coefficient corresponding to the current headset type according to the corresponding relationship between the headset type and the compensation coefficient. It can be understood that different headphone types correspond to different compensation coefficients, and the TWS headphone may determine a target compensation coefficient corresponding to the current headphone according to the determined type of the current headphone.
The target compensation coefficient may be a compensation value preset empirically, or may be a compensation value calculated in real time according to the signal quality of the audio signal collected by the headphones, for example, a compensation value determined according to the difference between the signal strengths of the audio signals of the left and right headphones, or a compensation value determined according to the ratio between the signal strengths of the audio signals of the left and right headphones, or a compensation value determined according to the signal strength of the audio signal collected by the headphones and a preset signal strength, which is not limited in this embodiment.
And S203, adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to the terminal.
In this embodiment, the TWS headset adjusts the audio signal acquired by the current headset by using the target compensation coefficient corresponding to the determined type of the current headset, and sends the adjusted audio signal to the terminal. Optionally, the TWS headphone may determine a product value of the determined target compensation coefficient and the intensity of the audio signal collected by the current headphone as the adjusted audio signal, or may determine a sum of the determined target compensation coefficient and the signal intensity of the audio signal collected by the current headphone as the adjusted audio signal.
In the call quality adjusting method, if the audio signal acquired by the current earphone is abnormal, the TWS earphone determines the type of the current earphone, so that the target compensation coefficient corresponding to the type of the current earphone can be determined according to the corresponding relation between the type of the earphone and the compensation coefficient, and the audio signal acquired by the current earphone can be adjusted by adopting the determined target compensation coefficient, so that the audio signal transmitted to the terminal by the adjusted audio signal is the compensated audio signal, and the quality of the audio signal transmitted to the terminal is ensured.
In the above scenario of determining the target compensation coefficient corresponding to the type of the current headphone according to the corresponding relationship between the type of the headphone and the compensation coefficient, in an embodiment, the target compensation coefficient is a compensation coefficient determined according to the quality of the audio signal acquired by the left headphone and the quality of the audio signal acquired by the headphone.
In this embodiment, the target compensation coefficient is a compensation coefficient determined according to the quality of the audio signal collected by the left headphone and the quality of the audio signal collected by the right headphone. Optionally, the TWS headset may determine a ratio of the quality of the audio signal collected by the left headset to the quality of the audio signal collected by the right headset as a target compensation coefficient, or may determine a difference between the quality of the audio signal collected by the left headset and the quality of the audio signal collected by the right headset as a target compensation coefficient.
In this embodiment, since the target compensation coefficient is a compensation coefficient determined by the TWS headset according to the quality of the audio signal acquired by the left headset and the quality of the audio signal acquired by the right headset, after the TWS headset obtains the quality of the audio signal acquired by the left headset and the quality of the audio signal acquired by the right headset, the target compensation coefficient can be accurately determined according to the quality of the audio signal acquired by the left headset of the TWS headset and the quality of the audio signal acquired by the right headset, and the accuracy of the determined target compensation coefficient is improved; in addition, the target compensation coefficient can be quickly determined according to the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone, so that the rate of determining the target compensation coefficient is improved.
In the scenario that the target compensation coefficient corresponding to the type of the current headphone is determined according to the corresponding relationship between the type of the headphone and the compensation coefficient, the corresponding relationship between the type of the headphone and the compensation coefficient needs to be established in advance, in an embodiment, as shown in fig. 3, the method further includes:
s301, the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone are obtained.
In this embodiment, the TWS headset acquires the quality of the audio signal collected by the left headphone and the quality of the audio signal collected by the right headphone. It can be understood that, during the call, data exchange of the call mic between the left earphone and the right earphone may be performed by transmitting data of the slave earphone to the master earphone or transmitting data of the master earphone to the slave earphone, and then the receiver compares and analyzes the received audio signal. Alternatively, the TWS headset may obtain the quality of the audio signal collected by the left headset and the quality of the audio signal collected by the right headset from the receiver.
S302, determining a compensation coefficient of the left earphone and a compensation coefficient of the right earphone according to the magnitude relation between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
In this embodiment, the TWS headset determines the compensation coefficient of the left earphone and the compensation coefficient of the right earphone according to the magnitude relationship between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone. Optionally, as shown in fig. 3a, if the quality of the audio signal collected by the left headphone is less than the quality of the audio signal collected by the right headphone, the TWS headphone determines a ratio of the quality of the audio signal collected by the right headphone to the quality of the audio signal collected by the left headphone as the compensation coefficient of the left headphone. Optionally, as shown in fig. 3b, if the quality of the audio signal collected by the right headphone is less than the quality of the audio signal collected by the left headphone, the TWS headphone determines a ratio of the quality of the audio signal collected by the left headphone to the quality of the audio signal collected by the right headphone as the compensation coefficient of the right headphone.
And S303, establishing a corresponding relation between the type of the earphone and the compensation coefficient according to the compensation coefficient of the left earphone and the compensation coefficient of the right earphone.
In this embodiment, the TWS headset establishes a correspondence between the type of the headset and the compensation coefficient according to the determined compensation coefficient of the left headset and the determined compensation coefficient of the right headset. Optionally, the TWS headset determines the determined compensation coefficient of the left headset as the compensation coefficient corresponding to the left headset, and determines the determined compensation coefficient of the right headset as the compensation coefficient corresponding to the right headset.
In this embodiment, since the compensation coefficient of the left headphone and the compensation coefficient of the right headphone are determined according to the magnitude relationship between the quality of the audio signal acquired by the left headphone and the quality of the audio signal acquired by the right headphone, the TWS headphone can accurately determine the compensation coefficient of the left headphone and the compensation coefficient of the right headphone according to the magnitude relationship between the quality of the audio signal acquired by the left headphone and the quality of the audio signal acquired by the right headphone, and then can accurately establish the correspondence between the headphone type and the compensation coefficient according to the compensation coefficient of the left headphone and the compensation coefficient of the right headphone, thereby improving the accuracy of the correspondence between the headphone type and the compensation coefficient.
In the above scenario of determining the target compensation coefficient corresponding to the current type of the headset according to the corresponding relationship between the type of the headset and the compensation coefficient, in an embodiment, as shown in fig. 4, the determining of the current type of the headset in S202 includes:
s401, judging the current running mode of the earphone according to the current running state of the earphone; the operation mode is a double-earphone operation mode or a single-earphone operation mode.
In this embodiment, the TWS headset determines the current operation mode of the headset according to the current operation state of the headset, where the current operation mode of the headset is a binaural operation mode or a single-headset operation mode. Optionally, if the current operating state of the headset is to acquire an audio signal acquired by a left ear and an audio signal acquired by a right ear, the TWS headset determines that the current operating mode of the headset is a dual-headset operating mode; and if the current running state of the earphone is to acquire the audio signal acquired by the left ear or the audio signal acquired by the right ear, the TWS earphone determines that the current running mode of the earphone is a single-earphone running mode.
S402, determining the type of the current earphone according to the operation mode of the current earphone and the attribute of the current earphone.
In this embodiment, the TWS headset determines the type of the current headset based on the current headset operating mode and the attributes of the current headset. Optionally, if the current operation mode of the headset is the dual-headset operation mode, the TWS headset determines whether the current headset is the primary headset, and if the current headset is the primary headset, the TWS headset determines the type of the current headset according to the attribute of the current headset, where the type of the current headset is a left ear type or a right ear type. Optionally, if the current operation mode of the headset is a single-headset operation mode, the TWS headset determines the type of the current headset according to the attribute of the current headset, where the type of the current headset is a left-ear type or a right-ear type. It will be appreciated that the current earpiece type determined by the TWS earpiece is either a left ear type or a right ear type.
In this embodiment, because the current operating state of the headset is related to the current operating mode of the headset, the TWS headset can accurately determine the current operating mode of the headset according to the current operating state of the headset, and further can accurately determine the type of the current headset according to the current operating mode of the headset and the attribute of the current headset, thereby improving the accuracy of determining the type of the current headset.
In the above scenario of determining the target compensation coefficient corresponding to the current type of the headset according to the corresponding relationship between the type of the headset and the compensation coefficient, in an embodiment, as shown in fig. 5, the step S202 includes:
s501, if the type of the current earphone is the left ear type, determining the compensation coefficient of the left earphone as a target compensation coefficient corresponding to the type of the current earphone.
In this embodiment, if the type of the current headphone is a left ear type, the TWS headphone determines the determined compensation coefficient of the left headphone as a target compensation coefficient corresponding to the type of the current headphone, that is, the TWS headphone adjusts the audio signal acquired by the current headphone according to the compensation coefficient of the left headphone, so as to obtain an adjusted audio signal.
And S502, if the type of the current earphone is the right ear type, determining the compensation coefficient of the right earphone as a target compensation coefficient corresponding to the type of the current earphone.
In this embodiment, if the type of the current headphone is a right-ear type, the TWS headphone determines the determined compensation coefficient of the right headphone as a target compensation coefficient corresponding to the type of the current headphone, that is, the TWS headphone adjusts the audio signal acquired by the current headphone according to the compensation coefficient of the right headphone, so as to obtain an adjusted audio signal.
In this embodiment, the TWS headset can accurately determine the target compensation coefficient corresponding to the current headset lock according to the type of the current headset, and then adjust the audio signal collected by the current headset according to the target compensation coefficient corresponding to the current headset, so that the audio signal sent to the terminal by the adjusted audio signal is the compensated audio signal, and the quality of the audio signal sent to the terminal is ensured.
In the above scenario that the audio signal collected by the current headphone is adjusted by using the target compensation coefficient, in an embodiment, the adjusting the audio signal by using the target compensation coefficient in S203 includes: and determining the product value of the target compensation coefficient and the strength of the audio signal as the adjusted audio signal.
In this embodiment, the TWS headset determines a product value of a target compensation coefficient corresponding to the determined type of the current headset and the intensity of the audio signal collected by the current headset as the adjusted audio signal. For example, if a represents the strength of the audio signal collected by the current headset, γ represents a target compensation coefficient corresponding to the type of the current headset, and b represents the adjusted audio signal, the TWS headset may obtain the adjusted audio signal according to a calculation formula, where b is γ a.
In this embodiment, since the TWS headphone determines the product value of the target compensation coefficient and the intensity of the audio signal as the adjusted audio signal, the calculation process is very simple, and thus, the efficiency of determining the adjusted audio signal is improved.
To facilitate understanding of those skilled in the art, the call quality adjustment method provided in the present application is described in detail below, and the method may include:
and S1, acquiring the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
S2, if the quality of the audio signal collected by the left earphone is less than that of the audio signal collected by the right earphone, determining the ratio of the quality of the audio signal collected by the right earphone to that of the audio signal collected by the left earphone as the compensation coefficient of the left earphone; and if the quality of the audio signal collected by the right earphone is smaller than that of the audio signal collected by the left earphone, determining the ratio of the quality of the audio signal collected by the left earphone to that of the audio signal collected by the right earphone as the compensation coefficient of the right earphone.
And S3, establishing the corresponding relation between the type of the earphone and the compensation coefficient according to the compensation coefficient of the left earphone and the compensation coefficient of the right earphone.
S4, if the audio signal collected by the current earphone is abnormal, judging the operation mode of the current earphone according to the operation state of the current earphone; the operation mode is a double-earphone operation mode or a single-earphone operation mode.
S5, if the operation mode is a double-earphone operation mode, determining whether the current earphone is a main earphone; if the current earphone is the main earphone, determining the type of the current earphone according to the attribute of the current earphone; the type of the current headset is a left ear type or a right ear type.
S6, if the operation mode is a single earphone operation mode, determining the type of the current earphone according to the attribute of the current earphone; the type of the current earphone is a left ear type or a right ear type;
s7, if the type of the current earphone is the left ear type, determining the compensation coefficient of the left earphone as a target compensation coefficient corresponding to the type of the current earphone; and if the type of the current earphone is the right ear type, determining the compensation coefficient of the right earphone as a target compensation coefficient corresponding to the type of the current earphone.
And S8, determining the product value of the target compensation coefficient and the strength of the audio signal as the adjusted audio signal.
It should be noted that, for the descriptions in S1-S8, reference may be made to the descriptions related to the above embodiments, and the effects are similar, and the description of this embodiment is not repeated herein.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a call quality adjusting apparatus including: a first determination module 10, a second determination module 11 and an adjustment module 12, wherein:
the first determining module 10 is configured to determine a type of a current headset if an audio signal acquired by the current headset is abnormal.
And the second determining module 11 is configured to determine a target compensation coefficient corresponding to the type of the current earphone according to the correspondence between the type of the earphone and the compensation coefficient.
And the adjusting module 12 is configured to adjust the audio signal by using the target compensation coefficient, and send the adjusted audio signal to the terminal.
Optionally, the target compensation coefficient is a compensation coefficient determined according to the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the above embodiment, optionally, as shown in fig. 7, the apparatus further includes: an obtaining module 13, a third determining module 14 and a establishing module 15, wherein:
and the obtaining module 13 is configured to obtain the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
And a third determining module 14, configured to determine a compensation coefficient of the left earphone and a compensation coefficient of the right earphone according to a magnitude relationship between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
And the establishing module 15 is configured to establish a corresponding relationship between the type of the headphone and the compensation coefficient according to the compensation coefficient of the left headphone and the compensation coefficient of the right headphone.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, optionally, the third determining module includes: a first determination unit and a second determination unit, wherein:
the first determining unit is used for determining the ratio of the quality of the audio signal collected by the right earphone to the quality of the audio signal collected by the left earphone as the compensation coefficient of the left earphone if the quality of the audio signal collected by the left earphone is smaller than the quality of the audio signal collected by the right earphone.
And the second determining unit is used for determining the ratio of the quality of the audio signal collected by the left earphone to the quality of the audio signal collected by the right earphone as the compensation coefficient of the right earphone if the quality of the audio signal collected by the right earphone is smaller than the quality of the audio signal collected by the left earphone.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, optionally, the first determining module includes: a judgment unit and a third determination unit, wherein:
the judgment unit is used for judging the current running mode of the earphone according to the current running state of the earphone; the operation mode is a double-earphone operation mode or a single-earphone operation mode.
And the third determining unit is used for determining the type of the current earphone according to the operation mode of the current earphone and the attribute of the current earphone.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, optionally, the third determining unit is specifically configured to determine whether the current earphone is the main earphone if the operation mode is the dual-earphone operation mode; if the current earphone is the main earphone, determining the type of the current earphone according to the attribute of the current earphone; the type of the current headset is a left ear type or a right ear type.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, optionally, the third determining unit is specifically configured to determine the type of the current earphone according to the attribute of the current earphone if the operation mode is a single-earphone operation mode; the type of the current headset is a left ear type or a right ear type.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, optionally, the second determining module includes: a fourth determination unit and a fifth determination unit, wherein:
and the fourth determining unit is used for determining the compensation coefficient of the left earphone as the target compensation coefficient corresponding to the type of the current earphone if the type of the current earphone is the left ear type.
And the fifth determining unit is used for determining the compensation coefficient of the right earphone as the target compensation coefficient corresponding to the type of the current earphone if the type of the current earphone is the right ear type.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, optionally, the adjusting module includes: an adjustment unit, wherein:
and the adjusting unit is used for determining the product value of the target compensation coefficient and the signal intensity of the audio signal as the adjusted audio signal.
The call quality adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
For the specific definition of the call quality adjusting apparatus, reference may be made to the above definition of the call quality adjusting method, which is not described herein again. All or part of each module in the call quality adjusting device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a call quality adjustment method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
if the audio signal acquired by the current earphone is abnormal, determining the type of the current earphone;
determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient;
and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to the terminal.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
if the audio signal acquired by the current earphone is abnormal, determining the type of the current earphone;
determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient;
and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to the terminal.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for adjusting call quality, the method comprising:
if the audio signal collected by the current earphone is abnormal, determining the type of the current earphone;
determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the type of the earphone and the compensation coefficient;
and adjusting the audio signal by adopting the target compensation coefficient, and sending the adjusted audio signal to a terminal.
2. The method of claim 1, wherein the target compensation factor is a compensation factor determined according to the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone.
3. The method of claim 2, further comprising:
acquiring the quality of an audio signal collected by a left earphone and the quality of an audio signal collected by a right earphone;
determining a compensation coefficient of the left earphone and a compensation coefficient of the right earphone according to the magnitude relation between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone;
and establishing a corresponding relation between the type of the earphone and the compensation coefficient according to the compensation coefficient of the left earphone and the compensation coefficient of the right earphone.
4. The method of claim 3, wherein determining the compensation factor for the left earphone and the compensation factor for the right earphone according to a magnitude relationship between the quality of the audio signal collected by the left earphone and the quality of the audio signal collected by the right earphone comprises:
if the quality of the audio signal collected by the left earphone is smaller than that of the audio signal collected by the right earphone, determining the ratio of the quality of the audio signal collected by the right earphone to that of the audio signal collected by the left earphone as a compensation coefficient of the left earphone;
and if the quality of the audio signal collected by the right earphone is smaller than that of the audio signal collected by the left earphone, determining the ratio of the quality of the audio signal collected by the left earphone to that of the audio signal collected by the right earphone as the compensation coefficient of the right earphone.
5. The method of any of claims 1-4, wherein the determining the type of the current headset comprises:
judging the operation mode of the current earphone according to the operation state of the current earphone; the operation mode is a double-earphone operation mode or a single-earphone operation mode;
and determining the type of the current earphone according to the operation mode of the current earphone and the attribute of the current earphone.
6. The method of claim 5, wherein determining the type of the current headset based on the operating mode of the current headset and the attributes of the current headset comprises:
if the operation mode is a double-earphone operation mode, determining whether the current earphone is a main earphone;
if the current earphone is a main earphone, determining the type of the current earphone according to the attribute of the current earphone; the type of the current earphone is a left ear type or a right ear type.
7. The method of claim 5, wherein determining the type of the current headset based on the operating mode of the current headset and the attributes of the current headset comprises:
if the operation mode is a single-earphone operation mode, determining the type of the current earphone according to the attribute of the current earphone; the type of the current earphone is a left ear type or a right ear type.
8. The method according to claim 6 or 7, wherein the determining the target compensation coefficient corresponding to the type of the current headset according to the corresponding relationship between the type of the headset and the compensation coefficient comprises:
if the type of the current earphone is the left ear type, determining the compensation coefficient of the left earphone as a target compensation coefficient corresponding to the type of the current earphone;
and if the type of the current earphone is the right ear type, determining the compensation coefficient of the right earphone as a target compensation coefficient corresponding to the type of the current earphone.
9. The method of claim 1, wherein the adapting the audio signal using the target compensation factor comprises:
and determining the product value of the target compensation coefficient and the signal intensity of the audio signal as the adjusted audio signal.
10. A speech quality adjusting apparatus, comprising:
the first determining module is used for determining the type of the current earphone if the audio signal acquired by the current earphone is abnormal;
the second determining module is used for determining a target compensation coefficient corresponding to the type of the current earphone according to the corresponding relation between the compensation coefficients of the types of the earphones;
and the adjusting module is used for adjusting the audio signal by adopting the target compensation coefficient and sending the adjusted audio signal to the terminal.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN202010951685.3A 2020-09-11 2020-09-11 Call quality adjusting method and device, computer equipment and storage medium Active CN112153534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010951685.3A CN112153534B (en) 2020-09-11 2020-09-11 Call quality adjusting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010951685.3A CN112153534B (en) 2020-09-11 2020-09-11 Call quality adjusting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112153534A true CN112153534A (en) 2020-12-29
CN112153534B CN112153534B (en) 2022-03-15

Family

ID=73889597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010951685.3A Active CN112153534B (en) 2020-09-11 2020-09-11 Call quality adjusting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112153534B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245481A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Automatic disconnection method and system for Bluetooth headset, Bluetooth headset and storage medium
CN116074679A (en) * 2023-02-06 2023-05-05 优百博实业深圳有限公司 Method, device, equipment and storage medium for determining left and right states of intelligent earphone

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM295782U (en) * 2006-01-24 2006-08-11 De-Tsai Chiou Digital audio player equipped with a portable earphone-microphone capable of outputting sound from a microphone
WO2006129290A1 (en) * 2005-06-03 2006-12-07 Nokia Corporation Headset
US20100069114A1 (en) * 2008-09-15 2010-03-18 Lee Michael M Sidetone selection for headsets or earphones
WO2011035061A1 (en) * 2009-09-18 2011-03-24 Aliphcom Multi-modal audio system with automatic usage mode detection and configuration compatibility
US20110129097A1 (en) * 2008-04-25 2011-06-02 Douglas Andrea System, Device, and Method Utilizing an Integrated Stereo Array Microphone
EP2587833A1 (en) * 2011-10-27 2013-05-01 Research In Motion Limited Headset with two-way multiplexed communication
US9338555B1 (en) * 2011-02-16 2016-05-10 J. Craig Oxford Earphones and hearing aids with equalization
CN106210951A (en) * 2016-08-15 2016-12-07 广东欧珀移动通信有限公司 The adaptation method of a kind of bluetooth earphone, device and terminal
WO2018063917A2 (en) * 2016-09-28 2018-04-05 3M Innovative Properties Company Adaptive electronic hearing protection device
CN108021349A (en) * 2016-10-28 2018-05-11 中兴通讯股份有限公司 Adjust method, apparatus, earphone and the intelligent terminal of earphone working status
CN108430003A (en) * 2018-03-30 2018-08-21 广东欧珀移动通信有限公司 Audio compensation method and device, readable storage medium storing program for executing, terminal
CN108810717A (en) * 2018-08-21 2018-11-13 歌尔科技有限公司 A kind of left and right acoustic channels degree of balance adjusting method, device, control chip and earphone
WO2019184623A1 (en) * 2018-03-30 2019-10-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing audio signal and related products
CN110830863A (en) * 2019-10-14 2020-02-21 歌尔股份有限公司 Method for automatically adjusting sensitivity of earphone microphone and earphone
CN111263263A (en) * 2020-05-06 2020-06-09 深圳市友杰智新科技有限公司 Earphone loudness gain adjustment method and device, computer equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006129290A1 (en) * 2005-06-03 2006-12-07 Nokia Corporation Headset
TWM295782U (en) * 2006-01-24 2006-08-11 De-Tsai Chiou Digital audio player equipped with a portable earphone-microphone capable of outputting sound from a microphone
US20110129097A1 (en) * 2008-04-25 2011-06-02 Douglas Andrea System, Device, and Method Utilizing an Integrated Stereo Array Microphone
US20100069114A1 (en) * 2008-09-15 2010-03-18 Lee Michael M Sidetone selection for headsets or earphones
WO2011035061A1 (en) * 2009-09-18 2011-03-24 Aliphcom Multi-modal audio system with automatic usage mode detection and configuration compatibility
US9338555B1 (en) * 2011-02-16 2016-05-10 J. Craig Oxford Earphones and hearing aids with equalization
EP2587833A1 (en) * 2011-10-27 2013-05-01 Research In Motion Limited Headset with two-way multiplexed communication
CN106210951A (en) * 2016-08-15 2016-12-07 广东欧珀移动通信有限公司 The adaptation method of a kind of bluetooth earphone, device and terminal
WO2018063917A2 (en) * 2016-09-28 2018-04-05 3M Innovative Properties Company Adaptive electronic hearing protection device
CN108021349A (en) * 2016-10-28 2018-05-11 中兴通讯股份有限公司 Adjust method, apparatus, earphone and the intelligent terminal of earphone working status
CN108430003A (en) * 2018-03-30 2018-08-21 广东欧珀移动通信有限公司 Audio compensation method and device, readable storage medium storing program for executing, terminal
WO2019184623A1 (en) * 2018-03-30 2019-10-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing audio signal and related products
CN108810717A (en) * 2018-08-21 2018-11-13 歌尔科技有限公司 A kind of left and right acoustic channels degree of balance adjusting method, device, control chip and earphone
CN110830863A (en) * 2019-10-14 2020-02-21 歌尔股份有限公司 Method for automatically adjusting sensitivity of earphone microphone and earphone
CN111263263A (en) * 2020-05-06 2020-06-09 深圳市友杰智新科技有限公司 Earphone loudness gain adjustment method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付贤辉: ""蓝牙耳机刨面协议的研究及其实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
小P: "音量调整 让耳朵更健康", 《电脑迷》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245481A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Automatic disconnection method and system for Bluetooth headset, Bluetooth headset and storage medium
CN114245481B (en) * 2021-12-27 2023-12-12 东莞市阿尔法电子科技有限公司 Automatic disconnection method and system for Bluetooth headset, bluetooth headset and storage medium
CN116074679A (en) * 2023-02-06 2023-05-05 优百博实业深圳有限公司 Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN116074679B (en) * 2023-02-06 2023-11-10 宜百科技(深圳)有限公司 Method, device, equipment and storage medium for determining left and right states of intelligent earphone

Also Published As

Publication number Publication date
CN112153534B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
US10462634B2 (en) Method for Bluetooth mode switching, Bluetooth system and electronic device
CN111181816B (en) Audio data routing between multiple wirelessly connected devices
CN107528614B (en) NFMI-based synchronization
CN112425187B (en) Apparatus, method, and storage medium for spatial audio rendering
US9113287B2 (en) Mobile bluetooth device
US9577596B2 (en) System and method for personalization of an audio equalizer
CN112153534B (en) Call quality adjusting method and device, computer equipment and storage medium
US20170195811A1 (en) Audio Monitoring and Adaptation Using Headset Microphones Inside User's Ear Canal
US10897683B2 (en) Apparatus, method and computer program for providing sound reproduction
EP3416410B1 (en) Audio processing device, audio processing method, and computer program product
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
CN112333595A (en) Earphone calibration method, device and system
US20220007201A1 (en) Communication device using two wireless protocols
KR101950305B1 (en) Acoustical signal processing method and device of communication device
CN111541966B (en) Uplink noise reduction method and device of wireless earphone and wireless earphone
US20170366905A1 (en) Audio transmission system and audio processing method thereof
KR20150100305A (en) Method and apparatus for 3d sound reproduction
CN113689890A (en) Method and device for converting multi-channel signal and storage medium
KR20210055715A (en) Methods and systems for enhancing environmental audio signals of hearing devices and such hearing devices
US11042354B1 (en) Audio adjustment control for wireless device
US20230205487A1 (en) Accessory device for a hearing device
CN114915878A (en) Earphone communication method, system, device, equipment and storage medium
CN116866472A (en) Volume control method and electronic equipment
CN114630237A (en) Audio device, control method and device thereof and electronic device
CN117768820A (en) Parameter adjusting method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant