(19)
(11)EP 3 528 590 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
22.09.2021 Bulletin 2021/38

(21)Application number: 16920364.3

(22)Date of filing:  31.10.2016
(51)International Patent Classification (IPC): 
H04M 1/72454(2021.01)
H04M 1/60(2006.01)
(52)Cooperative Patent Classification (CPC):
H04M 1/6008; H04M 1/72454
(86)International application number:
PCT/CN2016/103952
(87)International publication number:
WO 2018/076324 (03.05.2018 Gazette  2018/18)

(54)

AUDIO PROCESSING METHOD AND TERMINAL DEVICE

AUDIOVERARBEITUNGSVERFAHREN UND ENDGERÄTEVORRICHTUNG

PROCÉDÉ DE TRAITEMENT AUDIO ET DISPOSITIF TERMINAL


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(43)Date of publication of application:
21.08.2019 Bulletin 2019/34

(73)Proprietor: Huawei Technologies Co., Ltd.
Longgang Shenzhen, Guangdong 518129 (CN)

(72)Inventor:
  • ZHU, Yongkang
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Körber, Martin Hans 
Mitscherlich PartmbB Patent- und Rechtsanwälte Sonnenstrasse 33
80331 München
80331 München (DE)


(56)References cited: : 
EP-A2- 2 339 868
CN-A- 102 638 601
CN-A- 104 718 794
US-A1- 2002 068 537
WO-A1-2015/117919
CN-A- 103 079 148
CN-A- 105 376 386
US-A1- 2013 202 130
  
      
    Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


    Description

    TECHNICAL FIELD



    [0001] This application relates to the communications field, and more specifically, to an audio processing method and a terminal device.

    BACKGROUND



    [0002] Currently, an uplink gain of a phone call is fixed, but a gesture of a user on a call using a mobile phone (that is, a gesture of holding the mobile phone) usually changes. In other words, when the user is on a call using the mobile phone, a distance between a microphone (microphone, mic) of the mobile phone and the mouth of the user changes. Therefore, because the uplink gain is fixed, when the mouth is relatively far away from the microphone, loudness of an uplink sound is severely affected. Consequently, user experience is poor. CN 102 638 601 A discloses a volume adjustment method controlling an amplification gain based on a distance between a microphone and a user. EP 2 339 868 A2 discloses a microphone directivity control apparatus. WO 2015/117919 A1 discloses a method for adjust the gain of the audio signal amplifier in a dependence on the determined orientation of the device. US 2002/068537 A1 discloses a volume controlling method based if a user is within a selected zone. CN 105 376 386 A discloses an adaptive volume adjustment method based on a distance. US 2013/202130 A1 discloses a motion based compensation method of uplinked audio. CN 104 718 794 A discloses a method for estimating head relative handset location. CN 103 079 148 A discloses a device for reducing noise of two microphones of terminal.

    SUMMARY



    [0003] Embodiments of this application provide an audio processing method according to independent claim 1, and a terminal device according to independent claim 6, so as to dynamically adjust an uplink gain to improve user experience. Additional features of the invention are provided in the dependent claims. In the following, parts of the description and drawings referring to embodiments which are not covered by the claims are not presented as embodiments of the invention, but as examples useful for understanding the invention.

    [0004] According to a first aspect, an audio processing method is provided. The method includes: determining, by a terminal device, an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device; and processing, by the terminal device, an audio signal from the acoustic source based on the actual uplink gain.

    [0005] The terminal device determines the actual uplink gain based on the position relationship between the acoustic source and the microphone of the terminal device, and processes the audio signal from the acoustic source based on the actual uplink gain, so that the terminal device can dynamically adjust an uplink gain based on the position relationship between the acoustic source and the microphone, ensuring loudness of an uplink sound, thereby improving user experience.

    [0006] In particular, the determining, by a terminal device, an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device includes: determining, by the terminal device, the actual uplink gain based on a target angle between a plane in which the terminal device is located and a gravity direction.

    [0007] The terminal device may adjust the actual uplink gain based on an angle between the plane in which the terminal device is located and the gravity direction. For example, the terminal device may adjust, based on a change of the target angle, a value of the actual uplink gain, so as to ensure loudness of the uplink sound, thereby improving user experience.

    [0008] Further, the determining, by the terminal device, the actual uplink gain based on a target angle between a plane in which the terminal device is located and a gravity direction includes: determining, by the terminal device, the actual uplink gain based on a target angle difference between the target angle and a preset angle.

    [0009] The terminal device may determine a deviation angle between a standard gesture and a current target angle between the plane in which the terminal device is located and the gravity direction, and then adjust the uplink gain based on a value of the deviation angle.

    [0010] The method further includes: when an angular velocity of the terminal device changes, obtaining, by the terminal device, position information of the plane in which the terminal device is located; and determining, by the terminal device, the target angle based on the position information.

    [0011] The terminal device may obtain, only when the angular velocity changes, the position information of the plane in which the terminal device is located, so as to determine the target angle, thereby reducing power consumption of the terminal device.

    [0012] In some possible implementations, the method further includes: determining, by the terminal device, a second mapping relationship between an uplink gain and an angle difference between the preset angle and the target angle between the plane in which the terminal device is located and the gravity direction; where the determining, by the terminal device, the actual uplink gain based on a target angle difference between the target angle and a preset angle includes: determining, by the terminal device, the actual uplink gain based on the second mapping relationship and the target angle difference.

    [0013] The terminal device pre-establishes a correspondence table between an angle difference and an uplink gain. In this way, after determining the target angle difference, the terminal device may determine, based on the correspondence table, the actual uplink gain corresponding to the target angle difference.

    [0014] In some possible implementations, the method further includes: determining, by the terminal device at a first moment, first position information of the plane in which the terminal device is located; determining, by the terminal device, the preset angle based on the first position information; determining, by the terminal device at a second moment, second position information of the plane in which the terminal device is located, where the second moment is later than the first moment; and determining, by the terminal device, the target angle based on the second position information.

    [0015] The preset angle of the terminal device may vary with a position of the terminal device that occurs when the user is initially on a call (namely, at the first moment).

    [0016] In some possible implementations, the determining, by a terminal device, an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device includes: determining, by the terminal device, the actual uplink gain based on an actual distance between the acoustic source and the microphone.

    [0017] The terminal device may determine a distance between the microphone and a target acoustic source based on a sound received by the microphone, or may determine an actual distance in another manner.

    [0018] In some possible implementations, the method further includes: determining, by the terminal device, a third mapping relationship between an uplink gain and a distance between the acoustic source and the microphone of the terminal device; where the determining, by the terminal device, the actual uplink gain based on an actual distance between the acoustic source and the microphone of the terminal device includes: determining, by the terminal device, the actual uplink gain based on the third mapping relationship and the actual distance.

    [0019] The terminal device may pre-establish the mapping relationship between an uplink gain and a distance between the acoustic source and the microphone of the terminal device, and determine the actual uplink gain based on the mapping relationship when the actual distance is learned, reducing power consumption of the terminal device.

    [0020] According to a second aspect, a terminal device is provided. The terminal device includes a module configured to perform the method in any one of the first aspect or the possible implementations of the first aspect.

    [0021] According to a third aspect, a terminal device is provided, including: a processor, a memory, and a communications interface. The processor is connected to the memory and the communications interface. The memory is configured to store an instruction; the processor is configured to execute the instruction; and the communications interface is configured to communicate with another network element under control of the processor. When the processor executes the instruction stored in the memory, the execution enables the processor to perform the method in any one of the first aspect or the possible implementations of the first aspect.

    [0022] According to an unclaimed aspect, a storage medium is provided. The storage medium stores program code, and the program code is used to indicate an instruction that is used to perform the audio processing method in any one of the first aspect or the possible implementations of the first aspect.

    [0023] Based on the foregoing technical solutions, in the embodiments of this application, the terminal device determines the actual uplink gain based on the position relationship between the acoustic source and the microphone of the terminal device, and processes the audio signal from the acoustic source based on the actual uplink gain, so that the terminal device can dynamically adjust an uplink gain based on the position relationship between the acoustic source and the microphone, ensuring loudness of an uplink sound, thereby improving user experience.

    BRIEF DESCRIPTION OF DRAWINGS



    [0024] To describe the technical solutions in the embodiments of this application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of this application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

    FIG. 1 is a schematic structural diagram of a terminal device according to an embodiment of this application;

    FIG. 2 is a schematic diagram of an application scenario according to an embodiment of this application;

    FIG. 3 is a schematic flowchart of an audio processing method according to an embodiment of this application;

    FIG. 4 is a schematic diagram of angle calculation according to an embodiment of this application;

    FIG. 5 is a schematic flowchart of an audio processing method according to an embodiment of this application;

    FIG. 6 is a schematic block diagram of a terminal device according to an embodiment of this application; and

    FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of this application.


    DESCRIPTION OF EMBODIMENTS



    [0025] The following clearly and completely describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Apparently, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of this application without creative efforts shall fall within the protection scope of this application.

    [0026] In the embodiments of this application, a terminal device may be a device that has a video function, a call function, and/or a recording function, or any other devices that combine recording/call and video functions. This is not limited in the present invention. For example, the terminal device includes, but is not limited to: a mobile phone, a mobile station, a tablet computer, and the like.

    [0027] A microphone is an energy conversion component that can convert a sound signal into an electrical signal.

    [0028] FIG. 1 is a schematic structural diagram of a terminal device. The terminal device shown in FIG. 1 includes: a gravity sensor module 110, a geomagnetic module 120, a gyroscope module 130, an infrared distance sensor module 140, an earpiece 150, and a microphone 160. The gravity sensor module 110 may detect a component of a gravity acceleration of the terminal device in each direction of an x-axis, a y-axis, and a z-axis. The geomagnetic module 120 may detect an angle between a geomagnetic direction and a direction of the terminal device on each of the x-axis, the y-axis, and the z-axis. The gyroscope module 130 may detect an angular velocity at which the terminal device moves. The infrared distance sensor module 140 may detect a distance between a human face and the terminal device. The earpiece 150 is configured to receive a sound of a peer end. The microphone 160 is configured to receive a sound produced by a user (that is, a sound of a person using the terminal device).

    [0029] It should be understood that disposition of each module in the terminal device in FIG. 1 is used as an example, and the disposition of each module may be adjusted and changed based on an actual requirement. This is not limited in this embodiment of this application.

    [0030] This embodiment of this application may be further applied to a mobile phone with two microphones. A dual-microphone noise reduction technology means that one of two built-in microphones keeps a call stable and clear, and the other microphone actively eliminates noise in a physical manner. Two microphones A and B with same performance are disposed in the mobile phone, where the microphone A is a primary microphone, configured to pick up a sound of a call, and the microphone B is a background sound pickup microphone that is usually installed at the back of the phone and is far away from the microphone A. The two microphones are separated in the mobile phone by a mainboard. During a normal voice call, the mouth close to the microphone A generates a relatively strong audio signal Va, and simultaneously, the microphone B also obtains a voice signal Vb much weaker than A. The two signals are input into a microphone processor. An input end of the microphone processor is a differential amplifier. To be specific, a subtraction operation is performed on the two signals and then the two signals are amplified. As a result, an obtained signal is Vm=Va-Vb. If there is background noise in a use environment, because an acoustic source is far away from the mobile phone, sound waves that arrive at the two microphones of the mobile phone have roughly same intensity, that is, Va≈Vb. Both of the microphones pick up the background noise; therefore, Vm=Va-Vb≈0. Therefore, it can be learned from the foregoing analysis that such a design can effectively resist ambient noise interference surround the mobile phone, thereby improving clarity of the call.

    [0031] An angle between the mobile phone and a face of the user affects a distance between the mouth and the primary microphone (microphone, mic). A larger angle between the mobile phone and the face of the user results in a larger distance between the mouth and the primary microphone, more severely affecting loudness of an uplink sound, and finally directly causing uplink silence or extremely low loudness of the uplink sound of the call.

    [0032] FIG. 2 is a schematic diagram of an application scenario according to an embodiment of this application. As shown in FIG. 2, when a mobile phone angle changes (that is, when the mobile phone moves from a position A to a position B), a distance between the primary microphone and the mouth also changes. In the prior art, an uplink gain of the mobile phone is fixed. In this case, if the distance between the primary microphone and the mouth increases, energy that can be collected decreases.

    [0033] FIG. 3 is a schematic flowchart of an audio processing method 300 according to an embodiment of this application. As shown in FIG. 3, the method 300 may be performed by a terminal device. The method 300 includes the following steps:

    S310. The terminal device determines an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device.

    S320. The terminal device processes an audio signal from the acoustic source based on the actual uplink gain.



    [0034] The terminal device determines the position relationship between the acoustic source and the microphone of the terminal device, and dynamically adjusts an uplink gain to an appropriate uplink gain (namely, the actual uplink gain) based on the position relationship, for example, increases the uplink gain or decreases the uplink gain, so that the terminal device can process, based on the actual uplink gain, the audio signal received from the acoustic source.

    [0035] The terminal device may perform audio processing on a target sound to store the target sound. For example, in a recording state, if recording is performed when the mouth is relatively far away from the microphone, the terminal device may enable a recorded sound to be clearly and stably played with proper loudness. Alternatively, when a user is on a call using the terminal device, although the mouth of the user is relatively far away from the microphone, a sound heard by a peer end of the call is clear and stable with proper loudness, thereby improving user experience.

    [0036] It should be understood that the terminal device in this embodiment of this application may be a terminal device with a single microphone, or may be a terminal device with dual-microphone noise reduction function. When the terminal device has dual-microphone noise reduction function, the microphone in this embodiment of this application is a primary microphone in two microphones. In this case, the terminal device processes, by using the actual uplink gain, an audio signal received by the primary microphone from the acoustic source. In this case, a difference between the processed audio signal received by the primary microphone and an audio signal received by the secondary microphone is not close to zero. In other words, no silence or extremely low loudness of a call resulted from a changing gesture of the user occurs on the terminal device in this embodiment of this application.

    [0037] Therefore, according to the audio processing method in this embodiment of this application, the terminal device determines the actual uplink gain based on the position relationship between the acoustic source and the microphone of the terminal device, and processes the audio signal from the acoustic source based on the actual uplink gain, so that the terminal device can dynamically adjust an uplink gain based on the position relationship between the acoustic source and the microphone, ensuring loudness of an uplink sound, thereby improving user experience.

    [0038] Optionally, that the terminal device determines an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device includes: determining, by the terminal device, the actual uplink gain based on an actual distance between the acoustic source and the microphone.

    [0039] For example, the terminal device may determine a distance between the microphone and a target acoustic source based on a sound received by the microphone, or may determine an actual distance in another manner. This is not limited in this application.

    [0040] Optionally, in an embodiment, the terminal device may pre-determine, by measuring a plurality of groups of data, a mapping relationship (namely, a third mapping relationship) between an uplink gain and a distance between the acoustic source and the microphone of the terminal device. In other words, the terminal device pre-establishes a correspondence table between an uplink gain and a distance between the acoustic source and the microphone of the terminal device. In this way, after determining a target distance, the terminal device may determine, based on the correspondence table, an actual uplink gain corresponding to the target distance, so that the terminal device can dynamically adjust the uplink gain, ensuring loudness of an uplink sound.

    [0041] Optionally, the terminal device may further set a preset distance, and determine the actual uplink gain based on a distance difference between the preset distance and the actual distance between the acoustic source and the microphone of the terminal device. The preset distance may be a distance when the user normally uses the terminal device (and may also be referred to as a "standard gesture"). In other words, the terminal device may determine a deviation distance between the standard gesture and a current distance between the acoustic source and the microphone, and then adjust the uplink gain based on the deviation distance, so that the terminal device can dynamically adjust the uplink gain, ensuring loudness of an uplink sound, thereby improving user experience.

    [0042] It should be understood that the preset distance may be obtained through measurement based on a plurality of groups of data before delivery of the terminal device, and is configured as a default value during delivery. Alternatively, the preset distance may be a value that is manually configured by the user based on a requirement. This is not limited in this application.

    [0043] According to the invention, the terminal device determines an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device including determining, by the terminal device, the actual uplink gain based on a target angle between a plane in which the terminal device is located and a gravity direction.

    [0044] Specifically, because a technology used by the terminal device to measure the distance between the target acoustic source and the microphone is not mature, in this embodiment of this application, an angle (namely, the target angle) between the plane in which the terminal device is located and the gravity direction may be used to indicate the position relationship between the acoustic source and the microphone. In this way, the terminal device may adjust the actual uplink gain based on the angle between the plane in which the terminal device is located and the gravity direction. For example, the terminal device may adjust, based on a change of the target angle, a value of the actual uplink gain.

    [0045] It should be understood that the plane in which the terminal device is located may be any surface of the terminal device, and a plane in which a front surface (for example, a mobile phone screen) of the terminal device is located is used as an example for description in this application.

    [0046] The structure shown in FIG. 1 is used as an example to describe this embodiment of this application in detail. The terminal device may perceive, by using the infrared distance sensor module 140, whether the terminal device is beside a face, that is, whether the terminal device is in a call-answering state. When the terminal device is in a call-answering state, the gravity sensor module 110 is used to collect gravity acceleration component forces of the terminal device on the three axes, to calculate an angle between the plane in which the terminal device is located and a horizontal plane (that is, perpendicular to the gravity direction)/gravity direction, so that the terminal device may determine a corresponding actual uplink gain based on the angle, and the terminal device may further perform, based on the actual uplink gain, audio processing on a sound received by the microphone 160.

    [0047] FIG. 4 is used below to specifically describe how the terminal device determines the angle between the plane in which the terminal device is located and the gravity direction. As shown in FIG. 4, an angle change of a mobile phone is simplified and indicated on a plane formed by a y-axis and a z-axis. It is assumed that a sum of vectors of Gy and Gz is g' (that is, a projection of g on the y-z plane), and calculation is simplified and performed on an x-y 2D plane. A deviation angle between g and g' is denoted as A, and A is the angle between the plane in which the mobile phone is located and the gravity direction. A counterclockwise direction is used as a positive direction and a range of A is [0, 2PI], and therefore:







    [0048] Optionally, the terminal device may pre-determine, by measuring a plurality of groups of data, a mapping relationship (namely, a first mapping relationship) between an uplink gain and an angle between the plane in which the terminal device is located and the gravity direction. In other words, the terminal device pre-establishes a correspondence table between an uplink gain and an angle between the plane in which the terminal device is located and the gravity direction. In this way, after determining the target angle, the terminal device may determine, based on the correspondence table, the actual uplink gain corresponding to the target angle.

    [0049] According to the invention, the terminal device may set a preset angle, and determine the actual uplink gain based on an angle difference (namely, a target angle difference) between the preset angle and the target angle between the plane in which the terminal device is located and the gravity direction. The preset angle may be an angle that exists when the user normally uses the terminal device (and may also be referred to as a "standard gesture"). In other words, the terminal device may determine a deviation angle between the standard gesture and the target angle between the plane in which the terminal device is located and the gravity direction, and then adjust the uplink gain based on a value of the deviation angle. It should be noted that the preset angle may vary in different scenarios.

    [0050] It should be understood that the preset angle may be obtained through measurement based on a plurality of groups of data before delivery of the terminal device, and is configured as a default value during delivery. Alternatively, the preset angle may be a value that is manually configured by the user based on a requirement. This is not limited in this application.

    [0051] It should be further understood that the terminal device may first determine an uplink gain offset value, and the actual uplink gain is a sum of the offset value and a standard uplink gain. The standard uplink gain may be a default value, or may be a gain before current gain adjustment or an uplink gain corresponding to the standard gesture. This is not limited in this application.

    [0052] Optionally, the standard gesture of the terminal device may vary with a position of the terminal device that occurs when the user is initially on a call (at a first moment).

    [0053] For example, for description, the terminal device may further adjust the actual uplink gain based on an angle between a plane perpendicular to the terminal device and the horizontal plane (perpendicular to the gravity direction). As shown in FIG. 4, the terminal device is placed on a horizontal desktop with a screen of the terminal device facing upward; and a right direction is assumed as an x-axis direction, an upward direction is assumed as a y-axis direction, and a direction perpendicular to the terminal device is assumed as a z-axis direction. In this way, the terminal device may determine an initial position of the terminal device based on values of gravity acceleration component forces that are on the three axes and that are detected by the gravity sensor module 110, determine a corresponding standard position based on the initial position, and further determine an angle between a position of the terminal device at a current moment (namely, at a second moment) and the horizontal plane as an angle difference, as shown in Table 1.
    Table 1
    Initial positionDetection basisCommon gestureStandard positionAngle difference
    A mobile phone screen faces upward A gravity component in the z-axis direction is the largest An operation is performed when a mobile phone is placed on a desktop The y-axis direction is consistent with a gravity acceleration direction, and an xoz plane is parallel to the horizontal plane Angle between the xoz plane and the horizontal plane
    A mobile phone screen faces downward A gravity component in a direction reverse to the z-axis direction is the largest An operation is performed when a user is lying and faces upward The x-axis direction is consistent with a gravity acceleration direction, and a yoz plane is parallel to the horizontal plane Angle between the yoz plane and the horizontal plane
    A mobile phone screen is upright A gravity component in the y-axis direction is the largest An operation is performed when a user is half-lying The y-axis direction is consistent with a gravity acceleration direction, and an xoz plane is parallel to the horizontal plane Angle between the xoz plane and the horizontal plane
    A mobile phone screen is upside down A gravity component in a direction reverse to the y-axis direction is the largest This gesture is rare The y-axis direction is consistent with a gravity acceleration direction, and an xoz plane is parallel to the horizontal plane Angle between the xoz plane and the horizontal plane
    A mobile phone screen faces sideways A gravity component in the x-axis direction or a direction reverse to the x-axis direction is the largest An operation is performed when a user is lying and faces sideways The z-axis direction is consistent with a gravity acceleration direction, and an xoy plane is parallel to the horizontal plane The xoy plane is parallel to the horizontal plane


    [0054] Optionally, the terminal device may pre-determine a mapping relationship (namely, a second mapping relationship) between an angle difference and an uplink gain by measuring a plurality of groups of data. In other words, the terminal device pre-establishes a correspondence table between an angle difference and an uplink gain. In this way, after determining the target angle difference, the terminal device may determine, based on the correspondence table, the actual uplink gain corresponding to the target angle difference. For example, Table 2 shows a correspondence table between the angle difference in Table 1 and an uplink gain, and certainly, the correspondence is not limited in this application.
    Table 2
    Angle differenceUplink gain (It is assumed that a reference is x and is in a unit of dB)
    ≤-20 x-0.6
    -10 x-0.3
    0 x
    10 x+0.3
    20 x+0.6
    30 x+0.9
    40 x+1.2
    50 x+1.5
    60 x+1.8
    ≥70 x+2.1


    [0055] According to the invention, the method further includes: when an angular velocity of the terminal device changes, obtaining, by the terminal device, position information of the plane in which the terminal device is located; and determining, by the terminal device, the target angle based on the position information.

    [0056] Specifically, the terminal device may monitor the angular velocity of the terminal device by using the gyroscope module 130 in FIG. 1. The terminal device may constantly obtain the position information of the plane in which the terminal device is located to determine an angle between the plane and the gravity direction. In this embodiment of this application, the terminal device may obtain, only when the angular velocity changes, the position information of the plane in which the terminal device is located, so as to determine the target angle, thereby reducing power consumption of the terminal device.

    [0057] For example, the terminal device may not obtain the position information if the angular velocity of the terminal device remains unchanged or the angular velocity is zero, and obtain the position information when detecting that the angular velocity increases or decreases.

    [0058] Optionally, the terminal device may further set a preset angular velocity threshold. The terminal device obtains, only when detecting that the angular velocity is greater than the preset angular velocity threshold, the position information of the plane in which the terminal device is located.

    [0059] Therefore, according to the audio processing method in this embodiment of this application, the terminal device determines the actual uplink gain based on the position relationship between the acoustic source and the microphone of the terminal device, and processes the audio signal from the acoustic source based on the actual uplink gain, so that the terminal device can dynamically adjust an uplink gain based on the position relationship between the acoustic source and the microphone, ensuring loudness of an uplink sound, thereby improving user experience.

    [0060] FIG. 5 is a detailed flowchart of an audio processing method according to an embodiment of this application. As shown in FIG. 5, a mobile phone is used as an example for description. Meanings of various terms in this embodiment of this application are the same as those in the foregoing embodiments.

    [0061] It should be understood that this is merely intended to help a person skilled in the art better understand this embodiment of this application, but is not intended to limit the scope of this embodiment of this application.

    501. The mobile phone detects whether there is an incoming call.

    502. The mobile phone collects first position information of the mobile phone after detecting an incoming call.

    503. The mobile phone determines, based on the first position information, a standard gesture (namely, a preset angle between a plane in which the mobile phone is located and a gravity direction) that occurs when the call is answered.

    504. The mobile phone determines, based on the standard gesture, uplink gains corresponding to angle differences between different angles and the preset angle (namely, a mapping relationship between an angle difference and an uplink gain).

    505. The mobile phone detects that a user answers the call.
    Step 505 may be performed before step 502 or after step 504, and this is not limited in this embodiment of this application.

    506. The mobile phone collects second position information of the mobile phone after detecting that the user answers the call.

    507. The mobile phone calculates, based on the second position information, a target angle between a plane in which the mobile phone is located and the gravity direction.

    508. The mobile phone determines, based on the mapping relationships, an actual uplink gain corresponding to an angle difference between the target angle and the preset angle, and adjusts an uplink gain to the actual uplink gain.

    509. The mobile phone processes a received user sound (that is, answers the call) based on the actual uplink gain.



    [0062] It should be understood that in this embodiment of this application, step 507 to step 509 may repeat if a gesture of the user using the mobile phone constantly changes.

    [0063] Therefore, according to the audio processing method in this embodiment of this application, the terminal device determines a target angle of a current position of the terminal device based on the mapping relationship between an angle difference and an uplink gain, determines, based on the mapping relationship, an actual uplink gain corresponding to a difference between the target angle and the preset angle, and processes an audio signal from an acoustic source based on the actual uplink gain, so that the terminal device can dynamically adjust the uplink gain, ensuring loudness of an uplink sound, thereby improving user experience.

    [0064] FIG. 6 is a schematic block diagram of a terminal device 600 according to an embodiment of this application. As shown in FIG. 6, the terminal device 600 includes:
    a processing module 610, configured to determine an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device.

    [0065] The processing module 610 is further configured to process an audio signal from the acoustic source based on the actual uplink gain.

    [0066] The processing module 610 is specifically configured to determine the actual uplink gain based on a target angle between a plane in which the terminal device is located and a gravity direction.

    [0067] Optionally, the processing module 610 is further configured to determine a first mapping relationship between an uplink gain and an angle between the plane in which the terminal device is located and the gravity direction. The processing module 610 is specifically configured to determine the actual uplink gain based on the first mapping relationship and the target angle.

    [0068] The processing module 610 is specifically configured to determine the actual uplink gain based on a target angle difference between the target angle and a preset angle.

    [0069] Optionally, the processing module 610 is further configured to determine a second mapping relationship between an uplink gain and an angle difference between the preset angle and the target angle between the plane in which the terminal device is located and the gravity direction. The processing module 610 is specifically configured to determine the actual uplink gain based on the second mapping relationship and the target angle difference.

    [0070] Optionally, the processing module 610 is further configured to: determine, at a first moment, first position information of the plane in which the terminal device is located; determine the preset angle based on the first position information; determine, at a second moment, second position information of the plane in which the terminal device is located, where the second moment is later than the first moment; and determine the target angle based on the second position information.

    [0071] The processing module 610 is further configured to: when an angular velocity of the terminal device changes, obtain position information of the plane in which the terminal device is located; and determine the target angle based on the position information.

    [0072] Optionally, the processing module 610 is specifically configured to determine the actual uplink gain based on an actual distance between the acoustic source and the microphone.

    [0073] Optionally, the processing module 610 is further configured to determine a third mapping relationship between an uplink gain and a distance between the acoustic source and the microphone of the terminal device. The processing module 610 is specifically configured to determine the actual uplink gain based on the third mapping relationship and the actual distance.

    [0074] Therefore, the terminal device in this embodiment of this application determines the actual uplink gain based on the position relationship between the acoustic source and the microphone of the terminal device, and processes the audio signal from the acoustic source based on the actual uplink gain, so that the terminal device can dynamically adjust an uplink gain based on the position relationship between the acoustic source and the microphone, ensuring loudness of an uplink sound, thereby improving user experience.

    [0075] FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of this application. As shown in FIG. 7, the terminal device includes: at least one processor 702 (for example, a general purpose processor CPU with a computing and processing capability, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or a field programmable gate array (FPGA)). The processor 702 is configured to manage and schedule modules and components in the terminal device. The processing module 610 in the embodiment shown in FIG. 6 may be implemented by using the processor 702. Optionally, the terminal device further includes at least one transceiver 705 (a receiver/transmitter 705), a memory 706, and at least one bus system 703. All components of the terminal device may be coupled together by using the bus system 703. The bus system 703 may include a data bus, a power bus, a control bus, a status signal bus, and the like. For clarity of description, various buses are marked as the bus system 703 in the figure.

    [0076] Optionally, the processor of the terminal device may further perform a processing procedure by using a gravity sensor module, a geomagnetic module, a gyroscope module, an infrared distance sensor module, an earpiece, a microphone, and the like.

    [0077] The method disclosed in this embodiment of this application may be applied to the processor 702, or may be used to execute an executable module such as a computer program stored in the memory 706. The memory 706 may include a high-speed random access memory (RAM: Random Access Memory), or may include a non-volatile memory (non-volatile memory). The memory may include a read-only memory and a random access memory, and provide required signaling or data, a required program, or the like to the processor. A part of the memory may further include a non-volatile random access memory (NVRAM).

    [0078] In some implementations, the memory 706 stores a program 7061, and the processor 702 executes the program 7061, to perform the following operations:

    determining an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device; and

    processing an audio signal from the acoustic source based on the actual uplink gain.



    [0079] It should be noted that the terminal device may be specifically the terminal device in the embodiment shown in FIG. 6, and may be configured to perform steps and/or procedures corresponding to the terminal device in the method embodiments shown in FIG. 4 and FIG. 5.

    [0080] It can be learned from the foregoing technical solution provided in this embodiment of this application that the actual uplink gain is determined based on the position relationship between the acoustic source and the microphone of the terminal device, and the audio signal from the acoustic source is processed based on the actual uplink gain, so that the terminal device can dynamically adjust an uplink gain based on the position relationship between the acoustic source and the microphone, ensuring loudness of an uplink sound, thereby improving user experience.

    [0081] An embodiment of this application further provides a computer storage medium, and the computer storage medium may store a program instruction that is used to indicate any one of the foregoing methods.

    [0082] Optionally, the storage medium may be specifically the memory 606.

    [0083] It should be understood that the term "and/or" in this specification describes only an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, the character "/" in this specification generally indicates an "or" relationship between the associated objects.

    [0084] It should be understood that sequence numbers of the foregoing processes do not mean execution sequences in various embodiments of this application. The execution sequences of the processes should be determined according to functions and internal logic of the processes, and should not be construed as any limitation on the implementation processes of the embodiments of this application.

    [0085] A person of ordinary skill in the art may be aware that the units and algorithm steps in the examples described with reference to the embodiments disclosed in this specification may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.

    [0086] It may be clearly understood by a person skilled in the art that for the purpose of convenient and brief description, for a detailed working process of the system, apparatus, and unit, refer to a corresponding process in the method embodiments. Details are not described herein again.

    [0087] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

    [0088] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual needs to achieve the objectives of the solutions of the embodiments.

    [0089] In addition, functional units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.

    [0090] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.

    [0091] The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.


    Claims

    1. An audio processing method (300), comprising:

    determining (S310), by a terminal device, an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device; and

    processing (S320), by the terminal device, an audio signal from the acoustic source based on the actual uplink gain;

    wherein the determining (S310), by a terminal device, an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device comprises:

    determining, by the terminal device, the actual uplink gain based on a target angle between a plane in which the terminal device is located and a gravity direction;

    characterised in that the determining, by the terminal device, the actual uplink gain based on a target angle between a plane in which the terminal device is located and a gravity direction comprises:

    determining, by the terminal device, the actual uplink gain based on a target angle difference between the target angle and a preset angle;

    and in that the method further comprises:

    obtaining, by the terminal device, position information of the plane in which the terminal device is located, in response to a change of an angular velocity of the terminal device; and

    determining, by the terminal device, the target angle based on the position information.


     
    2. The method (300) according to claim 1, further comprising:

    determining, by the terminal device, a second mapping relationship between an uplink gain and an angle difference between the preset angle and the target angle between the plane in which the terminal device is located and the gravity direction; wherein

    the determining, by the terminal device, the actual uplink gain based on a target angle difference between the target angle and a preset angle comprises:
    determining, by the terminal device, the actual uplink gain based on the second mapping relationship and the target angle difference.


     
    3. The method (300) according to one of the claims 1 to 2, further comprising:

    determining, by the terminal device at a first moment, first position information of the plane in which the terminal device is located;

    determining, by the terminal device, the preset angle based on the first position information;

    determining, by the terminal device at a second moment, second position information of the plane in which the terminal device is located, wherein the second moment is later than the first moment; and

    determining, by the terminal device, the target angle based on the second position information.


     
    4. The method (300) according to claim 1, wherein the determining, by a terminal device, an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device comprises:
    determining, by the terminal device, the actual uplink gain based on an actual distance between the acoustic source and the microphone.
     
    5. The method (300) according to claim 4, further comprising:

    determining, by the terminal device, a third mapping relationship between an uplink gain and a distance between the acoustic source and the microphone of the terminal device; wherein

    the determining, by the terminal device, the actual uplink gain based on an actual distance between the acoustic source and the microphone comprises:
    determining, by the terminal device, the actual uplink gain based on the third mapping relationship and the actual distance.


     
    6. A terminal device (600), comprising:

    a processing module (610), configured to determine an actual uplink gain based on a position relationship between an acoustic source and a microphone of the terminal device, wherein

    the processing module (610) is further configured to process an audio signal from the acoustic source based on the actual uplink gain;

    wherein the processing module (610) is specifically configured to:

    determine the actual uplink gain based on a target angle between a plane in which the terminal device (600) is located and a gravity direction;

    characterised in that the processing module (610) is specifically configured to:

    determine the actual uplink gain based on a target angle difference between the target angle and a preset angle;

    and in that the processing module (610) is further configured to: obtain position information of the plane in which the terminal device is located, in response to a change of an angular velocity of the terminal device; and to determine the target angle based on the position information.


     
    7. The terminal device (600) according to claim 6, wherein the processing module (610) is further configured to determine a second mapping relationship between an uplink gain and an angle difference between the preset angle and the target angle between the plane in which the terminal device is located and the gravity direction; and
    the processing module (610) is specifically configured to:
    determine the actual uplink gain based on the second mapping relationship and the target angle difference.
     
    8. The terminal device (600) according to one of the claims 6 to 7, wherein the processing module (610) is further configured to:

    determine, at a first moment, first position information of the plane in which the terminal device is located;

    determine the preset angle based on the first position information;

    determine, at a second moment, second position information of the plane in which the terminal device is located, wherein the second moment is later than the first moment; and

    determine the target angle based on the second position information.


     


    Ansprüche

    1. Audioverarbeitungsverfahren (300), das Folgendes umfasst:

    Bestimmen (S310), durch ein Endgerät, einer tatsächlichen Uplink-Verstärkung basierend auf einer Positionsbeziehung zwischen einer akustischen Quelle und einem Mikrofon des Endgeräts; und

    Verarbeiten (S320), durch das Endgerät, eines Audiosignals von der akustischen Quelle basierend auf der tatsächlichen Uplink-Verstärkung;

    wobei das Bestimmen (S310), durch ein Endgerät, einer tatsächlichen Uplink-Verstärkung basierend auf einer Positionsbeziehung zwischen einer akustischen Quelle und einem Mikrofon des Endgeräts Folgendes umfasst:

    Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf einem Zielwinkel zwischen einer Ebene, in der sich das Endgerät befindet, und einer Schwerkraftrichtung;

    dadurch gekennzeichnet, dass

    das Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf einem Zielwinkel zwischen einer Ebene, in der sich das Endgerät befindet, und einer Schwerkraftrichtung Folgendes umfasst:

    Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf einer Zielwinkeldifferenz zwischen dem Zielwinkel und einem voreingestellten Winkel;

    und dadurch, dass das Verfahren ferner Folgendes umfasst:

    Erhalten, durch das Endgerät, von Positionsinformationen der Ebene, in der sich das Endgerät befindet, als Reaktion auf eine Änderung einer Winkelgeschwindigkeit des Endgeräts; und

    Bestimmen, durch das Endgerät, des Zielwinkels basierend auf den Positionsinformationen.


     
    2. Verfahren (300) nach Anspruch 1, das ferner Folgendes umfasst:

    Bestimmen, durch das Endgerät, einer zweiten Zuordnungsbeziehung zwischen einer Uplink-Verstärkung und einer Winkeldifferenz zwischen dem voreingestellten Winkel und dem Zielwinkel zwischen der Ebene, in der sich das Endgerät befindet, und der Schwerkraftrichtung; wobei

    das Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf einer Zielwinkeldifferenz zwischen dem Zielwinkel und einem voreingestellten Winkel Folgendes umfasst:
    Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf der zweiten Zuordnungsbeziehung und der Zielwinkeldifferenz.


     
    3. Verfahren (300) nach einem der Ansprüche 1 bis 2, das ferner Folgendes umfasst:

    Bestimmen, durch das Endgerät in einem ersten Moment, von ersten Positionsinformationen der Ebene, in der sich das Endgerät befindet;

    Bestimmen, durch das Endgerät, des voreingestellten Winkels basierend auf den ersten Positionsinformationen;

    Bestimmen, durch das Endgerät in einem zweiten Moment, von zweiten Positionsinformationen der Ebene, in der sich das Endgerät befindet, wobei der zweite Moment später als der erste Moment stattfindet; und

    Bestimmen, durch das Endgerät, des Zielwinkels basierend auf den zweiten Positionsinformationen.


     
    4. Verfahren (300) nach Anspruch 1, wobei das Bestimmen, durch ein Endgerät, einer tatsächlichen Uplink-Verstärkung basierend auf einer Positionsbeziehung zwischen einer akustischen Quelle und einem Mikrofon des Endgeräts Folgendes umfasst:
    Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf einem tatsächlichen Abstand zwischen der akustischen Quelle und dem Mikrofon.
     
    5. Verfahren (300) nach Anspruch 4, das ferner Folgendes umfasst:

    Bestimmen, durch das Endgerät, einer dritten Zuordnungsbeziehung zwischen einer Uplink-Verstärkung und einem Abstand zwischen der akustischen Quelle und dem Mikrofon des Endgeräts; wobei

    das Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf einem tatsächlichen Abstand zwischen der akustischen Quelle und dem Mikrofon Folgendes umfasst:
    Bestimmen, durch das Endgerät, der tatsächlichen Uplink-Verstärkung basierend auf der dritten Zuordnungsbeziehung und der tatsächlichen Entfernung.


     
    6. Endgerät (600), das Folgendes umfasst:

    ein Verarbeitungsmodul (610), das konfiguriert ist, um eine tatsächliche Uplink-Verstärkung basierend auf einer Positionsbeziehung zwischen einer akustischen Quelle und einem Mikrofon des Endgeräts zu bestimmen, wobei

    das Verarbeitungsmodul (610) ferner konfiguriert ist, um ein Audiosignal von der akustischen Quelle basierend auf der tatsächlichen Uplink-Verstärkung zu verarbeiten;

    wobei das Verarbeitungsmodul (610) speziell für Folgendes konfiguriert ist:

    Bestimmen der tatsächlichen Uplink-Verstärkung basierend auf einem Zielwinkel zwischen einer Ebene, in der sich das Endgerät (600) befindet, und einer Schwerkraftrichtung;

    dadurch gekennzeichnet, dass das Verarbeitungsmodul (610) speziell für Folgendes konfiguriert ist:

    Bestimmen der tatsächlichen Uplink-Verstärkung basierend auf einer Zielwinkeldifferenz zwischen dem Zielwinkel und einem voreingestellten Winkel;

    und dadurch, dass

    das Verarbeitungsmodul (610) ferner für Folgendes konfiguriert ist: Erhalten von Positionsinformationen der Ebene, in der sich das Endgerät befindet, als Reaktion auf eine Änderung einer Winkelgeschwindigkeit des Endgeräts; und Bestimmen des Zielwinkels basierend auf den Positionsinformationen.


     
    7. Endgerät (600) nach Anspruch 6, wobei das Verarbeitungsmodul (610) ferner konfiguriert ist, um eine zweite Zuordnungsbeziehung zwischen einer Uplink-Verstärkung und einer Winkeldifferenz zwischen dem voreingestellten Winkel und dem Zielwinkel zwischen der Ebene, in der sich das Endgerät befindet, und der Schwerkraftrichtung zu bestimmen; und
    das Verarbeitungsmodul (610) speziell für Folgendes konfiguriert ist:
    Bestimmen der tatsächlichen Uplink-Verstärkung basierend auf der zweiten Zuordnungsbeziehung und der Zielwinkeldifferenz.
     
    8. Endgerät (600) nach einem der Ansprüche 6 bis 7, wobei das Verarbeitungsmodul (610) ferner für Folgendes konfiguriert ist:

    Bestimmen, in einem ersten Moment, von ersten Positionsinformationen der Ebene, in der sich das Endgerät befindet;

    Bestimmen des voreingestellten Winkels basierend auf den ersten Positionsinformationen;

    Bestimmen, in einem zweiten Moment, von zweiten Positionsinformationen der Ebene, in der sich das Endgerät befindet, wobei der zweite Moment später als der erste Moment stattfindet; und

    Bestimmen des Zielwinkels basierend auf den zweiten Positionsinformationen.


     


    Revendications

    1. Procédé (300) de traitement audio, comprenant :

    la détermination (S310), par un dispositif terminal, d'un gain de liaison montante réel sur la base d'une relation de position entre une source acoustique et un microphone du dispositif terminal ; et

    le traitement (S320), par le dispositif terminal, d'un signal audio provenant de la source acoustique sur la base du gain de liaison montante réel ;

    dans lequel la détermination (S310), par un dispositif terminal, d'un gain de liaison montante réel sur la base d'une relation de position entre une source acoustique et un microphone du dispositif terminal comprend :

    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base d'un angle cible entre un plan dans lequel le dispositif terminal est situé et une direction de gravité ;

    caractérisé en ce que :
    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base d'un angle cible entre un plan dans lequel le dispositif terminal est situé et une direction de gravité comprend :

    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base d'une différence d'angle cible entre l'angle cible et un angle prédéfini ;

    et en ce que le procédé comprend en outre :

    l'obtention, par le dispositif terminal, des informations de position du plan dans lequel se trouve le dispositif terminal, en réponse à un changement d'une vitesse angulaire du dispositif terminal ; et

    la détermination, par le dispositif terminal, de l'angle cible sur la base des informations de position.


     
    2. Procédé (300) selon la revendication 1, comprenant en outre :

    la détermination, par le dispositif terminal, d'une deuxième relation de mappage entre un gain de liaison montante et une différence d'angle entre l'angle prédéfini et l'angle cible entre le plan dans lequel le dispositif terminal est situé et la direction de la gravité ; dans lequel

    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base d'une différence d'angle cible entre l'angle cible et un angle prédéfini comprend :
    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base de la deuxième relation de mappage et de la différence d'angle cible.


     
    3. Procédé (300) selon l'une des revendications 1 à 2, comprenant en outre :

    la détermination, du gain de liaison par le dispositif terminal à un premier moment, des premières informations de position du plan dans lequel se trouve le dispositif terminal ;

    la détermination, par le dispositif terminal, de l'angle prédéfini sur la base des premières informations de position ;

    la détermination, par le dispositif terminal à un second moment, des secondes informations de position du plan dans lequel se trouve le dispositif terminal, dans lequel le second moment est postérieur au premier moment ; et

    la détermination, par le dispositif terminal, de l'angle cible sur la base des secondes informations de position.


     
    4. Procédé (300) selon la revendication 1, dans lequel la détermination, par un dispositif terminal, d'un gain de liaison montante réel sur la base d'une relation de position entre une source acoustique et un microphone du dispositif terminal comprend :
    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base d'une distance réelle entre la source acoustique et le microphone.
     
    5. Procédé (300) selon la revendication 4, comprenant en outre :

    la détermination, par le dispositif terminal, d'une troisième relation de mappage entre un gain de liaison montante et une distance entre la source acoustique et le microphone du dispositif terminal ; dans lequel

    la détermination, par le dispositif terminal, du gain de liaison montante réel en fonction d'une distance réelle entre la source acoustique et le microphone comprend :
    la détermination, par le dispositif terminal, du gain de liaison montante réel sur la base de la troisième relation de mappage et de la distance réelle.


     
    6. Dispositif terminal (600), comprenant :

    un module de traitement (610), configuré pour déterminer un gain de liaison montante réel sur la base d'une relation de position entre une source acoustique et un microphone du dispositif terminal, dans lequel

    le module de traitement (610) est en outre configuré pour traiter un signal audio provenant de la source acoustique sur la base du gain de liaison montante réel ;

    le module de traitement (610) étant configuré spécifiquement pour :
    déterminer le gain de liaison montante réel en fonction d'un angle cible entre un plan dans lequel le dispositif terminal (600) est situé et une direction de gravité ;

    caractérisé en ce que le module de traitement (610) est spécifiquement configuré pour:

    déterminer le gain de liaison montante réel sur la base d'une différence d'angle cible entre l'angle cible et un angle prédéfini ;

    et en ce que

    le module de traitement (610) est en outre configuré pour : obtenir des informations de position du plan dans lequel le dispositif terminal est situé, en réponse à un changement d'une vitesse angulaire du dispositif terminal ; et pour déterminer l'angle cible en fonction des informations de position.


     
    7. Dispositif terminal (600) selon la revendication 6, dans lequel le module de traitement (610) est en outre configuré pour déterminer une deuxième relation de mappage entre un gain de liaison montante et une différence d'angle entre l'angle prédéfini et l'angle cible entre le plan dans lequel le dispositif terminal est localisé et la direction de gravité ; et

    le module de traitement (610) est spécifiquement configuré pour :

    déterminer le gain de liaison montante réel sur la base de la deuxième relation de mappage et de la différence d'angle cible.


     
    8. Dispositif terminal (600) selon l'une quelconque des revendications 6 à 7, dans lequel le module de traitement (610) est en outre configuré pour :

    déterminer, à un premier moment, des premières informations de position du plan dans lequel le dispositif terminal est situé ;

    déterminer l'angle prédéfini sur la base des premières informations de position ;

    déterminer, à un second moment, des secondes informations de position du plan dans lequel se trouve le dispositif terminal, dans lequel le second moment est postérieur au premier moment ; et

    déterminer l'angle cible sur la base des secondes informations de position.


     




    Drawing




















    Cited references

    REFERENCES CITED IN THE DESCRIPTION



    This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

    Patent documents cited in the description